/* Tokens copiados de app/globals.css — mesma paleta do site. */
:root {
  --background: oklch(0.14 0.008 260);
  --foreground: oklch(0.96 0.005 80);
  --card: oklch(0.18 0.008 260);
  --secondary: oklch(0.22 0.008 260);
  --muted: oklch(0.20 0.008 260);
  --muted-foreground: oklch(0.72 0.015 70);
  --primary: oklch(0.78 0.15 65);
  --primary-foreground: oklch(0.14 0.008 260);
  --accent: oklch(0.72 0.12 75);
  --border: oklch(0.28 0.01 260);
  --amber-a: oklch(0.78 0.15 65 / 0.12);
  --amber-b: oklch(0.78 0.15 65 / 0.28);
  --f-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-disp: "Space Grotesk", ui-sans-serif, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Ambiente ── */
.bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bgfx::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}
.bgfx::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, oklch(0.78 0.15 65 / 0.08), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 45%, oklch(0.08 0.01 260 / 0.7) 100%);
}
main { position: relative; z-index: 1; }

/* ── Navbar ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 28px;
  background: linear-gradient(var(--background) 72%, transparent);
}
.brand img { display: block; height: 34px; width: auto; }
.links { display: flex; gap: 20px; margin-left: auto; font-size: 13px; color: var(--muted-foreground); }
.links a { transition: color .2s; }
.links a:hover { color: var(--primary); }
.meter {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: oklch(0.18 0.008 260 / 0.8); backdrop-filter: blur(8px);
  font: 500 11px/1 var(--f-mono); color: var(--muted-foreground); white-space: nowrap;
}
.meter b { color: var(--primary); font-weight: 600; flex: none; width: 4ch; text-align: right; }
/* largura fixa: o texto e o % mudam a cada quadro e não podem mexer no tamanho do medidor */
#status { flex: none; width: 23ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter i { display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.meter u { display: block; height: 100%; width: 0; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.meter .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .35; }
.meter.live .dot { opacity: 1; box-shadow: 0 0 8px var(--primary); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ── Cenas (o scroll dispara a obra de cada seção, que roda sozinha) ── */
.scene { position: relative; transition: opacity .5s ease; }
.scene.off { opacity: .14; } /* desktop: o que está fora da tela atual fica apagado */
.stage { display: flex; align-items: center; justify-content: center; padding: 64px 16px; }
.desk .stage { padding: 72px 32px; } /* respiro entre seções; a paginação centraliza só o conteúdo */
#hero .stage { min-height: 100vh; padding-top: 96px; }
.wrap { width: min(1120px, 100%); }
.slot { position: relative; min-width: 0; }
.c { position: relative; height: 100%; }

.title { text-align: center; margin-bottom: clamp(22px, 4vh, 44px); }
.eyebrow { font: 500 11px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
h1 { font: 700 clamp(2.3rem, 5.4vw, 4.1rem)/1.05 var(--f-disp); letter-spacing: -0.03em; }
h1 .ln { display: block; }
h2 { font: 700 clamp(1.75rem, 3.6vw, 3rem)/1.1 var(--f-disp); letter-spacing: -0.02em; text-wrap: balance; }
h3 { font: 600 1.02rem/1.3 var(--f-disp); }
.lead { max-width: 620px; margin: 14px auto 0; color: var(--muted-foreground); font-size: clamp(.95rem, 1.25vw, 1.08rem); line-height: 1.6; }
.amber { color: var(--primary); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.card {
  height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
}
.card p { color: var(--muted-foreground); font-size: .86rem; line-height: 1.55; }
.ic {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--amber-a); color: var(--primary); border: 1px solid var(--amber-b);
}
.ic svg { width: 20px; height: 20px; }
.row { display: flex; align-items: center; justify-content: space-between; }

.g2 { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.g3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.g4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.g5 { display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 660px) 1fr; }
.hero-l { display: flex; flex-direction: column; gap: 24px; }
.hero .sub { color: var(--muted-foreground); font-size: 1.08rem; line-height: 1.6; max-width: 32rem; }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 540px; }
.phase { padding: 12px 14px; gap: 4px; border-color: oklch(0.78 0.15 65 / 0.22); }
.phase p { color: var(--foreground); opacity: .85; font-size: .8rem; }
.slot.fit { width: max-content; max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 0 15px oklch(0.78 0.15 65 / 0.25), 0 0 40px oklch(0.78 0.15 65 / 0.1);
}
.btn.ghost { background: transparent; color: var(--foreground); border: 1px solid var(--border); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

.callout { text-align: center; color: var(--muted-foreground); font-size: 1rem; }
.callout b { color: var(--foreground); font-weight: 500; }
.concl { text-align: center; font: 700 clamp(1.05rem, 1.8vw, 1.45rem)/1.3 var(--f-disp); }
.after { margin-top: clamp(18px, 3.5vh, 36px); }

/* Pipeline */
.stg { gap: 8px; padding: 16px 18px; }
.stg .num { color: var(--primary); }
.stg .tag { color: var(--muted-foreground); font-size: 10px; }

/* Stack */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .78rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--secondary); }

/* CTA */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.foot { margin-top: clamp(28px, 6vh, 64px); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 12px; }
.foot .soc { display: flex; gap: 16px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }


@media (max-width: 959px) {
  .links { display: none; }
  .meter { margin-left: auto; }
  .nav { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; }
  .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .meter i { width: 40px; }
  #status { display: none; }
}
