/* ===== TRACE | Global Styles v2 ===== */
/* More character: gradient heroes, colored accents, depth, texture */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --ink: #1E293B;            /* slate-800 — foreground */
  --ink-soft: #0F172A;       /* slate-900 — code/visual bg */
  --ink-mid: #334155;        /* slate-700 */
  --surface: #FFFBEB;        /* amber-50 — background */
  --surface-dim: #FEF3C7;    /* amber-100 */
  --surface-border: #CBD5E1; /* slate-300 */
  --accent: #F59E0B;         /* amber-500 — backgrounds, buttons, icons */
  --accent-text: #B45309;    /* amber-700 — text on light surfaces, passes WCAG AA */
  --accent-light: #FEF3C7;   /* amber-100 */
  --accent-glow: rgba(251, 191, 36, 0.15);
  --accent-2: #06B6D4;       /* cyan */
  --accent-2-light: #ecfeff;
  --accent-3: #EC4899;       /* pink */
  /* Amber scale */
  --amber-300: #FCD34D;

  --gradient-hero: linear-gradient(135deg, #0A1628 0%, #1A3A5C 40%, #2E5580 60%, #1A3A5C 100%);
  --gradient-accent: linear-gradient(135deg, #F59E0B, #F97316);
  --gradient-warm: linear-gradient(135deg, #F59E0B, #EC4899);
  --gradient-surface: linear-gradient(180deg, #FEF3C7 0%, #FFFBEB 100%);
  --text: #334155;
  --text-muted: #64748B;     /* slate-500 — 4.8:1 on cream, passes AA */
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255,255,255,0.6);
  --code-bg: #0F172A;

  /* Type */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30,41,59,0.07), 0 1px 2px rgba(30,41,59,0.05);
  --shadow-md: 0 4px 16px rgba(30,41,59,0.12);
  --shadow-lg: 0 12px 40px rgba(30,41,59,0.15);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.18), 0 0 80px rgba(249, 115, 22, 0.06);
  --shadow-card: 0 1px 3px rgba(30,41,59,0.05), 0 8px 24px rgba(30,41,59,0.08);

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 800px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: var(--text-base);
}

a { color: var(--accent-text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* --- Typography --- */
.h1, h1 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); }
.h2, h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); }
.h3, h3 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.25; color: var(--ink); }
.h4, h4 { font-size: var(--text-xl); font-weight: 600; line-height: 1.3; color: var(--ink); }

.subhead { font-size: var(--text-xl); color: var(--text-muted); line-height: 1.55; max-width: 640px; }

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-text);
}

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-xl); }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--space-xl); }

.section { padding: var(--space-5xl) 0; }
.section--dim { background: var(--surface-dim); }

.section--dark {
  background: var(--gradient-hero);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 20%, rgba(245,158,11,0.10) 0%, transparent 100%);
  pointer-events: none;
}
.section--dark::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.4;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-inverse); }
.section--dark .subhead { color: var(--text-inverse-muted); }
.section--dark .text-muted { color: var(--text-inverse-muted); }
.section--dark .label { color: var(--amber-300); -webkit-text-fill-color: var(--amber-300); background: none; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Grid --- */
.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--align-start { align-items: start; }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .h1, h1 { font-size: var(--text-4xl); }
  /* h2 now uses clamp() — no breakpoint override needed */
  .section { padding: var(--space-3xl) 0; }
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.card--glow:hover {
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.card__icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-lg);
  color: white;
}
.card__icon--cyan { background: var(--accent-2); }
.card__icon--pink { background: var(--accent-3); }
.card__icon--gradient { background: var(--gradient-warm); }
.card__title { font-size: var(--text-lg); font-weight: 600; color: var(--ink); margin-bottom: var(--space-xs); }
.card__text { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }

/* Card with top accent border */
.card--accent-top {
  border-top: 3px solid var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  gap: 0.5rem;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn.btn--disabled { opacity: 0.45; pointer-events: none; cursor: default; }

.btn--primary {
  background: var(--gradient-accent);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  color: var(--ink);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--surface-border);
}
.btn--secondary:hover { background: var(--surface-dim); border-color: var(--accent); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.75rem 1rem;
}
.btn--ghost:hover { background: var(--accent-light); }

