:root {
  --abyss: #0a0f21;
  --midnight: #121a38;
  --steel: #1f2b52;
  --hull: #2e3d6b;
  --mist: #9eb4d9;
  --signal: #2e8ffa;
  --signal-deep: #0d4db8;
  --signal-glow: #59c8ff;
  --terminal: #38e09e;
  --neon: #4dfad9;
  --amber: #ffb83d;
  --crimson: #ff5c6b;
  --magenta: #fa57c7;
  --violet: #9470fa;
  --ink: #f5f8ff;
  --ink-dim: rgba(245, 248, 255, 0.62);
  --ink-faint: rgba(245, 248, 255, 0.38);
  --hairline: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow: rgba(0, 0, 0, 0.45);
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --spine-w: 7.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--abyss);
}

img { max-width: 100%; display: block; }

a {
  color: var(--signal-glow);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--terminal); }

/* ── Left spine nav ── */
.spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--spine-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0.75rem;
  background: rgba(10, 15, 33, 0.92);
  border-right: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}

.spine__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.spine__hex {
  font-size: 1.4rem;
  color: var(--signal);
  line-height: 1;
}

.spine__name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--ink-dim);
  line-height: 1.35;
}

.spine__links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spine__link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.spine__idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-faint);
}

.spine__link:hover,
.spine__link--active {
  background: var(--glass);
  color: var(--ink);
}

.spine__link--active .spine__idx { color: var(--signal); }

.spine__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--terminal);
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.spine__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terminal);
  box-shadow: 0 0 8px var(--terminal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Shell ── */
.shell {
  margin-left: var(--spine-w);
  max-width: 980px;
  padding: 0 1.75rem 6rem;
}

/* ── Hero: full bleed overlay ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 92vh;
    padding: 4rem 0 5rem;
  }
}

.hero__grid {
  position: absolute;
  inset: -20% -10%;
  z-index: -2;
  background:
    linear-gradient(180deg, var(--abyss) 0%, var(--midnight) 45%, var(--steel) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(46, 143, 250, 0.06) 39px, rgba(46, 143, 250, 0.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(46, 143, 250, 0.04) 39px, rgba(46, 143, 250, 0.04) 40px);
}

.hero__scanline {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.hero__coords {
  position: absolute;
  top: 1.25rem;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--signal-glow) 55%, var(--terminal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0.65rem 0 1.25rem;
}

.hero__tagline {
  font-size: 1.08rem;
  max-width: 38ch;
  color: var(--ink-dim);
  margin: 0 0 2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0;
}

.hero__stats div { margin: 0; }

.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--signal-glow);
  line-height: 1;
}

.hero__stats dd {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* HUD preview */
.hero__hud {
  position: relative;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.85rem;
}

.hud {
  background: rgba(18, 26, 56, 0.75);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.85rem;
  backdrop-filter: blur(8px);
}

.hud--audit {
  grid-column: 1 / -1;
  border-color: rgba(46, 143, 250, 0.35);
}

.hud--toolkit { border-color: rgba(255, 184, 61, 0.35); }
.hud--intel { border-color: rgba(250, 87, 199, 0.35); }

.hud__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.hud__bar {
  height: 6px;
  margin: 0.65rem 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--signal), var(--terminal));
  width: 68%;
}

.hud__rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hud__rows span {
  height: 8px;
  border-radius: 4px;
  background: var(--glass);
}

.hud__rows span:nth-child(1) { width: 92%; }
.hud__rows span:nth-child(2) { width: 76%; }
.hud__rows span:nth-child(3) { width: 84%; }

.hud__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.hud__grid span {
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 184, 61, 0.12);
  border: 1px solid rgba(255, 184, 61, 0.2);
}

.hud__cve {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--magenta);
  margin-top: 0.45rem;
}

.hud__severity {
  height: 6px;
  width: 45%;
  margin-top: 0.5rem;
  border-radius: 3px;
  background: var(--crimson);
}

/* ── Sections ── */
.section {
  padding: 4rem 0;
}

