/* ============================================================
   FlockRun — Dual Theme (Light default, Dark toggle)
   Structural lines. Amber accents. Terminal aesthetic.
   ============================================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Light Theme (default) --- */
:root {
  --bg: #fafaf8;
  --bg-elevated: #f5f5f3;
  --bg-panel: #ffffff;
  --bg-hover: #f0f0ee;
  --surface: #ebebea;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.16);

  --text: #1a1a1e;
  --text-secondary: #6b6b72;
  --text-tertiary: #9b9ba2;
  --text-muted: #c5c5cc;

  --amber: #d97706;
  --amber-dim: rgba(217, 119, 6, 0.1);
  --amber-glow: rgba(217, 119, 6, 0.04);
  --green: #16a34a;
  --red: #dc2626;

  --nav-bg: rgba(250, 250, 248, 0.85);

  /* Terminal — theme-aware */
  --term-bg: #f5f5f3;
  --term-border: rgba(0, 0, 0, 0.1);
  --term-header: #ebebea;
  --term-dot: rgba(0, 0, 0, 0.1);
  --term-title: #9b9ba2;
  --term-text: #6b6b72;
  --term-cmd: #1a1a1e;
  --term-prompt: #d97706;
  --term-success: #16a34a;
  --term-output: #9b9ba2;
  --term-cursor: #d97706;

  --code-bg: #1c1c1e;
  --code-text: #e5e5e5;

  --tag-red-bg: rgba(220, 38, 38, 0.06);
  --tag-red-border: rgba(220, 38, 38, 0.12);
  --tag-red-text: var(--red);
  --check-color: var(--amber);
  --highlight-bg: rgba(217, 119, 6, 0.04);
  --highlight-hover: rgba(217, 119, 6, 0.08);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --max-width: 1120px;
  --nav-height: 56px;
  --gutter: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-norm: 300ms;
  --dur-slow: 600ms;
  --dur-reveal: 800ms;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg: #060606;
  --bg-elevated: #0c0c0c;
  --bg-panel: #0a0a0a;
  --bg-hover: #111111;
  --surface: #141414;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text: #e5e5e5;
  --text-secondary: #737373;
  --text-tertiary: #525252;
  --text-muted: #383838;

  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --amber-glow: rgba(245, 158, 11, 0.06);
  --green: #22c55e;
  --red: #ef4444;

  --nav-bg: rgba(6, 6, 6, 0.85);

  --term-bg: #0c0c0c;
  --term-border: rgba(255, 255, 255, 0.06);
  --term-header: #0a0a0a;
  --term-dot: rgba(255, 255, 255, 0.08);
  --term-title: #525252;
  --term-text: #a3a3a3;
  --term-cmd: #e5e5e5;
  --term-prompt: #f59e0b;
  --term-success: #22c55e;
  --term-output: #525252;
  --term-cursor: #f59e0b;

  --code-bg: #0a0a0a;
  --code-text: #e5e5e5;

  --tag-red-bg: rgba(239, 68, 68, 0.08);
  --tag-red-border: rgba(239, 68, 68, 0.12);
  --tag-red-text: #ef4444;
  --check-color: #f59e0b;
  --highlight-bg: rgba(245, 158, 11, 0.03);
  --highlight-hover: rgba(245, 158, 11, 0.06);
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--dur-norm) ease, color var(--dur-norm) ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code, pre { font-family: var(--font-mono); }
ul, ol { list-style: none; }

::selection { background: var(--amber); color: var(--bg); }

/* --- Typography --- */
.display {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.body-lg {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-16) 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

/* --- Section Rules (new divider treatment) --- */
.section-rule {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title-inline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-heading {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-norm) ease, background var(--dur-norm) ease;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo img { width: 22px; height: 22px; border-radius: 4px; opacity: 0.9; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
  transition: color var(--dur-fast) ease;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-6);
}

.nav-github {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  transition: color var(--dur-fast) ease;
}

.nav-github:hover { color: var(--text); }
.nav-github svg { width: 18px; height: 18px; }

.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-tertiary);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.theme-toggle:hover { color: var(--text); background: var(--bg-hover); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.btn-nav {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text-secondary);
  transition: all var(--dur-fast) ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-nav:hover { color: var(--amber); border-color: var(--amber); background: var(--amber-dim); }

/* Mobile nav */
.nav-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text-secondary); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; width: 16px; height: 1.5px; background: var(--text-secondary); transition: transform var(--dur-norm) var(--ease-out); }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-mobile { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 99; padding: calc(var(--nav-height) + var(--space-10)) var(--gutter) var(--space-10); flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-mono); font-size: 1.125rem; color: var(--text-secondary); transition: color var(--dur-fast) ease; }
.nav-mobile a:hover { color: var(--amber); }

