/* Spartan Cipher apex site styles. All values reference tokens.css.
   Brand language restored: cyan + teal + violet on deep navy, gradient headline
   text, glowing borders and tinted surfaces. Reveal states are fail-safe:
   content is visible by default and only hidden while JS is actively animating. */

/* ---- Self-hosted fonts ---- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/jetbrains-mono-700.woff2") format("woff2"); }

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--muted2);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); }
p { margin: 0; }
ul { margin: 0; }

/* ---- Focus + skip link ---- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: var(--radius-sm); }
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 200;
  background: var(--teal); color: var(--navy);
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-label);
  padding: 10px 18px; border-radius: var(--radius-md);
  transition: top var(--dur-sm) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); }

/* ---- Layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--space-5); }
.section { position: relative; }
.pad-lg { padding-block: var(--space-10); }
.pad-md { padding-block: var(--space-9); }
.pad-xl { padding-block: var(--space-11); }
/* Full-bleed bands alternate navy and navy-mid, never flat */
.band-alt { background: var(--navy-mid); }
.section-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, var(--violet) 0%, transparent 62%);
  opacity: 0.10;
}

/* ---- Typography ---- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h1); letter-spacing: -0.02em; line-height: 1.04; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); letter-spacing: -0.015em; line-height: 1.1; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-h3); line-height: 1.2; }
.body-lg { font-size: var(--text-body-lg); line-height: 1.55; color: var(--muted2); }
.body-sm { font-size: var(--text-body-sm); }
.accent-text { color: var(--teal); }

/* Pill eyebrow: rounded, navy2 surface, hairline, teal text, icon, soft glow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal);
  background: var(--navy2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  box-shadow: 0 0 20px -6px var(--teal-glow);
}
.eyebrow svg { width: 14px; height: 14px; color: var(--teal); flex: none; }

/* Small inline teal label (inside panels), not a pill */
.kicker { font-family: var(--font-body); font-weight: 600; font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); }

