/* =========================================================
   CXO Technology — AI-native Revenue OS
   Design system tokens
   ========================================================= */
:root {
  --bg:           oklch(0.13 0.006 260);
  --bg-2:         oklch(0.16 0.008 260);
  --surface:      oklch(0.19 0.010 260);
  --surface-2:    oklch(0.22 0.012 260);
  --hairline:     oklch(0.30 0.012 260 / 0.55);
  --hairline-2:   oklch(0.40 0.014 260 / 0.40);
  --text:         oklch(0.97 0.005 260);
  --text-mute:    oklch(0.72 0.010 260);
  --text-dim:     oklch(0.55 0.010 260);
  --accent:       oklch(0.80 0.130 235);     /* electric ice blue */
  --accent-soft:  oklch(0.80 0.130 235 / 0.18);
  --accent-line:  oklch(0.80 0.130 235 / 0.55);
  --violet:       oklch(0.74 0.140 290);     /* telemetry only */
  --amber:        oklch(0.82 0.130 70);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --maxw: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-feature-settings: "ss01", "cv11", "calt";
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Subtle global grain via background layers */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 75% -10%, oklch(0.80 0.130 235 / 0.08), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, oklch(0.74 0.140 290 / 0.05), transparent 60%);
  z-index: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* =========================================================
   Typography
   ========================================================= */
.display {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1.display { font-size: clamp(44px, 6.4vw, 88px); }
h2.display { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
h3.display { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.lead { color: var(--text-mute); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; max-width: 58ch; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: oklch(0.13 0.006 260 / 0.62);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 2px;
  background: var(--bg);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 8px; border-radius: 1px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
  color: var(--text-mute); text-decoration: none; font-size: 14px;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--text); color: var(--bg);
}
.btn-primary:hover {
  background: oklch(1 0 0); transform: translateY(-1px);
  box-shadow: 0 8px 30px oklch(0.80 0.130 235 / 0.25);
}
.btn-ghost {
  color: var(--text); border-color: var(--hairline);
  background: oklch(1 0 0 / 0.02);
}
.btn-ghost:hover { border-color: var(--hairline-2); background: oklch(1 0 0 / 0.05); }
.btn-arrow { transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =========================================================
   Sections
   ========================================================= */
section { position: relative; z-index: 1; padding: 120px 0; }
section + section { border-top: 1px solid var(--hairline); }

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 18px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 180px; padding-bottom: 100px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px; align-items: center;
}
.hero h1 { margin: 22px 0 24px; }
.hero h1 .accent { color: var(--text); }
.hero h1 .muted { color: var(--text-dim); }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; align-items: center; }
.hero-meta {
  margin-top: 56px; display: flex; gap: 36px;
  border-top: 1px solid var(--hairline); padding-top: 24px;
}
.hero-meta .stat .num { font-family: 'Inter Tight'; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.hero-meta .stat .lab { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* Hero background grid */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  opacity: 0.35; pointer-events: none;
}

/* Hero viz container */
.hero-viz {
  position: relative;
  aspect-ratio: 1.05/1;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 50% 50%, oklch(0.80 0.130 235 / 0.10), transparent 60%),
    linear-gradient(180deg, oklch(0.19 0.010 260 / 0.6), oklch(0.16 0.008 260 / 0.4));
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.hero-viz svg { width: 100%; height: 100%; display: block; }

/* =========================================================
   Floating telemetry chip
   ========================================================= */
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: oklch(0.19 0.010 260 / 0.85);
  border: 1px solid var(--hairline-2);
  backdrop-filter: blur(8px);
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chip .dot.violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.chip .dot.amber  { background: var(--amber);  box-shadow: 0 0 8px var(--amber); }

/* =========================================================
   Logo strip
   ========================================================= */
.logos {
  padding: 56px 0; border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 40px;
}
.logos .label { color: var(--text-dim); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }

.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: logoScroll 45s linear infinite;
}
.logo-track span {
  color: var(--text-mute);
  font-weight: 500; letter-spacing: -0.012em;
  font-size: 19px; opacity: 0.72;
  font-family: 'Inter Tight', sans-serif;
  white-space: nowrap;
  transition: opacity .25s ease, color .25s ease;
}
.logo-track span:hover { opacity: 1; color: var(--text); }

@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .logos { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   Compare (Problem section)
   ========================================================= */
.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hairline);
}
.compare-card { background: var(--bg); padding: 40px; min-height: 480px; position: relative; }
.compare-card .tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 24px;
}
.compare-left .tag  { color: var(--text-dim); background: oklch(1 0 0 / 0.04); border: 1px solid var(--hairline); }
.compare-right .tag { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }

.compare-card h3 { margin: 0 0 28px; }
.compare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.compare-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-mute); line-height: 1.45;
}
.compare-list li .icn { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.compare-right .compare-list li { color: var(--text); }
.compare-right .compare-list li .icn path { stroke: var(--accent); }

.compare-viz { margin-top: 32px; height: 140px; border-top: 1px solid var(--hairline); padding-top: 24px; }

/* =========================================================
   Workflow timeline
   ========================================================= */
.workflow-wrap {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 50px 40px 40px;
  background: linear-gradient(180deg, oklch(0.16 0.008 260 / 0.7), oklch(0.14 0.006 260 / 0.4));
  overflow: hidden;
}
.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
}
.workflow-rail {
  position: absolute; left: 5%; right: 5%; top: 52px;
  height: 1px; background: var(--hairline);
}
.workflow-rail::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 35% 100%; background-repeat: no-repeat;
  animation: railFlow 6s linear infinite;
}
@keyframes railFlow {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

.wf-step {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding-top: 32px;
  position: relative;
  cursor: pointer;
}
.wf-step .ring {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--hairline-2);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-mute);
  transition: all .3s ease;
}
.wf-step:hover .ring {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 20px var(--accent-soft);
}
.wf-step .lbl {
  font-size: 12px; line-height: 1.3; color: var(--text-mute);
  max-width: 88px; transition: color .25s ease;
}
.wf-step:hover .lbl { color: var(--text); }
.wf-step.active .ring { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.wf-step.active .lbl { color: var(--text); }

.workflow-floats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 50px; padding-top: 30px;
  border-top: 1px solid var(--hairline);
}
.float-metric {
  padding: 20px 22px; border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: oklch(0.19 0.010 260 / 0.4);
  display: flex; flex-direction: column; gap: 8px;
}
.float-metric .k { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase;}
.float-metric .v { font-family: 'Inter Tight'; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.float-metric .v .delta { font-size: 12px; color: var(--accent); margin-left: 8px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0; }
.float-metric .spark { height: 28px; }

/* =========================================================
   Multi-agent architecture
   ========================================================= */
.agents {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 50% 50%, oklch(0.80 0.130 235 / 0.06), transparent 70%),
    linear-gradient(180deg, oklch(0.16 0.008 260 / 0.6), oklch(0.14 0.006 260 / 0.3));
  padding: 56px;
  min-height: 620px;
}
.agents-canvas { width: 100%; height: 560px; display: block; }

