/* Building security, tested end to end: one stylesheet, no framework.
   Each section sets a tone class; the tone's --accent comes from its halftone image. */

:root {
  --bg: #070a0f;
  --bg-2: #0b0f17;
  --surface: #101622;
  --surface-2: #161e2e;
  --line: #1d2738;
  --line-2: #2b384f;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;

  --accent: #38bdf8;          /* primary telemetry cyan */
  --accent-ink: #04131c;      /* dark text on solid accent buttons */
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;

  --serif: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 12px;
  --gutter: 16px;
  --maxw: 1200px;
  --header: 64px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* crisp technical tones (no gold) */
.tone-gold    { --accent: #38bdf8; }
.tone-steel   { --accent: #60a5fa; }
.tone-teal    { --accent: #2dd4bf; }
.tone-crimson { --accent: #f87171; }
.tone-red     { --accent: #ef4444; }
.tone-blue    { --accent: #38bdf8; }
.tone-violet  { --accent: #a78bfa; }
.tone-bronze  { --accent: #38bdf8; }
.tone-ember   { --accent: #38bdf8; }
.tone-silver  { --accent: #94a3b8; }
.tone-peach   { --accent: #38bdf8; }
:root, [class*="tone-"] {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font); font-weight: 600; letter-spacing: -0.028em; line-height: 1.06; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3 { font-weight: 600; font-size: 18px; letter-spacing: -0.015em; line-height: 1.28; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }

/* grid children may shrink below their content's width */
.hero-inner > *, .problem-grid > *, .steps > *, .stats > *, .panels > *, .pq-grid > *, .findings-grid > *,
.modes > *, .arena-grid > *, .offers > *, .rules > * { min-width: 0; }

/* ---------- type ---------- */

.eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow-plain { color: var(--muted); }
h2 { font-size: clamp(2.5rem, 4.8vw, 4.25rem); }
.lede { color: #c6cad0; font-size: clamp(17px, 1.5vw, 19px); max-width: 60ch; margin-top: 22px; }
.fine { color: var(--dim); font-size: 14px; line-height: 1.55; }
.small-head { font-size: 15px; margin: 30px 0 12px; letter-spacing: 0; }
.num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 80; height: var(--header);
  background: rgba(7, 10, 15, 0.9);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: visible;
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; color: var(--text); flex: none; }
.brand-dot { fill: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.brand-text span { font-size: 12.5px; color: var(--dim); }
.nav { display: none; gap: 24px; align-items: center; }
.nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; padding: 4px 0; transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); border-radius: 2px; }
@media (min-width: 1060px) { .nav { display: flex; } }
.header-auth { display: none; align-items: center; gap: 10px; flex: none; }
@media (min-width: 1060px) { .header-auth { display: flex; } }
.nav-mobile-auth { display: none; }
.acct-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--text); font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap;
}
.acct-pill:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.acct-pill .acct-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 0 3px rgba(127, 209, 139, 0.2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: 600 15.5px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(8, 9, 11, 0.35); color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); filter: none; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header));
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: calc(var(--header) + 56px) 0 88px;
  background: #050506;
}
.hero-media { position: absolute; inset: 0; z-index: -1; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,6,0) 0%, rgba(5,5,6,0) 28%, rgba(5,5,6,.6) 46%, rgba(5,5,6,.9) 60%, rgba(5,5,6,.95) 100%),
    linear-gradient(180deg, rgba(5,5,6,.55) 0%, rgba(5,5,6,0) 22%, rgba(5,5,6,0) 78%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 0.92fr 1.08fr; }
.hero-copy { grid-column: 2; max-width: 620px; }
.hero h1 { font-size: clamp(3rem, 5.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.018em; }
.hero-sub { color: #c9cdd2; font-size: clamp(17px, 1.45vw, 19.5px); margin: 26px 0 34px; max-width: 54ch; }
.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 899px) {
  .hero { display: block; min-height: 0; padding: 0 0 64px; }
  .hero-media { position: relative; height: 66svh; min-height: 380px; max-height: 600px; }
  .hero-media img { object-position: 16% 22%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(5,5,6,.5) 0%, rgba(5,5,6,0) 22%, rgba(5,5,6,0) 52%, #050506 100%); }
  .hero-inner { display: block; position: relative; margin-top: -120px; }
  .hero-copy { max-width: none; }
}

/* ---------- chapters and image bands ---------- */

.chapter { position: relative; }
.chapter-body { padding-block: 72px 112px; }
.chapter-head { margin-bottom: 48px; }
.chapter-head > * { max-width: 820px; }

.band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 48vw, 700px);
  display: flex; align-items: center;
  background: #050506;
}
.band-short { min-height: clamp(340px, 32vw, 470px); }
.band-media { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-media::after { content: ""; position: absolute; inset: 0; }
.band-left .band-media::after {
  background:
    linear-gradient(90deg, rgba(8,9,11,.95) 0%, rgba(8,9,11,.84) 30%, rgba(8,9,11,.4) 56%, rgba(8,9,11,0) 78%),
    linear-gradient(180deg, var(--bg) 0%, rgba(8,9,11,0) 14%, rgba(8,9,11,0) 80%, var(--bg) 100%);
}
.band-right .band-media::after {
  background:
    linear-gradient(270deg, rgba(8,9,11,.95) 0%, rgba(8,9,11,.84) 30%, rgba(8,9,11,.4) 56%, rgba(8,9,11,0) 78%),
    linear-gradient(180deg, var(--bg) 0%, rgba(8,9,11,0) 14%, rgba(8,9,11,0) 80%, var(--bg) 100%);
}
.band-heavy .band-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8, 9, 11, 0.4); }
.band-heavy .band-media::after { z-index: 2; }
.band-inner { width: 100%; }
.band-copy { max-width: 600px; padding: 104px 0; }
.band-right .band-copy { margin-left: auto; }
.band-copy .lede { color: #d0d3d8; }

/* where each image's subject sits */
.pos-problem img  { object-position: 82% 55%; }
.pos-how img      { object-position: 12% 35%; }
.pos-findings img { object-position: 8% 55%; }
.pos-pq img       { object-position: 25% 25%; }
.pos-arena img    { object-position: 92% 50%; }
.pos-data img     { object-position: 66% 62%; }
.pos-contact img  { object-position: 28% 100%; }

@media (max-width: 759px) {
  .band { display: block; min-height: 0; background: var(--bg); }
  .band-media { position: relative; height: 74vw; max-height: 440px; }
  .band-left .band-media::after, .band-right .band-media::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(8,9,11,0) 20%, rgba(8,9,11,0) 50%, var(--bg) 100%);
  }
  .band-heavy .band-media::before { background: rgba(8, 9, 11, 0.25); }
  .band-copy { padding: 0; margin-top: -56px; position: relative; }
  .chapter-body { padding-block: 48px 80px; }
}

/* ---------- problem ---------- */

.problem-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .problem-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.problem-list { list-style: none; margin: 0; padding: 0; }
.problem-list li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
.problem-list li:last-child { border-bottom: 1px solid var(--line); }
.problem-list .num { grid-row: span 2; padding-top: 3px; }
.problem-list p { color: var(--muted); margin-top: 6px; }

.pieces { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pieces svg { width: 100%; height: auto; }
.pieces .p-head { font: 500 12px var(--mono); letter-spacing: 0.14em; fill: var(--dim); }
.pieces .p-head-accent { fill: var(--accent); }
.pieces .p-box rect { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.4; }
.pieces .p-box text { font: 500 16px var(--font); fill: var(--text); }
.pieces .p-skip rect { stroke-dasharray: 5 5; fill: transparent; }
.pieces .p-skip text { fill: var(--dim); }
.pieces .p-on rect { stroke: var(--accent-line); }
.pieces .p-line { stroke: var(--accent); stroke-width: 2.4; }
.pieces .p-dot { fill: var(--accent); }
.pieces .p-note { font: 400 13px var(--mono); fill: var(--dim); }

/* ---------- how it works ---------- */

.flow { margin: 0 0 48px; display: none; }
.flow svg { width: 100%; height: auto; }
@media (min-width: 760px) { .flow { display: block; } }
.flow .f-node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.2; }
.flow .f-node-key rect { stroke: var(--accent-line); }
.flow .f-num { font: 500 12px var(--mono); fill: var(--accent); letter-spacing: 0.08em; }
.flow .f-title { font: 600 17px var(--font); fill: var(--text); letter-spacing: -0.01em; }
.flow .f-sub { font: 400 11.5px var(--mono); fill: var(--dim); }
.flow .f-icon rect, .flow .f-icon circle, .flow .f-icon path, .flow .f-icon line { fill: none; stroke: #9aa3ad; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow .f-icon .f-icon-front { fill: var(--surface); }
.flow .f-icon .f-icon-dot { fill: var(--accent); stroke: none; }
.flow .f-icon .f-check { stroke: var(--accent); stroke-width: 2.4; }
.flow .f-red { fill: var(--accent); }
.flow .f-blue { fill: none; stroke: var(--text); stroke-width: 2; }
.flow .f-vs { font: 500 12px var(--mono); fill: var(--dim); }
.flow .f-link line { stroke: #4a5562; stroke-width: 1.6; }
.flow .arrow-head { fill: #4a5562; }
.flow .arrow-head-accent { fill: var(--accent); }
.flow .f-loop { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 5; }
.flow .f-loop-label { font: 400 13px var(--mono); fill: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps h3 { margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 719px) {
  .steps { gap: 0; }
  .steps li { background: none; border: 0; border-radius: 0; padding: 0 0 28px 44px; position: relative; }
  .steps li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }
  .steps li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 2px; width: 1px; background: var(--line-2); }
  .steps li:last-child::after { display: none; }
  .steps li:last-child { padding-bottom: 0; }
  .steps h3 { margin-top: 2px; }
}

/* ---------- findings ---------- */

.sim-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  font-size: 13.5px; color: #d6d9dd; background: rgba(8, 9, 11, 0.55);
}
.sim-note svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

.stats { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--accent-line); padding-top: 22px; }
.stat-num {
  font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 9vw, 5.6rem); line-height: 0.92;
  letter-spacing: -0.01em; color: var(--accent); white-space: nowrap; font-variant-numeric: lining-nums;
}
@media (min-width: 1100px) { .stats .stat-num { font-size: clamp(3.4rem, 4.9vw, 5rem); } }
.stat-label { font-weight: 600; margin-top: 16px; line-height: 1.35; }
.stat-body { color: var(--muted); font-size: 15.5px; margin-top: 10px; }

.findings-grid { display: grid; gap: 40px; margin-top: 80px; align-items: start; }
@media (min-width: 1000px) { .findings-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }

.plan-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 16px; }
@media (min-width: 1000px) { .plan-card { position: sticky; top: calc(var(--header) + 24px); } }
@media (min-width: 720px) { .plan-card { padding: 28px 28px 20px; } }
.plan { width: 100%; height: auto; }
.plan .walls path { fill: none; stroke: #c9d1da; stroke-width: 3; stroke-linecap: square; }
.plan .doors path, .plan .doors line { fill: none; stroke: #5d6876; stroke-width: 1.2; }
.plan .target-fill { fill: var(--accent-soft); }
.plan .reader rect { fill: var(--bg); stroke: #c9d1da; stroke-width: 1.4; }
.plan .camera path { fill: none; stroke: #8e99a6; stroke-width: 1.4; stroke-linejoin: round; }
.plan .racks rect { fill: #1a1f27; stroke: #4a5562; stroke-width: 1.2; }
.plan .equip { fill: #151a21; stroke: #4a5562; stroke-width: 1.2; }
.plan .hatch { fill: url(#hatch); }
.plan .hatch-line { stroke: #4a5562; stroke-width: 1.4; }
.plan .equip-label { font: 500 10px var(--mono); fill: #8e99a6; letter-spacing: 0.08em; }
.plan .controller path { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.plan .room-label text { font: 500 12.5px var(--mono); fill: #7a8592; letter-spacing: 0.12em; }
.plan .network { fill: none; stroke: #3b4652; stroke-width: 1.4; stroke-dasharray: 2 4; }
.plan .route-path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 7; animation: march 1.4s linear infinite; }
.plan .remote { fill: var(--accent); }
.plan .route-label { font: 500 11px var(--mono); fill: var(--accent); letter-spacing: 0.1em; }
.plan .thermo-tube { fill: var(--bg); stroke: #6b7684; stroke-width: 1.2; }
.plan .thermo-fill { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; animation: heat 6s ease-in-out infinite; }
.plan .thermo-bulb { fill: var(--accent); }
.plan .guard { animation: patrol 14s ease-in-out infinite; }
.plan .guard-dot { fill: #f2f5f8; }
.plan .guard-halo { fill: rgba(242,245,248,0.12); stroke: rgba(242,245,248,0.35); stroke-width: 1; }
.plan .caption { font: 500 10.5px var(--mono); fill: #5f6a77; letter-spacing: 0.14em; }
@keyframes march { to { stroke-dashoffset: -30; } }
@keyframes heat { 0%, 10% { transform: scaleY(0.25); } 70%, 100% { transform: scaleY(1); } }
@keyframes patrol { 0%, 6% { transform: translateX(0); } 46%, 54% { transform: translateX(396px); } 94%, 100% { transform: translateX(0); } }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; flex: none; }
.key-route { width: 22px; height: 0; border-top: 2.5px dashed var(--accent); }
.key-guard { width: 10px; height: 10px; border-radius: 50%; background: #f2f5f8; box-shadow: 0 0 0 3px rgba(242,245,248,0.15); }
.key-reader { width: 9px; height: 9px; border: 1.5px solid #c9d1da; }
.key-ctrl { width: 9px; height: 9px; border: 2px solid var(--accent); transform: rotate(45deg); }
.key-dev { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line-2); background: var(--surface-2); }
.key-dev-ok { width: 12px; height: 12px; border-radius: 3px; border: 1.5px dashed var(--accent-line); }

/* the numbers table, laid out as one card per building */
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.data-table, .data-table caption, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
.data-table caption { text-align: left; font-weight: 600; padding-bottom: 14px; font-size: 16px; }
.data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.data-table tr { border: 1px solid var(--line); border-left: 2px solid var(--accent-line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: var(--surface); }
.data-table tbody th { text-align: left; padding: 0 0 6px; font-size: 17px; font-weight: 600; }
.data-table td { padding: 4px 0; display: grid; grid-template-columns: 104px 1fr; gap: 12px; color: var(--muted); }
.data-table td.mono { color: var(--accent); }
.data-table td::before { content: attr(data-label); font: 500 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.table-wrap .fine { margin-top: 14px; }

/* ---------- red, blue, purple ---------- */

.teams-chapter { padding-top: 8px; }
.teams-chapter .chapter-head { margin-bottom: 48px; }
.panels { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .panels { grid-template-columns: repeat(3, 1fr); } }
.panel { display: flex; flex-direction: column; background: color-mix(in srgb, var(--accent) 5%, #0a0b0d); --panel-bg: color-mix(in srgb, var(--accent) 5%, #0a0b0d); }
.panel-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, var(--panel-bg) 100%); }
.pos-red img    { object-position: 0% 30%; }
.pos-blue img   { object-position: 88% 50%; }
.pos-purple img { object-position: 50% 88%; }
.panel-body { padding: 8px 28px 48px; }
@media (min-width: 1200px) { .panel-body { padding: 8px 40px 56px; } }
.panel-tag { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -0.01em; line-height: 1.05; margin: 10px 0 14px; }
.panel p:not(.panel-tag) { color: var(--muted); font-size: 16px; }

/* ---------- post-quantum ---------- */

.pq-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .pq-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.pq-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; padding-left: 20px; border-left: 2px solid var(--accent); }
.pq-grid .fine { margin-top: 26px; max-width: 62ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-50%) rotate(-45deg); }
.pq-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 24px 22px; }
@media (min-width: 960px) { .pq-card { padding: 38px 34px 28px; } }
.pq-card .stat-num span { font-size: 0.42em; color: var(--muted); letter-spacing: 0; }
.pq-card .stat-label { font-weight: 500; color: var(--text); max-width: 40ch; }
.devices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 26px; max-width: 360px; }
.devices span { aspect-ratio: 1; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface-2); position: relative; }
.devices span::before, .devices span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; height: 1.5px; background: #5d6876; }
.devices span::before { transform: translate(-50%, -50%) rotate(-45deg); }
.devices span::after { transform: translate(-50%, -50%) rotate(45deg); }
.pq-card .legend { margin-top: 18px; }

/* ---------- arena ---------- */

.modes { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 860px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.mode h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.3rem); line-height: 1.05; margin: 10px 0 12px; }
.mode p:not(.panel-tag):not(.formula) { color: var(--muted); font-size: 16px; }
.formula { margin-top: 18px; font: 400 13.5px var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }

.arena-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .arena-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.connect h3, .board h3 { font-size: 19px; }
.code { position: relative; margin: 16px 0 14px; background: #050608; border: 1px solid var(--line-2); border-radius: 10px; }
.code pre { margin: 0; padding: 18px 76px 18px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13.5px/1.75 var(--mono); color: var(--text); }
@media (max-width: 559px) { .code pre { padding: 46px 16px 16px; font-size: 13px; } }
.code code { font: inherit; }
.c-dim { color: #5f6a77; user-select: none; }
.c-acc { color: var(--accent); }
.copy { position: absolute; top: 10px; right: 10px; font: 500 12.5px var(--font); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--dim); }
.invite { margin-top: 18px; font-size: 16px; color: var(--muted); }
.invite strong { color: var(--text); font-weight: 600; }
.invite a { color: var(--accent); text-decoration: none; font-weight: 500; white-space: nowrap; }
.invite a:hover { text-decoration: underline; }

.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.live { font: 400 12.5px var(--mono); color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.live.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 3px rgba(95,211,141,0.15); }
.board-body { min-height: 120px; }
.board-msg { color: var(--muted); font-size: 15.5px; padding: 18px 0 8px; }
.board-msg strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.board-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 14.5px; }
.board-actions a, .board-actions button { color: var(--accent); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.board-actions a:hover, .board-actions button:hover { text-decoration: underline; }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.board th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 0 8px 10px 0; border-bottom: 1px solid var(--line-2); }
.board td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.board tr:last-child td { border-bottom: 0; }
.board .col-rank { width: 34px; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.board .col-score { width: 74px; text-align: right; padding-right: 0; font-family: var(--mono); color: var(--accent); }
.board th.col-score { color: var(--dim); }
.board .agent { font-weight: 600; }
.board .task { color: var(--muted); font-size: 14px; }
.board-rule { margin-top: 12px; }
.arena-grid-2 { margin-top: 32px; }
.env-loop { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 800px) { .env-loop { grid-template-columns: repeat(3, 1fr); } }
.env-loop > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; }
.env-loop strong { font-size: 15px; }
.env-loop span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tasks td.mode, .account td.mode { text-transform: capitalize; }
.account-form { margin-top: 14px; }
.account-result { display: grid; gap: 10px; font-size: 14.5px; }
.account-result table { width: 100%; border-collapse: collapse; font-size: 14px; }
.account-result td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-result a { color: var(--accent); }

/* ---------- offers (no image: a faint halftone dot field instead) ---------- */

.offers-chapter { background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.offers-chapter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 30%, transparent) 1.1px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 85% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 85% 0%, #000 0%, transparent 70%);
}
.offers-chapter .chapter-body { position: relative; padding-top: 112px; }
.offers { display: grid; gap: 16px; }
@media (min-width: 860px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px 28px; }
@media (min-width: 720px) { .offer { padding: 40px 36px 34px; } }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 3vw, 2.7rem); line-height: 1.05; }
.offer-lede { color: var(--muted); margin: 12px 0 24px; }
.offer .ticks { margin-bottom: 28px; flex: 1; align-content: start; }
.offer .btn { align-self: flex-start; }

/* ---------- rules ---------- */

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rules li { padding: 24px 0 24px 30px; border-top: 1px solid var(--line); position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 30px; width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 3px; }
.rules h3 { font-size: 17.5px; }
.rules p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* ---------- contact ---------- */

.contact {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(620px, 62vw, 900px);
  display: flex; align-items: flex-start;
  background: #050506;
}
.contact .band-media::after {
  background:
    radial-gradient(ellipse 62% 64% at 16% 30%, rgba(8,9,11,.9) 0%, rgba(8,9,11,.62) 48%, rgba(8,9,11,0) 78%),
    linear-gradient(180deg, var(--bg) 0%, rgba(8,9,11,0) 16%, rgba(8,9,11,0) 86%, rgba(8,9,11,.55) 100%);
}
.contact-inner { width: 100%; }
.contact-copy { max-width: 640px; padding: 96px 0 96px; }
.contact-copy h2 { font-size: clamp(2.7rem, 5.2vw, 4.75rem); }
.contact-copy .lede { color: #d6d9dd; margin-bottom: 34px; }
@media (max-width: 759px) {
  .contact { display: block; min-height: 0; background: var(--bg); }
  .contact .band-media { position: relative; height: 80vw; max-height: 460px; }
  .contact .band-media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(8,9,11,0) 25%, rgba(8,9,11,0) 50%, var(--bg) 100%); }
  .contact-copy { padding: 0 0 72px; margin-top: -64px; position: relative; }
}

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: grid; gap: 8px; }
.footer-inner p:first-child { font-size: 14.5px; color: var(--muted); }
.footer-inner strong { color: var(--text); font-weight: 600; }

/* ---------- motion: gentle reveals, only when allowed ---------- */

[data-reveal] { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].pre { opacity: 0; transform: translateY(22px); }
[data-band] .band-media img { transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
[data-band].pre .band-media img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-band] .band-media img { transition: none; }
  [data-reveal].pre { opacity: 1; transform: none; }
  [data-band].pre .band-media img { transform: none; }
  .plan .route-path, .plan .thermo-fill, .plan .guard { animation: none; }
}

/* ---------- small phones ---------- */

@media (max-width: 479px) { .site-header .btn-small { display: none; } }
@media (max-width: 420px) {
  .brand-text strong { font-size: 13.5px; }
  .brand-text span { font-size: 11.5px; }
  .brand-mark { width: 22px; height: 22px; }
  .header-inner { gap: 12px; }
  .cta-row .btn { width: 100%; }
  .offer .btn { align-self: stretch; }
}


/* ---- phone menu (explicit viewport height so header backdrop-filter never clips it) ---- */
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(16,22,34,0.7); cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; color: var(--text); }
.menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.nav-cta { display: none; }
@media (max-width: 1059px) {
  .menu-btn { display: flex; }
  .header-key, .header-auth { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--header); left: 0; right: 0;
    height: calc(100dvh - var(--header)); min-height: calc(100vh - 64px);
    padding: 20px var(--gutter) 40px; gap: 2px;
    background: #070a0f; border-top: 1px solid var(--line);
    z-index: 90; overflow-y: auto;
  }
  .nav.open a { font-size: 18px; font-weight: 500; padding: 14px 4px; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav.open a[aria-current="page"]::after { display: none; }
  .nav.open a[aria-current="page"] { color: var(--accent); }
  .nav.open .nav-mobile-auth { display: grid; gap: 10px; margin-top: 22px; }
  .nav.open .nav-mobile-auth a { font-size: 15.5px; border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; text-align: center; border-bottom: 1px solid var(--line-2); }
  .nav.open .nav-mobile-auth a.btn { border-color: var(--accent); color: var(--accent-ink); }
  .nav.open .nav-cta { display: block; color: var(--accent); }
  body.menu-open { overflow: hidden; }
}

/* ---- unified footer ---- */
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---- ICP, standards badges, subpage heroes & cards ---- */
.hero-alt { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.hero-alt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.hero-alt a:hover { text-decoration: underline; }
.std-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.std-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--muted);
}
.std-pill strong { color: var(--accent); font-weight: 500; }

.icp-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .icp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .icp-grid { grid-template-columns: repeat(4, 1fr); } }
.icp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.icp-card .num { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.icp-card h3 { font-size: 17.5px; }
.icp-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.offer-meta { font: 500 12.5px var(--mono); color: var(--accent); margin-bottom: 18px; letter-spacing: 0.03em; }
.offers-3 { display: grid; gap: 16px; }
@media (min-width: 960px) { .offers-3 { grid-template-columns: repeat(3, 1fr); } }

.row-action { margin-top: 8px; font-size: 13.5px; }
.row-action a { color: var(--accent); text-decoration: none; font-weight: 500; }
.row-action a:hover { text-decoration: underline; }
.row-badge { display: inline-block; font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); margin-left: 8px; vertical-align: middle; }

/* segmented filter tabs */
.seg-tabs {
  display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-2);
}
.seg-tabs button {
  min-height: 30px; padding: 0 12px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); font: 500 13px var(--font); cursor: pointer;
}
.seg-tabs button:hover { color: var(--text); }
.seg-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* subpages (/pqc, /offers, /on-prem, /pitch) */
.sub-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 85% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.sub-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); max-width: 18ch; }
.sub-hero .lede { max-width: 64ch; }
.sub-hero .cta-row { margin-top: 28px; }
.sub-section { padding: 56px 0; }
.sub-section + .sub-section { border-top: 1px solid var(--line); }

