/* ============================================================
   ROaaS.ai — Core Stylesheet
   Design: Dark-first, precision B2B, AI-forward
   Fonts: Cabinet Grotesk (display) + Satoshi (body)
   ============================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transition */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ---- DARK MODE (Default) ---- */
:root, [data-theme="dark"] {
  --color-bg: #0a0b0d;
  --color-surface: #10121a;
  --color-surface-2: #141720;
  --color-surface-offset: #1a1d28;
  --color-border: #252835;
  --color-divider: #1e212e;

  --color-text: #eef0fa;
  --color-text-muted: #a0a5c0;
  --color-text-faint: #555a75;
  --color-text-inverse: #0a0b0d;

  /* Electric indigo-blue accent */
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-accent-active: #4f46e5;
  --color-accent-glow: rgba(99, 102, 241, 0.15);
  --color-accent-subtle: rgba(99, 102, 241, 0.08);

  --color-blue: #3b82f6;
  --color-blue-light: #60a5fa;
  --color-warn: #f59e0b;
  --color-warn-text: #fbbf24;
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-muted-fill: #374151;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px var(--color-accent-glow);
}

/* ---- LIGHT MODE ---- */
[data-theme="light"] {
  --color-bg: #f8f9fc;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f9;
  --color-surface-offset: #e8eaf2;
  --color-border: #d1d5e8;
  --color-divider: #e2e5f0;

  --color-text: #0f1123;
  --color-text-muted: #4a5070;
  --color-text-faint: #8a8fa8;
  --color-text-inverse: #ffffff;

  --color-accent: #4f46e5;
  --color-accent-hover: #6366f1;
  --color-accent-active: #3730a3;
  --color-accent-glow: rgba(99, 102, 241, 0.12);
  --color-accent-subtle: rgba(79, 70, 229, 0.06);

  --color-blue: #2563eb;
  --color-blue-light: #3b82f6;
  --color-warn: #d97706;
  --color-warn-text: #b45309;
  --color-success: #059669;
  --color-error: #dc2626;
  --color-muted-fill: #6b7280;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f8f9fc;
    --color-surface: #ffffff;
    --color-surface-2: #f1f3f9;
    --color-surface-offset: #e8eaf2;
    --color-border: #d1d5e8;
    --color-divider: #e2e5f0;
    --color-text: #0f1123;
    --color-text-muted: #4a5070;
    --color-text-faint: #8a8fa8;
    --color-text-inverse: #ffffff;
    --color-accent: #4f46e5;
    --color-accent-hover: #6366f1;
    --color-accent-active: #3730a3;
    --color-accent-glow: rgba(99, 102, 241, 0.12);
    --color-accent-subtle: rgba(79, 70, 229, 0.06);
    --color-blue: #2563eb;
    --color-blue-light: #3b82f6;
    --color-warn: #d97706;
    --color-warn-text: #b45309;
    --color-muted-fill: #6b7280;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  }
}

/* ---- BASE RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
}
img, picture, video, svg { display: block; max-width: 100%; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; max-width: 72ch; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
::selection { background: var(--color-accent-glow); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, [role="button"], input, textarea, select {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- LAYOUT ---- */
.container {
  width: min(var(--content-wide), 100%);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}

