/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:60;
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:0 var(--pad);
  transition:background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom:1px solid transparent;
}
.nav.stuck{
  background:rgba(6,5,12,.72);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom-color:var(--rule);
}
.nav-set{ display:flex; align-items:center; gap:clamp(1rem,2.4vw,2.1rem); flex:1; }
.nav-set.right{ justify-content:flex-end; }
.nav-set a{
  font-size:.82rem; font-weight:400; color:var(--muted);
  text-decoration:none; transition:color .3s ease;
}
.nav-set a:hover{ color:var(--tertiary); }
/* the nav carries the Flagship lockup — this is the Flagship site.
   The masks are shared with the boot screen, so it costs no extra bytes. */
.nav-flag{ display:block; flex:none; line-height:0; }
.flag{
  position:relative; display:block; flex:none;
  width:172px; aspect-ratio:1400 / 148;
  transition:filter .35s ease;
}
.nav-flag:hover .flag{ filter:drop-shadow(0 0 14px rgba(122,108,255,.55)); }
.flag img{ display:block; width:100%; height:100%; object-fit:contain; }
@media(max-width:920px){
  .nav-set a{ display:none; }
  .nav-set:not(.right){ display:none; }
  .nav-set{ flex:0 0 auto; }
  .nav-set.right .cta-sm{ display:inline-flex; }
  .flag{ width:126px; }
  .cta-sm{ padding:.55rem 1.05rem; font-size:.72rem; }
}

