/* =============================================================
   zuscan — visual system
   -------------------------------------------------------------
   Direction: "piano black". Deep lacquered surfaces, a polished
   white-platinum sheen instead of a coloured accent, and motion
   that stays quiet until it has something to say. Colour only
   appears where it carries meaning — the severity of a finding.

   Type:  Fraunces (display serif) · Manrope (text) · JetBrains Mono (data)
   ============================================================= */

:root {
  /* --- Surfaces: black, with just enough lift to read as stacked panels --- */
  --ink:       #050506;   /* the page itself */
  --piano:     #0b0c0e;   /* a lacquered panel, bottom of its gradient */
  --piano-hi:  #16181c;   /* the same panel, catching light at the top */
  --raise:     #1c1f23;   /* inputs and small raised parts */

  /* --- Platinum: the "accent" is light, not colour --- */
  --platinum:  #eef1f5;   /* brightest highlights and key text */
  --silver:    #c3c8d0;   /* secondary bright */
  --steel:     #7c828c;   /* muted metal */

  /* --- Text --- */
  --text:      #d8dce1;
  --text-soft: #989ea7;
  --text-dim:  #5f656d;

  /* --- Meaningful colour: reserved for finding severity --- */
  --sig-crit:  #db8a63;   /* critical — a warm ember, used sparingly */
  --sig-high:  #d9b46c;   /* high — muted amber */
  --sig-ok:    #8fb0a2;   /* clear — a calm green */

  /* --- Lines & sheen --- */
  --hair:        rgba(255, 255, 255, 0.07);
  --hair-bright: rgba(255, 255, 255, 0.16);
  --sheen:       rgba(255, 255, 255, 0.05);

  /* --- Type --- */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* slow-out; reads as "expensive" */
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The lacquer: a single cool reflection falling from the top of the page,
   over a near-black base. This is what gives the whole thing its "wet" gloss. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 75% at 50% -18%, rgba(238, 241, 245, 0.06), transparent 58%),
    linear-gradient(180deg, #0a0b0d 0%, #050506 42%, #050506 100%);
  pointer-events: none;
}

/* ---------- Ambient backdrop ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.ambient-glow {
  position: absolute;
  top: -12%; right: -6%;
  width: 56vw; height: 56vw;
  background: radial-gradient(circle, rgba(195, 200, 208, 0.07), transparent 60%);
  filter: blur(46px);
  animation: drift 26s var(--ease) infinite alternate;
}
.ambient-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 28%, #000 8%, transparent 72%);
  opacity: 0.3;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-5%, 4%) scale(1.1); }
}

/* ---------- Shared layout ---------- */
main { display: block; }

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9rem 2.5rem;
}

.section-head { max-width: 760px; margin-bottom: 4rem; }
.section-head.centered { margin-inline: auto; text-align: center; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.4rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
}
h2 .italic { font-style: italic; color: var(--platinum); }

.section-intro {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 620px;
}
.centered .section-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* Primary: a polished platinum slab. A sheen sweeps across it on hover —
   the same trick light plays on a piano lid. */
.btn-primary {
  color: #0b0c0e;
  font-weight: 600;
  border: none;
  background: linear-gradient(150deg, #ffffff 0%, #d4d8de 48%, #aeb4bd 100%);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 1); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary > span { position: relative; z-index: 1; }

/* Secondary: a glossy ghost cut from the lacquer. */
.btn-secondary {
  color: var(--text);
  background: linear-gradient(160deg, var(--piano-hi), var(--piano));
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 var(--sheen);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--hair-bright); color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-cta { white-space: nowrap; flex: none; }
.nav-logo { white-space: nowrap; min-width: 0; }
/* Once we leave the very top, the bar earns a glassy backing and a hairline. */
.nav.scrolled {
  padding: 0.8rem 2.5rem;
  background: linear-gradient(180deg, rgba(12, 13, 15, 0.88), rgba(8, 9, 11, 0.72));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}

.nav-logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

/* The crest — the refined dragon, drawn in platinum. No box, no glow; it sits
   beside the wordmark like an emblem and is clipped to nothing but itself. */
.crest {
  height: 2em;
  width: auto;
  flex: none;
  color: var(--platinum);
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.footer-logo .crest { height: 1.7em; }

.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--silver);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--platinum);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--hair-bright);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--hair-bright); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 3.5rem;
  min-height: 100vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8rem 2.5rem 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sig-ok);
  box-shadow: 0 0 0 0 rgba(143, 176, 162, 0.6);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143, 176, 162, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(143, 176, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 176, 162, 0); }
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.2vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
h1 .accent { font-style: italic; color: var(--platinum); }