/* --- Hero --- */
.hero {
  padding-top: var(--nav-height);
  border-bottom: 1px solid var(--border);
}

.hero-body { padding: var(--space-12) 0 var(--space-10); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-headline { margin-bottom: var(--space-5); }
.hero-headline .accent { color: var(--amber); }
.hero-sub { max-width: 480px; margin-bottom: var(--space-8); }

/* Hero CTAs */
.hero-actions { display: flex; align-items: center; gap: var(--space-6); }

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--amber);
  transition: gap var(--dur-fast) var(--ease-out);
}

.hero-cta-primary svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.hero-cta-primary:hover { gap: 12px; }
.hero-cta-primary:hover svg { transform: translateX(2px); }

.hero-cta-secondary {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--dur-fast) ease;
}

.hero-cta-secondary:hover { color: var(--text); }

/* Hero terminal — THEME-AWARE with visible border */
.hero-terminal {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--term-bg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--term-header);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--term-dot); }
.terminal-title { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--term-title); }

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--term-text);
}

.terminal-body .prompt { color: var(--term-prompt); user-select: none; }
.terminal-body .cmd { color: var(--term-cmd); }
.terminal-body .output { color: var(--term-output); }
.terminal-body .success { color: var(--term-success); }

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--term-cursor);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero strips */
.hero-strip {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.strip-row { display: flex; align-items: center; gap: var(--space-6); }
.strip-label { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; min-width: 100px; }
.strip-items { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.strip-item { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; }
.strip-item-muted { color: var(--text-muted); font-size: 0.6875rem; }
.strip-icon { width: 14px; height: 14px; flex-shrink: 0; }

.strip-metrics { display: flex; align-items: baseline; flex-wrap: wrap; }
.metric { display: flex; align-items: baseline; gap: 6px; padding-right: var(--space-6); margin-right: var(--space-6); border-right: 1px solid var(--border); white-space: nowrap; }
.metric:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.metric-value { font-family: var(--font-mono); font-size: 0.9375rem; color: var(--text); letter-spacing: -0.02em; }
.metric-label { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* --- Problem Grid --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.problem-item {
  padding: var(--space-6);
  background: var(--bg-panel);
  transition: background var(--dur-norm) ease;
}

.problem-item:hover { background: var(--bg-hover); }
.problem-item p { font-size: 0.8125rem; color: var(--text-tertiary); line-height: 1.6; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: var(--space-3);
}

.tag-red {
  color: var(--tag-red-text);
  background: var(--tag-red-bg);
  border: 1px solid var(--tag-red-border);
}

/* --- Steps (vertical list with left border) --- */
.steps-list {
  border-left: 1px solid var(--border);
  padding-left: var(--space-8);
}

.step-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step-item:last-child { border-bottom: none; }

.step-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 1px);
  top: 50%;
  width: var(--space-8);
  height: 1px;
  background: var(--border);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  min-width: 48px;
  transition: color var(--dur-norm) ease;
}

.step-item:hover .step-num { color: var(--amber); }

.step-content h3 { margin-bottom: var(--space-2); }
.step-content p { font-size: 0.8125rem; color: var(--text-tertiary); line-height: 1.6; max-width: 480px; }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.feature-card {
  padding: var(--space-6);
  background: var(--bg-panel);
  transition: background var(--dur-norm) ease;
  position: relative;
}

.feature-card:hover { background: var(--bg-hover); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 1px; background: var(--amber); transition: width var(--dur-slow) var(--ease-out); }
.feature-card:hover::before { width: 100%; }

.feature-icon { width: 28px; height: 28px; margin-bottom: var(--space-4); display: flex; align-items: center; justify-content: center; color: var(--amber); }
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { font-size: 0.8125rem; color: var(--text-tertiary); line-height: 1.6; }

.feature-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* --- Templates --- */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.template-card { padding: var(--space-5); background: var(--bg-panel); transition: background var(--dur-norm) ease; }
.template-card:hover { background: var(--bg-hover); }
.template-card:hover .template-indicator { background: var(--amber); box-shadow: 0 0 8px var(--amber-dim); }

.template-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); margin-bottom: var(--space-3); transition: all var(--dur-norm) ease; }
.template-card h3 { font-size: 0.875rem; margin-bottom: var(--space-1); }
.template-card p { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.5; }
.template-tag { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--text-muted); letter-spacing: 0.05em; margin-top: var(--space-3); }

