/* Redaccel — The Answer Layer, v3
   Dark ambient system: near-black field, glow fields, grid hairlines, grain.
   Tokens: Field #0A0B10 · Panel #12141C · Ink #EDEFF5 · Accel Red #F0654A · Ledger Blue #8DA2F5 */

@import url('fonts.css');

:root {
  color-scheme: dark;
  --ink: #EDEFF5;
  --ink-soft: #BDC4D4;
  --muted: #8A93A8;
  --field: #0A0B10;
  --panel: #12141C;
  --panel-up: #181B26;
  --red: #F0654A;
  --red-deep: #C8371E;
  --red-wash: rgba(240, 101, 74, 0.14);
  --blue: #8DA2F5;
  --line: #232734;
  --line-soft: #1A1D28;
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --measure: 44rem;
  --shell: 74rem;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--field);
  position: relative;
  overflow-x: hidden;
}

/* Ambient light fields — the room the site lives in */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 82% -6%, rgba(240, 101, 74, 0.075), transparent 62%),
    radial-gradient(44rem 30rem at -8% 12%, rgba(141, 162, 245, 0.055), transparent 60%),
    radial-gradient(60rem 42rem at 50% 118%, rgba(240, 101, 74, 0.04), transparent 65%);
}
/* Grain — kills the flat plastic look */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(240, 101, 74, 0.32); color: #fff; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s var(--ease); }
a:hover { color: #FF8A70; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #fff;
}
h1 { font-size: clamp(2.3rem, 5.8vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.15rem); font-weight: 650; margin: 3.4rem 0 1.1rem; }
h3 { font-size: 1.17rem; font-weight: 650; margin: 1.8rem 0 0.5rem; }

/* Gradient headline treatment — white fading to smoke */
.grad-text {
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(237, 239, 245, 0.55));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

p, ul, ol { margin-bottom: 1.15rem; max-width: var(--measure); color: var(--ink-soft); }
li { margin-bottom: 0.4rem; margin-left: 1.2rem; }
strong { font-weight: 600; color: #fff; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 1.4rem; }

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

.site-header {
  background: rgba(10, 11, 16, 0.6);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 20;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 11, 16, 0.82);
  border-bottom-color: var(--line-soft);
}
.site-header .shell {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.2rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
}
.wordmark .dot { color: var(--red); }
.wordmark-icon { flex-shrink: 0; }
.wordmark-icon path { stroke: var(--red); }
.site-nav { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft); text-decoration: none; transition: color .18s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover,
.site-nav a.btn-primary[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; }

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

.btn {
  display: inline-block; font-family: var(--display); font-weight: 650;
  font-size: 0.98rem; text-decoration: none; border-radius: 10px;
  padding: 0.68rem 1.3rem; border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, #E4552F 0%, #C8371E 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 30px -12px rgba(200, 55, 30, 0.7);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 14px 36px -12px rgba(220, 70, 40, 0.85);
}
/* shine sweep */
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-quiet { background: rgba(255, 255, 255, 0.03); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--muted); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.06rem; border-radius: 12px; }

@media (max-width: 760px) {
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 10px; padding: 0.45rem 0.75rem; font-family: var(--mono);
    font-size: 0.85rem; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: 0.9rem; padding: 0.9rem 0 0.7rem; border-top: 1px solid var(--line-soft); margin-left: 0;
  }
  .site-nav.open { display: flex; }
}

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