.btn--large {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

.btn--inverse {
  background: rgba(255,255,255,0.12);
  color: var(--text-inverse);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn--inverse:hover { background: rgba(255,255,255,0.2); color: var(--text-inverse); }

.btn-group {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(30,41,59,0.08);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: var(--text-lg); color: var(--ink);
  text-decoration: none;
}
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.15s;
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__cta {
  margin-left: var(--space-sm);
  background: var(--ink) !important;
  color: var(--text-inverse) !important;
  box-shadow: none !important;
}
.nav__cta:hover {
  background: var(--ink-mid) !important;
  color: var(--text-inverse) !important;
  box-shadow: none !important;
}

.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.625rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav__toggle:hover { background: var(--surface-dim); }
.nav__toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-border);
    padding: var(--space-lg) var(--space-xl);
    gap: var(--space-md);
  }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: 0; }
}

/* --- Hero (dark gradient) --- */
.hero {
  background: var(--gradient-hero);
  color: var(--text-inverse);
  padding: var(--space-5xl) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(245,158,11,0.22) 0%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.5;
}
.hero h1 { color: var(--text-inverse); margin-bottom: var(--space-lg); position: relative; z-index: 1; }
.hero h1 .gradient-text { -webkit-text-fill-color: transparent; color: transparent; }
.hero .subhead { margin: 0 auto var(--space-2xl); color: rgba(255,255,255,0.7); position: relative; z-index: 1; }
.hero .label { color: var(--amber-300); -webkit-text-fill-color: var(--amber-300); background: none; position: relative; z-index: 1; }
.hero__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* --- Hero light variant (for inner pages that want a lighter feel) --- */
.hero--light {
  background: var(--gradient-surface);
  color: var(--text);
}
.hero--light::before, .hero--light::after { display: none; }
.hero--light h1 { color: var(--ink); }
.hero--light .subhead { color: var(--text-muted); }
.hero--light .label { color: var(--accent); }

/* --- Stat bar --- */
.stat-bar {
  display: flex; justify-content: center; gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.stat-bar__item { text-align: center; }
.stat-bar__number {
  font-size: var(--text-4xl); font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-inverse);
}
.stat-bar__label { font-size: var(--text-sm); color: var(--text-inverse-muted); margin-top: var(--space-xs); }
.hero--light .stat-bar__label { color: var(--text-muted); }

/* --- CTA Band --- */
.cta-band {
  background: var(--gradient-hero);
  color: var(--text-inverse);
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(245,158,11,0.14) 0%, transparent 100%);
  pointer-events: none;
}
.cta-band h2 { color: var(--text-inverse); margin-bottom: var(--space-md); position: relative; z-index: 1; }
.cta-band .subhead { margin: 0 auto var(--space-2xl); color: rgba(255,255,255,0.65); position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: var(--space-3xl) 0 var(--space-2xl);
  font-size: var(--text-sm);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-lg);
}
.footer__links { display: flex; gap: var(--space-lg); }
.footer__links a { color: rgba(255,255,255,0.5); font-size: var(--text-sm); }
.footer__links a:hover { color: white; }
.footer__brand { color: rgba(255,255,255,0.35); font-size: var(--text-xs); }
.footer__brand a { color: rgba(255,255,255,0.5); }
.footer__brand a:hover { color: white; }

/* --- Steps / pipeline --- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--surface-border);
}
.step:last-child { border-bottom: none; }
.step__number {
  counter-increment: step;
  width: 56px; height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-xl); color: var(--ink);
}
.step__number::before { content: counter(step); }
.step__content h3 { margin-bottom: var(--space-xs); }
.step__content p { color: var(--text-muted); }

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

/* --- Feature rows --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}
.feature-row:nth-child(even) .feature-row__visual { order: -1; }
.feature-row__content h3 { margin-bottom: var(--space-md); }
.feature-row__content p { color: var(--text-muted); margin-bottom: var(--space-md); }
.feature-row__visual {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.feature-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row__visual { order: 0; }
}

/* --- Pricing --- */
.pricing-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex; flex-direction: column;
  background: var(--surface);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: scale(1.02); }