/* --- Adapters --- */
.adapters-panel { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.adapters-header { padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-panel); display: flex; align-items: center; justify-content: space-between; }
.adapters-title { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.adapters-count { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); }
.adapters-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); }
.adapter-item { padding: var(--space-5) var(--space-3); background: var(--bg-panel); text-align: center; transition: background var(--dur-norm) ease; }
.adapter-item:hover { background: var(--bg-hover); }
.adapter-icon { width: 32px; height: 32px; margin: 0 auto var(--space-2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; color: var(--text-tertiary); transition: all var(--dur-norm) ease; }
.adapter-item:hover .adapter-icon { color: var(--amber); border-color: var(--amber-dim); }
.adapter-icon svg { width: 14px; height: 14px; }
.adapter-name { font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-secondary); }
.adapter-sub { font-family: var(--font-mono); font-size: 0.5rem; color: var(--text-muted); margin-top: 1px; }

/* --- Code Block --- */
.code-block { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: var(--code-bg); }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.code-filename { font-family: var(--font-mono); font-size: 0.6875rem; color: #525252; }
.code-copy { font-family: var(--font-mono); font-size: 0.5625rem; color: #525252; padding: 3px 8px; border: 1px solid rgba(255,255,255,0.06); border-radius: 2px; letter-spacing: 0.05em; text-transform: uppercase; transition: all var(--dur-fast) ease; }
.code-copy:hover { color: #e5e5e5; border-color: rgba(255,255,255,0.12); }
.code-body { padding: 16px 20px; overflow-x: auto; }
.code-body pre { margin: 0; font-size: 0.8125rem; line-height: 1.8; color: var(--code-text); }

.cc { color: #525252; font-style: italic; }
.ca { color: #f59e0b; }
.cf { color: #c4b5fd; }

/* --- Comparison --- */
.comparison { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.comparison-row { display: grid; grid-template-columns: 2fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.comparison-row:last-child { border-bottom: none; }
.comparison-row.header { background: var(--bg-elevated); }
.comparison-row.header .comparison-cell { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.comparison-cell { padding: 11px 14px; font-size: 0.8125rem; display: flex; align-items: center; border-right: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-panel); transition: background var(--dur-fast) ease; }
.comparison-cell:last-child { border-right: none; }
.comparison-row:not(.header):hover .comparison-cell { background: var(--bg-hover); }
.comparison-cell.feature-name { font-family: var(--font-mono); font-size: 0.75rem; }
.comparison-cell.highlight { background: var(--highlight-bg); }
.comparison-row:not(.header):hover .comparison-cell.highlight { background: var(--highlight-hover); }
.check { color: var(--check-color); font-family: var(--font-mono); font-size: 0.75rem; }
.cross { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }
.check.partial { color: var(--text-tertiary); }

/* --- OSS Section (two-column layout) --- */
.oss-section { border-bottom: 1px solid var(--border); }

.oss-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.oss-left h2 { margin-bottom: var(--space-4); }
.oss-left .body-lg { margin-bottom: var(--space-8); max-width: 400px; }
.oss-actions { display: flex; align-items: center; gap: var(--space-6); }

.oss-right {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.oss-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-panel);
  transition: background var(--dur-fast) ease;
}

.oss-metric:hover { background: var(--bg-hover); }

.oss-metric-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.oss-metric-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Footer (minimal, one-strip) --- */
.footer {
  padding: var(--space-10) 0 var(--space-6);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
  gap: var(--space-8);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  transition: color var(--dur-fast) ease;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.97); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-delay-1 { transition-delay: 50ms; }
.reveal-delay-2 { transition-delay: 100ms; }
.reveal-delay-3 { transition-delay: 150ms; }
.reveal-delay-4 { transition-delay: 200ms; }
.reveal-delay-5 { transition-delay: 250ms; }
.reveal-delay-6 { transition-delay: 300ms; }
.reveal-delay-7 { transition-delay: 350ms; }
.reveal-delay-8 { transition-delay: 400ms; }

/* --- Responsive: Tablet --- */
@media (max-width: 1199px) {
  :root { --gutter: 36px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { max-width: 560px; }
  .strip-metrics { flex-wrap: wrap; }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .adapters-list { grid-template-columns: repeat(3, 1fr); }
  .oss-inner { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* --- Responsive: Mobile --- */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .display { font-size: 1.875rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }

  .hero-body { padding: var(--space-8) 0 var(--space-6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: var(--space-3); }

  .strip-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .strip-items { gap: var(--space-3); }
  .strip-item-muted { display: none; }
  .metric { padding-right: var(--space-4); margin-right: var(--space-4); margin-bottom: var(--space-1); }

  .section { padding: var(--space-12) 0; }
  .steps-list { padding-left: var(--space-5); }
  .step-item { flex-direction: column; gap: var(--space-2); }
  .step-item::before { display: none; }
  .problem-grid, .features-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .adapters-list { grid-template-columns: repeat(2, 1fr); }
  .comparison-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .comparison-cell { padding: 8px 10px; font-size: 0.6875rem; }

  .oss-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .oss-actions { flex-direction: column; align-items: flex-start; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: var(--space-3); }
  .footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