.kicker {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); display: block; margin-bottom: 1rem;
}
.kicker::before { content: '— '; color: var(--line); }
.crumbs { font-family: var(--mono); font-size: 0.78rem; margin: 1.7rem 0 0; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.dateline {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  margin: 1.1rem 0 0; display: block;
}
.dateline .flag { color: var(--red); }

/* ---------- signature: the extract block ---------- */

.extract {
  background: linear-gradient(180deg, rgba(24, 27, 38, 0.85), rgba(18, 20, 28, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.9rem 1.6rem; margin: 2.2rem 0 2.8rem; max-width: 54rem;
  position: relative; overflow: hidden;
}
.extract::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red), rgba(240, 101, 74, 0.15));
}
.extract::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(28rem 10rem at 15% 0%, rgba(240, 101, 74, 0.07), transparent 70%);
}
.extract-chip {
  display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.extract-chip .tag { color: var(--red); font-weight: 700; }
.extract p { font-size: 1.16rem; line-height: 1.66; max-width: none; margin-bottom: 0.8rem; position: relative; color: var(--ink); }
.extract p:last-child { margin-bottom: 0; }
mark {
  background: linear-gradient(transparent 6%, var(--red-wash) 6%, var(--red-wash) 94%, transparent 94%);
  color: #fff; padding: 0 0.1em;
}

/* ---------- inline citations & sources ---------- */

sup.cite { line-height: 0; }
sup.cite a {
  font-family: var(--mono); font-size: 0.72em; color: var(--blue);
  text-decoration: none; padding: 0 0.1em;
}
sup.cite a:hover { color: #fff; text-decoration: underline; }
.sources { border-top: 1px solid var(--line); margin-top: 3.4rem; padding-top: 1.4rem; max-width: 54rem; }
.sources summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); user-select: none;
  transition: color .18s var(--ease);
}
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: '+'; color: var(--red); font-size: 0.95rem; line-height: 1; }
.sources[open] summary::before { content: '−'; }
.sources summary:hover { color: var(--ink); }
.sources[open] summary { margin-bottom: 0.9rem; }
.sources ol { font-size: 0.89rem; color: var(--ink-soft); }
.sources li { margin-left: 1.4rem; }
.sources a { color: var(--blue); word-break: break-word; }

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