.pricing-card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--surface) 30%);
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink);
  font-size: var(--text-xs); font-weight: 700;
  padding: 0.3rem 1rem; border-radius: var(--radius-full);
}
.pricing-card__name { font-weight: 600; font-size: var(--text-lg); color: var(--ink); }
.pricing-card__price {
  font-size: var(--text-5xl); font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent-text);
  margin: var(--space-md) 0 var(--space-xs);
}
.pricing-card__period { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-xl); }
.pricing-card__features { list-style: none; margin-bottom: auto; padding-bottom: var(--space-xl); }
.pricing-card__features li {
  padding: 0.45rem 0;
  font-size: var(--text-sm);
  color: var(--text);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.pricing-card__features li::before {
  content: '\2713';
  color: var(--accent-text);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; }

/* --- Logos --- */
.logos {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3xl); flex-wrap: wrap;
}
.logo-wordmark {
  font-size: var(--text-2xl); font-weight: 700; color: var(--text-muted);
  letter-spacing: -0.02em; opacity: 0.4; transition: opacity 0.2s;
}
.logo-wordmark:hover { opacity: 0.7; }
.logo-img {
  height: 32px; width: auto; max-width: 140px;
  object-fit: contain; flex-shrink: 0;
  opacity: 1; transition: opacity 0.2s;
}
.logo-img:hover { opacity: 0.8; }

/* --- Code blocks --- */
.code-block {
  background: var(--ink);
  color: #d4d4dc;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.75;
  overflow-x: auto;
  border: 1px solid var(--ink-mid);
  position: relative;
}
.code-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.code-block .comment { color: #6b6b76; }
.code-block .string { color: #7dd3fc; }
.code-block .keyword { color: #c4b5fd; }

.code-inline {
  background: var(--code-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: white;
}

.endpoint-list {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 2;
}

/* --- Pill / badge --- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600;
  background: var(--accent-light); color: var(--accent-text);
}
.pill--cyan { background: var(--accent-2-light); color: var(--accent-2); }
.pill--pink { background: rgba(236,72,153,0.12); color: var(--accent-3); }
.pill--violet-dark { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.pill--cyan-dark { background: rgba(6,182,212,0.15); color: #67e8f9; }
.pill--pink-dark { background: rgba(236,72,153,0.15); color: #f9a8d4; }
.pill--amber-dark { background: rgba(245,158,11,0.2); color: var(--amber-300); }

/* --- Dark card (used inside section--dark) --- */
.card--dark {
  padding: var(--space-lg);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.card--dark h4 { margin-bottom: var(--space-xs); }
.card--dark p { font-size: var(--text-sm); color: rgba(255,255,255,0.55); }

/* --- Data type cards (special) --- */
.data-card--featured {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl) var(--space-4xl);
  background: linear-gradient(135deg, rgba(236,72,153,0.06) 0%, var(--surface) 60%);
}
.data-card--featured .card__icon {
  margin-left: auto;
  margin-right: auto;
}
.data-card--featured h4 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}
.data-card--featured > p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.data-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.data-card:hover { box-shadow: var(--shadow-sm); }
.data-card:hover .data-card__accent { height: 6px; }
.data-card__accent {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  transition: height 0.25s ease;
}
.data-card__accent--violet { background: var(--accent); }
.data-card__accent--cyan { background: var(--accent-2); }
.data-card__accent--pink { background: var(--accent-3); }
.data-card__accent--gradient { background: var(--gradient-warm); }
.data-card h4 { margin-bottom: var(--space-sm); }
.data-card p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.data-card__content { font-size: var(--text-sm); color: var(--text-muted); line-height: 2; }

/* --- Tabs --- */
.tabs {
  display: flex; gap: 0;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  padding: 4px;
  background: var(--surface-dim);
  margin: 0 auto var(--space-2xl);
  overflow-x: auto;
  width: fit-content;
}
.tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn:focus-visible { outline-offset: -2px; }
.tab-btn.active {
  background: var(--surface); color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--surface-border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: var(--space-lg) 0;
  font-size: var(--text-base); font-weight: 600; color: var(--ink);
  text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent-text); }
.faq-q::after { content: '+'; font-size: var(--text-xl); color: var(--accent-text); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: var(--space-lg); }

/* --- Divider with gradient --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--surface-border) 20%, var(--accent-glow) 50%, var(--surface-border) 80%, transparent 100%);
  border: none;
  margin: 0;
}

.grid--gap-2xl { gap: var(--space-2xl); }

/* --- Feature list (use-cases page) --- */
.feature-list {
  margin-top: var(--space-md);
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

/* --- Utility --- */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.text-muted { color: var(--text-muted); }
.relative { position: relative; }
.z1 { z-index: 1; }

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Scroll reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal--right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal--left.visible, .reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal--fade {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
.reveal--fade.visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
