/* ByteSiege landing — swappable hero styles.
   Builds on colors_and_type.css + theme.css (kit). Only adds hero-specific
   atmosphere, layout variants, and an adaptive overlay nav. */

/* offset anchor scrolling so the sticky 72px nav doesn't cover section tops */
html { scroll-padding-top: 90px; }

/* ---------- adaptive overlay nav ---------- */
.lp-nav { position: sticky; top: 0; z-index: 40; height: 72px;
  transition: background .22s ease, box-shadow .22s ease, border-color .22s ease; border-bottom: 1px solid transparent; }
.lp-nav .nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.lp-nav .logo, .lp-nav .logo-rev { height: 44px; display: block; }
.lp-nav .logo-rev { display: none; }
.lp-nav .nav-links { display: flex; gap: 26px; margin-left: 12px; }
.lp-nav .nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color .12s; white-space: nowrap; }
.lp-nav .nav-links a:hover { color: var(--navy-900); }
.lp-nav .nav-spacer { flex: 1; }
.lp-nav .nav-cta { display: flex; align-items: center; gap: 12px; }
/* solid state after scroll */
.lp-nav.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom-color: var(--border-1); box-shadow: var(--shadow-xs); }
/* transparent-over-dark state (top of a dark hero) */
.lp-nav.over-dark:not(.scrolled) .logo { display: none; }
.lp-nav.over-dark:not(.scrolled) .logo-rev { display: block; }
.lp-nav.over-dark:not(.scrolled) .nav-links a { color: var(--fg-on-dark-2); }
.lp-nav.over-dark:not(.scrolled) .nav-links a:hover { color: #fff; }
.lp-nav.over-dark:not(.scrolled) .nav-signin { background: rgba(255,255,255,.08); color: #fff; border-color: var(--border-on-dark); }
.lp-nav.over-dark:not(.scrolled) .nav-signin:hover { background: rgba(255,255,255,.14); }

/* mobile hamburger + dropdown menu (hidden on desktop) */
.nav-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-md); border: 1px solid var(--border-2); background: #fff; color: var(--navy-900); cursor: pointer; }
.nav-burger svg { width: 22px; height: 22px; }
.lp-nav.over-dark:not(.scrolled) .nav-burger { background: rgba(255,255,255,.08); border-color: var(--border-on-dark); color: #fff; }
.nav-menu { display: none; }
.nav-menu[hidden] { display: none; }

/* ---------- shared hero base ---------- */
.lp-hero { position: relative; margin-top: -72px; overflow: hidden; }
.lp-hero.dark { background: var(--navy-900); background-image: var(--grad-navy); color: #fff; }
.lp-hero.light { background: linear-gradient(180deg, #fff 0%, var(--bg-canvas) 100%); color: var(--navy-900); }

/* atmosphere layers */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora b { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .55; will-change: transform; }
.aurora .a1 { width: 560px; height: 560px; left: -80px; top: -160px; background: radial-gradient(circle, rgba(32,196,224,.28), transparent 70%); }
.aurora .a2 { width: 680px; height: 680px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(42,89,127,.6), transparent 70%); }
.aurora .a3 { width: 520px; height: 520px; left: 34%; bottom: -240px; background: radial-gradient(circle, rgba(29,68,104,.5), transparent 70%); }
.playing .aurora .a1 { animation: aurora-drift 28s ease-in-out infinite; }
.playing .aurora .a2 { animation: aurora-drift 32s ease-in-out infinite -10s; }
.playing .aurora .a3 { animation: aurora-drift 36s ease-in-out infinite -18s; }
@keyframes aurora-drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,20px) scale(1.14); } }
.grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.dotgrid { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%); mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%); }
.shieldwash { position: absolute; inset: 0; background: var(--grad-shield); pointer-events: none; }
.playing .shieldwash { animation: amb-breathe 14s ease-in-out infinite; }
@keyframes amb-breathe { 0%,100% { opacity: .5; } 50% { opacity: .85; } }

.h-accent { color: var(--cyan-300); }