.hero { padding: 5.2rem 0 5rem; position: relative; }
.hero-center { text-align: center; max-width: 56rem; margin: 0 auto; }
.hero-center .kicker { display: inline-block; }
.hero-center h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.14; text-wrap: nowrap; }
.hero-center .h1-line { white-space: nowrap; }
@media (max-width: 900px) {
  .hero-center h1 { text-wrap: balance; }
  .hero-center .h1-line { white-space: normal; }
  .hero-center h1 br { display: none; }
}
.hero-center p.lede { margin-left: auto; margin-right: auto; max-width: 38rem; }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin: 2.1rem 0 0; }
.hero-center .small { margin: 1.1rem auto 0; }
.hero-center .trust-row { margin-top: 1.9rem; }
.panel-stage { max-width: 44rem; margin: 3.6rem auto 0; }
.engine-row { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 1.3rem 0 0; max-width: none; }
.engine-row span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 0.28rem 0.75rem; background: rgba(255, 255, 255, 0.015);
}
/* glowing grid hairlines behind the hero */
.hero::before {
  content: ''; position: absolute; inset: -4rem 0 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(141, 162, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 162, 245, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(52rem 30rem at 50% 12%, #000 25%, transparent 72%);
  mask-image: radial-gradient(52rem 30rem at 50% 12%, #000 25%, transparent 72%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 3.6rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; } }
.hero p.lede { font-size: 1.21rem; margin-top: 1.4rem; color: var(--ink-soft); }
.hero p.lede strong { color: #fff; }
.trust-row {
  display: flex; align-items: baseline; justify-content: center; gap: 1.6rem;
  flex-wrap: wrap; margin-top: 2rem; max-width: none;
}
.trust-row .trust-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.trust-row b {
  font-family: var(--display); font-weight: 650; font-size: 1.02rem;
  color: rgba(237, 239, 245, 0.72); letter-spacing: 0.01em;
}

/* staged product panel: slight 3D presentation that settles on hover */
.panel-stage { perspective: 1400px; }
.panel-stage .answer-panel {
  transform: rotateX(5deg) scale(0.995);
  transform-origin: 50% 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.panel-stage:hover .answer-panel { transform: none; }

/* centered section header */
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.8rem; }
.section-head .kicker { display: inline-block; }
.section-head h2 { margin: 0 0 0.9rem; }
.section-head p { margin: 0 auto; max-width: 40rem; }
.section-head .links { margin-top: 0.7rem; font-size: 0.92rem; }
.section-tail { text-align: center; margin: 1.8rem auto 0; max-width: none; }

/* client proof cards */
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 0 0 1.4rem; }
@media (max-width: 860px) { .client-grid { grid-template-columns: 1fr; } }
.client {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem; text-align: left;
  background: linear-gradient(180deg, rgba(24, 27, 38, 0.6), rgba(18, 20, 28, 0.6));
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.client:hover { border-color: #333A4E; transform: translateY(-2px); }
.client b {
  display: block; font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  color: #fff; letter-spacing: -0.01em;
}
.client .cat {
  display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); margin: 0.3rem 0 0.7rem;
}
.client p { margin: 0; font-size: 0.92rem; color: var(--muted); max-width: none; }

/* ---------- AI answer panel ---------- */

.answer-panel {
  background: linear-gradient(180deg, #191C27, #12141C);
  color: #E8EBF2; border: 1px solid #2B3040; border-radius: 16px;
  padding: 0; font-size: 0.95rem; line-height: 1.65; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 70px -30px rgba(0, 0, 0, 0.85),
    0 0 80px -40px rgba(240, 101, 74, 0.35);
}
.answer-panel .query {
  font-family: var(--mono); font-size: 0.82rem; color: #AEB6C8;
  background: rgba(10, 11, 16, 0.55);
  border-bottom: 1px solid #262B3A; padding: 0.95rem 1.5rem;
  display: flex; align-items: center; gap: 0.25rem;
}
.answer-panel .query::before { content: '›'; color: var(--red); margin-right: .35rem; }
.answer-panel .query .caret {
  display: inline-block; width: 7px; height: 1.05em; margin-left: 2px;
  background: var(--red); vertical-align: text-bottom;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.answer-panel .answer-body { padding: 1.25rem 1.5rem 1.45rem; }
.answer-panel p { max-width: none; margin-bottom: 0.8rem; }
.answer-panel .brand-hit { color: #fff; font-weight: 600; border-bottom: 2px solid var(--red); }
.answer-panel .src-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.answer-panel .src {
  font-family: var(--mono); font-size: 0.72rem; color: #B8C0D0;
  border: 1px solid #333A4E; border-radius: 999px; padding: 0.26rem 0.72rem;
  background: rgba(255, 255, 255, 0.02);
}
.answer-panel .src b { color: #fff; font-weight: 600; }
.answer-caption {
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
  margin-top: 1rem; max-width: none; line-height: 1.55;
}

/* ---------- marquee: the citation surface ---------- */

.marquee-band {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 1.05rem 0; overflow: hidden; position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 8rem; z-index: 2; pointer-events: none;
}
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--field), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(270deg, var(--field), transparent); }
.marquee { display: flex; width: max-content; gap: 2.6rem; animation: marquee 46s linear infinite; }
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee span {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.marquee span b { color: var(--ink-soft); font-weight: 500; }
.marquee .sep { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections & bento cards ---------- */

.section { padding: 4.6rem 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, rgba(18, 20, 28, 0.55), rgba(18, 20, 28, 0.25));
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 2rem 0; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, rgba(24, 27, 38, 0.7), rgba(18, 20, 28, 0.7));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* cursor-tracked spotlight */
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(14rem 14rem at var(--mx, 50%) var(--my, 50%), rgba(240, 101, 74, 0.09), transparent 65%);
  transition: opacity .3s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: #333A4E; transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.8); }
.card-featured { border-color: rgba(240, 101, 74, 0.55); }
.card-featured:hover { border-color: var(--red); }
.card-featured::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(20rem 8rem at 50% 0%, rgba(240, 101, 74, 0.18), transparent 70%);
}
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card ul { font-size: 0.94rem; margin-bottom: 0; color: var(--ink-soft); list-style: none; }
.card li { margin-left: 0; padding-left: 1.05rem; position: relative; }
.card li::before { content: '—'; position: absolute; left: 0; color: var(--red); opacity: 0.7; }
.card .card-cta { margin-top: auto; padding-top: 1.15rem; margin-bottom: 0; }
.card-flag {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--red); margin-bottom: 0.55rem;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto; margin: 1.7rem 0 2.1rem; max-width: 60rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 27, 38, 0.5), rgba(18, 20, 28, 0.5));
}
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; min-width: 34rem; }
caption {
  text-align: left; font-family: var(--mono); font-size: 0.73rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  padding: 0.95rem 1.15rem 0.6rem;
}
th, td { padding: 0.78rem 1.15rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
thead th {
  font-family: var(--display); font-weight: 650; font-size: 0.88rem;
  color: var(--ink); background: rgba(10, 11, 16, 0.5);
  border-top: 1px solid var(--line);
}
tbody tr { transition: background .18s var(--ease); }
tbody tr:hover { background: rgba(240, 101, 74, 0.03); }
td { color: var(--ink-soft); }
td strong { color: #fff; }
td .num, td.num { font-family: var(--mono); font-size: 0.86rem; color: var(--ink); }

/* ---------- process timeline ---------- */

.steps { list-style: none; margin: 2.4rem auto 0.5rem; max-width: 44rem; counter-reset: step; }
.steps li { margin: 0; padding: 0 0 2rem 3.6rem; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -0.15rem;
  width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.78rem; color: var(--red);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.steps li::after {
  content: ''; position: absolute; left: 1.2rem; top: 2.6rem; bottom: 0.3rem; width: 1px;
  background: linear-gradient(180deg, var(--line), transparent);
}
.steps li:last-child { padding-bottom: 0.4rem; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 0.25rem; font-size: 1.04rem; }
.steps .when { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-left: 0.6rem; letter-spacing: 0.05em; }
.steps p { margin: 0; font-size: 0.95rem; max-width: 40rem; }

/* ---------- closing CTA panel ---------- */

.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line); border-radius: 22px;
  padding: 4rem 2rem 4.2rem; margin: 4.8rem 0 0;
  background: linear-gradient(180deg, rgba(24, 27, 38, 0.75), rgba(14, 16, 23, 0.9));
}
.cta-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(34rem 16rem at 50% -20%, rgba(240, 101, 74, 0.16), transparent 70%);
}
.cta-panel::after {
  content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 101, 74, 0.6), transparent);
}
.cta-panel h2 { margin: 0 0 0.9rem; font-size: clamp(1.9rem, 4.2vw, 2.8rem); position: relative; }
.cta-panel p { margin: 0 auto 1.8rem; max-width: 33rem; position: relative; }
.cta-panel .btn { position: relative; }
.cta-panel .small { margin-top: 1.1rem; }

/* ---------- FAQ accordions ---------- */

.faq-list { max-width: var(--measure); margin: 1.6rem 0; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.7rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 27, 38, 0.6), rgba(18, 20, 28, 0.6));
  transition: border-color .2s var(--ease);
}
.faq-item:hover { border-color: #333A4E; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  font-family: var(--display); font-weight: 600; font-size: 0.99rem; color: #fff;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--mono); color: var(--red); font-size: 1.05rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 1.25rem 1.05rem; font-size: 0.95rem; color: var(--ink-soft); }
.faq-item .faq-a p { margin-bottom: 0.6rem; max-width: none; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- read more ---------- */

details.more { margin: -0.4rem 0 1.15rem; max-width: var(--measure); }
details.more > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--display); font-size: 0.9rem; font-weight: 600; color: var(--red);
  user-select: none; transition: color .18s var(--ease);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; font-family: var(--mono); font-size: 0.95rem; }