.section-head { max-width: 660px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head p { color: var(--muted2); font-size: var(--text-body-lg); line-height: 1.55; }

/* Text links: teal underline from left */
.link {
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
  transition: background-size var(--dur-sm) var(--ease-standard);
  padding-bottom: 1px;
}
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-body-sm);
  line-height: 1.1; min-height: 44px; padding: 13px 24px;
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-standard), box-shadow var(--dur-micro) var(--ease-standard), border-color var(--dur-micro), background-color var(--dur-micro);
}
.btn svg { width: 18px; height: 18px; }
/* Primary uses the brand gradient with dark navy text (never white on violet) */
.btn-primary { background: var(--grad); background-size: 140% 140%; color: var(--navy); font-weight: 700; box-shadow: 0 10px 30px -14px var(--teal-glow-strong); }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 34px -12px var(--teal-glow-strong), 0 0 0 1px var(--teal-border); }
.btn-ghost { background: var(--navy2); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover, .btn-ghost:focus-visible { transform: translateY(-1px); border-color: var(--teal-border); box-shadow: 0 10px 26px -14px var(--teal-glow-strong); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 11px 18px; font-size: var(--text-label); }

/* ---- Scroll progress hairline ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--grad); z-index: 120; transform-origin: left center; will-change: width; }

/* ---- Header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color var(--dur-sm), border-color var(--dur-sm), backdrop-filter var(--dur-sm); }
.site-header.scrolled { background: rgba(10,22,40,0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand img { width: 30px; height: auto; filter: drop-shadow(0 0 12px var(--teal-glow)); }
.brand .name { font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--ink); line-height: 1.05; }
.brand .tag { font-size: 0.6875rem; letter-spacing: 0.02em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a.navlink {
  color: var(--muted2); font-size: var(--text-label); font-weight: 500; text-decoration: none;
  background-image: linear-gradient(var(--teal), var(--teal)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
  transition: background-size var(--dur-sm) var(--ease-standard), color var(--dur-sm); padding-bottom: 2px;
}
.nav-links a.navlink:hover, .nav-links a.navlink:focus-visible { color: var(--ink); background-size: 100% 1.5px; }

/* ---- Badge + ticker ---- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-overline); letter-spacing: 0.02em;
  color: var(--teal); background: var(--navy2); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 7px 14px; box-shadow: 0 0 24px -8px var(--teal-glow);
}
.badge svg { width: 14px; height: 14px; color: var(--teal); }
.ticker { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--text-label); color: var(--muted); }
.ticker span { display: inline-flex; align-items: center; gap: 8px; }
.ticker .tick { color: var(--teal); }

/* ==================================================================
   1. HERO  (full-width headline, then a two-column lower row)
   ================================================================== */
.hero { padding: 100px 0 var(--space-8); overflow: hidden; }
.hero-top { max-width: 940px; }
.hero-top .badge { margin-bottom: var(--space-4); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h1); letter-spacing: -0.02em; line-height: 1.05; }
.hero-lower { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); align-items: center; margin-top: var(--space-6); }
.hero-lower > * { min-width: 0; }
.hero-copy { max-width: 520px; }
.hero .sub { font-size: var(--text-body-lg); color: var(--muted2); line-height: 1.55; margin-bottom: var(--space-5); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero .alt-link { margin-top: var(--space-4); font-size: var(--text-body-sm); color: var(--muted); }
.hero .ticker { margin-top: var(--space-5); }

/* ---- Instrument panel ---- */
.instrument {
  position: relative; background: var(--navy2); border: 1px solid var(--line2);
  border-radius: var(--radius-lg); padding: var(--space-5); min-height: 360px; overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.7), 0 0 60px -30px var(--violet-glow);
}
.instrument::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0.5; pointer-events: none; }
.instrument > * { position: relative; }
.instrument-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.instrument-head .readout { font-size: var(--text-label); color: var(--muted2); margin-top: 2px; }
.instrument-head .readout b { color: var(--ink); font-weight: 600; }
.instrument-head .ts { font-size: var(--text-overline); color: var(--muted); }
.scanline { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--teal), transparent); box-shadow: 0 0 12px var(--teal-glow-strong); opacity: 0; pointer-events: none; z-index: 4; }
.irow { display: flex; align-items: center; gap: var(--space-3); padding: 11px 13px; margin-bottom: var(--space-2); background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-md); transition: opacity var(--dur-md) var(--ease-standard), transform var(--dur-md) var(--ease-standard), border-color var(--dur-md); }
.irow .r-ico { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; }
.irow .r-ico svg { width: 18px; height: 18px; }
.irow .r-name { flex: 1; min-width: 0; font-size: var(--text-label); color: var(--muted2); }
/* Verdict tags use JetBrains Mono */
.irow .r-verdict { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-overline); letter-spacing: 0.04em; text-transform: uppercase; }
.irow.pass { border-color: var(--teal-border); }
.irow.pass .r-ico, .irow.pass .r-verdict { color: var(--teal); }
.irow.review .r-ico, .irow.review .r-verdict { color: var(--amber); }
.irow.fail .r-ico, .irow.fail .r-verdict { color: var(--red); }
.instrument-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.score-block { display: flex; align-items: baseline; gap: var(--space-2); }
.score-num { font-family: var(--font-mono); font-weight: 700; font-size: 2.5rem; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.score-max { font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }
.score-label { font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); display: block; margin-top: 4px; }
.grade-stamp { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--teal); border: 2px solid var(--teal-border); border-radius: var(--radius-md); padding: 6px 15px; line-height: 1; }
.instrument-replay { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 600; font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); background: transparent; border: 1px solid var(--teal-border); border-radius: var(--radius-pill); padding: 8px 14px; min-height: 44px; cursor: pointer; transition: background-color var(--dur-micro), transform var(--dur-micro) var(--ease-standard); }
.instrument-replay svg { width: 14px; height: 14px; }
.instrument-replay:hover, .instrument-replay:focus-visible { background: var(--teal-glow); transform: translateY(-1px); }
.instrument-caption { font-size: var(--text-overline); color: var(--muted2); margin-top: var(--space-3); text-align: center; display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==================================================================
   2. OFFERS (bento)
   ================================================================== */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-7); }
