/* ============================================================
   AuctusAI / CS Pulse — Marketing Site
   Design language: dark "control room" bookends (hero + closing
   CTA/footer) around a light, card-based body — signal telemetry
   framing a clean, spacious enterprise read.
   ============================================================ */

:root {
  /* --- Dark tokens (hero, CTA, footer) --- */
  --bg: #0B0D10;
  --bg-alt: #101318;
  --panel: #171B21;
  --panel-raised: #1D222A;
  --border: #333B47;
  --border-bright: #4A5566;

  --text: #EDEEF0;
  --text-dim: #9099A6;
  --text-faint: #5A6270;

  --signal: #FF8A3D;      /* amber — alert / detection */
  --signal-dim: #7A4A26;
  --resolve: #4FD8C4;     /* cyan — health / outcome */
  --resolve-dim: #2A5D55;
  --danger: #FF5C5C;

  /* --- Light tokens (body sections + nav) — warm paper, not cool grey --- */
  --lt-bg: #FFFFFF;
  --lt-bg-alt: #F3F2ED;
  --lt-card: #FFFFFF;
  --lt-border: rgba(20,17,10,0.07);
  --lt-border-strong: rgba(20,17,10,0.14);
  --lt-text: #101114;
  --lt-text-dim: #5B6270;
  --lt-text-faint: #8A909C;
  --lt-shadow: 0 1px 2px rgba(20,17,10,0.03), 0 10px 28px rgba(20,17,10,0.05);
  --lt-shadow-hover: 0 4px 12px rgba(20,17,10,0.05), 0 24px 44px rgba(20,17,10,0.09);

  --signal-ink: #B85E1E;  /* amber, darkened for AA contrast on white */
  --resolve-ink: #1D7A6C; /* cyan, darkened for AA contrast on white */

  /* Colorful dark-section background — layered radial blends (not one linear sweep,
     which would muddy orange/teal into brown-grey in the middle) over a warm-black base. */
  --bg-colorful:
    radial-gradient(ellipse 85% 65% at 12% 8%, rgba(255,138,61,0.65), transparent 60%),
    radial-gradient(ellipse 90% 75% at 92% 100%, rgba(79,216,196,0.6), transparent 62%),
    radial-gradient(ellipse 60% 70% at 55% 45%, rgba(255,178,122,0.28), transparent 70%),
    radial-gradient(ellipse 70% 60% at 25% 100%, rgba(45,180,160,0.3), transparent 65%),
    #150F0B;

  /* --- Type --- */
  --font-display: 'Plus Jakarta Sans', 'Arial', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --radius: 12px;
  --radius-card: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--lt-bg);
  color: var(--lt-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.03;
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
}

p { margin: 0 0 1em; color: var(--lt-text-dim); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--signal-ink);
  background: rgba(184,94,30,0.09);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
}
.eyebrow.resolve { color: var(--resolve-ink); background: rgba(29,122,108,0.09); }
.eyebrow.resolve::before { background: var(--resolve); }

.hero .eyebrow, .cta-panel .eyebrow { color: var(--signal); background: rgba(255,138,61,0.14); }
.hero .eyebrow.resolve, .cta-panel .eyebrow.resolve { color: var(--resolve); background: rgba(79,216,196,0.14); }

