@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #040506;
  --bg-2: #0a0c0e;
  --panel: rgba(255, 255, 255, .028);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eeede8;
  --muted: #a09f98;
  --dim: #6b6a65;
  --amber: #ffb000;
  --amber-soft: rgba(255, 176, 0, .14);
  --red: #ff4d4d;
  --max: 1220px;
  --gutter: clamp(16px, 4vw, 44px);
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* grade técnica fixa atrás de tudo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 72px 100%,
    radial-gradient(1200px 700px at 70% -10%, rgba(255, 176, 0, .07), transparent 60%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: #000; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- cabeçalho ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(4, 5, 6, .82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { height: 22px; width: auto; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; position: relative; padding: 8px 0; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--amber); transition: right .25s; }
.top nav a:hover { color: var(--text); } .top nav a:hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 2px; cursor: pointer;
  background: var(--amber); color: #0a0700; border: 1px solid var(--amber); text-decoration: none;
  font: 600 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transition: box-shadow .25s, transform .25s, background .25s;
}
.btn::after { content: "→"; transition: transform .25s; }
.btn:hover { box-shadow: 0 0 0 1px var(--amber), 0 0 34px rgba(255, 176, 0, .42); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--amber); box-shadow: 0 0 24px rgba(255, 176, 0, .16); }
.btn.small { padding: 10px 16px; }