.card {
  position: relative; background: var(--navy2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-6); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-sm) var(--ease-standard), border-color var(--dur-sm), box-shadow var(--dur-sm), background-color var(--dur-sm);
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity var(--dur-sm); pointer-events: none; }
.card > * { position: relative; }
.card:hover { transform: translateY(-2px); background: var(--navy3); border-color: var(--line2); box-shadow: 0 24px 54px -34px rgba(0,0,0,0.8), 0 0 40px -22px var(--teal-glow-strong); }
.card:hover::before { opacity: 1; }
.card.wide { grid-column: span 2; }
.card .tag-line { font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.card.accent-card { border-color: var(--teal-border); }
.card.accent-card .tag-line { color: var(--teal); }
.card h3 { margin: var(--space-3) 0 var(--space-2); }
.card p { color: var(--muted2); font-size: var(--text-body-sm); line-height: 1.55; margin-bottom: var(--space-5); }
.card .card-cta { margin-top: auto; }
.card .card-ico { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--navy); border: 1px solid var(--teal-border); display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: var(--space-4); box-shadow: 0 0 24px -8px var(--teal-glow); }
.card .card-ico svg { width: 22px; height: 22px; }

/* ==================================================================
   3. MEDIA BAND
   ================================================================== */
.media-band { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.media-band > *, .scan-layout > *, .split-band > *, .sec-layout > * { min-width: 0; }
.media-band .band-copy p { color: var(--muted2); font-size: var(--text-body-lg); line-height: 1.55; margin-bottom: var(--space-5); }
.see-list { list-style: none; padding: 0; margin: var(--space-5) 0; display: grid; gap: var(--space-4); }
.see-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--muted2); }
.see-list li svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px; }
.see-list li b { color: var(--ink); font-weight: 600; }
.reach-panel { background: var(--navy2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: 0 0 50px -30px var(--violet-glow); }
.reach-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-4); margin-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.reach-head .reach-domain { font-size: var(--text-label); color: var(--ink); font-weight: 600; }
.reach-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.reach-row:first-child { border-top: 0; }
.reach-row .rr-label { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-label); color: var(--muted2); }
.reach-row .rr-label svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.reach-row .rr-state { font-family: var(--font-mono); font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.rr-state.on { color: var(--amber); }
.rr-state.off { color: var(--teal); }
.rr-state.review { color: var(--amber); }

/* ==================================================================
   4. SAMPLE SCAN BAND
   ================================================================== */
.scan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.scan-panel { background: var(--navy2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); position: relative; overflow: hidden; box-shadow: 0 0 60px -34px var(--violet-glow); }
.scan-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.gauge-wrap { display: flex; align-items: center; gap: var(--space-4); }
.gauge { width: 76px; height: 76px; position: relative; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge .gnum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .gnum b { font-family: var(--font-mono); font-weight: 700; font-size: 1.375rem; color: var(--ink); line-height: 1; }
.gauge .gnum span { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--muted); }
.gauge-meta .g-label { font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); }
.gauge-meta .g-grade { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-body-sm); color: var(--ink); margin-top: 3px; }
.scan-btn { font-family: var(--font-body); font-weight: 600; font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); background: transparent; border: 1px solid var(--teal-border); border-radius: var(--radius-pill); padding: 10px 16px; min-height: 44px; cursor: pointer; transition: background-color var(--dur-micro), transform var(--dur-micro) var(--ease-standard); }
.scan-btn:hover:not(:disabled), .scan-btn:focus-visible { background: var(--teal-glow); transform: translateY(-1px); }
.scan-btn:disabled { opacity: 0.5; cursor: default; }
.scan-track { height: 2px; border-radius: 2px; background: var(--navy3); overflow: hidden; margin-bottom: var(--space-4); }
.scan-track i { display: block; height: 100%; width: 0; background: var(--grad); transition: width var(--dur-sm) var(--ease-standard); }
.locked-note { display: flex; align-items: center; gap: 8px; font-size: var(--text-overline); color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius-md); padding: 10px 12px; margin-top: var(--space-3); }
.locked-note svg { width: 14px; height: 14px; flex: none; }
.outcome-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.outcome-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--muted2); }
.outcome-list li svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px; }
.outcome-list li b { color: var(--ink); font-weight: 600; }
.tease { font-size: var(--text-body-sm); color: var(--muted); margin-top: var(--space-5); border-left: 2px solid var(--teal-border); padding-left: var(--space-4); line-height: 1.55; }

/* ==================================================================
   5. ALTERNATING BANDS
   ================================================================== */