.section {
  padding: 100px 0;
  background: var(--lt-bg);
  border-bottom: 1px solid var(--lt-border);
  position: relative;
  z-index: 1;
}
.section:nth-of-type(even) {
  background: var(--lt-bg-alt);
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: #17110A;
  font-weight: 600;
}
.btn-primary:hover { background: #FFA05E; }
.btn-ghost {
  border-color: var(--border-bright);
  color: var(--text);
  background: transparent;
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--resolve); color: var(--resolve); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lt-border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lt-text);
}
.brand-mark {
  width: 17px; height: 26px;
  display: block;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--lt-text-dim);
}
.nav-links a:hover { color: var(--lt-text); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn-ghost {
  border-color: var(--lt-border-strong);
  color: var(--lt-text);
}
.nav-cta .btn-ghost:hover { border-color: var(--resolve-ink); color: var(--resolve-ink); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links:not(.nav-cta) { display: none; }
  .nav .btn-ghost { display: none; }
}

/* --- Hero --- */
.hero {
  padding: 88px 0 96px;
  background: var(--bg-colorful);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero p { color: var(--text-dim); }
.hero .wrap { position: relative; z-index: 2; }
/* The right column carries the hero demo, and it was the NARROWEST of the four
   slots on the page (507px at any desktop width, against 534-760 for the rest)
   — the flagship clip, rendered smallest. Chrome's control bar is a fixed
   63-72 CSS px including the scrim above the buttons (measured, by diffing a
   playing frame against the same frame paused), whatever size the slot is; so
   the smaller the slot, the larger the share of the clip it covers. Giving the
   demo column the larger share and a tighter gap takes it to 583px, where the
   bar tops out at row 580 of the 720 and the burnt-in caption ends at 548. */
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}
.hero-grid > div { min-width: 0; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 22px;
}
.hero h1 .dim { color: var(--text-faint); }
.hero-lede {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-trust {
  font-size: 13px;
  color: var(--text-faint);
  max-width: 460px;
  margin: 0 0 4px;
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-proof div { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.hero-proof .num { font-size: 22px; font-weight: 700; color: var(--resolve); display: block; }
.hero-proof .lbl { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Signal chain signature graphic --- */
.chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 8px 0 28px;
}
.chain-node {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--text-dim);
}
.chain-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  margin: 0 auto 9px;
  border: 1px solid var(--border-bright);
  background: var(--panel);
}
.chain-node.active .chain-dot { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.chain-node.done .chain-dot { border-color: var(--resolve); background: var(--resolve); box-shadow: 0 0 12px var(--resolve); }
.chain-line {
  height: 1px;
  width: 64px;
  background: linear-gradient(to right, var(--border-bright), var(--border-bright));
  position: relative;
  overflow: hidden;
  margin: 0 4px 26px;
}
.chain-line::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(to right, transparent, var(--signal), transparent);
  animation: travel 2.6s linear infinite;
}
@keyframes travel {
  0% { left: -40%; }
  100% { left: 100%; }
}

.chain-line--loop {
  background: repeating-linear-gradient(to right, var(--resolve-dim) 0 4px, transparent 4px 8px);
}
.chain-line--loop::after { display: none; }
.chain-node.loop {
  color: var(--resolve);
  max-width: 78px;
  line-height: 1.4;
}
.chain-node.loop .chain-dot {
  border-color: var(--resolve);
  background: transparent;
}
.chain-node.loop::before {
  content: "↻";
  display: block;
  font-size: 13px;
  color: var(--resolve);
  margin-bottom: 2px;
  animation: spin-slow 3s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.chain-caption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--text-faint);
  margin: -14px 0 0;
}

/* --- Demo video slot (placeholder-first, progressive enhancement) --- */
.demo-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 120% 90% at 30% 20%, rgba(255,138,61,0.14), transparent 55%),
    radial-gradient(ellipse 100% 80% at 80% 90%, rgba(79,216,196,0.10), transparent 55%),
    var(--panel-raised);
  overflow: hidden;
}
.demo-slot video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.demo-slot.has-video video { display: block; }
.demo-slot.has-video .demo-slot__placeholder { display: none; }

/* A real clip is 16:9 with burned-in captions along the bottom. `cover` would
   crop those captions off in the 16:10 compact slots, so once a video is
   actually loaded the slot takes the clip's own ratio and nothing is cut. */