/* compact pill button */
.cta-sm{
  display:inline-flex; align-items:center; padding:.62rem 1.25rem;
  border-radius:100px; font-size:.78rem; font-weight:500; color:#fff;
  text-decoration:none; white-space:nowrap;
  background:linear-gradient(180deg, var(--primary), var(--secondary));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px -10px rgba(67,56,202,.9);
  transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.cta-sm:hover{ transform:translateY(-2px); box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 14px 32px -10px rgba(67,56,202,1); }

/* ============================================================
   HERO
   All handover beats are timed from the moment `hero-go` lands.
   Tune the whole cinematic here — every delay is one variable.
   ============================================================ */
.hero{
  position:relative; min-height:100svh;
  background:var(--black);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:calc(var(--nav-h) + 4rem) var(--pad) 7rem;
  text-align:center; overflow:hidden; isolation:isolate;
}
.hero-stage{ position:absolute; inset:0; pointer-events:none; z-index:0; }

/* parallax carriers — kept separate from the entrance animations,
   so pointer drift and the arrival choreography never fight over transform */
.p-stars,.p-planet{ position:absolute; inset:0; will-change:transform; }
.p-stars{
  transform:translate3d(calc(var(--mx,0) * 16px), calc(var(--my,0) * 10px + var(--sy,0) * 34px), 0);
}
.p-planet{
  transform:translate3d(calc(var(--mx,0) * 7px), calc(var(--my,0) * 5px + var(--sy,0) * 92px), 0)
            scale(var(--swell,1));
}

/* stars, above the horizon only */
.hero-stars{
  position:absolute; inset:0 0 79% 0; overflow:hidden;
  animation:starsIn 1.4s ease var(--st-go) both;
}
@keyframes starsIn{ from{ opacity:0 } to{ opacity:1 } }
.hero-stars i{
  position:absolute; border-radius:50%; background:#fff;
  animation:twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle{ from{ opacity:.25 } to{ opacity:1 } }

.meteor{
  position:absolute; width:2px; height:2px; border-radius:50%;
  background:#fff; box-shadow:0 0 7px 1px rgba(255,255,255,.85); opacity:0;
}
.meteor::after{
  content:""; position:absolute; right:1px; top:50%; width:130px; height:1px;
  transform:translateY(-50%);
  background:linear-gradient(90deg, transparent, rgba(226,223,255,.75));
}

/* the rising body */
.hero-planet{
  position:absolute; left:50%; top:23svh;
  width:min(168vw, 2100px); aspect-ratio:1;
  transform:translateX(-50%); border-radius:50%;
  background:
    radial-gradient(circle at 50% 2%,
      rgba(232,229,255,.80) 0%,
      rgba(154,143,255,.52) 6%,
      rgba(104,90,240,.36) 15%,
      rgba(60,49,168,.28) 30%,
      rgba(26,21,66,.32) 50%,
      rgba(6,5,14,.55) 72%,
      rgba(0,0,0,.75) 100%);
  animation:planetRise 1.9s cubic-bezier(.16,1,.3,1) var(--pl-go) both;
}
@media(max-width:700px){ .hero-planet{ width:250vw; } }
@keyframes planetRise{
  from{ opacity:0; transform:translateX(-50%) translateY(26%) scale(1.04) }
  to  { opacity:1; transform:translateX(-50%) translateY(0)   scale(1) }
}

/* ---------- the light line ----------
   One visual object, handed between two elements: .boot-ray ignites it
   on the black curtain, .hero-horizon inherits it and carries it up to
   the rim. Identical styling is what makes the swap invisible. */
.lightline{
  position:absolute; left:-8%; right:-8%; top:0;
  height:2px; pointer-events:none;
  background:linear-gradient(90deg, transparent,
             rgba(200,195,255,.85) 26%, #fff 50%, rgba(200,195,255,.85) 74%, transparent);
  filter:blur(.6px);
}
.lightline::after{
  content:""; position:absolute; left:0; right:0; top:-33px; height:68px;
  background:linear-gradient(90deg, transparent,
             rgba(122,108,255,.50) 28%, rgba(226,223,255,.72) 50%, rgba(122,108,255,.50) 72%, transparent);
  filter:blur(24px);
}
.hero-horizon{
  transform:translateY(calc(50svh - 1px));
  animation:hzIn .5s ease both,
            hzTravel .9s cubic-bezier(.55,0,.15,1) var(--hz-go) both;
}
@keyframes hzIn{ from{ opacity:0 } to{ opacity:1 } }
@keyframes hzTravel{
  from{ transform:translateY(calc(50svh - 1px)) }
  to  { transform:translateY(calc(23svh - 1px)) }
}

/* the moment the rim touches the line */
.hero-flare{
  position:absolute; left:50%; top:0;
  width:min(78vw, 1000px); aspect-ratio:1; border-radius:50%;
  opacity:0; pointer-events:none;
  background:radial-gradient(circle at center,
             rgba(255,255,255,.85), rgba(198,191,255,.45) 11%,
             rgba(122,108,255,.24) 30%, transparent 62%);
  animation:flareOut 1.15s cubic-bezier(.2,.9,.3,1) var(--fl-go) both;
}
@keyframes flareOut{
  0%  { opacity:0; transform:translate(-50%,-50%) translateY(23svh) scale(.12) }
  26% { opacity:1 }
  100%{ opacity:0; transform:translate(-50%,-50%) translateY(23svh) scale(1) }
}

.hero-glow{
  position:absolute; left:50%; top:44%; transform:translate(-50%,-50%);
  width:110vw; height:78vh; pointer-events:none;
  background:radial-gradient(ellipse at center,
             rgba(122,108,255,.14), rgba(67,56,202,.06) 44%, transparent 68%);
  animation:breathe 20s ease-in-out infinite;
}
@keyframes breathe{ 0%,100%{ opacity:.7 } 50%{ opacity:1 } }

.hero-inner{ position:relative; z-index:3; max-width:1100px; width:100%; }

.hero-eyebrow{
  color:rgba(236,235,245,.72);
  animation:rise 1.1s cubic-bezier(.16,1,.3,1) var(--eb-go) both;
}

.hero-head{
  font-weight:500;
  font-size:clamp(2.4rem,7.4vw,6.1rem);
  line-height:1.02;
  letter-spacing:-.03em;
  color:#fff;
  margin:1.5rem auto 0;
  max-width:16ch;
  text-wrap:balance;
}
/* the headline resolves word by word, out of blur — the same
   "unlit thing warms up" idea the manifest runs on */
.hero-head .w{
  display:inline-block; opacity:0;
  transform:translateY(20px); filter:blur(12px);
  animation:wordIn 1s cubic-bezier(.16,1,.3,1)
            calc(var(--hd-go) + var(--w) * .1s) both;
}
@keyframes wordIn{ to{ opacity:1; transform:none; filter:blur(0) } }
.hero-head i{
  font-family:var(--serif); font-style:italic; font-weight:400;
  letter-spacing:-.01em; color:rgba(236,235,245,.66);
  padding-right:.06em;
}
.hero-head s{ text-decoration:none; color:var(--primary); }

.hero-sub{
  margin:1.7rem auto 0; max-width:52ch;
  font-size:1rem; line-height:1.7; letter-spacing:.005em;
  color:rgba(236,235,245,.74);
  animation:rise 1.1s cubic-bezier(.16,1,.3,1) var(--sb-go) both;
}

/* ---------- countdown: typographic, no chrome ---------- */
.count{
  display:flex; align-items:flex-start; justify-content:center;
  gap:clamp(1rem,3vw,2.2rem); margin:2.9rem 0 0;
  animation:rise 1.1s cubic-bezier(.16,1,.3,1) var(--ct-go) both;
}
.count div{ display:flex; flex-direction:column; align-items:center; gap:.45rem; min-width:3.4rem; }
.count b{
  font-weight:200; font-size:clamp(1.5rem,3.4vw,2.3rem); line-height:1;
  letter-spacing:.02em; color:var(--tertiary);
  font-variant-numeric:tabular-nums; font-feature-settings:"tnum";
}
.count span{
  font-weight:500; font-size:.56rem; letter-spacing:.28em;
  text-transform:uppercase; color:var(--muted);
}
.count i{ width:1px; height:1.7rem; background:var(--rule); margin-top:.15rem; }

.hero-actions{
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:center;
  margin:2.8rem 0 0;
  animation:rise 1.1s cubic-bezier(.16,1,.3,1) var(--ac-go) both;
}
@keyframes rise{ from{ opacity:0; transform:translateY(16px) } to{ opacity:1; transform:none } }

/* ghost button */
.ghost{
  display:inline-flex; align-items:center; padding:1.05rem 2.1rem;
  border-radius:100px; border:1px solid rgba(122,108,255,.34);
  font-weight:500; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--tertiary); text-decoration:none; white-space:nowrap;
  background:rgba(122,108,255,.05);
  transition:border-color .35s ease, background .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.ghost:hover{ border-color:rgba(122,108,255,.7); background:rgba(122,108,255,.12); transform:translateY(-3px); }

.cue{
  position:absolute; left:var(--pad); bottom:clamp(1.6rem,4vh,2.6rem); z-index:3;
  display:flex; align-items:center; gap:.9rem;
  animation:rise 1.1s cubic-bezier(.16,1,.3,1) var(--cu-go) both;
}
.cue span{ font-weight:500; font-size:.6rem; letter-spacing:.26em; text-transform:uppercase; color:var(--muted); }
.cue i{ width:2.4rem; height:1px; background:linear-gradient(90deg,var(--primary),transparent); }