.section__head {
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section__head--right {
  margin-left: auto;
  text-align: right;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.section__head p {
  margin: 0;
  color: var(--ink-dim);
}

/* ── Stripe list ── */
.stripe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stripe {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.stripe:hover {
  transform: translateX(4px);
}

.stripe--audit:hover { border-color: rgba(46, 143, 250, 0.45); }
.stripe--vault:hover { border-color: rgba(148, 112, 250, 0.45); }
.stripe--toolkit:hover { border-color: rgba(255, 184, 61, 0.45); }
.stripe--range:hover { border-color: rgba(56, 224, 158, 0.45); }
.stripe--intel:hover { border-color: rgba(250, 87, 199, 0.45); }

.stripe__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 4.5rem;
}

.stripe__id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
}

.stripe__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stripe--audit .stripe__tag { color: var(--signal); }
.stripe--vault .stripe__tag { color: var(--violet); }
.stripe--toolkit .stripe__tag { color: var(--amber); }
.stripe--range .stripe__tag { color: var(--terminal); }
.stripe--intel .stripe__tag { color: var(--magenta); }

.stripe__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.stripe__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-dim);
}

.stripe__glyph {
  font-size: 1.25rem;
  opacity: 0.35;
  align-self: center;
}

@media (max-width: 600px) {
  .stripe {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stripe__glyph { display: none; }
}

/* ── Mosaic screens ── */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mosaic__hero {
  grid-column: 1 / -1;
  margin: 0;
}

.mosaic__tile--wide {
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  .mosaic {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .mosaic__hero { grid-column: 1; grid-row: 1 / 3; }
  .mosaic__tile:nth-child(2) { grid-column: 2; }
  .mosaic__tile:nth-child(3) { grid-column: 3; }
  .mosaic__tile--wide { grid-column: 2 / 4; }
}

.mosaic figure {
  margin: 0;
}

.mosaic figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.55rem;
  letter-spacing: 0.04em;
}

.screen {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--midnight);
}

.mosaic__hero .screen { aspect-ratio: 9 / 14; }

.screen--audit { background: linear-gradient(160deg, var(--midnight), var(--steel)); }
.screen--toolkit { background: linear-gradient(160deg, #1a1520, var(--midnight)); }
.screen--intel { background: linear-gradient(160deg, #1f1028, var(--midnight)); }
.screen--vault { background: linear-gradient(160deg, #14102a, var(--midnight)); }

.screen__chrome {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
}

.screen__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hairline);
}

.screen__chrome span:first-child { background: var(--crimson); opacity: 0.7; }
.screen__chrome span:nth-child(2) { background: var(--amber); opacity: 0.7; }
.screen__chrome span:nth-child(3) { background: var(--terminal); opacity: 0.7; }

.screen__content { padding: 0 12px 12px; }

.screen__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-glow);
  margin-bottom: 0.65rem;
}

.screen__progress {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--signal), var(--terminal));
  width: 72%;
  margin-bottom: 0.85rem;
}

.screen__items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.screen__items span {
  height: 10px;
  border-radius: 4px;
  background: var(--glass);
}

.screen__tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0 10px;
}

.screen__tools span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-align: center;
  padding: 0.55rem 0;
  border-radius: 6px;
  background: rgba(255, 184, 61, 0.12);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 61, 0.2);
}

.screen__cve {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--magenta);
  padding: 0 12px;
}

.screen__badge {
  display: inline-block;
  margin: 0.5rem 12px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 92, 107, 0.2);
  color: var(--crimson);
  border: 1px solid rgba(255, 92, 107, 0.35);
}

.screen__note { padding: 0 12px; }

.screen__line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--glass);
  margin-bottom: 0.4rem;
}

.screen__line.short { width: 62%; }

/* ── Legal ── */
.legal {
  padding: 3rem 0 2rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .legal {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
  }
}

.legal__panel {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}

.legal__panel summary {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.legal__panel summary::-webkit-details-marker { display: none; }

.legal__body {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}

.legal__body p { margin: 0 0 1rem; }

.legal__support h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.legal__support p { color: var(--ink-dim); margin: 0 0 1rem; }

.support-links {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.support-links li { margin-bottom: 1rem; }

.support-links__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.support-links a {
  font-size: 1.02rem;
  font-weight: 600;
  word-break: break-word;
}

.support-note { font-size: 0.85rem !important; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 2rem !important;
}

/* ── Mobile dock ── */
.dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-around;
  background: rgba(10, 15, 33, 0.96);
  border-top: 1px solid var(--hairline);
  padding: 0.65rem 0.5rem calc(0.65rem + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}

.dock a {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
}

.dock a:hover { color: var(--signal-glow); }

@media (min-width: 900px) {
  .dock { display: none; }
}

@media (max-width: 899px) {
  :root { --spine-w: 0px; }

  .spine { display: none; }

  .shell {
    margin-left: 0;
    padding: 0 1.25rem 5.5rem;
  }

  .hero__coords { right: 0; top: 0.5rem; font-size: 0.6rem; }
}