/* ---- TYPOGRAPHY ---- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.section-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-bottom: var(--space-12);
  line-height: 1.7;
}
.accent-text { color: var(--color-accent); }
.warn-text { color: var(--color-warn-text); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 4px 20px var(--color-accent-glow); }
.btn-primary:active { background: var(--color-accent-active); transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { color: var(--color-text); border-color: var(--color-accent); background: var(--color-accent-subtle); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-full { width: 100%; justify-content: center; }

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--color-accent);
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
  max-width: var(--content-wide);
  margin-inline: auto;
}
.nav-logo { display: flex; align-items: center; color: var(--color-text); }
.nav-logo-img { height: 36px; width: auto; display: block; }
.footer-logo-img { height: 32px; width: auto; display: block; margin-bottom: var(--space-4); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-links a:hover { color: var(--color-text); }
.nav-cta {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--color-accent-hover) !important; transform: translateY(-1px); }
.nav-mobile-toggle { display: none; color: var(--color-text-muted); padding: var(--space-2); }
.nav-mobile { display: none; flex-direction: column; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-4); gap: var(--space-2); }
.nav-mobile.open { display: flex; }
.mobile-link { display: block; padding: var(--space-3) var(--space-4); font-size: var(--text-base); font-weight: 500; color: var(--color-text-muted); border-radius: var(--radius-md); }
.mobile-link:hover { color: var(--color-text); background: var(--color-surface-offset); }
.mobile-cta { background: var(--color-accent); color: #fff !important; text-align: center; margin-top: var(--space-2); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
  max-width: var(--content-wide);
  margin-inline: auto;
  position: relative;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 40%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-content {
  grid-column: 1;
  padding-inline: 0;
  width: 100%;
  max-width: none;
}
.hero-eyebrow { margin-bottom: var(--space-6); }
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}
.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.stat-label { font-size: var(--text-xs); color: var(--color-text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--color-border); }

/* Hero dashboard mock */
.hero-visual {
  grid-column: 2;
  display: flex;
  justify-content: center;
}
.dashboard-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,0.08);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
}
.mock-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #ef4444; }
.mock-dot.yellow { background: #f59e0b; }
.mock-dot.green { background: #10b981; }
.mock-title { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; margin-left: var(--space-2); }
.mock-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.mock-metric { display: flex; flex-direction: column; gap: var(--space-2); }
.mock-metric-label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }
.mock-bar-wrap { height: 28px; background: var(--color-surface-offset); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.mock-bar {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--color-accent), rgba(99,102,241,0.6));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-2);
  animation: barGrow 1.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.mock-bar.accent { background: linear-gradient(90deg, var(--color-success), rgba(16,185,129,0.7)); }
.mock-bar.warn { background: linear-gradient(90deg, var(--color-warn), rgba(245,158,11,0.6)); }
.mock-pct { font-size: var(--text-xs); font-weight: 700; color: #fff; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.mock-card {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border: 1px solid var(--color-border);
}
.mock-card-val { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; }
.mock-card-lbl { font-size: var(--text-xs); color: var(--color-text-muted); }

@keyframes barGrow {
  from { width: 0; }
  to { width: var(--w); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: auto;
    padding-top: var(--space-16);
  }
  .hero-visual { grid-column: 1; }
  .hero-headline { font-size: var(--text-2xl); }
}

/* ---- TRUTH BANNER ---- */
.truth-banner {
  background: var(--color-accent-subtle);
  border-top: 1px solid rgba(99,102,241,0.2);
  border-bottom: 1px solid rgba(99,102,241,0.2);
  padding-block: var(--space-8);
}
.truth-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  max-width: 80ch;
  margin-inline: auto;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.truth-text strong { color: var(--color-accent); }

/* ---- PROBLEM SECTION ---- */
.problem { background: var(--color-bg); }
.failure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}
.failure-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.failure-card:hover { border-color: var(--color-accent); box-shadow: 0 0 24px var(--color-accent-glow); }
.failure-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.failure-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.failure-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.failure-card p strong { color: var(--color-text); }
.failure-card--cta {
  background: linear-gradient(135deg, var(--color-surface-offset) 0%, var(--color-surface) 100%);
  border-color: rgba(99,102,241,0.3);
}
.failure-cta-label { font-size: var(--text-xs); color: var(--color-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.failure-card--cta h3 { font-size: var(--text-base); margin-bottom: var(--space-4); }
.symptom-list { list-style: none; margin-bottom: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.symptom-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}
.symptom-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--color-warn-text);
  font-weight: 700;
}

/* Fade-in animation */
[data-fade] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-fade].visible { opacity: 1; transform: none; }