.split-band { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split-band.mirror .band-visual { order: -1; }
.split-band .band-copy h2 { margin-bottom: var(--space-4); }
.split-band .band-copy p { color: var(--muted2); font-size: var(--text-body-lg); line-height: 1.55; margin-bottom: var(--space-5); }
.panel { background: var(--navy2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.panel.accent-panel { border-color: var(--teal-border); box-shadow: 0 0 44px -28px var(--teal-glow-strong); }
.panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-4); font-size: var(--text-h3); }
.panel h3 svg { width: 20px; height: 20px; flex: none; color: var(--teal); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--muted2); font-size: var(--text-body-sm); line-height: 1.5; }
.check-list li svg { width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 2px; }
.note-panel { color: var(--muted2); font-size: var(--text-body-sm); line-height: 1.6; }
.compliance-card { background: var(--navy2); border: 1px solid var(--teal-border); border-radius: var(--radius-lg); padding: var(--space-7); text-align: center; box-shadow: 0 0 50px -28px var(--teal-glow-strong); }
.compliance-card .cc-grade { font-family: var(--font-mono); font-weight: 700; font-size: 3.5rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.compliance-card .cc-label { font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: var(--space-3); }
.compliance-card .cc-scale { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-5); }
.compliance-card .cc-scale span { font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.compliance-card .cc-scale span.hit { color: var(--teal); border-color: var(--teal-border); }

/* ==================================================================
   6. READ-ONLY TRUST GRID
   ================================================================== */
.trust-lead { max-width: 760px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-7); }
.trust-item { background: var(--navy2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); transition: border-color var(--dur-sm), box-shadow var(--dur-sm); }
.trust-item:hover { border-color: var(--teal-border); box-shadow: 0 0 34px -22px var(--teal-glow-strong); }
.trust-item svg { width: 24px; height: 24px; color: var(--teal); margin-bottom: var(--space-3); }
.trust-item b { display: block; color: var(--ink); font-weight: 600; font-size: var(--text-body-sm); margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: var(--text-body-sm); line-height: 1.5; }

/* ==================================================================
   7. HOW IT WORKS
   ================================================================== */