.demo-slot.has-video { aspect-ratio: 16 / 9; }
.demo-slot.has-video video { object-fit: contain; background: #05070C; }

.demo-slot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.demo-slot__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.demo-slot__rec {
  display: flex; align-items: center; gap: 6px;
  color: var(--signal);
}
.demo-slot__rec::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

.demo-slot__center {
  margin: auto;
  text-align: center;
  max-width: 380px;
}
.demo-slot__play {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--signal), #ffb37a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #17110A;
  box-shadow: 0 8px 24px rgba(255,138,61,0.35);
  font-size: 18px;
}
.demo-slot__title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}
.demo-slot__brief {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.5;
  margin: 0;
}
.demo-slot__file {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.demo-slot__file code { color: var(--resolve); }

.demo-slot--compact { aspect-ratio: 16/10; }
.demo-slot--compact .demo-slot__title { font-size: 15px; }
.demo-slot--compact .demo-slot__brief { font-size: 12px; }

/* --- Verticals strip --- */
.strip {
  border-bottom: 1px solid var(--lt-border);
  background: var(--lt-bg);
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.strip-item {
  flex: 1 1 150px;
  padding: 22px 18px;
  border-right: 1px solid var(--lt-border);
  font-family: var(--font-display);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lt-text-dim);
  text-align: center;
}
.strip-item:last-child { border-right: none; }

/* --- Narrative (scenario) cards --- */
.narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .narrative-grid { grid-template-columns: 1fr; }
}
.narrative-card {
  background: var(--lt-card);
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  box-shadow: var(--lt-shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.narrative-card:hover {
  box-shadow: var(--lt-shadow-hover);
  transform: translateY(-2px);
}
.narrative-tag {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lt-text-faint);
  margin-bottom: 14px;
}
.narrative-card h3 { font-size: 21px; margin-bottom: 10px; }
.narrative-figure {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 26px;
  color: var(--signal-ink);
  margin-bottom: 14px;
}
.narrative-card p { font-size: 14.5px; }
.narrative-outcome {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--lt-border);
  font-size: 13.5px;
}
.narrative-outcome .label {
  font-family: var(--font-display);
  color: var(--resolve-ink);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.narrative-more {
  text-align: center;
  padding: 22px;
  font-size: 14px;
  color: var(--lt-text-faint);
  border: 1px dashed var(--lt-border-strong);
  border-radius: var(--radius-card);
  margin-top: 20px;
}

/* --- Process (Watch/Detect/Act/Achieve/Prove/Learn) --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
@media (max-width: 1180px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}
.process-card {
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  box-shadow: var(--lt-shadow);
  padding: 24px 20px;
  background: var(--lt-card);
  transition: box-shadow .2s ease, transform .2s ease;
}
.process-card:hover {
  box-shadow: var(--lt-shadow-hover);
  transform: translateY(-2px);
}
.process-num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--signal-ink);
  margin-bottom: 18px;
}
.process-card h3 { font-size: 18px; margin-bottom: 8px; }
.process-card p { font-size: 13.5px; margin-bottom: 0; }
.process-card--loop {
  border-color: var(--resolve-ink);
  background: linear-gradient(180deg, rgba(29,122,108,0.06), var(--lt-card) 65%);
}
.process-card--loop .process-num { color: var(--resolve-ink); }

/* --- Playbooks list --- */
.playbook-list {
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  box-shadow: var(--lt-shadow);
  overflow: hidden;
}
.playbook-row {
  display: grid;
  grid-template-columns: 90px 1.4fr 1.6fr;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--lt-border);
  align-items: center;
  background: var(--lt-card);
}
.playbook-row:last-child { border-bottom: none; }
.playbook-row:nth-child(odd) { background: var(--lt-bg-alt); }
@media (max-width: 720px) {
  .playbook-row { grid-template-columns: 1fr; gap: 6px; }
}
.playbook-time {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
  color: var(--resolve-ink);
}
.playbook-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.playbook-trigger { font-size: 13px; color: var(--lt-text-faint); margin: 0; }
.playbook-trigger b { color: var(--lt-text-dim); font-weight: 500; }

/* --- Two column with demo slot ---
   Same reasoning as .hero-grid: the media column holds a clip whose burnt-in
   caption has to stay clear of Chrome's fixed-height control bar, so it gets
   the larger share and a tighter gap. 1fr/1fr put this slot at 454px on a
   1024-wide window, where the bar reached the subline; it is 499px there now. */
.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}
/* Collapse at the same width .hero-grid does: between 881 and 940 the two-up
   split left the clip at ~432px, narrow enough for the control bar to crowd the
   caption again. */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
}
.split.reverse .split-media { order: -1; }
@media (min-width: 941px) {
  .split.reverse .split-media { order: 2; }
}
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-list li {
  padding: 12px 0;
  border-top: 1px solid var(--lt-border);
  font-size: 14.5px;
  color: var(--lt-text-dim);
  display: flex;
  gap: 10px;
}
.feature-list li::before { content: "→"; color: var(--signal-ink); flex-shrink: 0; }

/* --- Verticals grid --- */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 780px) { .vertical-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .vertical-grid { grid-template-columns: 1fr; } }
.vertical-card {
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  background: var(--lt-card);
  box-shadow: var(--lt-shadow);
  padding: 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.vertical-card:hover { box-shadow: var(--lt-shadow-hover); transform: translateY(-2px); }
.vertical-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.vertical-card p { font-size: 13px; margin-bottom: 12px; }
.vertical-kpis {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.vertical-kpis span {
  font-family: var(--font-display);
  font-size: 10.5px;
  color: var(--lt-text-faint);
  border: 1px solid var(--lt-border-strong);
  border-radius: 20px;
  padding: 3px 9px;
}

/* --- Trust / security grid --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 780px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  background: var(--lt-card);
  box-shadow: var(--lt-shadow);
  padding: 22px;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}
.trust-card:hover { box-shadow: var(--lt-shadow-hover); transform: translateY(-2px); }
.trust-status {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-display);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  color: var(--resolve-ink);
  border: 1px solid var(--resolve-ink);
}
.trust-status.soon {
  color: var(--lt-text-faint);
  border-color: var(--lt-border-strong);
}
.trust-card h4 { font-size: 15px; margin: 6px 0 6px; padding-right: 70px; }
.trust-card p { font-size: 13px; margin: 0; }

/* --- About / founder --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.cred-list {
  display: grid;
  gap: 1px;
  background: var(--lt-border);
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--lt-shadow);
  margin-top: 24px;
}
.cred-row { background: var(--lt-card); padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.cred-co { font-family: var(--font-display); font-size: 15px; }
.cred-detail { font-size: 12.5px; color: var(--lt-text-faint); text-align: right; }

/* --- Final CTA --- */
.section.cta-section {
  border-bottom: none;
  padding-bottom: 110px;
  background: var(--bg-colorful);
  color: var(--text);
}
.cta-section p { color: var(--text-dim); }
.cta-panel {
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,138,61,0.06), transparent 60%);
}
.cta-panel h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 640px; margin: 0 auto 16px; }
.cta-panel p { max-width: 520px; margin: 0 auto 32px; }
.cta-panel .btn-row { justify-content: center; }

