/* ── TOKENS ── */
:root {
  --bg: #0A0A0A;
  --surface: #1E1E1E;
  --surface-2: #2A2A2A;
  --accent: #00FF41;
  --accent-dim: rgba(0, 255, 65, 0.12);
  --text: #F0F0F0;
  --text-muted: #666;
  --text-secondary: #999;
  --border: #2E2E2E;
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.2s ease;
  --section-pad: 7rem 2rem;
  --max-w: 1100px;
  --nav-h: 68px; /* altura real da navbar — usada em scroll-padding-top e scroll-margin-top */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
  scroll-behavior: smooth  — rolagem fluida nativa para todos os links âncora.
  scroll-padding-top       — compensa a altura da navbar fixa (--nav-h).
  Sem isso, a seção alvo ficaria parcialmente coberta pelo header ao navegar.
*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

/*
  prefers-reduced-motion: reduce
  Usuários que ativam "Reduzir movimento" no SO (Windows, macOS, iOS, Android)
  recebem scroll instantâneo. Respeita acessibilidade sem remover a feature.
*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  gap: 2rem;
}
.logo { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.5px; }
.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary.full { width: 100%; padding: 0.9rem; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost-full {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color var(--transition);
}
.btn-ghost-full:hover { border-color: var(--accent); }

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  text-align: center;
  transition: color var(--transition);
}
.btn-back:hover { color: var(--text); }

/* ── TYPOGRAPHY HELPERS ── */
.accent { color: var(--accent); }
.eyebrow, .section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.no-card { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center; }

/*
  scroll-margin-top nas seções alvo.
  Funciona como "margem interna" para o scroll snap point de cada seção.
  Garante que o título da seção fique visível abaixo da navbar ao navegar.
  Valor igual a --nav-h + 8px de respiro visual.
*/
#how-it-works,
#features,
#deep-dive,
#social-proof,
#pricing,
#faq {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ── NAV ACTIVE STATE ── */
.nav-links a.active {
  color: var(--text);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  border-radius: 1px;
}

/* ── SECTION LAYOUT HELPERS ── */
.section-header {
  max-width: 640px;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

/* ── HERO ── */
#hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
#hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ── CLAIM BOX ── */
.claim-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
}
.input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  transition: border-color var(--transition);
}
.input-wrap:focus-within { border-color: var(--accent); }
.domain-prefix {
  padding: 0 0.75rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  line-height: 3rem;
}
.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  font-family: var(--font);
}
.input-wrap input::placeholder { color: var(--text-muted); }

/* ── METRICS BAR ── */
#metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.metrics-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.metric-value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── HOW IT WORKS ── */
#how-it-works {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--transition);
}
.step-card:hover { background: var(--surface); }
.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.step-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0,255,65,0.2);
}

/* ── FEATURES ── */
#features {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
#features h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub { color: var(--text-muted); max-width: 480px; margin-bottom: 3rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 2rem;
  transition: background var(--transition);
}
.feature-card:hover { background: var(--surface); }
.feature-icon {
  width: 20px;
  height: 20px;
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  stroke-width: 1.5;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── FEATURE DEEP-DIVE ── */
#deep-dive {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.deepdive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition);
}
.deepdive-card:hover { border-color: rgba(0,255,65,0.3); }
.deepdive-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.deepdive-header i {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.deepdive-header h3 { font-size: 1rem; font-weight: 700; }
.deepdive-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}
.deepdive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.deepdive-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ── SOCIAL PROOF ── */
#social-proof {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,65,0.3);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.author-name { font-size: 0.875rem; font-weight: 700; }
.author-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ── PRICING ── */
#pricing {
  padding: var(--section-pad);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}
#pricing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-card.featured {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.08);
}
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}
.plan-name { font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.plan-price { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; }
.plan-once { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.plan-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.6; }
.plan-features { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; flex: 1; }
.plan-features li { font-size: 0.875rem; }
.plan-features li.muted { color: var(--text-muted); }

/* ── FAQ ── */
#faq {
  padding: var(--section-pad);
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%;
  background: var(--bg);
  border: none;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.faq-trigger:hover { background: var(--surface); }
.faq-trigger span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.faq-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-trigger[aria-expanded="true"] { background: var(--surface); }
.faq-body {
  display: none;
  padding: 0 2rem 1.75rem;
  background: var(--surface);
}
.faq-body.open { display: block; }
.faq-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  background: var(--surface-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ── MODAL ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
#modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

/* ── STEPS INDICATOR ── */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}
.step.active { background: var(--accent); color: #000; border-color: var(--accent); }
.step.done { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.step-line { flex: 1; height: 1px; background: var(--border); max-width: 40px; }

/* ── STEP CONTENT ── */
.step-content { display: none; flex-direction: column; gap: 1rem; }
.step-content.active { display: flex; }
.step-content h3 { font-size: 1.25rem; font-weight: 800; }
.step-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem; }

/* ── MD3 FIELDS ── */
.md3-field {
  position: relative;
  width: 100%;
}
.md3-field input,
.md3-field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 1.25rem 1rem 0.5rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.md3-field input:focus,
.md3-field select:focus { border-color: var(--accent); }
.md3-field label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition);
}
.md3-field input:focus ~ label,
.md3-field input:not(:placeholder-shown) ~ label,
.md3-field select:focus ~ label,
.md3-field select:valid ~ label {
  top: 0.45rem;
  font-size: 0.7rem;
  color: var(--accent);
  transform: none;
}
.md3-field input.error,
.md3-field select.error { border-color: #ff4444; }

/* ── SUCCESS STATE ── */
#step-success { text-align: center; align-items: center; }
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 2s ease;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-left p { font-size: 0.8rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem; }
  .nav-links { display: none; }
  #hero h1 { font-size: 2.75rem; }
  .modal { padding: 1.75rem 1.25rem; }
  .metrics-bar { justify-content: center; }
  .metric-divider { display: none; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .faq-trigger { padding: 1.25rem 1.25rem; }
  .faq-body { padding: 0 1.25rem 1.5rem; }
}
