:root {
  --primary: #64c86b;
  --primary-dark: #4caf55;
  --primary-soft: #e7f6e8;
  --ink: #10100f;
  --navy: #191337;
  --paper: #f5f4f2;
  --line: #e3ded7;
  --mut: #6e6a64;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 72px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ── entrada animada ao rolar (ver script no fim do index.html) ── */
/* Usa `translate` (propriedade própria, separada de `transform`) em vez de mexer em
   `transform` aqui — os cards com hover (.feature-card, .compat-card) já têm sua própria
   `transition:` para levantar no hover, e essa declaração inteira "vence" a de `.reveal`
   em empate de especificidade (a shorthand `transition` não mescla entre regras, só uma
   ganha). Por isso o delay do stagger vai embutido num `var(--reveal-delay)` dentro do
   próprio valor de opacity/translate de cada card — assim funciona não importa qual regra
   de transition "vença", desde que ela inclua opacity/translate com esse var (ver
   .feature-card e .compat-card mais abaixo). */
.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s ease var(--reveal-delay), translate 0.6s ease var(--reveal-delay);
}
.reveal.in-view { opacity: 1; translate: 0 0; }
.reveal:nth-child(1) { --reveal-delay: 0ms; }
.reveal:nth-child(2) { --reveal-delay: 70ms; }
.reveal:nth-child(3) { --reveal-delay: 140ms; }
.reveal:nth-child(4) { --reveal-delay: 210ms; }
.reveal:nth-child(5) { --reveal-delay: 280ms; }
.reveal:nth-child(6) { --reveal-delay: 350ms; }
.reveal:nth-child(7) { --reveal-delay: 420ms; }
.reveal:nth-child(8) { --reveal-delay: 490ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* ── nav ── */
.nav {
  /* `position: fixed` (não `sticky`) de propósito: no Safari/iOS, uma barra "sticky"
     com fundo sólido não ganha sua própria camada de composição de forma confiável —
     durante a rolagem sobre seções escuras, o conteúdo de trás "vaza" e o fundo parece
     transparente por um instante. `fixed` sempre compõe em camada própria, então nunca
     deixa passar o fundo de trás. O `padding-top` no body compensa o espaço que o nav
     deixaria de ocupar no fluxo normal. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { height: 34px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── hero ── */
.hero {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #241d47 0%, var(--ink) 55%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(100, 200, 107, 0.12);
  color: var(--primary);
  border: 1px solid rgba(100, 200, 107, 0.3);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), #9be7a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--primary); color: var(--ink); box-shadow: 0 8px 24px rgba(100, 200, 107, 0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ── hero illustration ── */
/* SVG único (viewBox 0 0 480 480, animações definidas dentro do próprio SVG)
   — escala de forma previsível em qualquer navegador/tamanho de tela, sem
   depender de aspect-ratio de div nem de fonte de emoji do sistema. */
.illustration {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

/* ── compatibilidade ── */
.compat { background: var(--ink); }
.compat .kicker { color: var(--primary); }
.compat .section-head h2 { color: #fff; }
.compat .section-head p { color: rgba(255, 255, 255, 0.55); }
.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.compat-card {
  background: #17141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 0.15s, border-color 0.15s, opacity 0.6s ease var(--reveal-delay, 0ms),
    translate 0.6s ease var(--reveal-delay, 0ms);
}
.compat-card:hover { transform: translateY(-3px); border-color: rgba(100, 200, 107, 0.4); }
/* Altura fixa, largura livre: cada logo mantém sua proporção original (a do Fire TV,
   por ex., é bem mais larga que quadrada) sem esticar nem cortar. */
.compat-icon {
  height: 32px;
  width: auto;
  max-width: 100%;
  color: var(--primary);
}
.compat-name { font-size: 15px; font-weight: 700; color: #fff; }

/* ── proof (dados de mercado) ── */
.proof { background: #fff; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.proof-card {
  background: var(--primary-soft);
  border: 1px solid rgba(100, 200, 107, 0.35);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.proof-n {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.proof-l { font-size: 14px; color: var(--ink); line-height: 1.5; margin: 0 0 12px; }
.proof-source { font-size: 11px; color: var(--mut); line-height: 1.4; }

/* ── sections ── */
section.section { padding: 96px 0; scroll-margin-top: 72px; }
.section-head { max-width: 960px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--mut); font-size: 16px; line-height: 1.6; margin: 0; }

/* ── features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, opacity 0.6s ease var(--reveal-delay, 0ms),
    translate 0.6s ease var(--reveal-delay, 0ms);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(16, 16, 15, 0.07); border-color: transparent; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--mut); line-height: 1.55; margin: 0; }

/* ── video ── */
.video-section { background: #fff; }
.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(16, 16, 15, 0.35);
  border: 1px solid var(--line);
  background: var(--ink);
}
.video-frame .ratio { position: relative; width: 100%; padding-top: 56.25%; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── how it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 8px 4px; }
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--mut); line-height: 1.6; margin: 0; }

/* ── cta band ── */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #100c22);
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.65); margin: 0; font-size: 15px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── footer ── */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .footer-logo { height: 24px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; color: rgba(255, 255, 255, 0.5); }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; font-size: 14px; color: rgba(255, 255, 255, 0.65); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-col a.accent { color: var(--primary); font-weight: 600; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── voltar ao topo ── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 16, 15, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); }

/* ── responsive ── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .illustration { display: none; }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .proof-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  section.section { padding: 64px 0; }
  .hero { padding: 72px 0 88px; }
  .cta-band { padding: 40px 26px; }
}