.agent-legend {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.agent-legend .item { display: flex; align-items: flex-start; gap: 12px; }
.agent-legend .item .sw { width: 10px; height: 10px; border-radius: 2px; margin-top: 6px; flex-shrink: 0;}
.agent-legend .item .nm { font-size: 13px; font-weight: 500; }
.agent-legend .item .ds { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* =========================================================
   Dashboard preview
   ========================================================= */
.dash {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
}
.dash-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim);
}
.dash-bar .dots { display: flex; gap: 6px; }
.dash-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-2); }
.dash-bar .crumb { display: flex; gap: 8px; align-items: center; }
.dash-bar .crumb .sep { opacity: 0.4; }
.dash-bar .right { margin-left: auto; display: flex; gap: 18px; align-items: center; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 1px;
  background: var(--hairline);
}
.widget {
  background: var(--bg);
  padding: 22px;
  position: relative;
  display: flex; flex-direction: column;
}
.widget .w-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.widget .w-title { font-size: 13px; font-weight: 500; }
.widget .w-sub { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.widget .w-body { flex: 1; min-height: 0; }
.widget .w-num { font-family: 'Inter Tight'; font-size: 36px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.widget .w-delta { font-size: 12px; color: var(--accent); font-family: 'JetBrains Mono', monospace; margin-top: 6px; }

.w-span-3 { grid-column: span 3; }
.w-span-4 { grid-column: span 4; }
.w-span-5 { grid-column: span 5; }
.w-span-6 { grid-column: span 6; }
.w-span-7 { grid-column: span 7; }
.w-span-8 { grid-column: span 8; }
.w-span-9 { grid-column: span 9; }
.w-span-12 { grid-column: span 12; }
.w-row-2 { grid-row: span 2; }

/* heatmap */
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.heat span {
  aspect-ratio: 1; border-radius: 2px; background: oklch(0.22 0.012 260);
}

/* committee mini */
.committee { width: 100%; height: 100%; }

/* attribution bar */
.attr-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12px; }
.attr-row .nm { width: 110px; color: var(--text-mute); }
.attr-row .bar { flex: 1; height: 6px; border-radius: 999px; background: oklch(0.22 0.012 260); position: relative; overflow: hidden; }
.attr-row .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--violet)); border-radius: inherit; }
.attr-row .pct { width: 40px; text-align: right; font-family: 'JetBrains Mono', monospace; color: var(--text); font-size: 11px;}

/* sdr list */
.sdr-list { display: flex; flex-direction: column; gap: 8px; }
.sdr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: oklch(0.19 0.010 260 / 0.5);
  border: 1px solid var(--hairline);
  font-size: 12px;
}
.sdr-item .av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--violet)); flex-shrink: 0; }
.sdr-item .nm { font-weight: 500; }
.sdr-item .co { color: var(--text-dim); margin-left: 4px; }
.sdr-item .score { margin-left: auto; font-family: 'JetBrains Mono', monospace; color: var(--accent); }