.steps { position: relative; max-width: 760px; margin: var(--space-7) auto 0; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--grad); opacity: 0.6; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-5); padding-bottom: var(--space-7); }
.step:last-child { padding-bottom: 0; }
.step .step-num { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--navy3); border: 1px solid var(--teal-border); color: var(--teal); font-family: var(--font-mono); font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.step .step-body h3 { font-size: var(--text-h3); margin-bottom: 6px; }
.step .step-body p { color: var(--muted2); font-size: var(--text-body-sm); line-height: 1.55; }
.time-pill { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-label); color: var(--teal); background: var(--navy2); border: 1px solid var(--teal-border); border-radius: var(--radius-pill); padding: 9px 16px; margin-top: var(--space-6); box-shadow: 0 0 24px -10px var(--teal-glow-strong); }
.time-pill svg { width: 15px; height: 15px; }
.req-band { margin-top: var(--space-7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.req-card { background: var(--navy2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.req-card.accent-card { border-color: var(--teal-border); }
.req-card h3 { display: flex; align-items: center; gap: 10px; font-size: var(--text-h3); margin-bottom: var(--space-4); }
.req-card h3 svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.req-note { color: var(--muted2); font-size: var(--text-body-sm); line-height: 1.6; }
.req-note + .req-note { margin-top: var(--space-4); }

/* ==================================================================
   8. SECURITY OVERVIEW
   ================================================================== */
.sec-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: start; }
.sec-rail { position: sticky; top: 96px; }
.sec-rail h2 { margin-bottom: var(--space-4); }
.sec-rail p { color: var(--muted2); font-size: var(--text-body); line-height: 1.6; }
.acc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.acc { border-radius: var(--radius-lg); padding: var(--space-5); border: 1px solid var(--line); background: var(--navy2); }
.acc.read { border-color: var(--teal-border); box-shadow: 0 0 40px -30px var(--teal-glow-strong); }
.acc.cant { border-color: rgba(248,113,113,0.28); }
.acc h3 { display: flex; align-items: center; gap: 10px; font-size: var(--text-body-lg); margin-bottom: var(--space-4); color: var(--ink); }
.acc h3 svg { width: 20px; height: 20px; flex: none; }
.acc.read h3 svg { color: var(--teal); }
.acc.cant h3 svg { color: var(--red); }
.acc ul { list-style: none; padding: 0; margin: 0; }
.acc li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--muted2); font-size: var(--text-body-sm); padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.acc li:first-child { border-top: 0; }
.acc li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.acc.read li svg { color: var(--teal); }
.acc.cant li svg { color: var(--red); }
.hipaa-band { margin-top: var(--space-5); border-radius: var(--radius-lg); padding: var(--space-5); font-size: var(--text-body-sm); line-height: 1.6; color: var(--muted2); background: var(--navy2); border: 1px solid var(--line); border-left: 2px solid var(--teal-border); }
.hipaa-band b { color: var(--ink); }
.perm-wrap { margin-top: var(--space-6); }
.perm-wrap h3 { font-size: var(--text-h3); margin-bottom: var(--space-4); }
.perm-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.perm-table th { text-align: left; font-size: var(--text-overline); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted2); font-weight: 600; padding: 13px 16px; background: var(--navy3); border-bottom: 1px solid var(--line); }
.perm-table td { padding: 13px 16px; font-size: var(--text-body-sm); color: var(--muted2); border-bottom: 1px solid var(--line); vertical-align: top; }
.perm-table tr:last-child td { border-bottom: 0; }
/* Permission names read as code but not mono (mono is reserved for numerals/grades/severity) */
.perm-table td.scope { font-weight: 600; color: var(--ink); white-space: nowrap; font-size: var(--text-label); }
.perm-row { }
.notreq-band { margin-top: var(--space-5); font-size: var(--text-body-sm); color: var(--muted2); line-height: 1.6; padding-left: var(--space-4); border-left: 2px solid var(--teal-border); }
.notreq-band code { color: var(--teal); background: var(--teal-glow); padding: 1px 6px; border-radius: var(--radius-sm); font-size: var(--text-label); font-weight: 600; }

/* ==================================================================
   9. PLANS
   ================================================================== */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); max-width: 880px; margin: var(--space-7) auto 0; }
.plan { border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--line); background: var(--navy2); position: relative; transition: transform var(--dur-sm) var(--ease-standard), border-color var(--dur-sm); }
.plan:hover { transform: translateY(-2px); border-color: var(--line2); }
.plan.monitor { border-color: var(--teal-border); box-shadow: 0 0 46px -22px var(--teal-glow-strong), 0 0 60px -34px var(--violet-glow); }
.plan .pname { font-family: var(--font-display); font-weight: 500; font-size: var(--text-h3); color: var(--ink); }
.plan .psub { font-size: var(--text-body-sm); color: var(--muted); margin-top: 4px; }
.plan .ptag { position: absolute; top: var(--space-5); right: var(--space-5); font-size: var(--text-overline); text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); background: transparent; border: 1px solid var(--teal-border); border-radius: var(--radius-pill); padding: 4px 11px; font-weight: 700; }
.plan .pprice { margin-top: var(--space-4); font-family: var(--font-mono); font-weight: 700; font-size: 2.25rem; color: var(--ink); line-height: 1; }
.plan .pprice span { font-family: var(--font-mono); font-size: var(--text-body-sm); color: var(--muted); font-weight: 400; }
.plan .pcompare { margin-top: var(--space-3); font-size: var(--text-label); color: var(--muted); line-height: 1.55; }
.feat { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.feat li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-body-sm); color: var(--muted2); line-height: 1.45; }
.feat li svg { width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 1px; }
.plan .btn { margin-top: var(--space-6); }
.plans-foot { text-align: center; margin-top: var(--space-5); color: var(--muted); font-size: var(--text-body-sm); }

/* ==================================================================
   10. GOOGLE LAUNCH LIST
   ================================================================== */