/* ---- AI SHIFT SECTION ---- */
.ai-shift { background: var(--color-surface); }
.ai-glow {
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ai-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.ai-left p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 60ch;
}
.ai-left p em { color: var(--color-text); font-style: normal; font-weight: 600; }
.ai-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); }
.contrast-col {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid;
}
.contrast-col.bad { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.contrast-col.good { border-color: rgba(99,102,241,0.25); background: var(--color-accent-subtle); }
.contrast-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.contrast-col.bad .contrast-head { color: #ef4444; }
.contrast-col.good .contrast-head { color: var(--color-accent); }
.contrast-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.contrast-col ul li { font-size: var(--text-xs); color: var(--color-text-muted); padding-left: var(--space-4); position: relative; line-height: 1.5; }
.contrast-col.bad ul li::before { content: '→'; position: absolute; left: 0; color: #ef4444; }
.contrast-col.good ul li::before { content: '→'; position: absolute; left: 0; color: var(--color-accent); }

.ai-stat-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.ai-stat-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ai-stat-card:hover { border-color: var(--color-accent); }
.ai-stat-card.accent-card { border-color: rgba(99,102,241,0.35); background: var(--color-accent-subtle); }
.ai-stat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
}
.ai-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.ai-stat-desc { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; margin-top: var(--space-1); }

@media (max-width: 900px) {
  .ai-split { grid-template-columns: 1fr; }
  .ai-contrast { grid-template-columns: 1fr; }
}

/* ---- PLATFORM SECTION ---- */
.platform { background: var(--color-bg); }
.platform-tabs { border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.tab-nav {
  display: flex;
  overflow-x: auto;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: start;
  padding: var(--space-8) var(--space-8);
}
.tab-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}
.tab-text p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-5); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 7px;
}

.visual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.visual-label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-5); }

/* Coverage rings */
.coverage-rings {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.ring {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: var(--text-sm);
}
.ring-tam { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.06); }
.ring-sam { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.06); }
.ring-icp { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.06); }
.ring-label { font-weight: 700; color: var(--color-text); }
.ring-num { font-family: var(--font-display); font-weight: 800; color: var(--color-accent); }
.coverage-stats { display: flex; gap: var(--space-4); }
.cov-stat { display: flex; flex-direction: column; gap: var(--space-1); }
.cov-val { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; }
.cov-lbl { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Quality grid */
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.q-metric { padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-2); }
.q-metric.good { border-color: rgba(16,185,129,0.3); }
.q-metric.warn { border-color: rgba(245,158,11,0.3); }
.q-metric.bad { border-color: rgba(239,68,68,0.3); }
.q-val { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; display: block; margin-bottom: var(--space-1); }
.q-metric.good .q-val { color: var(--color-success); }
.q-metric.warn .q-val { color: var(--color-warn); }
.q-metric.bad .q-val { color: var(--color-error); }
.q-metric.info .q-val { color: var(--color-accent); }
.q-lbl { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Engagement bars */
.engage-bars { display: flex; flex-direction: column; gap: var(--space-3); }
.eng-row { display: flex; align-items: center; gap: var(--space-3); }
.eng-lbl { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); width: 70px; flex-shrink: 0; }
.eng-bar { flex: 1; height: 22px; background: var(--color-surface-offset); border-radius: var(--radius-sm); overflow: hidden; }
.eng-fill { height: 100%; width: var(--w); border-radius: var(--radius-sm); transition: width 1s ease; }
.eng-pct { font-size: var(--text-xs); font-weight: 700; width: 36px; text-align: right; flex-shrink: 0; }

/* Enrichment flow */
.enrichment-flow { display: flex; align-items: center; gap: 0; margin-bottom: var(--space-5); }
.e-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); flex: 1; }
.e-step-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent-glow);
}
.e-step-dot.pending { background: var(--color-text-faint); box-shadow: none; }
.e-step span { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }
.e-connector { flex: 1; height: 2px; background: var(--color-accent); opacity: 0.4; }
.e-stats { display: flex; gap: var(--space-6); }
.e-val { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; }
.e-lbl { font-size: var(--text-xs); color: var(--color-text-muted); }

@media (max-width: 860px) {
  .tab-inner { grid-template-columns: 1fr; }
  .tab-inner { padding: var(--space-6); }
}