.hero-sub {
  margin: 2rem 0 2.6rem;
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 520px;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- The signature: a live scan panel ----------
   This replaces the old "eye". It is a small piece of the product itself —
   a beam sweeps down the asset list and each host resolves to a finding as
   it passes, while the counter climbs. Built entirely from CSS + a little JS. */
.scanner-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.scanner {
  position: relative;
  width: min(460px, 100%);
  border-radius: 14px;
  /* The lacquered glass: bright at the top edge, deep at the foot. */
  background: linear-gradient(165deg, #181b1f 0%, #0c0e10 46%, #070809 100%);
  border: 1px solid var(--hair);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -40px 80px rgba(0, 0, 0, 0.5),
    0 50px 90px -40px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
/* A fixed diagonal gloss streak — the reflection on the lid. */
.scanner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.10) 0%, transparent 24%);
  pointer-events: none;
  z-index: 4;
}

.scanner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.scanner-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--platinum);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.scanner-title::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sig-ok); box-shadow: 0 0 8px var(--sig-ok);
}
.scanner-meta { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }

.scanner-body { position: relative; padding: 0.6rem 0; }

/* The beam: a soft platinum band that travels down the list. JS sets --beam
   (0..1) so the bar and the row-resolve logic stay in sync. */
.scan-beam {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--beam, 0) * 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--platinum), transparent);
  box-shadow: 0 0 22px 3px rgba(238, 241, 245, 0.35);
  z-index: 3;
}
.scan-beam::before {           /* a faint trailing wash above the line */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(238, 241, 245, 0.10), transparent);
}

.asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.asset:last-child { border-bottom: none; }
.asset-host { color: var(--text-soft); }
.asset-host .dim { color: var(--text-dim); }

/* Severity pill: dim and noncommittal until the beam reaches the row. */
.asset-sev {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--hair);
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.asset.resolved .asset-host { color: var(--text); }
.asset.resolved .asset-sev { border-color: currentColor; }
.asset.resolved.sev-crit .asset-sev { color: var(--sig-crit); background: rgba(219, 138, 99, 0.08); }
.asset.resolved.sev-high .asset-sev { color: var(--sig-high); background: rgba(217, 180, 108, 0.08); }
.asset.resolved.sev-med  .asset-sev { color: var(--silver); }
.asset.resolved.sev-ok   .asset-sev { color: var(--sig-ok); }

.scanner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-top: 1px solid var(--hair);
  background: linear-gradient(0deg, rgba(255,255,255,0.02), transparent);
}
.scanner-foot .label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.scan-count {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
}

/* ---------- Facts ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.fact-card {
  background: linear-gradient(165deg, var(--piano-hi), var(--piano));
  padding: 2.5rem 2rem;
  transition: background 0.45s var(--ease);
}
.fact-card:hover { background: linear-gradient(165deg, #1b1e22, #0e1013); }
.fact-number {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.fact-unit { font-size: 0.9rem; font-family: var(--mono); color: var(--silver); letter-spacing: 0.05em; }
.fact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--platinum);
  margin: 1.2rem 0 0.8rem;
  font-weight: 500;
}
.fact-desc { font-size: 0.92rem; color: var(--text-soft); }
.fact-source { margin-top: 1rem; font-family: var(--mono); font-size: 0.62rem; color: var(--text-dim); line-height: 1.5; }

/* ---------- Compliance ---------- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-bottom: 2.5rem;
}
.compliance-item { background: linear-gradient(165deg, var(--piano-hi), var(--piano)); padding: 2.6rem 1.8rem; text-align: center; transition: background 0.45s var(--ease); }
.compliance-item:hover { background: linear-gradient(165deg, #1b1e22, #0e1013); }
.ci-mark { font-family: var(--serif); font-size: 1.5rem; color: var(--platinum); margin-bottom: 0.8rem; }
.ci-desc { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); line-height: 1.6; }
.trust-note { font-family: var(--mono); font-size: 0.66rem; color: var(--text-dim); max-width: 720px; }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.benefit {
  position: relative;
  padding: 2.4rem;
  background: linear-gradient(165deg, var(--piano-hi), var(--piano));
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 var(--sheen);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  overflow: hidden;
}
.benefit::before { /* gloss sweep on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform 0.8s var(--ease);
}
.benefit:hover { transform: translateY(-4px); border-color: var(--hair-bright); box-shadow: inset 0 1px 0 var(--hair-bright), 0 24px 50px -28px rgba(0,0,0,0.9); }
.benefit:hover::before { transform: translateX(110%); }
.benefit-num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--text-dim); }
.benefit-icon { width: 44px; height: 44px; color: var(--silver); margin: 1.4rem 0 1.2rem; display: block; }
.benefit h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: #fff; margin-bottom: 0.7rem; }
.benefit p { font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Process ---------- */
.roadmap { display: grid; grid-template-columns: 300px 1fr; gap: 1.4rem; }
.roadmap-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--hair);
}
.roadmap-progress { position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--platinum); transition: height 0.5s var(--ease); }
.step {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.7rem 0.6rem;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--sans); color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.step-num { font-family: var(--mono); font-size: 0.74rem; }
.step-name { font-size: 0.98rem; }
.step:hover { color: var(--text-soft); }
.step.is-active { color: #fff; }
.step.is-active .step-num { color: var(--platinum); }

.roadmap-detail {
  padding: 2.6rem;
  background: linear-gradient(165deg, var(--piano-hi), var(--piano));
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 var(--sheen), 0 30px 60px -34px rgba(0,0,0,0.9);
  min-height: 280px;
}
.detail-step-num { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--silver); text-transform: uppercase; }
.detail-title { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: #fff; margin: 0.6rem 0 1.2rem; }
.detail-body { color: var(--text-soft); transition: opacity 0.3s var(--ease); }
.detail-features { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; transition: opacity 0.3s var(--ease); }
.feature-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--silver); padding: 0.4rem 0.8rem; border: 1px solid var(--hair); background: rgba(255,255,255,0.02); }
.detail-fading .detail-body, .detail-fading .detail-features { opacity: 0; }

/* ---------- CTA + form ---------- */
.cta-section { position: relative; }
.lead-form { max-width: 580px; margin: 3.5rem auto 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.lead-form label { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); margin-bottom: 0.5rem; }
.lead-form input, .lead-form textarea {
  width: 100%;
  background: linear-gradient(160deg, var(--raise), #0e1013);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 var(--sheen);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--text-dim); }
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--hair-bright);
  box-shadow: inset 0 1px 0 var(--sheen), 0 0 0 1px var(--hair-bright), 0 0 22px rgba(238,241,245,0.10);
}
.lead-form textarea { resize: vertical; min-height: 100px; }
.form-consent { display: flex; align-items: flex-start; gap: 0.7rem; margin: 1.2rem 0 1.6rem; }
.form-consent input { width: auto; margin-top: 0.25rem; accent-color: var(--silver); }
.form-consent label { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: var(--text-soft); line-height: 1.5; margin: 0; }
.form-consent a { color: var(--platinum); }
.form-submit { width: 100%; }
.form-status { margin-top: 1.2rem; font-family: var(--mono); font-size: 0.8rem; text-align: center; min-height: 1.2rem; }
.form-status.success { color: var(--sig-ok); }
.form-status.error { color: var(--sig-crit); }

.contact-block { text-align: center; margin-top: 3rem; }
.contact-label { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.6rem; }
.contact-email { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--platinum); text-decoration: none; border-bottom: 1px solid var(--hair-bright); }
.contact-email:hover { color: #fff; }

/* ---------- Footer ---------- */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.footer-logo { font-size: 1.1rem; }
.footer-tag, .footer-mail, .footer-legal { letter-spacing: 0.03em; }
footer a { color: var(--platinum); text-decoration: none; }
footer a:hover { color: #fff; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Hero entrance (runs once on load) ---------- */
.hero-content > * { opacity: 0; transform: translateY(20px); }
body.loaded .hero-content > * { animation: rise 0.9s var(--ease) forwards; }
body.loaded .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
body.loaded .hero-content > *:nth-child(2) { animation-delay: 0.15s; }
body.loaded .hero-content > *:nth-child(3) { animation-delay: 0.28s; }
body.loaded .hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.scanner-stage { opacity: 0; transform: translateY(24px) scale(0.97); }
body.loaded .scanner-stage { animation: panelIn 1.1s var(--ease) 0.25s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes panelIn { to { opacity: 1; transform: none; } }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; top: -120px; left: 1rem; z-index: 1000;
  padding: 0.7rem 1.2rem; background: var(--platinum); color: #0b0c0e;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--platinum); outline-offset: 3px;
}
.linklike { background: none; border: none; padding: 0; font: inherit; color: var(--platinum); cursor: pointer; letter-spacing: 0.03em; }
.linklike:hover { color: #fff; }

/* ---------- Reduced motion: honour it as a hard floor ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-content > *, .scanner-stage { opacity: 1 !important; transform: none !important; }
  .ambient-glow { animation: none !important; }
  .scan-beam { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 6rem 1.5rem; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 7rem 1.5rem 3rem; gap: 2.5rem; }
  .hero-content { order: 2; }
  .scanner-stage { order: 1; }
  .scanner { width: min(440px, 100%); text-align: left; }
  .eyebrow, .cta-group { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  /* Header: tighten side padding so the logo and CTA have room to breathe. */
  .nav, .nav.scrolled { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav-links { display: none; }
  .facts-grid, .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap-track { flex-direction: row; flex-wrap: wrap; border-left: none; padding-left: 0; }
  .roadmap-progress { display: none; }
  footer { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .facts-grid, .compliance-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  /* Small phones: scale the header down so it stays on one comfortable line. */
  .nav, .nav.scrolled { padding-left: 1.1rem; padding-right: 1.1rem; }
  .nav-logo { font-size: 1.2rem; }
  .nav-logo .crest { height: 1.7em; }
  .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.7rem; letter-spacing: 0.06em; }
}