/* ============ A · centered product hero ============ */
.hA .inner { position: relative; z-index: 2; text-align: center; padding: 150px 28px 0; max-width: 1180px; margin: 0 auto; }
.hA h1 { font: 800 56px/1.05 var(--font-sans); letter-spacing: -.025em; margin: 24px auto 0; max-width: 880px; color: #fff; }
.hA .sub { font: 400 19px/1.6 var(--font-sans); color: var(--fg-on-dark-2); margin: 22px auto 0; max-width: 680px; }
.hA .hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hA .trust { justify-content: center; margin-top: 30px; }
.hA .mockwrap { position: relative; z-index: 2; max-width: 1040px; margin: 56px auto 0; padding: 0 28px; }

/* ============ B · radar banner ============ */
.hB { display: flex; align-items: center; min-height: 660px; }
.hB .left { position: relative; z-index: 3; padding: 150px 40px 90px 0; max-width: 600px; }
.hB h1 { font: 800 50px/1.06 var(--font-sans); letter-spacing: -.025em; margin: 22px 0 0; color: #fff; }
.hB .sub { font: 400 17.5px/1.6 var(--font-sans); color: var(--fg-on-dark-2); margin: 18px 0 0; max-width: 480px; }
.hB .hero-cta { display: flex; gap: 13px; margin-top: 28px; flex-wrap: wrap; }
.hB .trust { margin-top: 30px; justify-content: flex-start; }
.hB .scope-bg { position: absolute; right: -70px; top: 50%; transform: translateY(-50%); width: 520px; height: 520px; z-index: 1; opacity: .85; }
.hB .scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--navy-900) 32%, rgba(14,42,71,.6) 54%, rgba(14,42,71,0) 84%); }
.scope-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sweep-rot { transform-box: view-box; transform-origin: 300px 300px; animation: scope-spin 7s linear infinite; }
@keyframes scope-spin { to { transform: rotate(360deg); } }
.pin-pulse { transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
.pin-pulse.d2 { animation-delay: .9s; } .pin-pulse.d3 { animation-delay: 1.7s; }
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: .7; } 70% { opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
.blip { animation: blip 3s ease-in-out infinite; }
.blip.b2{animation-delay:.6s} .blip.b3{animation-delay:1.2s} .blip.b4{animation-delay:1.8s} .blip.b5{animation-delay:2.4s}
@keyframes blip { 0%,100%{opacity:.25} 50%{opacity:.9} }

/* ============ C · full-bleed network banner ============ */
.hC { position: relative; min-height: 620px; display: flex; align-items: center; }
/* "window to infinity": the backdrop is pinned to the viewport (position:fixed) and
   sits behind all content (z-index:-1); the hero itself is transparent so it shows
   through, and the opaque sections below simply scroll up and cover it. */
.lp-hero.dark.hC { background: transparent; }
.hC .hc-bg { position: absolute; inset: 0; z-index: 0; background-color: var(--navy-900); background-image: var(--grad-navy); }
/* graph rides a parallax wrapper that drifts over the static navy base (no edge gap) */
.hC .netpx { position: absolute; inset: 0; z-index: 1; will-change: transform; }
.hC .netviz { position: absolute; inset: 0; }
/* opaque content layer that scrolls up over the hero backdrop */
.lp-body { position: relative; z-index: 1; background: #fff; }
.hC .scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--navy-950) 8%, rgba(7,24,43,.82) 38%, rgba(7,24,43,.35) 70%, rgba(7,24,43,.6) 100%),
              linear-gradient(0deg, rgba(7,24,43,.85) 0%, transparent 40%); }