/* --- Footer --- */
footer {
  padding: 56px 0 40px;
  background: var(--bg-colorful);
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 13.5px; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 5px 0;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* --- misc --- */
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

/* ============================================================
   MARKETING ENHANCEMENTS (v2) — depth, motion, life.
   Additive layer. Fully gated by prefers-reduced-motion.
   ============================================================ */

/* Ambient hero glow — the system "watching" */
.hero::before {
  content: "";
  position: absolute;
  inset: -25% -12% -30% -12%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38% 52% at 16% 22%, rgba(255,138,61,0.16), transparent 72%),
    radial-gradient(44% 58% at 90% 88%, rgba(79,216,196,0.11), transparent 72%);
  animation: heroDrift 20s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: .85; }
  100% { transform: translate3d(-2.2%, 1.4%, 0) scale(1.07); opacity: 1; }
}
.hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero .hero-grid { position: relative; z-index: 2; }

/* Brand mark — subtle glow on hover, shape-agnostic */
.brand:hover .brand-mark {
  filter: drop-shadow(0 0 6px rgba(255,138,61,0.55));
}

/* Nav — richer scrolled state */
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 var(--lt-border), 0 10px 34px rgba(20,17,10,0.06);
}

/* Buttons — glow + lift */
.btn { transition: all .18s ease; }
.btn-primary { box-shadow: 0 0 0 rgba(255,138,61,0); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(255,138,61,0.30); transform: translateY(-1px); }
.btn-ghost:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Hero proof — turn stats into dashboard metric chips */
.hero-proof div {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(20,23,28,0.35));
  transition: border-color .2s ease, transform .2s ease;
}
.hero-proof div:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.hero-proof .num { font-size: 24px; font-variant-numeric: tabular-nums; }

/* Signal chain — placed in hero */
.hero .chain { justify-content: flex-start; margin: 28px 0 4px; flex-wrap: wrap; }
.hero .chain-caption { text-align: left; margin: 0 0 24px; }

/* Card hover depth (narrative / process / vertical / trust) */
.narrative-card, .process-card, .vertical-card, .trust-card {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.process-card:hover, .vertical-card:hover, .trust-card:hover {
  border-color: var(--lt-border-strong);
}
.narrative-card:hover .narrative-figure { text-shadow: 0 0 16px rgba(184,94,30,0.18); }
.vertical-card:hover .vertical-kpis span { border-color: var(--resolve-ink); color: var(--lt-text-dim); }
.trust-card:hover .trust-status:not(.soon) { box-shadow: 0 0 10px rgba(29,122,108,0.18); }

/* Demo slots — a touch of premium framing */
.demo-slot { box-shadow: 0 20px 60px rgba(0,0,0,0.35); transition: box-shadow .25s ease, border-color .25s ease; }
.demo-slot:hover { border-color: var(--resolve-dim); box-shadow: 0 24px 70px rgba(0,0,0,0.45); }

/* Verticals strip — subtle interactivity */
.strip-item { transition: color .2s ease, background .2s ease; }
.strip-item:hover { color: var(--lt-text); background: var(--lt-bg-alt); }

/* CTA panel — top accent line */
.cta-panel { position: relative; overflow: hidden; }
.cta-panel::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), var(--resolve), transparent);
  opacity: .7;
}

