/* === TOKENS === */
:root {
  --bg: #0c0f14;
  --surface: #141820;
  --surface-alt: #1a1f2a;
  --border: #252b38;
  --border-dim: #1a1f2a;
  --accent: #f5a623;
  --accent-dim: #3a2a0a;
  --accent-glow: rgba(245, 166, 35, 0.12);
  --text: #e8eaf0;
  --text-muted: #7a8499;
  --text-dim: #4a5268;
  --success: #10b981;
  --success-dim: rgba(16, 185, 129, 0.12);
  --amber: #f5a623;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --radius: 4px;
  --radius-lg: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--text); }

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO === */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.eyebrow-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: fit-content;
  background: var(--surface);
}
.stat {
  padding: 20px 32px;
}
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.stat-sub {
  font-size: 20px;
  opacity: 0.7;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* === ENGINE READOUT === */
.engine-readout {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section-header {
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--success);
  background: var(--success-dim);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.pipeline-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 40px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-bottom: 16px;
}
.pipeline-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pipeline-block {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  min-width: 160px;
}
.pipeline-block-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.pipeline-block-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.pipeline-block--process {
  border-color: var(--accent);
  background: var(--accent-dim);
  text-align: center;
}
.sentinel-icon {
  margin-bottom: 8px;
}
.pipeline-block--output {
  min-width: 200px;
}
.output-rows { display: flex; flex-direction: column; gap: 6px; }
.output-row {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.output-row span { font-weight: 500; }
.output-row--mapped span { color: var(--success); }
.output-row--review span { color: var(--amber); }
.output-row--gap span { color: #ef4444; }
.pipeline-arrow { padding: 0 16px; flex-shrink: 0; }
.pipeline-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

/* === JURISDICTIONS === */
.jurisdictions {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.jurisdictions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.jurisdiction-card {
  background: var(--surface);
  padding: 32px;
  position: relative;
}
.jurisdiction-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge-dot--live {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}
.badge-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--success);
  text-transform: uppercase;
}
.jurisdiction-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.jurisdiction-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.jurisdiction-articles {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.step-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.step-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-connector {
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-top: 48px;
}

/* === ERROR BUDGET === */
.error-budget {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.benchmark-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.benchmark-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.benchmark-card--gold {
  border-color: rgba(16, 185, 129, 0.3);
}
.benchmark-value {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}
.benchmark-card--gold .benchmark-value { color: var(--success); }
.benchmark-card--blind .benchmark-value { color: var(--amber); }
.benchmark-unit {
  font-size: 28px;
  opacity: 0.7;
}
.benchmark-label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}
.benchmark-context {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}
.benchmark-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.benchmark-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}
.benchmark-fill--green { background: var(--success); }
.benchmark-fill--amber { background: var(--amber); }
.failure-modes {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 32px;
}
.failure-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.failure-count {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--amber);
}
.failure-label {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.failure-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.failure-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
}
.failure-item:last-child { border-bottom: none; }
.design-note {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}
.design-note p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.design-note p:last-child { margin-top: 8px; }

/* === PRICING === */
.pricing {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-card {
  background: var(--surface);
  padding: 28px 24px;
  position: relative;
}
.pricing-card--recommended {
  background: var(--surface-alt);
}
.pricing-badge {
  position: absolute;
  top: -1px;
  left: 24px;
  transform: translateY(-50%);
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
}
.pricing-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pricing-price {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card--recommended .pricing-price { color: var(--accent); }
.pricing-period {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.pricing-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* === DESIGN PARTNER === */
.design-partner {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.dp-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.dp-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}
.dp-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}
.dp-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.dp-perk {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-left: 16px;
  position: relative;
}
.dp-perk::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.dp-access {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius);
  width: fit-content;
}
.access-code-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.access-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* === CLOSING === */
.closing {
  padding: 100px 0;
}
.closing-inner {
  max-width: 720px;
}
.closing-headline {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sep { color: var(--border); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { display: none; }
  .benchmark-row { grid-template-columns: 1fr; }
  .jurisdictions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  .hero-stats { flex-direction: column; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }
  .stat { padding: 16px 24px; width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .pipeline-diagram { flex-direction: column; align-items: start; gap: 16px; }
  .pipeline-arrow { transform: rotate(90deg); }
}

/* === AMBIENT GLOW === */
.hero-stats {
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.06);
}
.error-budget {
  position: relative;
}
.error-budget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 166, 35, 0.04) 0%, transparent 70%);
  pointer-events: none;
}