/* PQC interactive estimator */
.pqc-est { display: grid; gap: 24px; align-items: start; }
@media (min-width: 920px) { .pqc-est { grid-template-columns: 1fr 1.15fr; } }
.pqc-controls { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 16px; }
.pqc-controls label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.pqc-controls select, .pqc-controls input { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.pqc-out { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 18px; }
.verdict-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.verdict-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 600 14px var(--font); border: 1px solid; }
.v-good { color: #7fd18b; border-color: rgba(127,209,139,.45); background: rgba(127,209,139,.12); }
.v-warn { color: #f2b25c; border-color: rgba(242,178,92,.45); background: rgba(242,178,92,.14); }
.v-bad { color: #ff6b63; border-color: rgba(255,107,99,.45); background: rgba(255,107,99,.14); }
.pqc-bars { display: grid; gap: 12px; }
.pqc-bar-row { display: grid; gap: 5px; }
.pqc-bar-head { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.pqc-bar-track { height: 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.pqc-bar-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.pqc-bar-fill.bad { background: #ff6b63; }
.pqc-bar-fill.good { background: #7fd18b; }
.pqc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .pqc-metrics { grid-template-columns: 1fr; } }
.pqc-metric { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.pqc-metric span { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.pqc-metric strong { display: block; font-size: 18px; margin-top: 4px; color: var(--text); font-family: var(--mono); }
.device-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.device-tags span { font: 500 12px var(--mono); padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }

/* ---- Benchmark / Security Monitor UI components ---- */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; }
.kpi-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi-tile .k { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.kpi-tile .v { font: 600 28px/1.1 var(--mono); color: var(--text); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-tile .v.accent { color: var(--accent); }
.kpi-tile .v.bad { color: var(--bad); }
.kpi-tile .v.good { color: var(--good); }
.kpi-tile .d { font-size: 13px; color: var(--muted); margin-top: 4px; }

.diagram-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.diagram-card svg { width: 100%; height: auto; display: block; }
.diagram-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 16px; }
.diagram-head h3 { font-size: 17px; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.matrix th, .matrix td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix th { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); background: var(--bg-2); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix .tag-ok { display: inline-flex; padding: 2px 9px; border-radius: 999px; font: 600 12px var(--mono); background: rgba(34,197,94,.13); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.matrix .tag-warn { display: inline-flex; padding: 2px 9px; border-radius: 999px; font: 600 12px var(--mono); background: rgba(245,158,11,.13); color: #fbbf24; border: 1px solid rgba(245,158,11,.35); }
.matrix .tag-bad { display: inline-flex; padding: 2px 9px; border-radius: 999px; font: 600 12px var(--mono); background: rgba(239,68,68,.13); color: #f87171; border: 1px solid rgba(239,68,68,.35); }
.matrix .tag-info { display: inline-flex; padding: 2px 9px; border-radius: 999px; font: 600 12px var(--mono); background: rgba(56,189,248,.13); color: #38bdf8; border: 1px solid rgba(56,189,248,.35); }

.split-2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1fr 1fr; } }
.sector-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.sector-box.highlight { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(56,189,248,0.06), var(--surface) 45%); }
.sector-box h3 { font-size: 21px; }
.check-grid { display: grid; gap: 10px; margin-top: 4px; }
.check-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.check-item code { flex: none; font: 600 11.5px var(--mono); color: var(--accent); background: rgba(56,189,248,.1); padding: 2px 7px; border-radius: 5px; }
.check-item div { font-size: 14px; color: var(--muted); }
.check-item strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 14.5px; }

.cli-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .cli-grid { grid-template-columns: 1fr 1fr; } }
.cli-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.cli-card h3 { font-size: 17px; }
.cli-card .code { margin: 4px 0 0; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font: 500 11.5px var(--mono); border: 1px solid var(--line-2); color: var(--muted); }
.badge-pill.base { color: #38bdf8; border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.1); }
.badge-pill.live { color: #4ade80; border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); }

/* ---- Blueprint architectural grid & interactive Instant Scanner ("Aha!" moment) ---- */
.bp-grid-bg {
  position: relative;
  background-image:
    linear-gradient(rgba(56,189,248,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}
.scanner-shell {
  background: linear-gradient(180deg, rgba(16,22,34,0.96), rgba(11,15,23,0.98));
  border: 1px solid rgba(56,189,248,0.34);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.scanner-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 22px; background: rgba(7,10,15,0.85); border-bottom: 1px solid var(--line);
}
.privacy-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px var(--mono); color: #4ade80;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.35);
  padding: 4px 11px; border-radius: 999px;
}
.privacy-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.scanner-body { padding: 24px; display: grid; gap: 20px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.preset-btn {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 7px 14px; font: 500 13px var(--font); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.preset-btn:hover, .preset-btn.active { border-color: var(--accent); background: rgba(56,189,248,0.14); color: #fff; }
.csv-drop {
  position: relative; border: 1.5px dashed rgba(56,189,248,0.45); border-radius: 12px;
  padding: 20px; text-align: center; background: rgba(56,189,248,0.04); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.csv-drop:hover, .csv-drop.over { background: rgba(56,189,248,0.1); border-color: var(--accent); }
.csv-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.csv-drop strong { display: block; font-size: 15px; color: var(--text); }
.csv-drop span { font-size: 13px; color: var(--muted); }

.gap-alerts { display: grid; gap: 10px; }
.gap-alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 15px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
}
.gap-alert.crit { border-color: rgba(239,68,68,0.45); background: rgba(239,68,68,0.08); }
.gap-alert.warn { border-color: rgba(245,158,11,0.42); background: rgba(245,158,11,0.08); }
.gap-alert.ok { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.08); }
.gap-alert .sev { flex: none; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 5px; }
.gap-alert.crit .sev { background: rgba(239,68,68,0.2); color: #fca5a5; }
.gap-alert.warn .sev { background: rgba(245,158,11,0.2); color: #fcd34d; }
.gap-alert.ok .sev { background: rgba(34,197,94,0.2); color: #86efac; }
.gap-alert p { font-size: 14px; color: var(--muted); }
.gap-alert strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 14.5px; }

.diag-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .diag-grid { grid-template-columns: 0.95fr 1.05fr; } }
.diag-checks { display: grid; gap: 8px; }
.diag-check {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.diag-check:hover { border-color: var(--line-2); }
.diag-check input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.diag-check strong { display: block; font-size: 14px; color: var(--text); }
.diag-check span { display: block; font-size: 12.5px; color: var(--muted); }

.gaps-5 { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .gaps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gaps-5 { grid-template-columns: repeat(5, 1fr); } }
.gap-tile {
  background: linear-gradient(180deg, rgba(16,22,34,0.95), rgba(11,15,23,0.95));
  border: 1px solid var(--line); border-top: 2px solid var(--accent);
  border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.gap-tile.sev-red { border-top-color: #ef4444; }
.gap-tile.sev-amber { border-top-color: #f59e0b; }
.gap-tile .g-code { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.gap-tile h3 { font-size: 16px; line-height: 1.3; }
.gap-tile p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.gap-tile .g-std { margin-top: auto; padding-top: 8px; font: 500 11px var(--mono); color: var(--accent); }

.sample-strip { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 760px) { .sample-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sample-strip { grid-template-columns: repeat(4, 1fr); } }
.sample-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.sample-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sample-card .s-type { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.sample-card strong { font-size: 15.5px; color: var(--text); }
.sample-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.sample-card .s-cta { font: 500 13px var(--mono); color: var(--accent); margin-top: 6px; }

.pilot-banner {
  background: linear-gradient(135deg, rgba(56,189,248,0.13), rgba(16,22,34,0.96) 55%);
  border: 1px solid rgba(56,189,248,0.45); border-radius: 16px; padding: 28px;
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 860px) { .pilot-banner { grid-template-columns: 1.35fr 0.65fr; } }
.pilot-price { font: 700 42px/1 var(--mono); color: var(--accent); }
.pilot-price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.footer-sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--dim); align-items: center; }
.footer-sub a { color: var(--dim); text-decoration: none; }
.footer-sub a:hover { color: var(--muted); }

/* ---- demo ---- */
.demo-frame { margin-top: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; background: #fff; }
.demo-frame iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; }
.demo-shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.demo-shots figure { margin: 0; }
.demo-shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #fff; }
.demo-shots figcaption { font-size: 14px; color: var(--muted, #aaa); margin-top: 8px; }

/* ---- forms ---- */
.key-form, .request-form { margin-top: 22px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.03); display: grid; gap: 12px; }
.key-form h4, .request-form h3 { margin: 0; }
.key-form label, .request-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted, #aaa); }
.key-form input, .request-form input, .request-form select, .request-form textarea { font: inherit; color: var(--text, #eee); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 11px 12px; width: 100%; box-sizing: border-box; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.request-form { margin-top: 40px; scroll-margin-top: 90px; }
.key-form { scroll-margin-top: 90px; }
.key-result, .form-result { font-size: 14px; }
.key-code { white-space: pre-wrap; word-break: break-all; font-size: 13px; background: rgba(0,0,0,.45); padding: 12px; border-radius: 10px; margin: 8px 0; }

.pq-how { margin-top: 8px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; margin: 18px 0 24px; }
.steps-list li { counter-increment: s; padding-left: 44px; position: relative; color: var(--muted, #aaa); line-height: 1.55; }
.steps-list li b { color: var(--text, #eee); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; border: 1px solid var(--accent, #e8c37a); color: var(--accent, #e8c37a); }
