/* Lead Flow Genesis - Liquid Obsidian Design System */
:root {
  --p: #6366f1;
  --p-d: #4338ca;
  --p-l: #818cf8;
  --s: #10b981;
  --a: #f59e0b;
  --bg: #030305;
  --bg-s: #09090c;
  --bg-c: rgba(15, 15, 20, 0.6);
  --t: #f1f5f9;
  --t-m: #94a3b8;
  --b: rgba(255, 255, 255, 0.05);
  --b-b: rgba(255, 255, 255, 0.1);
  --font-h: "Outfit", sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 32px;
  --glass: blur(16px) saturate(180%);
  --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --transition: 0.6s cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--t);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Genesis Animations */
@keyframes aurora {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -50px) rotate(2deg); }
  66% { transform: translate(-20px, 20px) rotate(-2deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes pulse-cta {
  0% { box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.5); transform: scale(1); }
  50% { box-shadow: 0 20px 60px -10px rgba(99, 102, 241, 0.7); transform: scale(1.05); }
  100% { box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.5); transform: scale(1); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(50px) scale(0.95); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.reveal { opacity: 0; transition: all 1s var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); animation: reveal 1s var(--transition) forwards; }

/* Global Components */
.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--p-l), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-inner { max-width: 1400px; margin: 0 auto; width: 100%; padding: 0 2rem; }

/* Header Genesis */
.header {
  position: fixed;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 1200px;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: var(--glass);
  border: 1px solid var(--b-b);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--t); font-weight: 900; font-size: 1.25rem; font-family: var(--font-h); }
.logo-icon { width: 32px; height: 32px; background: var(--p); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { 
  text-decoration: none; 
  color: var(--t-m); 
  font-size: 0.85rem; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  transition: color 0.3s; 
}
.nav-links a:hover { color: white; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-login { 
  text-decoration: none; 
  color: var(--t); 
  font-size: 0.85rem; 
  font-weight: 700; 
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}
.nav-login:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }

.nav-cta {
  background: white;
  color: black;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3); }

/* Hero Refined (Centralized) */
.hero-genesis {
  position: relative;
  min-height: 100vh;
  padding: 10rem 0 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Ensure vertical centering */
  text-align: center;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  top: -20%; left: -10%;
  width: 120%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2), transparent 50%),
              radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.1), transparent 40%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: pulse-glow 10s infinite alternate;
}

.hero-visuals {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: -20%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), black, transparent 80%);
  transform: perspective(1000px) rotateX(25deg) translateY(var(--ty, 0));
  transition: transform 0.2s cubic-bezier(0.1, 0, 0, 1);
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  mix-blend-mode: soft-light;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  mix-blend-mode: screen;
  transition: transform 0.3s ease-out;
}

.blob-1 {
  width: 400px; height: 400px;
  background: var(--p);
  top: 20%; left: 10%;
  animation: float 20s infinite alternate;
}

.blob-2 {
  width: 500px; height: 500px;
  background: var(--s);
  bottom: 10%; right: 5%;
  animation: float 25s infinite alternate-reverse;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--b-b);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--p-l);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  color: var(--t-m);
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 10;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.btn-genesis {
  padding: 1.2rem 2.8rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-genesis-primary {
  background: var(--p);
  color: white;
  box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.5);
  animation: pulse-cta 3s infinite ease-in-out;
}
.btn-genesis-primary:hover {
  background: var(--p-d);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.6);
}
.btn-genesis-outline {
  border: 1px solid var(--b-b);
  color: var(--t);
  background: rgba(255, 255, 255, 0.02);
}
.btn-genesis-outline:hover { background: rgba(255, 255, 255, 0.05); }

/* Elite Visual Grid Features */
.features-section { padding: 10rem 0; background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-card:hover { 
  border-color: var(--p-l); 
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.feature-icon { 
  font-size: 3.5rem; 
  margin-bottom: 2rem; 
  display: block;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}
.feature-card h3 { font-family: var(--font-h); font-size: 1.75rem; margin-bottom: 1.25rem; }
.feature-card p { color: var(--t-m); font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Showcase Genesis */
.showcase-genesis { padding: 2rem 0 3rem; text-align: center; }
.experiencia-title { font-size: 2.25rem !important; margin-bottom: 0.5rem !important; }
.experiencia-subtitle { font-size: 1rem !important; margin-bottom: 0 !important; }
.showcase-visual {
  width: 100%;
  max-width: 900px;
  margin: 1.5rem auto 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  border: 1px solid var(--b-b);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  max-height: 45vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 60px 60px -30px rgba(0,0,0,0.8);
}
.showcase-mock {
  position: absolute;
  inset: 5%;
  background: var(--bg-s);
  border: 1px solid var(--b);
  border-radius: var(--radius);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Tablet frame + carousel (reduzido para título na mesma tela) */
.showcase-tablet {
  position: absolute;
  inset: 4%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-tablet-frame {
  width: 100%;
  height: 100%;
  background: #1a1a1e;
  border: 4px solid #2a2a30;
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 20px 40px -15px rgba(0,0,0,0.6);
}

.showcase-carousel {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-s);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-s);
}

/* Pricing Genesis */
.pricing-genesis { padding: 10rem 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--b);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--p-l), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 5;
}

.pricing-card:hover::before { opacity: 1; }

.pricing-card.featured {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  opacity: 0.5;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--p-l), var(--p) 50%, transparent 80%);
}

.pricing-card:hover { 
  transform: translateY(-15px); 
  background: rgba(255,255,255,0.04);
}

.pricing-card.featured:hover { transform: scale(1.07) translateY(-15px); }

.price-tag { font-size: 4rem; font-weight: 900; font-family: var(--font-h); margin: 2rem 0; }
.price-tag span { font-size: 1.25rem; color: var(--t-m); font-weight: 500; }

.pricing-features { list-style: none; margin-bottom: 3rem; text-align: left; flex-grow: 1; }
.pricing-features li { padding: 0.8rem 0; border-bottom: 1px solid var(--b); color: var(--t-m); font-size: 0.95rem; }
.pricing-features li::before { content: "→"; margin-right: 0.75rem; color: var(--p-l); font-weight: 900; }

/* Mobile Genesis */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 4rem; }
}

@media (max-width: 768px) {
  .header { width: calc(100% - 2rem); top: 1rem; }
  .nav-links { display: none; }
  .hero-genesis { padding-top: 10rem; }
}