/* ---- FRAMEWORK SECTION ---- */
.framework { background: var(--color-surface); }
.framework-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.control-layers { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin-inline: auto; }
.layer {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}
.layer:hover { border-color: var(--color-accent); box-shadow: 0 0 28px var(--color-accent-glow); }
.layer-connector { display: flex; justify-content: flex-start; padding-left: calc(var(--space-8) + 26px); height: 40px; }
.layer-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1;
  letter-spacing: -0.04em;
}
.layer:hover .layer-num { opacity: 1; }
.layer-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-1);
}
.layer-tagline {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.layer-content > p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.layer-outcome {
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent-subtle);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.layer-outcome span { color: var(--color-accent); font-weight: 700; }
.flywheel-cta {
  max-width: 820px;
  margin-inline: auto;
  margin-top: var(--space-10);
  padding: var(--space-8);
  background: var(--color-accent-subtle);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-lg);
}
.flywheel-cta p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.8; max-width: 100%; }

/* ---- HOW IT WORKS ---- */
.how-it-works { background: var(--color-bg); }
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--color-accent); }
.step-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
}
.step h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; margin-bottom: var(--space-3); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.step-arrow {
  font-size: var(--text-xl);
  color: var(--color-text-faint);
  align-self: center;
  margin-top: -20px;
}
@media (max-width: 768px) { .step-arrow { display: none; } .steps-grid { gap: var(--space-4); } }

/* ---- OUTCOMES SECTION ---- */
.outcomes { background: var(--color-surface); }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}
.outcome-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition);
}
.outcome-card:hover { border-color: var(--color-accent); }
.outcome-metric { margin-bottom: var(--space-4); }
.outcome-delta {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  display: block;
  line-height: 1.1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.outcome-delta.positive { color: var(--color-success); }
.outcome-context { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.outcome-card > p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.quote-block {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-6) var(--space-8);
  background: var(--color-accent-subtle);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  max-width: 80ch;
  letter-spacing: -0.01em;
}

/* ---- OUTBOUND BANNER ---- */
.outbound-banner { background: var(--color-bg); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.outbound-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.outbound-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}
.outbound-text p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-8); max-width: 56ch; }
.outbound-stats { display: flex; flex-direction: column; gap: var(--space-5); }
.ob-stat { border-left: 3px solid var(--color-accent); padding-left: var(--space-4); }
.ob-num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; color: var(--color-accent); line-height: 1.1; }
.ob-lbl { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }

@media (max-width: 768px) { .outbound-inner { grid-template-columns: 1fr; } }

/* ---- WHO IS IT FOR ---- */
.for-who { background: var(--color-surface); }
.for-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.for-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.for-card:hover { border-color: var(--color-accent); box-shadow: 0 0 24px var(--color-accent-glow); }
.for-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.for-card h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; margin-bottom: var(--space-3); }
.for-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }

/* ---- CONTACT SECTION ---- */
.contact { background: var(--color-bg); }
.contact-glow {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.contact-left p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-8); max-width: 52ch; }
.contact-trust { display: flex; flex-direction: column; gap: var(--space-3); }
.trust-item { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.trust-item svg { color: var(--color-success); flex-shrink: 0; }

/* Form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group label { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-faint); }
.form-group select option { background: var(--color-surface-2); color: var(--color-text); }
.form-fine { font-size: var(--text-xs); color: var(--color-text-faint); text-align: center; margin-top: calc(var(--space-2) * -1); }
.form-success {
  background: var(--color-surface);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
}
.success-icon { color: var(--color-success); margin: 0 auto var(--space-5); }
.form-success h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-3); }
.form-success p { font-size: var(--text-sm); color: var(--color-text-muted); margin-inline: auto; }

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- FOOTER ---- */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-16);
  padding-block: var(--space-16);
}
.footer-brand p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; max-width: 44ch; margin-top: var(--space-4); }
.footer-links { display: flex; gap: var(--space-12); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col h4 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: var(--space-1); }
.footer-col a { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom { border-top: 1px solid var(--color-divider); padding-block: var(--space-5); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom p { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-bottom-links { display: flex; gap: var(--space-5); }
.footer-bottom-links a { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-bottom-links a:hover { color: var(--color-text-muted); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .footer-links { flex-direction: column; gap: var(--space-8); }
}

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 200;
  transition: all var(--transition);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-accent); }