.hC .inner { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto; padding: 150px 28px 80px; width: 100%; }
.hC .box { max-width: 660px; }
.hC h1 { font: 800 58px/1.04 var(--font-sans); letter-spacing: -.03em; margin: 22px 0 0; color: #fff; }
.hC .sub { font: 400 18px/1.6 var(--font-sans); color: var(--fg-on-dark-2); margin: 20px 0 0; max-width: 540px; }
.hC .hero-cta { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.net-edge { stroke: rgba(91,214,236,.16); stroke-width: 1; fill: none; }
.net-edge.key { stroke: rgba(91,214,236,.32); }
@keyframes amb-floaty { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-9px,7px); } }
.playing .netviz { animation: amb-floaty 30s ease-in-out infinite; }
.net-node { fill: var(--cyan-300); }
/* ---- semantic ASM node types (no labels — shape/colour hints the entity) ---- */
.n-hub { fill: var(--cyan); }
.n-dom { fill: none; stroke: var(--cyan-300); stroke-width: 1.8; opacity: .92; }
.n-host { fill: #6E90B4; opacity: .82; }
.n-svc { fill: var(--cyan-300); opacity: .9; }
.n-port { fill: var(--cyan-300); opacity: .5; }
.n-api { fill: var(--cyan-200); opacity: .62; }
.n-cert { fill: none; stroke: var(--slate-400); stroke-width: 1.4; opacity: .5; }
.n-drp { fill: none; stroke: #2FA8C0; stroke-width: 1.8; opacity: .8; }
.n-cve { opacity: .72; }
.n-cve.crit { fill: var(--critical); }
.n-cve.high { fill: var(--high); }
.n-cve.med { fill: var(--medium); }
/* faint spherical-cap grid (sells the 3D dome) */
.sphere-line { fill: none; stroke: var(--cyan-300); }
.sphere-line.mer { stroke-opacity: .09; stroke-width: 1; }
.sphere-line.par { stroke-opacity: .07; stroke-width: 1; }
.net-glow { transform-box: fill-box; transform-origin: center; }
.playing .net-glow { animation: node-breathe 5s ease-in-out infinite; }
.playing .net-glow.g2{animation-delay:1s} .playing .net-glow.g3{animation-delay:2s} .playing .net-glow.g4{animation-delay:3s} .playing .net-glow.g5{animation-delay:1.6s}
@keyframes node-breathe { 0%,100%{ opacity:.18; transform:scale(1) } 50%{ opacity:.5; transform:scale(1.5) } }
.pkt { fill: var(--cyan-300); }
.playing .pkt { animation: pkt-move 5s linear infinite; }
@keyframes pkt-move { 0%{ offset-distance:0%; opacity:0 } 10%{ opacity:.32 } 85%{ opacity:.32 } 100%{ offset-distance:100%; opacity:0 } }

/* ============ D · live monitoring ============ */
.hD { display: flex; align-items: center; min-height: 660px; gap: 30px; }
.hD .left { position: relative; z-index: 2; padding: 150px 20px 90px 0; max-width: 560px; flex: 1; }
.hD .livetag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-mono); color: var(--cyan-300);
  background: rgba(32,196,224,.1); border: 1px solid rgba(32,196,224,.3); padding: 7px 13px; border-radius: var(--r-pill); white-space: nowrap; }