/* ---------- tipografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--amber); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.6vw, 88px); line-height: .98; }
h2 { font-size: clamp(28px, 3.9vw, 52px); line-height: 1.04; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(16px, 1.45vw, 19.5px); max-width: 60ch; }
em.hl { font-style: normal; color: var(--amber); }
section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.head { display: grid; gap: 18px; margin-bottom: 52px; max-width: 900px; }
.note { color: var(--dim); font: 400 12.5px/1.6 var(--mono); margin-top: 26px; max-width: 86ch; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: 0; display: grid; align-items: end; overflow: hidden; }
.hero .owl {
  position: absolute; inset: 0 -22% 0 22%; background: url("assets/nightowl-owl.jpg") center 16% / min(1500px, 150%) auto no-repeat;
  opacity: .7; filter: contrast(1.25) brightness(1.2);
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 32%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 32%, #000 40%, transparent 78%);
  will-change: transform;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(transparent, var(--bg) 82%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(40px, 7vh, 84px); width: 100%; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin: 26px 0 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.rail {
  position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(4, 5, 6, .6); backdrop-filter: blur(6px);
  font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.rail .wrap { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; padding-bottom: 18px; overflow: hidden; white-space: nowrap; }
.rail b { color: var(--amber); font-weight: 500; }
.rail span { display: inline-flex; gap: 10px; align-items: center; }

/* ---------- cartões ---------- */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); padding: 30px 28px 32px; display: grid; gap: 12px; align-content: start;
  overflow: hidden; transition: border-color .3s, transform .3s, background .3s;
}
.card::before {       /* brilho que segue o cursor */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 176, 0, .13), transparent 62%);
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--amber); transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.card:hover { border-color: rgba(255, 176, 0, .42); transform: translateY(-3px); }
.card:hover::before { opacity: 1; } .card:hover::after { width: 100%; }
.card p { color: var(--muted); font-size: 15.5px; position: relative; }
.card h3, .card .num, .card .tag { position: relative; }
.num { font: 500 11.5px/1 var(--mono); color: var(--amber); letter-spacing: .16em; }
.tag { justify-self: start; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border: 1px solid var(--line-2); color: var(--muted); }
.tag.on { color: var(--amber); border-color: rgba(255, 176, 0, .45); background: var(--amber-soft); }
/* ---------- categoria: pergunta central de cada disciplina ---------- */
.qtable { border: 1px solid var(--line); background: var(--panel); }
.qrow { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px; padding: 18px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.qrow:first-child { border-top: 0; }
.qrow span:first-child { color: var(--text); font-weight: 500; }
.qhead { font: 500 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding-top: 16px; padding-bottom: 16px; }
.qhead span, .qhead span:first-child { color: var(--muted); font-weight: 500; }
.qrow.on { background: var(--amber-soft); border-top-color: rgba(255, 176, 0, .45); box-shadow: inset 3px 0 0 var(--amber); }
.qrow.on span { color: var(--text); } .qrow.on span:first-child { color: var(--amber); }
/* ---------- percurso em sete etapas ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.flow li { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 24px 28px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid rgba(255, 176, 0, .45); }
.flow li:last-child { border-top-color: var(--amber); background: var(--amber-soft); }
.flow h3 { margin: 0; font-size: 18px; } .flow p { margin: 0; color: var(--muted); font-size: 15px; }
/* cantos de mira */
.tick::before, .tick::after { content: none; }
.corner { position: absolute; width: 10px; height: 10px; border: 1px solid var(--line-2); pointer-events: none; }
.corner.tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; } .corner.br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* ---------- cena cinematográfica ---------- */
.scene { padding: 0; height: 420vh; }
.scene-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(300px, .82fr) 1.5fr; align-items: center; gap: clamp(16px, 4vw, 56px); padding: 76px var(--gutter) 28px; max-width: 1500px; margin: 0 auto; }
.scene-copy { position: relative; min-height: 340px; }
.step { position: absolute; inset: 0; display: grid; gap: 16px; align-content: center; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step .lead { font-size: clamp(15px, 1.25vw, 18px); }
.scene-stage { position: relative; height: min(74vh, 720px); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)); }
.scene-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-stage .cap { position: absolute; left: 14px; bottom: 12px; font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.progress { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; }
.progress i { width: 26px; height: 2px; background: var(--line-2); transition: background .3s; } .progress i.on { background: var(--amber); }

/* ---------- metodologia ---------- */
.triad .card { border-top-width: 2px; }
.triad .fato { border-top-color: var(--text); } .triad .indicio { border-top-color: var(--amber); } .triad .hipotese { border-top-color: var(--dim); }
.big-quote { font-size: clamp(34px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.big-quote span { color: var(--dim); }

/* ---------- contato ---------- */
.contact { border-top: 1px solid var(--line); background: radial-gradient(900px 500px at 15% 0%, rgba(255, 176, 0, .08), transparent 62%); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: 400 15px/1.4 var(--sans); color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 2px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
select option { background: #0a0c0e; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
textarea { min-height: 120px; resize: vertical; }
.pending { border: 1px dashed rgba(255, 176, 0, .5); color: var(--amber); padding: 12px 14px; font: 400 12px/1.5 var(--mono); }
#form-msg { font-size: 14px; color: var(--muted); min-height: 1.4em; }

footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--dim); font: 400 12px/1.6 var(--mono); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer img { height: 18px; opacity: .85; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; } footer a:hover { color: var(--amber); }

/* ---------- entrada ao rolar ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .g3, .g2, .split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .qrow { grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; } .qhead span:last-child { display: none; }
  .top nav { display: none; } .top .btn { margin-left: auto; }
  .scene-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; padding-top: 76px; gap: 12px; }
  .scene-copy { min-height: 250px; order: 2; } .scene-stage { height: 46svh; order: 1; }
  .step { align-content: start; }
  .rail .wrap span:nth-child(n+3) { display: none; }
  .hero .owl { inset: 0; opacity: .5; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .row { grid-template-columns: 1fr; } footer nav { margin-left: 0; } .hero .owl { background-size: 210% auto; background-position: center 22%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .scene { height: auto; } .scene-sticky { position: static; height: auto; }
  .scene-copy { min-height: 0; display: grid; gap: 34px; } .step { position: static; opacity: 1; transform: none; }
  .card, .btn { transition: none; }
}

/* ---------- telas da plataforma ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-2); }
.shots figcaption { color: var(--dim); font: 400 12px/1.6 var(--mono); margin-top: 10px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }

/* ---------- novidades ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.news .num { color: var(--amber); font: 500 11.5px/1 var(--mono); letter-spacing: .12em; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }
