/* ============================================================
   TestHub · core stylesheet
   Engineered precision: charcoal-dominant, restrained red accent
   ============================================================ */

:root {
  /* brand */
  --orange: #FC7001;
  --red: #D21F23;
  --ring-red: #F52B2B;
  --grad: linear-gradient(100deg, #FC7001 0%, #F52B2B 48%, #D21F23 100%);

  /* dark theme (default) */
  --bg: #0E0E0F;
  --bg-2: #141416;
  --surface: #18181B;
  --surface-2: #1F1F23;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --ink: #F4F4F5;
  --ink-mid: #B5B5BA;
  --ink-dim: #76767D;
  --shadow: 0 30px 80px -30px rgba(0,0,0,0.85);

  --maxw: 1280px;
  --r: 14px;
  --r-lg: 22px;

  /* spacing scale (8pt base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* fluid rhythm tokens */
  --section-y: clamp(56px, 8vw, 96px);
  --gutter: clamp(20px, 5vw, 40px);
  --section-head-gap: clamp(30px, 4vw, 44px);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Sora", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="light"] {
  --bg: #F4F3F1;
  --bg-2: #ECEBE8;
  --surface: #FFFFFF;
  --surface-2: #F7F6F4;
  --line: rgba(20,20,22,0.10);
  --line-strong: rgba(20,20,22,0.16);
  --ink: #16161A;
  --ink-mid: #4A4A52;
  --ink-dim: #86868E;
  --shadow: 0 30px 70px -34px rgba(40,20,10,0.30);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--ink); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tone-orange { color: var(--orange); }
.tone-red { color: var(--ring-red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-body); font-weight: 500; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(245,43,43,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(245,43,43,0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ring-red); color: #fff; transform: translateY(-2px); }
html[data-theme="light"] .btn-ghost:hover { color: var(--red); }
.btn .arr { transition: transform .25s ease; }
.btn-ghost:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 28px; }

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-img-light { display: none; }
html[data-theme="light"] .logo-img-dark { display: none; }
html[data-theme="light"] .logo-img-light { display: block; }
.logo-footer .logo-img { height: 54px; }

.main-nav { display: flex; gap: 16px; margin-left: auto; }
.main-nav a {
  font-size: 14px; color: var(--ink-mid); font-weight: 400; position: relative; padding: 4px 0;
  transition: color .2s ease; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--grad);
  transition: width .25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 40px; height: 24px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); position: relative; cursor: pointer; transition: background .3s ease;
}
.theme-toggle-dot {
  position: absolute; top: 50%; left: 3px; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--grad); transition: left .3s ease;
}
html[data-theme="light"] .theme-toggle-dot { left: 19px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-burger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-0px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 78px; left: 0; right: 0; z-index: 99;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  flex-direction: column; gap: 4px; padding: 18px var(--gutter) 28px;
  display: none;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 17px; color: var(--ink-mid); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ---------- reveal ----------
   Base state is VISIBLE (never stuck hidden if JS/capture misbehaves);
   the entrance animates FROM hidden only when .in is applied. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealIn .8s cubic-bezier(.16,1,.3,1) forwards; }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, #000 0%, transparent 78%);
  opacity: .6;
}
.hero-glow {
  position: absolute; top: -10%; right: -8%; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(245,43,43,0.20) 0%, rgba(252,112,1,0.10) 35%, transparent 68%);
  filter: blur(20px); pointer-events: none;
}
html[data-theme="light"] .hero-glow { opacity: .55; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; color: var(--ink-mid);
  text-transform: uppercase; margin-bottom: 26px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--surface);
}
.eyebrow-tick { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(245,43,43,0.18); }

.hero-title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98;
  font-size: clamp(44px, 5.8vw, 88px); color: var(--ink); margin-bottom: 18px;
}
.hero-tagline {
  font-family: var(--f-body); font-weight: 500; font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: .02em; color: var(--ink-mid); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 11px;
}
.hero-tagline::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.hero-lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-mid); max-width: 580px; line-height: 1.65; }
.hero-lede strong { font-weight: 600; }
.hero-lede-2 { margin-top: 14px; font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-dim); }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; max-width: 560px; }
.hero-chips li { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .01em; color: var(--ink-mid); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; background: var(--surface); transition: border-color .18s, color .18s; }
.hero-chips li:hover { border-color: var(--line-strong); color: var(--ink); }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* readiness card */
.readiness-card {
  position: relative; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
  font-family: var(--f-mono); font-size: 13.5px;
}
.readiness-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(245,43,43,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.rc-titlebar {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.rc-dots { display: flex; gap: 6px; }
.rc-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.rc-dots i:first-child { background: var(--ring-red); }
.rc-file { color: var(--ink-dim); font-size: 12px; }
.rc-body { padding: 18px 18px 20px; }
.rc-line { color: var(--ink-mid); margin-bottom: 14px; }
.rc-line .rc-key { color: var(--ring-red); margin-right: 6px; }
.rc-check {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink-mid);
  border-bottom: 1px dashed var(--line);
}
.rc-check .ok { color: #36d07a; font-weight: 500; }
.rc-check .spin { color: var(--orange); animation: spin 1.4s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rc-val { margin-left: auto; color: var(--ink); font-weight: 500; }
.rc-pass { color: #36d07a; }
.rc-eval { color: var(--orange); }
.rc-divider { height: 1px; background: var(--line-strong); margin: 16px 0 14px; }
.rc-score { display: flex; align-items: baseline; justify-content: space-between; }
.rc-score-label { font-size: 11px; letter-spacing: .08em; color: var(--ink-dim); }
.rc-score-val { font-family: var(--f-display); font-weight: 800; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rc-meter { height: 6px; border-radius: 999px; background: var(--surface-2); margin-top: 12px; overflow: hidden; border: 1px solid var(--line); }
.rc-meter-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.6s cubic-bezier(.16,1,.3,1); }
.rc-meter-fill.go { width: var(--w); }
.rc-illus {
  position: absolute; top: 13px; right: 14px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
}

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); pointer-events: none; }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--ring-red), transparent); }
/* Only show the scroll cue when the hero is tall and wide enough that it
   clears the CTA row, otherwise it collides with the buttons. */
.hero-scroll { display: none; }
@media (min-width: 921px) and (min-height: 840px) {
  .hero-scroll { display: flex; }
}

/* ============ section heads ============ */
.section-head { max-width: 720px; margin-bottom: var(--section-head-gap); }
.kicker { font-family: var(--f-mono); font-size: 13px; color: var(--ring-red); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.section-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 20px; }
.section-sub { font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-mid); line-height: 1.6; }

/* ============ QUALITY vs TRUST ============ */
.qvt { padding: var(--section-y) 0; position: relative; }
.qvt .section-head { max-width: none; }
.qvt .section-sub .ss-lead { display: block; }
@media (min-width: 560px) { .qvt .section-head .section-title { white-space: nowrap; } .qvt .section-sub .ss-lead { white-space: nowrap; } }
.qvt-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.qvt-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px 38px 42px; position: relative; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.qvt-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.qvt-card-trust { background: linear-gradient(165deg, color-mix(in oklab, var(--red) 9%, var(--surface)), var(--surface) 60%); }
.qvt-card-trust:hover { border-color: var(--ring-red); }
.qvt-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.qvt-name { font-family: var(--f-display); font-weight: 700; font-size: 27px; letter-spacing: -0.02em; }
.qvt-proves { font-size: 21px; color: var(--ink-mid); margin-bottom: 16px; font-weight: 300; }
.qvt-proves strong { font-weight: 600; }
.qvt-card-trust .qvt-proves strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.qvt-proves-label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim); display: block; margin-bottom: 4px; }
.qvt-desc { color: var(--ink-mid); margin-bottom: 26px; line-height: 1.65; }
.qvt-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.qvt-list li { position: relative; padding-left: 24px; color: var(--ink); font-size: 15.5px; }
.qvt-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid var(--ink-dim); }
.qvt-card-trust .qvt-list li::before { border-color: var(--ring-red); background: rgba(245,43,43,0.18); }

.qvt-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 26px; }
.qvt-bridge-line { width: 1px; flex: 1; background: linear-gradient(var(--line-strong), transparent); }
.qvt-bridge-line:last-child { background: linear-gradient(transparent, var(--line-strong)); }
.qvt-bridge-node {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; color: var(--ring-red);
  background: var(--bg); margin: 14px 0; flex: none;
}

.qvt-foot { text-align: center; max-width: 760px; margin: 44px auto 0; font-size: clamp(19px, 1.8vw, 26px); font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }

/* ============ CREDIBILITY STRIP ============ */
/* ============ PROOF BAND ============ */
.proofband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proofband-inner { display: grid; grid-template-columns: 0.92fr 2.08fr; align-items: center; gap: 48px; padding: 40px 0; }
.proofband-lead { padding-right: 44px; border-right: 1px solid var(--line); }
.proofband-statement { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); margin: 14px 0 18px; }
.proofband-link { font-family: var(--f-mono); font-size: 13px; color: var(--ring-red); display: inline-flex; align-items: center; gap: 8px; }
.proofband-link:hover { color: var(--ink); }
.proofband-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pb-stat { padding: 0 28px; border-left: 1px solid var(--line); }
.pb-stat:first-child { padding-left: 0; border-left: 0; }
.pb-stat b { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pb-stat p { font-size: 13px; color: var(--ink-mid); line-height: 1.45; margin-top: 12px; }

/* ============ THE PROBLEM ============ */
.problem { padding: 88px 0 92px; }
.problem-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 60px; align-items: stretch; }
.problem-copy { max-width: 600px; display: flex; flex-direction: column; }
.problem-copy .pull { margin-top: auto; }
.problem-copy .kicker { margin-bottom: 16px; }
.problem-copy .section-title { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 24px; }
.problem-copy .section-sub { max-width: 560px; line-height: 1.72; }
.pull {
  margin: 32px 0 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -0.01em; color: var(--ink);
  padding-left: 22px; border-left: 3px solid; border-image: var(--grad) 1; max-width: 540px;
}

/* fragmented testing visual: "where risk hides" card stack */
.problem-visual { position: relative; display: flex; flex-direction: column; justify-content: center; }
.frag-eyebrow { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ring-red); margin-bottom: 15px; }
.frag-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.frag-card {
  position: relative; display: flex; align-items: center; gap: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 20px 11px 19px; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.frag-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.frag-card:hover { transform: translateX(4px); border-color: var(--line-strong); }
.frag-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--ring-red); }
.frag-icon svg { width: 19px; height: 19px; }
.frag-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.frag-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.frag-sub { font-family: var(--f-mono); font-size: 12px; color: var(--ink-dim); }
.frag-team { font-family: var(--f-mono); font-size: 12px; color: var(--ink-dim); letter-spacing: .04em; flex: none; white-space: nowrap; }
.frag-conclusion {
  margin-top: 12px; text-align: center; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ring-red);
  border: 1px dashed color-mix(in oklab, var(--ring-red) 50%, transparent); border-radius: var(--r); padding: 15px;
}

/* ============ WHERE RISK HIDES ============ */
.riskhides { padding: 88px 0; }
.risk-head { margin-bottom: 44px; }
.risk-eyebrow { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ring-red); margin-bottom: 14px; }
.risk-title { max-width: none; text-wrap: balance; font-size: clamp(22px, 2.3vw, 34px); }
@media (min-width: 560px) { .risk-title { white-space: nowrap; } }
.riskhides .section-sub { max-width: none; }
.risk-grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.risk-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 28px; transition: transform .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
.risk-card::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 18px; }
.risk-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.risk-icon { color: var(--ring-red); display: block; margin-bottom: 16px; }
.risk-icon svg { width: 28px; height: 28px; display: block; }
.risk-num { font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .1em; }
.risk-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.12; margin: 8px 0 12px; color: var(--ink); }
.risk-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.55; margin-bottom: 22px; }
.risk-proves { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.risk-proves-label { display: block; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ring-red); margin-bottom: 7px; }
.risk-proves-val { font-family: var(--f-display); font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }

/* ============ CAPABILITIES GRID ============ */
.caps { padding: 88px 0 92px; }
.caps .section-head { max-width: none; }
.caps .section-head .section-title { font-size: clamp(26px, 2.8vw, 38px); }
@media (min-width: 768px) { .caps .section-head .section-title { white-space: nowrap; } }
@media (min-width: 1100px) { .caps .section-head .section-sub { white-space: nowrap; } }
.caps-legend { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-dim); }
.caps-legend-box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ring-red); flex: none; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; overflow: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.cap-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.cap-start::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.cap-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 30px; }
.cap-card-icon { color: var(--ring-red); display: block; }
.cap-card-icon svg { width: 30px; height: 30px; display: block; }
.cap-start-tag { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ring-red); margin-top: 5px; white-space: nowrap; }
.cap-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 11px; color: var(--ink); }
.cap-card p { font-size: 14.5px; color: var(--ink-mid); line-height: 1.55; margin-bottom: 22px; }
.cap-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-family: var(--f-body); font-weight: 600; font-size: 14px; color: var(--ink); }
.cap-go .arr { transition: transform .25s ease; }
.cap-card:hover .cap-go .arr { transform: translateX(4px); }
.cap-cta { background: linear-gradient(165deg, color-mix(in oklab, var(--red) 14%, var(--surface)), var(--surface) 62%); border-color: var(--ring-red); justify-content: center; }
.cap-cta h3 { font-size: 22px; margin-bottom: 10px; }
.cap-cta p { margin-bottom: 24px; }
.cap-cta-btn { align-self: flex-start; width: max-content; }

/* ============ PIPELINE ============ */
.pipeline { padding: var(--section-y) 0; }
.pipe-track {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative;
  margin-top: 20px;
}
.pipe-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--ring-red), var(--red));
  opacity: .9;
}
.pipe-stage { position: relative; padding: 0 22px 0 0; }
.pipe-node {
  position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--ring-red);
  margin-bottom: 22px;
}
.pipe-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.pipe-node-end { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(245,43,43,0.16); }
.pipe-node-end .pipe-dot { background: #fff; }
.pipe-step { font-family: var(--f-mono); font-size: 12px; color: var(--ring-red); letter-spacing: .04em; }
.pipe-stage h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; margin: 8px 0 9px; letter-spacing: -0.01em; }
.pipe-stage p { font-size: 14px; color: var(--ink-mid); line-height: 1.5; max-width: 200px; }
.pipe-question {
  margin-top: 44px; font-family: var(--f-mono); font-size: clamp(15px, 1.4vw, 18px); color: var(--ink);
  padding-left: 18px; border-left: 2px solid var(--ring-red);
}

/* ============ CLOUD23 ============ */
.cloud23 { padding: 88px 0 92px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alliance { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.ally-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px 36px 40px; transition: transform .35s ease, border-color .35s ease; }
.ally-card:hover { transform: translateY(-5px); }
.ally-role { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); display: block; margin-bottom: 14px; }
.ally-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; margin: 14px 0 16px; }
.ally-logo-plate { background: #fff; border-radius: 12px; height: 64px; width: max-content; max-width: 100%; padding: 0 22px; display: flex; align-items: center; justify-content: flex-start; margin: 0 0 20px; box-shadow: 0 8px 24px -12px rgba(0,0,0,0.55); }
.ally-logo-plate img { height: 34px; width: auto; display: block; }
.ally-card p { color: var(--ink-mid); line-height: 1.6; }
.ally-card-th { background: linear-gradient(165deg, color-mix(in oklab, var(--red) 11%, var(--surface)), var(--surface) 62%); border-color: var(--line-strong); }
.ally-card-th:hover { border-color: var(--ring-red); }
.ally-card-th h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ally-join { display: grid; place-items: center; padding: 0 26px; }
.ally-join span { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--f-display); font-size: 24px; color: var(--ring-red); background: var(--bg); }
.independence { max-width: 820px; margin: 40px auto 0; text-align: center; font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); line-height: 1.35; letter-spacing: -0.01em; }
.alliance-tagline { text-align: center; margin-top: 34px; font-family: var(--f-mono); font-size: clamp(14px, 1.4vw, 17px); letter-spacing: .02em; color: var(--ink-mid); }
.ally-intro { color: var(--ink); font-weight: 500; line-height: 1.5; margin: 0 0 16px; font-size: 15px; }
.ally-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ally-chips li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--bg-2); }
.ally-chip-ic { display: inline-flex; width: 18px; height: 18px; color: var(--orange); flex: none; }
.ally-chip-ic svg { width: 18px; height: 18px; display: block; }
.ally-card-th .ally-chips li { border-color: rgba(245,43,43,0.26); color: var(--ink); }
.ally-card-th .ally-chip-ic { color: var(--ring-red); }

/* partnership benefits bar */
.ally-benefits { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-top: 22px; overflow: hidden; }
.ally-benefit { display: flex; align-items: center; gap: 16px; padding: 24px 26px; border-left: 1px solid var(--line); }
.ally-benefit:first-child { border-left: 0; }
.ally-benefit-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in oklab, var(--ring-red) 12%, transparent); color: var(--ring-red); }
.ally-benefit h4 { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 4px; }
.ally-benefit p { font-size: 13px; color: var(--ink-mid); line-height: 1.4; }
@media (max-width: 860px) {
  .ally-benefits { grid-template-columns: 1fr 1fr; }
  .ally-benefit:nth-child(3) { border-left: 0; }
  .ally-benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .ally-benefits { grid-template-columns: 1fr; }
  .ally-benefit { border-left: 0; border-top: 1px solid var(--line); }
  .ally-benefit:first-child { border-top: 0; }
}
.ally-card-th .ally-role { color: var(--ring-red); }

/* ---- Cloud23 partnership, rich layout ---- */
.section-head-center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.alliance-badge {
  display: flex; align-items: center; justify-content: center; gap: 11px; width: max-content; margin: 0 auto 36px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 20px; background: var(--surface);
  font-weight: 600; font-size: clamp(14px, 1.3vw, 16px); color: var(--ink);
}
.alliance-badge svg { width: 26px; height: 17px; color: var(--ring-red); flex: none; }

.alliance2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: stretch; position: relative; }
.ally2 {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 34px 36px; display: flex; flex-direction: column; transition: transform .35s ease, border-color .35s ease;
}
.ally2:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.ally2-proves { background: linear-gradient(160deg, color-mix(in oklab, var(--red) 12%, var(--surface)), var(--surface) 58%); border-color: var(--line-strong); }
.ally2-proves:hover { border-color: var(--ring-red); }
.ally2 .ally-role { display: block; margin-bottom: 18px; }
.ally2-proves .ally-role { color: var(--ring-red); }
.ally2-logo { margin-bottom: 22px; }
.ally2-logo .ally-logo-plate { margin: 0; }
.ally2-lede { color: var(--ink-mid); line-height: 1.6; font-size: 16px; margin-bottom: 26px; max-width: 38ch; }
.ally2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.ally2-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 12px 18px;
  transition: border-color .3s ease, transform .3s ease;
}
.ally2-tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.ally2-tile svg { width: 30px; height: 30px; color: var(--ring-red); }
.ally2-proves .ally2-tile svg { color: var(--orange); }
.ally2-tile span { font-size: 12.5px; line-height: 1.35; color: var(--ink-mid); }

.alliance2-node { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin-left: -43px; margin-top: -43px; z-index: 5; display: grid; place-items: center; padding: 0; }
.alliance2-node span {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--bg); border: 1px solid var(--ring-red); box-shadow: 0 0 0 6px color-mix(in oklab, var(--ring-red) 12%, transparent), 0 0 36px -6px rgba(245,43,43,0.5);
  font-family: var(--f-mono); font-size: 12px; line-height: 1.3; color: var(--ink);
}

.alliance2-foot {
  display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 22px;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 22px 28px; background: var(--surface);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1.9vw, 24px); letter-spacing: -0.01em; text-align: center;
}
.alliance2-foot svg { width: 26px; height: 26px; color: var(--ring-red); flex: none; }

/* ============ CLOSING ============ */
.closing { padding: var(--section-y) 0; text-align: center; position: relative; overflow: hidden; }
.closing-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.closing-kicker { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ring-red); margin-bottom: 22px; }
.closing-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; font-size: clamp(40px, 6vw, 80px); margin-bottom: 26px; }
.closing-sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-mid); max-width: 640px; margin: 0 auto 38px; line-height: 1.6; }
.closing-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 32px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-tag { font-family: var(--f-display); font-weight: 600; font-size: 19px; margin: 20px 0 8px; }
.footer-loc { font-size: 14px; color: var(--ink-dim); font-family: var(--f-mono); }
.logo-footer { margin-bottom: 4px; }
.footer-cols { display: flex; gap: 70px; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col-title { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim); margin-bottom: 6px; }
.footer-col a { color: var(--ink-mid); font-size: 15px; transition: color .2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; color: var(--ink-dim); }
.footer-mono { font-family: var(--f-mono); }

/* ============================================================
   Page-scoped vertical compression (Home) — .compact-page on <main>
   ============================================================ */
.compact-page .hero { min-height: auto; padding: 80px 0 40px; }
.compact-page .hero-cta { margin-top: 26px; }
.compact-page .hero-stats { margin-top: 30px; }
.compact-page .section-head { margin-bottom: clamp(16px, 2vw, 22px); }
.compact-page .problem { padding: 40px 0 44px; }
.compact-page .riskhides { padding: 40px 0; }
.compact-page .qvt { padding: clamp(32px, 3.4vw, 46px) 0; }
.compact-page .caps { padding: 40px 0 44px; }
.compact-page .caps-grid { gap: 14px; }
.compact-page .risk-grid { gap: 14px; }
.compact-page .pipeline { padding: clamp(32px, 3.4vw, 46px) 0; }
.compact-page .cloud23 { padding: 40px 0 44px; }
.compact-page .closing { padding: clamp(32px, 3.4vw, 46px) 0; }
/* card / block internals */
.compact-page .proofband-inner { padding: 30px 0; }
.compact-page .problem-intro { gap: 36px; }
.compact-page .pull { margin-top: 20px; }
.compact-page .risk-card { padding: 18px 20px 20px; }
.compact-page .risk-card::before { margin-bottom: 13px; }
.compact-page .risk-icon { margin-bottom: 11px; }
.compact-page .risk-card h3 { margin: 6px 0 9px; }
.compact-page .risk-card p { margin-bottom: 14px; }
.compact-page .risk-proves { padding-top: 12px; }
.compact-page .cap-card { padding: 18px 22px; }
.compact-page .cap-card-top { margin-bottom: 12px; min-height: 0; }
.compact-page .cap-card h3 { margin-bottom: 9px; }
.compact-page .cap-card p { margin-bottom: 14px; }
.compact-page .qvt-card { padding: 26px 28px 28px; }
.compact-page .qvt-card-top { margin-bottom: 18px; }
.compact-page .qvt-foot { margin-top: 26px; }
.compact-page .ally2 { padding: 24px 26px 26px; }
.compact-page .alliance2 { gap: 48px; }
.compact-page .alliance2-foot { margin-top: 14px; padding: 16px 24px; }
.compact-page .independence { margin-top: 26px; }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 1080px) {
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(3, 1fr); }
  .pipe-stage p { max-width: none; }
  .pipe-stage h3 { font-size: 17px; }
  .pipe-stage { padding-right: 14px; }
  .ally2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alliance2 { gap: 56px; }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .readiness-card { max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { justify-content: flex-start; gap: 60px; }
  .alliance { grid-template-columns: 1fr; gap: 18px; }
  .ally-join { padding: 6px 0; }
  .pull { font-size: 22px; }
  .problem-intro { grid-template-columns: 1fr; gap: 36px; }
  .problem-copy, .problem-copy .section-sub, .problem-copy .section-title, .pull { max-width: none; }
  .proofband-inner { grid-template-columns: 1fr; gap: 26px; padding: 32px 0; }
  .proofband-lead { padding-right: 0; border-right: none; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .alliance2 { grid-template-columns: 1fr; gap: 18px; }
  .alliance2-node { position: static; left: auto; top: auto; width: auto; height: auto; margin: 0 auto; padding: 4px 0; }
  .alliance2-node span { width: 76px; height: 76px; }
}
@media (max-width: 720px) {
  /* QvT: stack the two cards only on real mobile */
  .qvt-grid { grid-template-columns: 1fr; gap: 22px; }
  .qvt-bridge { flex-direction: row; padding: 4px 0; }
  .qvt-bridge-line { height: 1px; width: auto; flex: 1; background: var(--line-strong); }
  .qvt-bridge-line:last-child { background: var(--line-strong); }
  .qvt-bridge-node { margin: 0 14px; }
  /* Pipeline: clean vertical timeline (line down the left) */
  .pipe-track { grid-template-columns: 1fr; gap: 0; }
  .pipe-track::before { left: 21px; right: auto; top: 6px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, var(--orange), var(--ring-red), var(--red)); }
  .pipe-stage { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; column-gap: 18px; padding: 0 0 30px 0; align-items: start; }
  .pipe-node { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .pipe-step { grid-column: 2; grid-row: 1; align-self: center; }
  .pipe-stage h3 { grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 19px; }
  .pipe-stage p { grid-column: 2; grid-row: 3; max-width: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .header-actions .btn-sm { display: none; }
  .hero { padding-top: 110px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .footer-cols { flex-direction: column; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .caps-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .proofband-stats { grid-template-columns: 1fr; gap: 18px; }
  .pb-stat { padding: 0 0 18px; border-left: 0; border-bottom: 1px solid var(--line); }
  .pb-stat:last-child { padding-bottom: 0; border-bottom: 0; }
  .closing-cta { flex-direction: column; align-items: stretch; }
  .ally2-tiles { grid-template-columns: repeat(2, 1fr); }
  .ally2-lede { max-width: none; }
  .alliance2-foot { flex-direction: column; gap: 10px; font-size: 18px; padding: 22px 20px; }
}

/* ============ GLOBAL RESPONSIVE SPACING RHYTHM ============ */
@media (max-width: 920px) {
  .cloud23 { padding: 64px 0 68px; }
  .riskhides { padding: 64px 0; }
  .problem { padding: 64px 0 28px; }
  .caps { padding: 64px 0 24px; }
  .qvt-foot, .independence { margin-top: 36px; }
  .pipe-question { margin-top: 36px; }
}
@media (max-width: 560px) {
  .cloud23 { padding: 52px 0 54px; }
  .riskhides { padding: 52px 0; }
  .problem { padding: 52px 0 22px; }
  .caps { padding: 52px 0 20px; }
  .qvt-foot, .independence { margin-top: 30px; }
  .pipe-question { margin-top: 30px; }
  .site-footer { padding-top: 48px; }
  .footer-inner { padding-bottom: 32px; }
}
