/* ═══════════════════════════════════════════════════════
   RCE Documentation — Shared Styles
   N30R1L37 LLC · Reactive Combat Engine
   ═══════════════════════════════════════════════════════ */

/* ─── BRAND TOKENS ─── */
:root {
  --n-dark-blue: #071d34;
  --n-red: #b30011;
  --n-light-blue: #0087d0;
  --n-white: #faf5e8;
}

/* ─── DARK THEME (default) ─── */
[data-theme="dark"] {
  --bg-primary: #060e18;
  --bg-secondary: #0a1a2e;
  --bg-tertiary: #0d2240;
  --bg-card: #0c1f38;
  --bg-code: #040b14;
  --bg-inset: #081525;
  --text-primary: #faf5e8;
  --text-secondary: #a0b4cc;
  --text-muted: #5e7a99;
  --text-heading: #faf5e8;
  --border: rgba(0, 135, 208, 0.15);
  --border-hover: rgba(0, 135, 208, 0.35);
  --accent: #0087d0;
  --accent-soft: rgba(0, 135, 208, 0.08);
  --accent-medium: rgba(0, 135, 208, 0.14);
  --accent-glow: rgba(0, 135, 208, 0.12);
  --red: #b30011;
  --red-soft: rgba(179, 0, 17, 0.08);
  --red-medium: rgba(179, 0, 17, 0.14);
  --gradient-hero: linear-gradient(170deg, #071d34 0%, #060e18 50%, #0a0a12 100%);
  --gradient-accent: linear-gradient(135deg, #0087d0 0%, #005a8c 100%);
  --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 8px 40px rgba(0,0,0,0.6);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 30px rgba(0, 135, 208, 0.08);
  --nav-bg: rgba(6, 14, 24, 0.85);
  --footer-bg: #0a1a2e;
  --footer-text: rgba(250, 245, 232, 0.85);
  --footer-muted: rgba(250, 245, 232, 0.35);
  --footer-link: rgba(250, 245, 232, 0.6);
  --footer-border: rgba(250, 245, 232, 0.08);
  --code-bg: #040b14;
  --code-header-bg: rgba(0, 135, 208, 0.04);
  --code-border: rgba(0, 135, 208, 0.1);
  --code-text: #a0b4cc;
  --table-row-alt: rgba(0, 135, 208, 0.03);
  --table-header-bg: rgba(0, 135, 208, 0.06);
  --toggle-bg: var(--bg-tertiary);
  --toggle-active: var(--accent);
  --callout-bg: rgba(0, 135, 208, 0.06);
  --callout-border: rgba(0, 135, 208, 0.2);
  --callout-warn-bg: rgba(179, 0, 17, 0.06);
  --callout-warn-border: rgba(179, 0, 17, 0.2);
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg-primary: #faf5e8;
  --bg-secondary: #f3ecdc;
  --bg-tertiary: #ece4d2;
  --bg-card: #ffffff;
  --bg-code: #071d34;
  --bg-inset: #f0e8d8;
  --text-primary: #071d34;
  --text-secondary: #3d5068;
  --text-muted: #7a8fa6;
  --text-heading: #071d34;
  --border: rgba(7, 29, 52, 0.1);
  --border-hover: rgba(7, 29, 52, 0.2);
  --accent: #0087d0;
  --accent-soft: rgba(0, 135, 208, 0.06);
  --accent-medium: rgba(0, 135, 208, 0.12);
  --accent-glow: rgba(0, 135, 208, 0.08);
  --red: #b30011;
  --red-soft: rgba(179, 0, 17, 0.05);
  --red-medium: rgba(179, 0, 17, 0.1);
  --gradient-hero: linear-gradient(170deg, #faf5e8 0%, #f5eedf 40%, #f0e8d5 100%);
  --gradient-accent: linear-gradient(135deg, #0087d0 0%, #006aa5 100%);
  --shadow-sm: 0 1px 3px rgba(7, 29, 52, 0.06);
  --shadow-md: 0 4px 16px rgba(7, 29, 52, 0.08);
  --shadow-lg: 0 8px 40px rgba(7, 29, 52, 0.1);
  --shadow-card: 0 1px 4px rgba(7, 29, 52, 0.05), 0 6px 20px rgba(7, 29, 52, 0.04);
  --shadow-glow: 0 0 30px rgba(0, 135, 208, 0.04);
  --nav-bg: rgba(250, 245, 232, 0.88);
  --footer-bg: #071d34;
  --footer-text: rgba(250, 245, 232, 0.85);
  --footer-muted: rgba(250, 245, 232, 0.35);
  --footer-link: rgba(250, 245, 232, 0.6);
  --footer-border: rgba(250, 245, 232, 0.08);
  --code-bg: #071d34;
  --code-header-bg: rgba(0, 135, 208, 0.05);
  --code-border: rgba(0, 135, 208, 0.15);
  --code-text: rgba(250, 245, 232, 0.65);
  --table-row-alt: rgba(7, 29, 52, 0.02);
  --table-header-bg: rgba(7, 29, 52, 0.04);
  --toggle-bg: var(--bg-tertiary);
  --toggle-active: var(--n-dark-blue);
  --callout-bg: rgba(0, 135, 208, 0.05);
  --callout-border: rgba(0, 135, 208, 0.15);
  --callout-warn-bg: rgba(179, 0, 17, 0.04);
  --callout-warn-border: rgba(179, 0, 17, 0.12);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand .logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: white;
  flex-shrink: 0;
}

[data-theme="light"] .nav-brand .logo-mark { background: var(--n-dark-blue); }

.nav-brand span { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.nav-brand .brand-sep { color: var(--text-muted); font-weight: 300; margin: 0 0.1rem; }
.nav-brand .brand-product { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

.nav-links {
  display: flex;
  gap: 0.125rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-glow);
}

.nav-links a.active { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--gradient-accent);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0, 135, 208, 0.3);
  white-space: nowrap;
}

[data-theme="light"] .nav-cta {
  background: var(--n-dark-blue);
  box-shadow: 0 2px 12px rgba(7, 29, 52, 0.2);
}

.nav-cta:hover { transform: translateY(-1px); }

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 18px; height: 18px; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 135, 208, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(179, 0, 17, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
}

[data-theme="light"] .hero-badge {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
  color: var(--text-heading);
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.stat-value .unit { color: var(--accent); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 2px 16px rgba(0, 135, 208, 0.35);
}

[data-theme="light"] .btn-primary {
  background: var(--n-dark-blue);
  box-shadow: 0 2px 16px rgba(7, 29, 52, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

[data-theme="light"] .btn-secondary {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover { border-color: var(--border-hover); transform: translateY(-1px); }

/* ─── PAGE CONTENT (doc pages) ─── */
.page-header {
  padding: 7rem 2rem 3rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 135, 208, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header .section-label { margin-bottom: 0.75rem; }

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.page-header .page-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

/* ─── SECTIONS ─── */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-section + .content-section { padding-top: 0; }

.prose { max-width: 800px; }

.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  margin-top: 3.5rem;
  color: var(--text-heading);
  line-height: 1.2;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
  color: var(--text-heading);
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.prose ul, .prose ol {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.prose li { margin-bottom: 0.4rem; }
.prose li strong { color: var(--text-primary); }

.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ─── SECTION LABELS ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-heading);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3.5rem;
  line-height: 1.75;
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon.blue { background: var(--accent-medium); color: var(--accent); }
.feature-icon.red { background: var(--red-medium); color: var(--red); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── SPLIT LAYOUT ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split-content { padding-top: 1rem; }

/* ─── CAPABILITY LIST ─── */
.capability-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 0;
}

.capability-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.capability-list .cap-marker {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.capability-list .cap-marker svg {
  width: 14px; height: 14px;
  fill: none; stroke: var(--accent);
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.cap-text strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; color: var(--text-heading); }
.cap-text span { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── CODE BLOCKS ─── */
.code-showcase {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  background: var(--code-header-bg);
  border-bottom: 1px solid var(--code-border);
}

.code-dots { display: flex; gap: 6px; }
.code-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

.code-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(250, 245, 232, 0.4);
}

.code-body { padding: 1.5rem; overflow-x: auto; }

.code-body pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--code-text);
}

.code-body .kw { color: #569cd6; }
.code-body .ty { color: #4ec9b0; }
.code-body .str { color: #ce9178; }
.code-body .cm { color: #5e7a99; font-style: italic; }
.code-body .fn { color: #dcdcaa; }
.code-body .num { color: #b5cea8; }
.code-body .op { color: #d4d4d4; }

/* Inline code in prose overrides */
.prose code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.85em;
}

/* ─── TABLES ─── */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.doc-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--table-header-bg);
  border-bottom: 1px solid var(--border);
}

.doc-table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.doc-table tr:nth-child(even) td { background: var(--table-row-alt); }

.doc-table td code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ─── CALLOUTS ─── */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--callout-bg);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.callout p { color: var(--text-secondary); margin-bottom: 0; font-size: 0.9rem; line-height: 1.7; }
.callout p + p { margin-top: 0.75rem; }
.callout strong { color: var(--text-primary); }

.callout.warn {
  border-left-color: var(--red);
  background: var(--callout-warn-bg);
}

.callout .callout-title {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.callout.warn .callout-title { color: var(--red); }

/* ─── PIPELINE CARDS ─── */
.pipeline-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pipeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.pipeline-card.urp::before { background: var(--accent); }
.pipeline-card.hdrp::before { background: var(--red); }

.pipeline-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-heading); }

.pipeline-card .pipeline-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.pipeline-card.urp .pipeline-tag { background: var(--accent-medium); color: var(--accent); }
.pipeline-card.hdrp .pipeline-tag { background: var(--red-medium); color: var(--red); }

.pipeline-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.25rem; }

.pipeline-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0;
}

.pipeline-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pipeline-steps .step-num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ─── SHAPE GALLERY ─── */
.shape-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.shape-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.shape-item:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.shape-item .shape-preview { width: 48px; height: 48px; margin: 0 auto 0.75rem; }
.shape-item .shape-name { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }

/* ─── STEP CARDS (getting started, etc) ─── */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  counter-increment: step;
}

.step-card .step-number {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-medium);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-heading); }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 0; }

/* ─── DIVIDER ─── */
.section-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-divider hr { border: none; height: 1px; background: var(--border); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-brand { color: var(--footer-text); }
.footer-brand .nav-brand .logo-mark { background: var(--accent); }
.footer-brand p { font-size: 0.875rem; color: var(--footer-muted); line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--footer-muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--footer-link); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

/* ─── DIAGRAM / FLOW ─── */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.flow-node {
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-medium);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .pipeline-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-inner { padding: 6rem 1.5rem 4rem; }
  .page-header { padding: 6rem 1.5rem 2.5rem; }
}