/* signal feed */
.signal-feed { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.signal-feed .it { display: flex; gap: 12px; align-items: baseline; }
.signal-feed .it .t { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; min-width: 56px; }
.signal-feed .it .b { color: var(--text-mute); }
.signal-feed .it .b b { color: var(--text); font-weight: 500; }

/* =========================================================
   SDR Outreach Sequence
   ========================================================= */
.sequence-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}
.seq-side {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 18px;
}
.seq-side h3 { margin: 0 0 6px; }
.seq-side p { color: var(--text-mute); font-size: 14px; line-height: 1.55; margin: 0; }
.seq-side .seq-stats { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--hairline); margin-top: 8px;}
.seq-side .seq-stat { background: var(--bg-2); padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.seq-side .seq-stat .k { font-size: 12px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase;}
.seq-side .seq-stat .v { font-family: 'Inter Tight'; font-size: 20px; font-weight: 500; letter-spacing: -0.02em;}

.seq-track {
  position: relative;
  padding-left: 80px;
}
.seq-track::before {
  content: ""; position: absolute;
  left: 28px; top: 12px; bottom: 12px;
  width: 1px; background: var(--hairline-2);
}

.seq-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
.seq-step:last-child { margin-bottom: 0; }

.seq-marker {
  position: absolute;
  left: -66px; top: 0;
  width: 76px;
  display: flex; align-items: center; gap: 10px;
}
.seq-marker .seq-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.seq-marker .seq-node {
  position: absolute;
  left: 60px; top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--hairline-2);
  display: grid; place-items: center;
}
.seq-marker .seq-node::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-dim);
}
.seq-step.is-linkedin .seq-marker .seq-node { border-color: var(--accent-line); }
.seq-step.is-linkedin .seq-marker .seq-node::after { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.seq-step.is-email .seq-marker .seq-node { border-color: var(--hairline-2); }
.seq-step.is-email .seq-marker .seq-node::after { background: var(--text-mute); }

.seq-card {
  background: oklch(0.19 0.010 260 / 0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.seq-card:hover {
  border-color: var(--hairline-2);
  background: oklch(0.22 0.012 260 / 0.6);
  transform: translateX(2px);
}
.seq-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.seq-channel {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 4px;
}
.is-linkedin .seq-channel { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);}
.is-email .seq-channel { color: var(--text-mute); background: oklch(1 0 0 / 0.04); border: 1px solid var(--hairline);}
.seq-channel svg { width: 11px; height: 11px; }

.seq-to {
  font-size: 12px; color: var(--text-mute);
}
.seq-to b { color: var(--text); font-weight: 500; }

.seq-status {
  margin-left: auto; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px;
}
.seq-status::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.seq-subject {
  font-size: 13px; font-weight: 500;
  margin-bottom: 8px;
}
.seq-subject .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-right: 8px;}

.seq-body {
  font-size: 14px; line-height: 1.6;
  color: var(--text-mute);
  white-space: pre-line;
}
.seq-body em { color: var(--text); font-style: normal; background: oklch(0.80 0.130 235 / 0.10); padding: 0 4px; border-radius: 3px; }

@media (max-width: 1024px) {
  .sequence-wrap { grid-template-columns: 1fr; gap: 32px; }
  .seq-side { position: static; }
}
@media (max-width: 720px) {
  .seq-track { padding-left: 40px; }
  .seq-track::before { left: 8px; }
  .seq-marker { left: -32px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .seq-marker .seq-day { font-size: 9px; }
  .seq-marker .seq-node { left: 0; top: 6px; }
}
/* =========================================================
   Revenue Intelligence — Inputs → AI engine → Outputs
   ========================================================= */
.ri-board {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 50% 50%, oklch(0.80 0.130 235 / 0.08), transparent 70%),
    linear-gradient(180deg, oklch(0.16 0.008 260 / 0.6), oklch(0.14 0.006 260 / 0.3));
  padding: 56px;
  overflow: hidden;
}
.ri-board svg { width: 100%; height: 600px; display: block; }

.ri-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  margin-top: 36px; overflow: hidden;
}
.ri-metric { background: var(--bg); padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.ri-metric .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase;}
.ri-metric .v { font-family: 'Inter Tight'; font-size: 32px; font-weight: 500; letter-spacing: -0.025em; line-height: 1;}
.ri-metric .v small { font-size: 14px; color: var(--text-mute); font-weight: 400; margin-left: 6px;}
.ri-metric .v .pill { font-size: 13px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; margin-left: 4px; vertical-align: middle;}
.ri-metric .d { font-size: 12px; color: var(--text-mute); font-family: 'JetBrains Mono', monospace;}
.ri-metric .d b { color: var(--accent); font-weight: 500; }

/* =========================================================
   Flywheel — circular learning loop
   ========================================================= */
.fw-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 60px; align-items: center;
}
.fw-viz {
  position: relative;
  aspect-ratio: 1/1;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at center, oklch(0.80 0.130 235 / 0.10), transparent 65%),
    linear-gradient(180deg, oklch(0.16 0.008 260 / 0.6), oklch(0.14 0.006 260 / 0.3));
  padding: 24px;
  overflow: hidden;
}
.fw-viz svg { width: 100%; height: 100%; display: block; }

.fw-side { display: flex; flex-direction: column; gap: 22px; }
.fw-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px 26px;
  background: oklch(0.19 0.010 260 / 0.4);
}
.fw-card .head { display: flex; justify-content: space-between; align-items: baseline; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;}
.fw-card .head b { color: var(--text); font-weight: 500; letter-spacing: 0.04em;}
.fw-card .row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 13px;}
.fw-card .row:last-child { border-bottom: none; padding-bottom: 0; }
.fw-card .row .nm { color: var(--text); }
.fw-card .row .ds { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 11px;}
.fw-card .row .v { font-family: 'JetBrains Mono', monospace; color: var(--accent); }

.fw-stat {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 20px 24px;
  background: oklch(0.19 0.010 260 / 0.4);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.fw-stat .it { display: flex; flex-direction: column; gap: 4px; }
.fw-stat .it .k { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase;}
.fw-stat .it .v { font-family: 'Inter Tight'; font-size: 22px; font-weight: 500; letter-spacing: -0.02em;}
.fw-stat .it .v .delta { font-size: 11px; color: var(--accent); margin-left: 6px; font-family: 'JetBrains Mono', monospace;}

@media (max-width: 1024px) {
  .fw-grid { grid-template-columns: 1fr; }
  .ri-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ri-board { padding: 24px; }
  .ri-board svg { height: 540px; }
  .ri-metrics { grid-template-columns: 1fr; }
  .fw-stat { grid-template-columns: 1fr; }
}

/* =========================================================
   Features grid
   ========================================================= */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hairline);
}
.feat {
  background: var(--bg); padding: 36px 30px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px;
  position: relative; overflow: hidden;
  transition: background .35s ease;
}
.feat:hover { background: var(--bg-2); }
.feat:hover .feat-glyph { transform: translateY(-2px); }
.feat .feat-glyph { width: 28px; height: 28px; color: var(--accent); transition: transform .35s ease; }
.feat h4 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.012em;}
.feat p { margin: 0; color: var(--text-mute); font-size: 14px; line-height: 1.5; }
.feat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .45s ease;
}
.feat:hover::after { transform: scaleX(1); }

/* =========================================================
   Governance
   ========================================================= */
.gov {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.gov-list { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.gov-row { background: var(--bg); padding: 22px 28px; display: grid; grid-template-columns: 28px 1fr auto; gap: 18px; align-items: center; }
.gov-row svg { width: 20px; height: 20px; color: var(--accent); }
.gov-row .nm { font-size: 15px; font-weight: 500; }
.gov-row .ds { font-size: 13px; color: var(--text-mute); margin-top: 3px;}
.gov-row .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); }

.gov-viz {
  aspect-ratio: 1/1; border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at center, oklch(0.80 0.130 235 / 0.08), transparent 65%),
    var(--bg-2);
  position: relative;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.final-cta-inner {
  text-align: center; padding: 60px 0;
  position: relative; z-index: 2;
}
.final-cta h2 { max-width: 18ch; margin: 0 auto 24px; }
.final-cta .lead { margin: 0 auto 36px; }
.final-cta .btns { display: inline-flex; gap: 12px; }
.final-cta-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}

/* =========================================================
   Footer
   ========================================================= */
footer { border-top: 1px solid var(--hairline); padding: 70px 0 50px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 40px;
}
.foot-col h5 { margin: 0 0 16px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li a { color: var(--text-mute); text-decoration: none; font-size: 14px; }
.foot-col li a:hover { color: var(--text); }
.foot-brand p { color: var(--text-dim); font-size: 13px; max-width: 32ch; margin: 14px 0 0; line-height: 1.5; }
.foot-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 12px; font-family: 'JetBrains Mono', monospace;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   SVG animation primitives
   ========================================================= */
@keyframes dash { to { stroke-dashoffset: -1000; } }
@keyframes pulse { 0%,100% { opacity: 0.4; r: 4; } 50% { opacity: 1; r: 6; } }
@keyframes pulseStrong { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes drift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.path-flow {
  stroke-dasharray: 4 8;
  animation: dash 18s linear infinite;
}
.node-pulse { animation: pulse 2.6s ease-in-out infinite; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .agent-legend { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: span 3; }
  .gov { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .compare { grid-template-columns: 1fr; }
  .workflow-track { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .workflow-rail { display: none; }
  .workflow-floats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .dash-grid > .widget { grid-column: span 12 !important; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .hero-meta { flex-wrap: wrap; gap: 24px; }
}