.launch-card { background: var(--navy2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: 0 0 60px -34px var(--violet-glow); }
.launch-card .launch-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.launch-icon { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--navy); border: 1px solid var(--teal-border); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 24px -8px var(--teal-glow); }
.launch-icon svg { width: 22px; height: 22px; color: var(--teal); }
.launch-card p.lead { color: var(--muted2); font-size: var(--text-body); line-height: 1.6; }
.launch-form { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.launch-form input[type="email"] { flex: 1; min-width: 240px; background: var(--navy); border: 1px solid var(--line2); border-radius: var(--radius-md); padding: 13px 16px; color: var(--ink); font-family: var(--font-body); font-size: var(--text-body-sm); caret-color: var(--teal); outline: none; transition: border-color var(--dur-micro), box-shadow var(--dur-micro); }
.launch-form input[type="email"]::placeholder { color: var(--muted); }
.launch-form input[type="email"]:focus { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-glow-strong); }
.launch-note { margin-top: var(--space-4); font-size: var(--text-body-sm); color: var(--muted); line-height: 1.6; }

/* ==================================================================
   11. FINAL CTA + FOOTER
   ================================================================== */
.final { text-align: center; border: 1px solid var(--teal-border); border-radius: var(--radius-lg); padding: var(--space-9) var(--space-6); position: relative; overflow: hidden; background: var(--navy2); box-shadow: 0 0 70px -40px var(--violet-glow); }
.final h2 { margin-bottom: var(--space-4); }
.final p { color: var(--muted2); font-size: var(--text-body-lg); max-width: 600px; margin: 0 auto var(--space-6); line-height: 1.55; }
.final .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.final .ticker { justify-content: center; margin-top: var(--space-5); }

.site-footer { border-top: 1px solid var(--line); padding: var(--space-7) 0; color: var(--muted); font-size: var(--text-body-sm); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-5); }
.foot .foot-brand { max-width: 400px; }
.foot .brand { margin-bottom: var(--space-3); }
.foot p { line-height: 1.6; margin-bottom: var(--space-3); }
.foot-links { text-align: right; display: flex; flex-direction: column; gap: 8px; }
.foot-links .row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--ink); }
.foot-legal { color: var(--muted); margin-top: var(--space-3); }

/* ==================================================================
   FLAIR: ambient hero backdrop, living gradients, hover + status accents.
   All transform / opacity / background-position, so it stays at 60fps.
   The reduced-motion block below freezes every animation here.
   ================================================================== */
.hero { position: relative; }
.hero > .container { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; will-change: transform; }
.hero-bg .grid-lines {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 32% 26%, #000 3%, transparent 72%);
  mask-image: radial-gradient(ellipse 72% 62% at 32% 26%, #000 3%, transparent 72%);
  opacity: 0.6;
}
.orb { position: absolute; border-radius: 50%; filter: blur(6px); will-change: transform; }
.orb-cyan { width: 520px; height: 520px; top: -170px; right: -120px; background: radial-gradient(circle at 42% 42%, rgba(54,226,255,0.20), transparent 66%); animation: floatA 19s ease-in-out infinite; }
.orb-violet { width: 480px; height: 480px; bottom: -200px; left: -150px; background: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.22), transparent 66%); animation: floatB 23s ease-in-out infinite; }
@keyframes floatA { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-26px,32px,0); } }
@keyframes floatB { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(30px,-24px,0); } }

/* Living gradients (every stop passes AA on navy, so panning is safe) */
@keyframes gradPan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-title .grad-text { background-size: 160% 100%; animation: gradPan 8s ease-in-out infinite; }
.btn-primary { background-size: 200% 200%; animation: gradPan 8s ease infinite; }

/* Live status dot on the instrument */
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; vertical-align: middle; margin-right: 3px; animation: livePulse 2.2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0,229,204,0.5); } 70% { box-shadow: 0 0 0 7px rgba(0,229,204,0); } 100% { box-shadow: 0 0 0 0 rgba(0,229,204,0); } }

/* Card hover: gradient top accent */
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0; transition: opacity var(--dur-sm); z-index: 2; }
.card:hover::after { opacity: 1; }