.hD .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 0 0 rgba(91,214,236,.6); animation: live-dot 1.8s ease-out infinite; }
@keyframes live-dot { 0%{box-shadow:0 0 0 0 rgba(91,214,236,.5)} 70%{box-shadow:0 0 0 7px rgba(91,214,236,0)} 100%{box-shadow:0 0 0 0 rgba(91,214,236,0)} }
.hD h1 { font: 800 48px/1.07 var(--font-sans); letter-spacing: -.025em; margin: 20px 0 0; color: #fff; }
.hD .sub { font: 400 17px/1.6 var(--font-sans); color: var(--fg-on-dark-2); margin: 18px 0 0; max-width: 470px; }
.hD .hero-cta { display: flex; gap: 13px; margin-top: 26px; flex-wrap: wrap; }
.hD .right { position: relative; z-index: 2; flex: none; width: 440px; padding: 60px 28px 60px 0; display: flex; align-items: center; justify-content: center; }
.feedcard { position: relative; z-index: 2; width: 100%; max-width: 420px; background: rgba(7,24,43,.55); border: 1px solid var(--border-on-dark);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xl); backdrop-filter: blur(8px); overflow: hidden; }
.feed-h { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--border-on-dark); font: 600 13px/1 var(--font-sans); color: #fff; }
.feed-h svg { color: var(--cyan-300); }
.feed-h .live { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--cyan-300); display: flex; align-items: center; gap: 6px; }
.feed-view { height: 300px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%); }
.feed-track { display: flex; flex-direction: column; }
.playing .feed-track { animation: feed-scroll 16s linear infinite; }
@keyframes feed-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
.feed-row .sv { font: 700 9px/1 var(--font-mono); color: #fff; padding: 3px 6px; border-radius: 4px; flex: none; }
.feed-row .ho { font: 500 11.5px/1.4 var(--font-mono); color: #D7E3F0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .tm { font: 400 10px/1 var(--font-mono); color: var(--fg-on-dark-3); flex: none; }

/* ============ E · light editorial ============ */
.hE { display: flex; align-items: center; min-height: 600px; gap: 30px; }
.hE .left { position: relative; z-index: 2; padding: 140px 20px 84px 0; max-width: 560px; flex: 1; }
.hE h1 { font: 800 50px/1.06 var(--font-sans); letter-spacing: -.025em; margin: 16px 0 0; color: var(--navy-900); }
.hE h1 .accent { color: var(--cyan-600); }
.hE .sub { font: 400 17.5px/1.6 var(--font-sans); color: var(--fg-2); margin: 18px 0 0; max-width: 470px; }
.hE .hero-cta { display: flex; gap: 13px; margin-top: 26px; flex-wrap: wrap; }
.hE .trust2 { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.hE .trust2 .t { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-sans); color: var(--fg-3); }
.hE .trust2 .t svg { color: var(--cyan-600); }
.hE .right { position: relative; z-index: 2; flex: 1; padding: 60px 0 60px 20px; display: flex; align-items: center; justify-content: center; }
.hE .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(32,196,224,.22), transparent 65%); filter: blur(10px); }
.browser.framed { border-radius: var(--r-xl); border: 1px solid var(--border-1); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.browser.framed .mini { height: 380px; }

/* motion gating */
@media (prefers-reduced-motion: reduce) {
  .sweep-rot, .pin-pulse, .blip, .net-glow, .pkt, .feed-track, .dot,
  .aurora b, .shieldwash, .netviz { animation: none !important; }
}
body:not(.playing) .sweep-rot,
body:not(.playing) .pin-pulse,
body:not(.playing) .blip,
body:not(.playing) .net-glow,
body:not(.playing) .pkt,
body:not(.playing) .feed-track,
body:not(.playing) .dot { animation: none !important; }

/* ============ RESPONSIVE ============ */

/* tablet & down — collapse nav to hamburger, stack 2-col heroes */
@media (max-width: 920px) {
  .lp-nav .nav-links, .lp-nav .nav-cta { display: none; }
  .lp-nav .nav-burger { display: inline-flex; }
  .nav-menu { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border-1); box-shadow: var(--shadow-lg); padding: 12px 20px 18px; }
  .nav-menu a { font: 600 15px/1 var(--font-sans); color: var(--navy-900); padding: 14px 8px; border-radius: var(--r-md); }
  .nav-menu a:hover { background: var(--slate-100); }
  .nav-menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border-1); }
  .nav-menu-cta .btn { width: 100%; justify-content: center; padding: 13px; }

  /* B radar = decorative → hide; D feed + E mock stack below the copy */
  .hB .scope-bg { display: none; }
  .hD .wrap, .hE .wrap { flex-direction: column; align-items: stretch !important; gap: 0 !important; }
  .hD .left, .hE .left { padding: 122px 0 28px; max-width: none; }
  .hD .right { display: flex !important; width: 100%; padding: 0 0 64px; justify-content: flex-start; }
  .hD .right .feedcard { max-width: 460px; }
  .hE .right { display: none; }

  .hA h1, .hC h1 { font-size: 40px; }
  .hB h1, .hD h1, .hE h1 { font-size: 38px; }
  .hC .inner { padding: 132px 28px 76px; }
  .lp-hero { min-height: 0; }
  .hB, .hD, .hE { min-height: 0; }
}

/* phone — single column everywhere, tighter rhythm, full-width CTAs */
@media (max-width: 600px) {
  /* network hero: graph is a clear-but-secondary full-bleed BACKDROP behind the copy */
  .hC { min-height: 0; }
  .hC .netviz { opacity: .72; }
  .hC .scrim { background:
      linear-gradient(180deg, var(--navy-950) 0%, rgba(7,24,43,.5) 36%, rgba(7,24,43,.12) 100%); }
  .hC .inner { padding: 116px 22px 60px; }
  .hC .box { max-width: none; }

  .hA .inner { padding: 110px 20px 0; }
  .hA .mockwrap { margin-top: 36px; padding: 0 14px; }
  .hA .trust, .hB .trust { gap: 14px 18px; }

  .hA h1, .hC h1 { font-size: 31px; }
  .hB h1, .hD h1, .hE h1 { font-size: 30px; }
  .lp-hero .sub { font-size: 16px; }
  .hB .left, .hD .left, .hE .left { padding-top: 112px; }

  /* big, thumb-friendly stacked CTAs */
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; padding: 14px 18px; }
  /* let the eyebrow pill wrap instead of overflowing */
  .announce { white-space: normal; line-height: 1.35; }

  /* hero product mock: KPIs reflow 2×2 */
  .mini-kpis { grid-template-columns: 1fr 1fr !important; }

  /* kit body → one column, calmer spacing */
  .stats-row, .steps, .ent-grid, .footer-grid { grid-template-columns: 1fr !important; }
  .stats-row { gap: 28px; }
  .footer-grid { gap: 28px; }
}
