/* UnityPilot - landing page.
   Direction: Teenage-Engineering industrial-minimal × monochrome × dithered/CRT retro-tech.
   Black & white base, one accent (orange), mono functional labels, editorial display type with
   serif-italic accents, a phosphor CRT terminal. High contrast, lots of black. Themeable via :root. */

:root {
  --bg: #0a0a0a;
  --bg-2: #0e0e0e;
  --panel: #131313;
  --panel-2: #181818;
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.26);
  --ink: #ededea;
  --ink-soft: #9a9a96;
  --ink-faint: #66665f;

  --accent: #c6f24a;       /* lime-green accent on a B&W base */
  --accent-2: #a6d92e;
  --accent-soft: rgba(198, 242, 74, 0.13);
  --crt: #b9f24a;          /* phosphor-green screen tone */
  --crt-dim: #5a7a30;
  --paper: #f4f4f0;        /* light chips / inverted buttons */

  --r: 10px;
  --r-sm: 6px;
  --r-btn: 16px;

  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* faint global grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.5; 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.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.0; color: var(--ink); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-soft); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.acc { color: var(--accent); }

/* mono micro-label (TE spec tag) */
.lab { font: 400 11.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.lab .n { color: var(--accent); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* squircle icon button */
.sq { width: 48px; height: 48px; border-radius: var(--r-btn); background: var(--paper); color: #111; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.sq.dark { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.sq svg { width: 20px; height: 20px; }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand .mk { height: 30px; width: auto; display: block; }
.nav-mid { display: flex; gap: 22px; }
.nav-mid a { font: 400 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.nav-mid a:hover { color: var(--ink); }
.nav-cta { font: 600 13px var(--font); color: #15200a; padding: 9px 17px; border-radius: 10px; background: var(--accent); transition: background .15s; }
.nav-cta:hover { background: var(--accent-2); }
@media (max-width: 760px) { .nav-mid { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 90px 0 96px; border-bottom: 1px solid var(--line); }

/* CRT hero: left-aligned text with the monitor as a small accent in the bottom-right */
.crthero { position: relative; background: #050505; overflow: hidden; min-height: 86vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0; border-bottom: none; }
.hero-wrap { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 560px; text-align: left; }
.crthero .hero-content .lab { display: inline-block; margin-bottom: 22px; }
.crthero .hero-content h1 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
.crthero .hero-content h1 .acc { color: var(--accent); }
.crthero .hero-content .lead { margin: 22px 0 0; max-width: 42ch; color: var(--ink-soft); font-size: 16px; line-height: 1.62; text-align: left; }
.crthero .hero-content .reb-logos { text-align: left; }

/* the monitor, tucked into the bottom-right and blended into the dark */
.crt-corner { position: absolute; right: 0; bottom: 0; z-index: 1; width: 46%; max-width: 760px; display: block;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  -webkit-mask-image: linear-gradient(to left, #000 62%, transparent), linear-gradient(to top, #000 72%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 62%, transparent), linear-gradient(to top, #000 72%, transparent); mask-composite: intersect; }

/* hero install command - copyable npx one-liner */
.hcmd { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 8px 8px 8px 16px; border-radius: 12px; background: #121215; border: 1px solid var(--line-2); }
.hcmd-p { color: var(--accent); font: 600 14px var(--mono); }
.hcmd code { color: var(--ink); font: 500 14px var(--mono); letter-spacing: .01em; }
.hcmd-b { margin-left: 2px; padding: 8px 15px; border-radius: 8px; background: var(--accent); color: #15200a; border: none; font: 600 12.5px var(--font); cursor: pointer; transition: background .15s; }
.hcmd-b:hover { background: var(--accent-2); }
.npm-view { display: block; width: fit-content; margin-top: 16px; font: 500 12.5px var(--mono); letter-spacing: .02em; color: var(--ink-faint); text-decoration: none; transition: color .15s; }
.npm-view:hover { color: var(--accent); }
.reb-logos { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.reb-logos .lbl { color: var(--ink-faint); opacity: .7; }
.reb-logos .lgo { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); transition: color .15s; }
.reb-logos .lgo:hover { color: var(--ink); }
.reb-logos .lgo img { width: 15px; height: 15px; display: block; }

@media (max-width: 900px) {
  .crthero { min-height: 0; padding: 48px 0 0; }
  .hero-content { max-width: none; }
  .crt-corner { position: relative; width: 100%; max-width: none; margin-top: 34px;
    -webkit-mask-image: linear-gradient(to top, #000 78%, transparent); mask-image: linear-gradient(to top, #000 78%, transparent); }
}
@media (max-width: 460px) { .hcmd { gap: 8px; padding-left: 12px; } .hcmd code { font-size: 12.5px; } }

/* what-it-does - expanding hover panels (mission-style) */
/* one shared section header used by every section (chip + h2 left, intro right) */
.mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-bottom: 44px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 12px; font: 500 11.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.chip::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 9px rgba(198,242,74,.55); }
.mhead-l h2 { margin-top: 18px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
.mhead-l h2 .acc { color: var(--accent); }
.mhead-r { max-width: 360px; padding-top: 6px; }
.mhead-r p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; }
@media (max-width: 760px) { .mhead { gap: 22px; margin-bottom: 34px; } .mhead-r { max-width: none; padding-top: 0; } }

/* FAQ - two-column list, shares the unified section header */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 48px; }
.faq-item { padding: 24px 0; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq-item p { margin-top: 9px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.62; max-width: 46ch; }
@media (max-width: 720px) { .faq-list { grid-template-columns: 1fr; } }

/* how-it-works - a gamey runner hops through the pipeline */
.flow-prompt { display: inline-flex; align-items: center; gap: 11px; padding: 11px 17px; border-radius: 12px; background: #121215; border: 1px solid var(--line-2); margin-bottom: 46px; max-width: 100%; }
.flow-prompt .fp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); flex: none; animation: fpblink 1.4s ease-in-out infinite; }
@keyframes fpblink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.flow-prompt .fp-text { font: 500 14.5px var(--mono); color: var(--ink-soft); }

.flow-track { position: relative; padding-top: 28px; }
.flow-rail { position: absolute; top: 9px; height: 2px; background: var(--line-2); border-radius: 2px; }
.flow-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); border-radius: 2px; box-shadow: 0 0 10px rgba(198,242,74,.6); transition: width .55s cubic-bezier(.4,0,.2,1); }
.flow-runner { position: absolute; top: 1px; left: 0; width: 18px; height: 18px; border-radius: 5px; z-index: 3;
  background: linear-gradient(180deg, #d8ff6a, #b6ec38); box-shadow: 0 0 16px rgba(198,242,74,.8), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .55s cubic-bezier(.4,0,.2,1); animation: runbob 1.15s ease-in-out infinite; }
@keyframes runbob { 0%,100% { margin-top: 0; } 50% { margin-top: -6px; } }

.flow-steps { position: relative; display: flex; justify-content: space-between; gap: 8px; margin-top: 26px; }
.fstep { display: flex; flex-direction: column; align-items: center; gap: 13px; flex: 1; text-align: center; opacity: .45; transition: opacity .4s ease; }
.fstep .fs-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: #16171b; border: 1px solid var(--line-2); color: var(--ink-soft); transition: background .35s, border-color .35s, color .35s, transform .35s, box-shadow .35s; }
.fstep .fs-ico svg { width: 21px; height: 21px; }
.fstep b { font: 600 12.5px var(--font); letter-spacing: -.01em; }
.fstep.active { opacity: 1; }
.fstep.active .fs-ico { background: rgba(198,242,74,.15); border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 20px rgba(198,242,74,.35); }

@media (max-width: 640px) {
  .fstep .fs-ico { width: 40px; height: 40px; border-radius: 11px; }
  .fstep .fs-ico svg { width: 18px; height: 18px; }
  .fstep b { font-size: 10.5px; }
  .flow-prompt .fp-text { font-size: 12px; }
}
/* simple placeholder button - final style TBD */
.mpill { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 12px 22px; border-radius: 10px; background: var(--accent); color: #15200a; font: 600 14px var(--font); transition: background .15s; }
.mpill:hover { background: var(--accent-2); }
.mhint { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }

/* expanding panels: all four identical at rest; the hovered one grows and opens */
.mgrid { display: flex; gap: 20px; align-items: flex-start; }
.mcard { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  background: #131316; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 16px;
  display: flex; flex-direction: column; min-height: 348px;
  transition: flex-grow .5s cubic-bezier(.4,0,.2,1), border-color .3s, background .3s, box-shadow .3s; }
.mimg { width: 100%; height: 172px; border-radius: 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); flex: none; }
.mimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mbody { padding: 20px 6px 4px; display: flex; flex-direction: column; }
.mico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #1d1e22; border: 1px solid var(--line-2); color: var(--ink-soft); transition: background .3s, border-color .3s, color .3s; }
.mico svg { width: 19px; height: 19px; }
.mcard h3 { margin-top: 18px; font-size: clamp(18px, 1.5vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
.mdesc { margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; color: var(--ink-soft); font-size: 13.5px; line-height: 1.58;
  transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .35s ease, margin-top .4s; }

/* hover: this card grows wider and opens its description */
.mcard:hover { flex-grow: 2.4; border-color: rgba(198,242,74,.32);
  background: linear-gradient(180deg, #16180f, #121314);
  box-shadow: 0 0 0 1px rgba(198,242,74,.07) inset, 0 26px 60px -32px rgba(198,242,74,.3); }
.mcard:hover .mico { background: rgba(198,242,74,.14); border-color: rgba(198,242,74,.35); color: var(--accent); }
.mcard:hover .mdesc { max-height: 180px; opacity: 1; margin-top: 12px; }

@media (max-width: 900px) {
  .mgrid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .mcard, .mcard:hover { flex: none; min-height: 0; box-shadow: none; }
  .mcard .mdesc { max-height: 200px; opacity: 1; margin-top: 12px; }
  .mhint { display: none; }
}
@media (max-width: 560px) { .mgrid { grid-template-columns: 1fr; } }

/* orbiting-arc hero */
.archero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 96vh; padding: 40px 0; }
.arc { position: absolute; left: 50%; top: 56%; width: 0; height: 0; z-index: 1; }
.arc .ac { position: absolute; width: 108px; height: 108px; margin: -54px; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 44px rgba(0,0,0,.55); background: #101010; will-change: transform, opacity; }
.arc .ac img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arc-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(44% 40% at 50% 50%, rgba(10,10,10,.97), rgba(10,10,10,.55) 62%, transparent 80%),
    linear-gradient(transparent 52%, rgba(10,10,10,.92)); }
.arc-center { position: relative; z-index: 3; margin: 0 auto; max-width: 600px; text-align: center; padding: 0 24px; }
.arc-center .lead { max-width: 42ch; margin: 20px auto 0; }
.arc-center .install { margin: 24px auto 0; }
.arc-center .cta-row { justify-content: center; }
@media (max-width: 760px) { .arc .ac { width: 76px; height: 76px; margin: -38px; border-radius: 17px; } }
.hero-top { display: flex; justify-content: center; align-items: center; margin-bottom: 30px; }
.hero-top .dots { display: flex; gap: 7px; align-items: center; }
.hero-top .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.hero-top .dots i.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; }
.hero p.lead { font-size: clamp(14px, 1.4vw, 16px); color: var(--ink-soft); max-width: 48ch; margin: 22px auto 0; }

/* centered hero + framed CRT photo */
.hero-center { text-align: center; max-width: 820px; margin: 0 auto; }
.hero-center .lead { margin-left: auto; margin-right: auto; max-width: 52ch; text-align: center; }
.hero-center .install { margin-left: auto; margin-right: auto; }
.hero-center .cta-row { justify-content: center; }
.crtframe { max-width: 1000px; margin: 58px auto 0; background: #000; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 36px 70px rgba(0,0,0,.6); }
.crtframe .cf-strip { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; font: 400 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.crtframe .cf-strip .mid { color: var(--crt-dim); }
.crtframe .cf-img { background: #060606; }
.crtframe .cf-img img { display: block; width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; align-items: center; }
/* clean matte keycap: thin chamfer (light top / dark bottom) + tight crisp shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; border-radius: 14px; font: 600 16px var(--font); cursor: pointer; border: 0;
  transition: transform .07s ease, box-shadow .07s ease; }
.btn:active { transform: translateY(2px); }
.btn-primary { color: #15200a;
  background: linear-gradient(180deg, #d2f24f 0%, #bfe93f 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), inset 0 -2.5px 0 rgba(120,160,20,.45),
    0 1px 1px rgba(0,0,0,.45), 0 7px 12px rgba(0,0,0,.45); }
.btn-primary:active { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.45); }
.btn-ghost { color: var(--ink);
  background: linear-gradient(180deg, #2d2d2d 0%, #202020 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.13), inset 0 -2.5px 0 rgba(0,0,0,.45),
    0 1px 1px rgba(0,0,0,.45), 0 7px 12px rgba(0,0,0,.5); }
.btn-ghost:active { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.13), 0 2px 4px rgba(0,0,0,.5); }

.install { margin: 26px 0 0; display: inline-flex; align-items: center; gap: 13px; background: #000; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 13px 12px 16px; font-family: var(--mono); font-size: 14px; max-width: 100%; overflow: auto; }
.install .prompt { color: var(--accent); }
.install code { white-space: nowrap; }
.copy-btn { margin-left: auto; color: var(--ink); border: 0; border-radius: 9px; padding: 7px 12px; font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
  background: linear-gradient(180deg, #333, #1d1d1d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(0,0,0,.6), 0 2px 2px rgba(0,0,0,.35), 0 5px 9px rgba(0,0,0,.4);
  transition: transform .08s ease; }
.copy-btn:hover { transform: translateY(-1px); }
.copy-btn:active { transform: translateY(2px); }

/* ---------- CRT terminal ---------- */
.crt { position: relative; background: #050805; border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 22px 20px; overflow: hidden; box-shadow: inset 0 0 80px rgba(93,255,163,0.08), 0 20px 50px rgba(0,0,0,0.6); }
.crt::before { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.18) 3px);
}
.crt::after { /* vignette + glow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, rgba(93,255,163,0.06), transparent 70%), radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,0.6), transparent 60%);
}
.crt .crt-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font: 400 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--crt-dim); }
.crt .crt-bar .pwr { width: 8px; height: 8px; border-radius: 50%; background: var(--crt); box-shadow: 0 0 8px var(--crt); }
.crt pre { margin: 0; font: 400 13px/1.85 var(--mono); color: var(--crt); text-shadow: 0 0 6px rgba(93,255,163,0.45); white-space: pre-wrap; word-break: break-word; }
.crt pre .ok { color: #bdffd9; } .crt pre .dim { color: var(--crt-dim); } .crt pre .cur { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 44px; }
.head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.022em; max-width: 20ch; }
.head .head-r { text-align: right; max-width: 34ch; }
.head .head-r p { color: var(--ink-soft); font-size: 15px; margin: 10px 0 0; }
@media (max-width: 720px) { .head { flex-direction: column; align-items: flex-start; } .head .head-r { text-align: left; } }

/* dithered image band */
.band { position: relative; border-bottom: 1px solid var(--line); background: #000; overflow: hidden; }
.band .ditherwrap { position: relative; aspect-ratio: 16/5; min-height: 300px; display: grid; place-items: center; }
.band .ditherwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.4) brightness(0.85); }
.band .ditherwrap::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #000 0.6px, transparent 1px); background-size: 4px 4px; mix-blend-mode: soft-light; opacity: 0.7; }
.band .ditherwrap.empty { background:
   radial-gradient(60% 80% at 50% 40%, #2a2a2a, #000 70%); }
.band .ditherwrap.empty::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.5) 0.7px, transparent 1.1px); background-size: 5px 5px; mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 72%); -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 72%); }
.band .scrim { position: absolute; inset: 0; z-index: 1; background:
   radial-gradient(70% 60% at 50% 52%, rgba(0,0,0,0.78), transparent 72%),
   linear-gradient(transparent 40%, rgba(0,0,0,0.55)); }
.band .overlay { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.band .overlay h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.025em; text-shadow: 0 2px 24px rgba(0,0,0,0.85); }
.band .overlay .cap { margin-top: 14px; font: 400 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); text-shadow: 0 2px 12px rgba(0,0,0,0.9); }
.band .corner { position: absolute; bottom: 20px; right: 20px; display: flex; gap: 10px; z-index: 3; }
.band .tagcard { position: absolute; bottom: 20px; left: 20px; z-index: 3; background: #000; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.band .tagcard b { display: block; font-weight: 500; font-size: 15px; }
.band .tagcard span { font: 400 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- modules (capabilities) ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 720px) { .modules { grid-template-columns: 1fr; } }
.mod { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .2s ease; }
.mod:hover { background: var(--bg-2); }
.modules .mod:nth-child(2n) { border-right: 0; }
.mod .mlab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.mod .mlab .id { font: 400 11.5px var(--mono); letter-spacing: 0.14em; color: var(--accent); }
.mod .mlab .ic { color: var(--ink-soft); }
.mod h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.mod p { margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; max-width: 42ch; }
.mod.span2 { grid-column: span 2; border-right: 0; }
@media (max-width: 720px) { .mod.span2 { grid-column: span 1; } .mod { border-right: 0; } }
.mod .term { margin-top: 18px; background: #000; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; font: 400 12.5px/1.7 var(--mono); color: var(--ink-soft); white-space: pre-wrap; }
.mod .term .hot { color: var(--accent-2); } .mod .term .ok { color: var(--crt); } .mod .term .dim { color: var(--ink-faint); }

/* self-healing two-column */
.fixgrid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; align-items: stretch; }
@media (max-width: 880px) { .fixgrid { grid-template-columns: 1fr; } }
.fixgrid .mod { border: 1px solid var(--line); border-radius: var(--r); }
.fiximg { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #060606; display: flex; }
.fiximg img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.9); }

/* ---------- "what it does": left heading + grid of icon cards (one accent) ---------- */
.vgrid { display: grid; grid-template-columns: 0.82fr 1.28fr; gap: 56px; align-items: stretch; }
@media (max-width: 880px) { .vgrid { grid-template-columns: 1fr; gap: 36px; } }
.vleft { display: flex; flex-direction: column; }
.vleft .lab { margin-bottom: 24px; }
.vleft h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
.vleft p { margin: 20px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; max-width: 36ch; }
.vleft .vfoot { margin-top: auto; padding-top: 32px; font: 400 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 880px) { .vleft .vfoot { display: none; } }

.vcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 520px) { .vcards { grid-template-columns: 1fr; } }
.vcard { display: flex; flex-direction: column; justify-content: space-between; min-height: 152px; padding: 18px;
  border-radius: 14px; background: #141417; border: 1px solid rgba(255,255,255,.08); transition: transform .25s ease, border-color .25s ease; }
.vcard:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); }
.vcard .vico { color: var(--accent); }
.vcard .vico svg { width: 21px; height: 21px; display: block; }
.vcard .vbtm p { color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.vcard .vbtm hr { border: 0; border-top: 1px solid rgba(255,255,255,.13); margin: 12px 0 10px; }
.vcard .vbtm b { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.vcard.accent { background: linear-gradient(155deg, #d4f24f 0%, #a2d908 100%); border: 0; color: #14210a; }
.vcard.accent .vico { color: #14210a; }
.vcard.accent .vbtm p { color: rgba(20,30,6,.78); }
.vcard.accent .vbtm hr { border-color: rgba(20,30,6,.3); }

/* ---------- monitor (screenshot) ---------- */
.monitor-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
@media (max-width: 880px) { .monitor-grid { grid-template-columns: 1fr; gap: 30px; } }
.monitor { border: 1px solid var(--line-2); border-radius: var(--r); background: #000; padding: 12px; position: relative; }
.monitor .scr { position: relative; border-radius: var(--r-sm); overflow: hidden; }
.monitor .scr img { display: block; width: 100%; filter: grayscale(0.25) contrast(1.08); }
.monitor .scr::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.10) 3px); pointer-events: none; }
.monitor .mlabel { display: flex; justify-content: space-between; margin-top: 10px; font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- how to use ---------- */
.use-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .use-grid { grid-template-columns: 1fr; gap: 28px; } }
.steps { border-top: 1px solid var(--line); }
.s { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.s .num { font: 400 12px var(--mono); color: var(--accent); padding-top: 3px; }
.s b { font-size: 16px; font-weight: 500; } .s p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.s .kbd { font: 400 12px var(--mono); background: #000; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--ink); }
.code { background: #000; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; font: 400 13px/1.7 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.code .k { color: var(--accent-2); } .code .s2 { color: var(--crt); } .code .c { color: var(--ink-faint); }
.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.req { font: 400 12px var(--mono); letter-spacing: 0.04em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 12px; }
.req b { color: var(--ink); font-weight: 400; }
.notice { margin-top: 18px; font: 400 12.5px var(--mono); color: var(--accent-2); border: 1px solid var(--accent-soft); background: var(--accent-soft); border-radius: var(--r-sm); padding: 12px 14px; }

/* ---------- aviation / cockpit instruments ---------- */
/* HUD telemetry strip (randomized by JS) */
.hud { display: flex; flex-wrap: wrap; gap: 18px; font: 400 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.hud .t { display: inline-flex; gap: 7px; align-items: baseline; }
.hud .t .v { color: var(--accent); font-weight: 700; min-width: 3.4em; display: inline-block; }
.hud .t .v.g { color: var(--crt); }

/* nav status lights */
.navlights { display: flex; flex-direction: column; gap: 9px; }
.navlights .nl { display: flex; align-items: center; gap: 9px; font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.navlights .nl i { width: 8px; height: 8px; border-radius: 50%; background: var(--crt); box-shadow: 0 0 8px var(--crt); }
.navlights .nl.amber i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.navlights .nl.off i { background: #2a2a2a; box-shadow: none; }

/* radar scope */
.radar { position: relative; width: 116px; height: 116px; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(circle, rgba(93,255,163,0.05), transparent 70%); flex: none; }
.radar::before { content: ""; position: absolute; inset: 0; background:
   repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 18px, rgba(93,255,163,0.13) 19px),
   linear-gradient(rgba(93,255,163,0.13), rgba(93,255,163,0.13)) 50%/1px 100% no-repeat,
   linear-gradient(rgba(93,255,163,0.13), rgba(93,255,163,0.13)) 50%/100% 1px no-repeat; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(93,255,163,0.45), transparent 38%); animation: sweep 3.4s linear infinite; }
.radar .blip { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--crt); box-shadow: 0 0 8px var(--crt); }
@keyframes sweep { to { transform: rotate(360deg); } }

/* HUD reticle that drifts (JS sets target via --x/--y) */
.reticle { position: absolute; width: 92px; height: 92px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; color: var(--accent); transition: left 2.6s cubic-bezier(.4,0,.2,1), top 2.6s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.reticle svg { width: 100%; height: 100%; }

/* console (cockpit flight computer) wraps the CRT + telemetry + lights */
.console { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; }
.console .ctop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.console .ctop .ttl { font: 400 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.console .cfoot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; gap: 14px; }

@keyframes flick { 0%,96%,100% { opacity: 1; } 97% { opacity: 0.82; } 98% { opacity: 0.95; } }
.crt pre { animation: flick 6s infinite; }
@media (prefers-reduced-motion: reduce) { .radar .sweep, .crt pre, .reticle { animation: none !important; transition: none !important; } }

/* live CRT monitor (hero) */
.crtmon { background: linear-gradient(160deg, #2a2a2a, #141414); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.crtmon .strip { display: flex; justify-content: space-between; gap: 12px; font: 400 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 2px 12px; }
.crtmon .strip .mid { color: var(--crt-dim); }
.crtmon .screen { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: radial-gradient(130% 100% at 50% 22%, #0e1f10, #050a06 82%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.crtmon .screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crtmon .scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.17) 3px); }
.crtmon .vig { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px 14px rgba(0,0,0,.55); }
.crtmon .log { position: absolute; left: 16px; right: 16px; bottom: 14px; font: 400 11px/1.7 var(--mono); color: var(--crt); text-shadow: 0 0 7px rgba(185,242,74,.45); white-space: pre-line; }
.crtmon .log .cur { animation: cblink 1.1s step-end infinite; }
.crtmon .vlabel { display: flex; justify-content: space-between; margin-top: 10px; font: 400 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
@keyframes cblink { 50% { opacity: 0; } }

/* image frame (hero visual / monitor) */
.vis { border: 1px solid var(--line-2); border-radius: var(--r); background: #000; padding: 10px; }
.vis .scr { position: relative; border-radius: var(--r-sm); overflow: hidden; }
.vis .scr img { display: block; width: 100%; }
.vis .scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.12) 3px); }
.vis .vlabel { display: flex; justify-content: space-between; margin-top: 9px; font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* band art tweaks: images are already 1-bit, so go light on processing */
.band .ditherwrap img { filter: grayscale(1) contrast(1.05) brightness(0.92); }
.band .ditherwrap.has-img::after { opacity: 0.28; mix-blend-mode: overlay; }
.band .figtile { position: absolute; bottom: 22px; left: 22px; z-index: 3; width: 116px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000; }
.band .figtile img { display: block; width: 100%; filter: grayscale(1) contrast(1.05); }
.band .figtile .ft { padding: 7px 9px; font: 400 9.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); border-top: 1px solid var(--line); }

/* closing band (paper plane) */
.closing { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.closing .pp { position: absolute; inset: 0; background: url("assets/paper-plane.png") right center/contain no-repeat; opacity: 0.95; filter: grayscale(1); }
.closing .pp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, transparent 58%); }
.closing .inner { position: relative; z-index: 2; padding: 84px 0; max-width: 34ch; }
.closing h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; margin-top: 16px; }
.closing p { color: var(--ink-soft); margin: 14px 0 24px; font-size: 15px; line-height: 1.62; }

/* ---------- below-footer spinning cube ---------- */
.cubefoot { position: relative; border-top: 1px solid var(--line); background: #060606; height: 420px; overflow: hidden; }
.cubefoot #cube { display: block; width: 100%; height: 420px; }
.cubefoot .cs-lab { position: absolute; top: 18px; font: 400 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.cubefoot .cs-lab.l { left: 28px; } .cubefoot .cs-lab.r { right: 28px; }

/* ---------- footer ---------- */
footer { padding: 56px 0 50px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
footer .brand { margin-bottom: 12px; }
footer p { font-size: 13.5px; color: var(--ink-soft); max-width: 38ch; margin: 0; }
.foot-links { display: flex; gap: 40px; }
.foot-col h4 { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.foot-col a { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13.5px; padding: 4px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-col a img { width: 15px; height: 15px; display: block; flex: none; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