/* Helmet scan centerpiece: the brand mark under a rotating scanner sweep */
.helmet-stage { position: relative; width: 340px; max-width: 100%; height: 340px; margin: 0 auto var(--space-6); display: flex; align-items: center; justify-content: center; }
.hs-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.hs-r1 { width: 200px; height: 200px; border-color: rgba(0,229,204,0.20); }
.hs-r2 { width: 270px; height: 270px; border-color: rgba(139,92,246,0.16); }
.hs-r3 { width: 340px; height: 340px; border-color: rgba(54,226,255,0.12); }
.hs-glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,204,0.22), transparent 62%); filter: blur(10px); animation: hsBreathe 5s ease-in-out infinite; }
.hs-sweep { position: absolute; width: 270px; height: 270px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(54,226,255,0) 320deg, rgba(0,229,204,0.55) 355deg, rgba(54,226,255,0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
  mask: radial-gradient(circle, transparent 52%, #000 53%);
  animation: hsSpin 4.5s linear infinite; }
.hs-orbit { position: absolute; width: 270px; height: 270px; animation: hsSpin 9s linear infinite; }
.hs-orbit .hs-dot { position: absolute; top: -3px; left: 50%; margin-left: -3px; }
.hs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.hs-helmet { position: relative; width: 132px; height: auto; z-index: 3; filter: drop-shadow(0 0 22px rgba(0,229,204,0.5)) drop-shadow(0 0 44px rgba(139,92,246,0.32)); animation: hsBob 6s ease-in-out infinite; }
@keyframes hsSpin { to { transform: rotate(360deg); } }
@keyframes hsBreathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes hsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 620px) { .helmet-stage { width: 260px; height: 260px; } .hs-r3, .hs-sweep, .hs-orbit { width: 240px; height: 240px; } .hs-helmet { width: 110px; } }

/* ==================================================================
   REVEAL SYSTEM  (fail-safe: visible by default; only hidden while JS runs)
   ================================================================== */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in,
html.reveal-all .reveal {
  opacity: 1; transform: none;
  transition: opacity var(--dur-md) var(--ease-standard), transform var(--dur-md) var(--ease-standard);
}
/* Permission rows cascade */
html.js .perm-row { opacity: 0; transform: translateY(12px); }
html.reveal-all .perm-row { opacity: 1 !important; transform: none !important; }
/* Instrument + demo rows: fully visible unless JS is actively scripting the scan */
html.js #inst-rows .irow, html.js #demo-rows .irow { opacity: 0.4; transform: translateY(4px); }
html.js #inst-rows .irow.resolved, html.js #demo-rows .irow.resolved,
html.reveal-all #inst-rows .irow, html.reveal-all #demo-rows .irow { opacity: 1; transform: none; }
html.js .irow .r-verdict { opacity: 0; transition: opacity var(--dur-sm); }
html.js .irow.resolved .r-verdict, html.reveal-all .irow .r-verdict { opacity: 1; }
html.js .grade-stamp { opacity: 0; transform: scale(0.8); }
html.js .grade-stamp.stamped, html.reveal-all .grade-stamp { opacity: 1; transform: none; }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 960px) {
  .hero-lower { grid-template-columns: 1fr; gap: var(--space-6); }
  .bento { grid-template-columns: 1fr 1fr; }
  .media-band, .scan-layout, .split-band { grid-template-columns: 1fr; gap: var(--space-6); }
  .split-band.mirror .band-visual { order: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-layout { grid-template-columns: 1fr; }
  .sec-rail { position: static; }
  .plans { grid-template-columns: 1fr; }
  .req-band { grid-template-columns: 1fr; }
  .nav-links .navlink { display: none; }
  .pad-lg, .pad-xl { padding-block: var(--space-9); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
  .trust-grid { grid-template-columns: 1fr; }
  .acc-cols { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .perm-table thead { display: none; }
  .perm-table, .perm-table tbody, .perm-table tr, .perm-table td { display: block; width: 100%; }
  .perm-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .perm-table td { border-bottom: 0; padding: 4px 16px; }
  .perm-table td.scope { padding-top: 12px; white-space: normal; }
  .foot { flex-direction: column; }
  .foot-links, .foot-links .row { text-align: left; justify-content: flex-start; }
}

/* ==================================================================
   REDUCED MOTION
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  html.js .perm-row { opacity: 1 !important; transform: none !important; }
  html.js #inst-rows .irow, html.js #demo-rows .irow { opacity: 1 !important; transform: none !important; }
  html.js .irow .r-verdict { opacity: 1 !important; }
  html.js .grade-stamp { opacity: 1 !important; transform: none !important; }
  .scroll-progress { display: none !important; }
  .scanline { display: none !important; }
  .instrument-caption { display: block !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