details.more[open] > summary::after { content: '−'; }
details.more > summary:hover { color: #FF8A70; }
details.more[open] > summary { margin-bottom: 0.7rem; }
details.more p:last-child { margin-bottom: 0; }

/* ---------- article TOC + reading progress ---------- */

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 40;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
}
.toc { display: none; }
@media (min-width: 1460px) {
  .toc {
    display: block; position: fixed; right: 2rem; top: 9rem; width: 13rem; z-index: 5;
  }
  .toc h2 {
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); margin: 0 0 0.7rem; font-weight: 400;
  }
  .toc ul { list-style: none; margin: 0; border-left: 1px solid var(--line-soft); }
  .toc li { margin: 0; padding: 0; }
  .toc a {
    display: block; padding: 0.28rem 0 0.28rem 0.9rem; margin-left: -1px;
    font-family: var(--display); font-size: 0.82rem; color: var(--muted);
    text-decoration: none; border-left: 1px solid transparent;
    transition: color .18s var(--ease), border-color .18s var(--ease);
  }
  .toc a:hover { color: var(--ink); }
  .toc a.active { color: var(--red); border-left-color: var(--red); }
}

/* ---------- stats strip ---------- */

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin: 2.6rem 0 0.5rem; }
@media (max-width: 860px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.2rem;
  background: linear-gradient(180deg, rgba(24, 27, 38, 0.6), rgba(18, 20, 28, 0.6));
  position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 55%; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.stat b {
  font-family: var(--display); font-weight: 700; font-size: 2.2rem; display: block;
  letter-spacing: -0.03em; color: #fff; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.85rem; color: var(--muted); line-height: 1.5; display: block; margin-top: 0.3rem; }

/* ---------- article layout ---------- */

.article { padding-bottom: 3.5rem; }
.article > .shell { max-width: 62rem; }
.article > .shell > h1 { margin-top: 2rem; max-width: 54rem; }
.faq dt { font-family: var(--display); font-weight: 650; font-size: 1.05rem; margin-top: 1.5rem; color: #fff; }
.faq dd { margin: 0.45rem 0 0; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- forms ---------- */

.audit-form { max-width: 34rem; margin: 1.9rem 0; }
.audit-form label {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 0.94rem; margin: 1.25rem 0 0.4rem; color: #fff;
}
.audit-form label small { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 0.74rem; }
.audit-form input, .audit-form textarea, .audit-form select {
  width: 100%; padding: 0.75rem 0.95rem; font-family: var(--serif); font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(18, 20, 28, 0.8); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.audit-form input:hover { border-color: #333A4E; }
.audit-form input:focus, .audit-form textarea:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(141, 162, 245, 0.18);
}
.audit-form button { margin-top: 1.6rem; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; }
.form-status { font-family: var(--mono); font-size: 0.88rem; margin-top: 1rem; display: none; }
.form-status.ok { display: block; color: #52C98B; }
.form-status.err { display: block; color: var(--red); }

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

.site-footer {
  background: #08090D; color: #B8C0D0; margin-top: 5rem; font-size: 0.92rem;
  border-top: 1px solid var(--line-soft); position: relative;
}
/* glowing hairline across the footer seam */
.site-footer::before {
  content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 101, 74, 0.5), transparent);
}
.site-footer .shell { padding-top: 3.2rem; padding-bottom: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: 0.76rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #6E7890; margin: 0 0 0.95rem; font-weight: 400; }
.site-footer a { color: #DDE2EE; text-decoration: none; transition: color .18s var(--ease); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-left: 0; margin-bottom: 0.5rem; }
.site-footer .wordmark { color: #fff; }
.footer-meta { border-top: 1px solid #191D28; margin-top: 2.5rem; padding-top: 1.5rem; font-family: var(--mono); font-size: 0.75rem; color: #6E7890; display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* ---------- reveal on scroll (JS adds .js on <html>; no-JS sees everything) ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ---------- utilities ---------- */

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red-deep); color: #fff;
  padding: 0.6rem 1rem; z-index: 30; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
.cta-band { text-align: left; }
.cta-band .btn { margin-top: 0.4rem; }
.small { font-size: 0.88rem; color: var(--muted); }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.8rem 0; }

/* custom scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--field); }
::-webkit-scrollbar-thumb { background: #232734; border-radius: 8px; border: 3px solid var(--field); }
::-webkit-scrollbar-thumb:hover { background: #333A4E; }

/* ---------- reduced motion: everything calm, nothing lost ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; }
  .answer-panel .query .caret { animation: none; }
}