/* Gradient accent word */
.grad {
  background: linear-gradient(92deg, var(--signal), #FFB27A 60%, var(--resolve));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .chain-line::after, .chain-node.loop::before { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.demo-slot.is-cover video { cursor: pointer; }

/* ============================================================
   BLOG — index teaser, index page, and individual post template.
   Reuses existing card/eyebrow/section tokens so it reads as one
   system, not a bolted-on section.
   ============================================================ */

/* Ghost button variant for use on light (body) sections — .btn-ghost
   is tuned for the dark hero/CTA/footer and is unreadable on white. */
.btn-ghost-lt {
  border: 1px solid transparent;
  color: var(--lt-text);
  background: var(--lt-bg-alt);
  font-weight: 600;
}
.btn-ghost-lt:hover { color: var(--resolve-ink); transform: translateY(-1px); }

/* --- Homepage "From the Blog" teaser head --- */
.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: none;
}
.blog-head > div { max-width: 640px; }
.blog-head__cta { flex-shrink: 0; }
@media (max-width: 700px) {
  .blog-head { flex-direction: column; align-items: flex-start; }
}

/* --- Post grid + card (homepage teaser AND blog index reuse this) --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .post-grid { grid-template-columns: 1fr; } }
.post-grid--index { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .post-grid--index { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--lt-card);
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  box-shadow: var(--lt-shadow);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.post-card:hover {
  box-shadow: var(--lt-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--lt-border-strong);
}
.post-card__tag {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal-ink);
  margin-bottom: 14px;
}
.post-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--lt-text);
}
.post-card p {
  font-size: 14px;
  color: var(--lt-text-dim);
  margin-bottom: 18px;
}
.post-card__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lt-border);
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--lt-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Blog index page header --- */
.blog-index-hero {
  padding: 72px 0 56px;
  background: var(--bg-colorful);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.blog-index-hero .wrap { position: relative; z-index: 2; }
.blog-index-hero p { color: var(--text-dim); font-size: 17px; max-width: 560px; }
.blog-index-hero h1 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 16px; }
.blog-index-hero .eyebrow { color: var(--signal); }
.breadcrumb {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--resolve); }

/* --- Individual post: header/banner --- */
.post-hero {
  padding: 64px 0 56px;
  background: var(--bg-colorful);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% -40% -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(36% 60% at 12% 20%, rgba(255,138,61,0.14), transparent 70%),
    radial-gradient(40% 60% at 92% 85%, rgba(79,216,196,0.12), transparent 70%);
}
.post-hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.post-hero .eyebrow { color: var(--signal); }
.post-hero .eyebrow.resolve { color: var(--resolve); }
.post-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 18px;
}
.post-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Post article body: readable prose column --- */
.post-article {
  padding: 72px 0 40px;
  background: var(--lt-bg);
}
.post-article .wrap { max-width: 720px; }
.post-body h2 {
  font-size: 26px;
  margin-top: 1.6em;
  color: var(--lt-text);
}
.post-body h3 {
  font-size: 19px;
  margin-top: 1.4em;
  color: var(--lt-text);
}
.post-body p { font-size: 16.5px; line-height: 1.75; color: var(--lt-text-dim); }
.post-body ul, .post-body ol { color: var(--lt-text-dim); font-size: 16.5px; line-height: 1.75; padding-left: 1.3em; }
.post-body li { margin-bottom: 0.5em; }
.post-body strong { color: var(--lt-text); font-weight: 600; }
.post-body a { color: var(--resolve-ink); text-decoration: underline; text-decoration-color: var(--lt-border-strong); }
.post-body a:hover { text-decoration-color: var(--resolve-ink); }

.post-pullquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--signal);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
  color: var(--lt-text);
}

.post-figure-caption {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--lt-text-faint);
  text-align: center;
  margin-top: 10px;
}

/* Post-embedded demo slot needs a dark canvas even inside the light article */
.post-body .demo-slot-wrap {
  margin: 2.2em 0;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-card);
}

/* --- End-of-post CTA --- */
.post-cta {
  margin-top: 3em;
  padding: 32px;
  border: 1px solid var(--lt-border);
  border-radius: var(--radius-card);
  background: var(--lt-bg-alt);
  text-align: center;
}
.post-cta h4 { font-size: 20px; margin-bottom: 8px; color: var(--lt-text); }
.post-cta p { font-size: 14.5px; margin-bottom: 20px; }
.post-cta .btn-row { justify-content: center; }

/* --- Author / footer meta line under a post --- */
.post-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.4em;
  padding-top: 20px;
  border-top: 1px solid var(--lt-border);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--lt-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Related posts --- */
.related-posts {
  padding: 20px 0 100px;
  background: var(--lt-bg);
}
.related-posts .wrap { max-width: 720px; }
.related-posts h3 {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lt-text-faint);
  font-weight: 500;
  margin-bottom: 20px;
}
.related-posts .post-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .related-posts .post-grid { grid-template-columns: 1fr; } }
