/* Hero da home. Carrega depois de site.css e só mexe na hero, na barra no topo e no painel da intro.
   Cena: céu de órbita, o horizonte de um planeta aceso por trás e o logotipo VOSTOK grande no centro;
   título embaixo à esquerda, chamada embaixo à direita.
   Este arquivo desenha o quadro FINAL, parado. A intro (assets/intro.js, GSAP) anima até ele,
   então sem JS ou com movimento reduzido a hero aparece pronta. */
:root {
  --hf-h: max(100svh, 560px);
  --wm-w: min(62vw, 880px);                 /* largura do logotipo */
  --wm-y: calc(var(--hf-h) * .36);          /* centro vertical do logotipo */
  --hz-y: calc(var(--hf-h) * .6);           /* topo do horizonte */
  --hz-d: 400vw;                            /* diâmetro do planeta: grande = curva suave */
}

.hero.hero-f { position: relative; isolation: isolate; display: grid; height: var(--hf-h); padding: 0; overflow: hidden; background: #03060f; color: #fff; }
.hf-field { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(130% 70% at 50% 100%, #081f52 0%, #06133a 26%, #040a1f 52%, #03060f 80%); }
.hf-stars { position: absolute; inset: 0; width: 100%; height: 100%; mask-image: linear-gradient(#000 30%, #0000 62%); }

/* horizonte: corpo escuro, brilho da atmosfera por trás e o fio de luz na borda, mais forte no centro */
/* nada aqui centraliza com `translate`: o GSAP incorpora essa propriedade ao transform e a centralização se perde na intro */
.hz { position: absolute; left: calc(50% - var(--hz-d) / 2); top: var(--hz-y); width: var(--hz-d); height: var(--hz-d); }
.hz i { position: absolute; }
.hz-glow { left: calc(50% - 33vw); top: -31vh; width: 66vw; height: 62vh; background: radial-gradient(closest-side, rgb(120 205 255 / .62), rgb(40 130 250 / .26) 42%, #0000); }
.hz-body { inset: 0; border-radius: 50%; background: radial-gradient(34vw 26vh at 50% 0, #0b2a6c, #06153d 45%, #040a1f 100%); }
.hz-rim { inset: 0; border-radius: 50%; box-shadow: inset 0 1.5px 1px rgb(214 242 255 / .95), inset 0 9px 20px rgb(86 184 255 / .6), inset 0 46px 90px rgb(30 112 240 / .34); mask-image: radial-gradient(46vw 60vh at 50% 0, #000 22%, #0000 100%); }
.hz-flare { left: calc(50% - 15vw); top: -1.5px; width: 30vw; height: 3px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgb(150 215 255 / .7) 30%, #0000); }

/* logotipo: .wm centraliza (parado); .wm-cam é o que a intro desloca */
.wm { position: absolute; left: 50%; top: var(--wm-y); width: var(--wm-w); translate: -50% -50%; }
.wm-cam { display: block; width: 100%; height: auto; }

/* grão: tira a cara de degradê liso */
.hf-grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hf-body { align-self: end; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px clamp(32px, 6vw, 96px); padding-block: var(--nav-h) 88px; }
.hero-f h1 { max-width: 9.5em; margin: 0; font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; color: #fff; }
.hf-side { max-width: 25em; }
.hf-lead { margin: 0 0 24px; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.55; color: rgb(226 236 255 / .86); }
.hero-f .btn { gap: 12px; min-height: 56px; padding-inline: 30px; background: var(--paper); color: var(--ink); }
.hero-f .btn:hover { background: var(--cyan); color: var(--ink); }
.hero-f .btn svg { width: 16px; height: 11px; transition: transform .3s var(--ease); }
.hero-f .btn:hover svg { transform: translateX(3px); }

/* painel da intro: cobre a hero (mesma altura, rola junto) e fica acima da barra do topo.
   Até o intro.js assumir ele é opaco (nada da hero pronta pisca antes); depois fica transparente e a cena é a própria hero por baixo.
   .ip-night é o canvas da noite sobre o planeta (a luz do amanhecer abre nele) e do brilho do ponto.
   .ip-in repete a geometria de .wm, então o logotipo da intro cai pixel a pixel sobre o da hero, que fica escondido até o fim. */
.ip { display: none; position: absolute; inset: 0 0 auto; z-index: 200; height: var(--hf-h); overflow: hidden; background: #03060f; }
html.intro-play .ip { display: block; }
html.intro-live .ip { background: none; }
html.intro-play .wm { visibility: hidden; }
html.intro-play:not(.intro-live) .nav, html.intro-play .flight-bar { visibility: hidden; } /* a barra só existe quando o roteiro manda entrar; o intro.js assume a .nav ao começar */
.ip-night { position: absolute; inset: 0; width: 100%; height: 100%; }
.ip-in { position: absolute; left: 50%; top: var(--wm-y); width: var(--wm-w); translate: -50% -50%; }
html:not(.intro-live) .ip-in { visibility: hidden; } /* até o intro.js pôr as peças no ponto de partida */
.ip-in > svg { display: block; width: 100%; height: auto; overflow: visible; fill: #fff; stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.ip-dot { fill: var(--cyan); stroke: none; }

/* barra no topo da hero: transparente, logo e links em branco; no desktop o botão vira pílula contornada,
   no celular some (a hero já tem o CTA). Ao rolar volta a barra clara. */
.nav:not(.is-scrolled):not([data-open="true"]) { color: #fff; }
.nav:not(.is-scrolled):not([data-open="true"]) .nav-logo img { filter: brightness(0) invert(1); }
.nav:not(.is-scrolled):not([data-open="true"]) .nav-toggle { color: #fff; }
.nav:not(.is-scrolled):not([data-open="true"]) .nav-bar > .btn { visibility: hidden; }
@media (min-width: 901px) {
  .nav:not(.is-scrolled):not([data-open="true"]) .nav-bar > .btn { visibility: visible; background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .42); border-radius: 999px; }
  .nav:not(.is-scrolled):not([data-open="true"]) .nav-bar > .btn:hover { background: rgb(255 255 255 / .1); }
}

@media (max-width: 760px) {
  :root { --wm-w: 84vw; --wm-y: calc(var(--hf-h) * .27); --hz-y: calc(var(--hf-h) * .46); --hz-d: 320vw; }
  .hz-glow { left: calc(50% - 60vw); top: -23vh; width: 120vw; height: 46vh; }
  .hz-rim { mask-image: radial-gradient(90vw 60vh at 50% 0, #000 22%, #0000 100%); }
  .hz-body { background: radial-gradient(70vw 22vh at 50% 0, #0b2a6c, #06153d 45%, #040a1f 100%); }
  .hz-flare { left: calc(50% - 28vw); width: 56vw; }
  .hf-body { grid-template-columns: 1fr; gap: 16px; padding-block: var(--nav-h) 36px; }
  .hero-f h1 { font-size: clamp(2.1rem, 9.6vw, 2.6rem); }
  .hf-lead { margin-bottom: 22px; }
}
@media (max-width: 520px) {
  .hero-f .btn { width: auto; }
}
