/* ============================================================
   tak-cot-sender  |  Site Stylesheet
   Tactical dark theme — cyan/orange accent palette
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:         #080d1a;
  --surface:    #0d1526;
  --surface-2:  #14213d;
  --surface-3:  #1c2e4a;
  --border:     #1e3a5f;
  --border-2:   #2a4a72;

  --primary:    #06b6d4;   /* cyan */
  --primary-dim:#0891b2;
  --primary-glow: rgba(6,182,212,0.18);
  --accent:     #f97316;   /* TAK orange */
  --accent-dim: #ea580c;
  --accent-glow: rgba(249,115,22,0.18);
  --success:    #22c55e;
  --warning:    #eab308;

  --text:       #e2e8f0;
  --text-2:     #94a3b8;
  --text-3:     #64748b;
  --code-bg:    #050b14;

  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.7);
  --nav-h:      64px;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: #67e8f9; }
code, kbd, pre { font-family: var(--font-mono); }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-2); line-height: 1.75; }
p + p { margin-top: .75rem; }

.label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { margin-bottom: 3rem; }
.section-header .label { margin-bottom: .5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { max-width: 640px; font-size: 1.0625rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-2); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,13,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
}
.nav-logo:hover { color: var(--text); }
.nav-logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .125rem;
  list-style: none;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: .375rem .75rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--primary); background: var(--primary-glow); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: .25rem;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-2);
  padding: .625rem .75rem;
  border-radius: var(--radius);
}
.nav-mobile a:hover { color: var(--text); background: var(--surface-2); }
.nav-mobile a.active { color: var(--primary); background: var(--primary-glow); }

/* push content below fixed nav */
.nav-offset { padding-top: var(--nav-h); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  padding: .5625rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover { background: #22d3ee; color: #000; }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #fb923c; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-lg {
  font-size: 1rem;
  padding: .75rem 1.75rem;
}
.btn-sm {
  font-size: .8125rem;
  padding: .375rem .875rem;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}
.card-glow:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.card-accent-top {
  border-top: 2px solid var(--primary);
}
.card-accent-top.accent-orange {
  border-top-color: var(--accent);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card-icon.cyan { background: var(--primary-glow); border-color: rgba(6,182,212,.3); }
.card-icon.orange { background: var(--accent-glow); border-color: rgba(249,115,22,.3); }
.card-icon.green { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); }
.card-icon.purple { background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.3); }
.card h3 { margin-bottom: .5rem; font-size: 1.0625rem; }
.card p { font-size: .9rem; }

/* ── Feature card ─────────────────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .2s, transform .15s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ── Code blocks ─────────────────────────────────────────────── */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-3);
}
.code-block-header .lang {
  color: var(--primary);
  font-weight: 600;
}
.code-block-copy {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.code-block-copy:hover { color: var(--text); background: var(--surface-2); }
.code-block pre {
  padding: 1.25rem 1rem;
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.6;
  tab-size: 2;
}
.code-block code { background: none; padding: 0; border: none; font-size: inherit; }

/* Inline code */
:not(pre) > code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: .125em .375em;
  border-radius: 4px;
  color: var(--primary);
}

/* ── Badge / Tag ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .625rem;
  border-radius: 999px;
  border: 1px solid;
}
.badge-cyan { background: var(--primary-glow); border-color: rgba(6,182,212,.4); color: #22d3ee; }
.badge-orange { background: var(--accent-glow); border-color: rgba(249,115,22,.4); color: #fb923c; }
.badge-green { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: #4ade80; }
.badge-purple { background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.4); color: #a78bfa; }
.badge-gray { background: var(--surface-2); border-color: var(--border-2); color: var(--text-2); }

/* ── Table ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.table th {
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: none; }
.table td code { color: var(--primary); }
.table tr:hover td { background: var(--surface-2); }

/* ── Hero section ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(6,182,212,.12) 0%,
    rgba(249,115,22,.06) 40%,
    transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1.25rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--primary); }
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-code-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-code-panel .code-block-header {
  background: var(--surface-2);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -.03em;
}
.hero-stat-label { font-size: .8125rem; color: var(--text-3); margin-top: .125rem; }

/* ── Section divider ─────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Ecosystem / icon grid ───────────────────────────────────── */
.ecosystem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.ecosystem-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.ecosystem-item:hover { border-color: var(--primary); color: var(--primary); }
.ecosystem-item .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -1rem;
  width: 1px;
  background: var(--border);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
  flex-shrink: 0;
  z-index: 1;
}
.step-body { padding-bottom: 2.5rem; }
.step-body h3 { margin-bottom: .5rem; font-size: 1.0625rem; }
.step-body p { margin-bottom: 1rem; }
.step:last-child .step-body { padding-bottom: 0; }

/* ── API reference entry ─────────────────────────────────────── */
.api-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.api-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.api-entry-header:hover { background: var(--surface-2); }
.api-entry-sig {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
}
.api-entry-sig .fn-name { color: var(--text); }
.api-entry-sig .fn-ret  { color: var(--text-3); font-weight: 400; }
.api-entry-body {
  padding: 1.25rem;
  display: none;
}
.api-entry.open .api-entry-body { display: block; }
.api-entry.open .api-expand-icon { transform: rotate(180deg); }
.api-expand-icon {
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: .125rem;
  transition: transform .2s;
}
.param-table { margin-top: 1rem; }
.param-table th { font-size: .7rem; }
.param-name { font-family: var(--font-mono); color: var(--text); font-size: .85em; }
.param-type { font-family: var(--font-mono); color: var(--accent); font-size: .85em; }

/* ── Category nav sidebar (SQL reference) ─────────────────────── */
.ref-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.ref-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.ref-nav { list-style: none; }
.ref-nav li + li { margin-top: .125rem; }
.ref-nav a {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: .375rem .75rem;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.ref-nav a:hover { color: var(--text); background: var(--surface-2); }
.ref-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-glow);
}

/* ── Podcast cards ───────────────────────────────────────────── */
.podcast-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color .2s, transform .15s;
}
.podcast-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.podcast-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.podcast-meta {
  font-size: .75rem;
  color: var(--text-3);
  margin-bottom: .375rem;
}
.podcast-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.podcast-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: .875rem;
}
.podcast-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* ── Slide deck ──────────────────────────────────────────────── */
.slides-container {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  display: flex;
  flex-direction: column;
  background: #05090f;
  overflow: hidden;
}
.slide {
  display: none;
  flex: 1;
  padding: 4rem 5vw;
  overflow: auto;
}
.slide.active { display: flex; flex-direction: column; justify-content: center; }
.slide-bg-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(6,182,212,.1) 0%, transparent 65%);
  pointer-events: none;
}
.slide-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.slide h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 1rem; }
.slide h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
.slide p.lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-2);
  max-width: 740px;
  line-height: 1.7;
}
.slide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.slide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-top: 1.5rem;
}
.slide-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: clamp(.875rem, 1.5vw, 1.0625rem);
  color: var(--text-2);
}
.slide-list li::before {
  content: '▸';
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .15em;
}
.slide-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.5rem;
}
.slide-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
}
.slide-pill.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); }

.slides-controls {
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
  flex-shrink: 0;
}
.slides-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.slides-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width .3s;
}
.slides-counter {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--text-3);
  white-space: nowrap;
}
.slide-nav-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 36px; height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all .15s;
}
.slide-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.slide-nav-btn:disabled { opacity: .3; cursor: default; }

/* ── Feature deep-dive layout ─────────────────────────────────── */
.feature-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-section:last-child { border-bottom: none; }
.feature-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.feature-section-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feature-section-icon.cyan  { background: var(--primary-glow); border-color: rgba(6,182,212,.35); }
.feature-section-icon.orange{ background: var(--accent-glow); border-color: rgba(249,115,22,.35); }
.feature-section-icon.green { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); }
.feature-section-icon.purple{ background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.35); }
.feature-section-icon.amber { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.35); }

/* ── Alert / callout ──────────────────────────────────────────── */
.callout {
  display: flex;
  gap: .875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid;
  background: var(--surface-2);
  margin: 1.25rem 0;
  font-size: .9rem;
}
.callout-icon { flex-shrink: 0; font-size: 1.125rem; }
.callout.info { border-color: var(--primary); }
.callout.warning { border-color: var(--warning); }
.callout.success { border-color: var(--success); }
.callout p { color: var(--text-2); margin: 0; }

/* ── Page hero (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(6,182,212,.08) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .label { margin-bottom: .75rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .subtitle {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}

/* ── TOC pill nav (features page) ────────────────────────────── */
.toc-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.toc-nav a {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .3125rem .75rem;
  border-radius: 999px;
  transition: all .15s;
}
.toc-nav a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-glow); }

/* ── Data source cards ───────────────────────────────────────── */
.source-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, transform .15s;
}
.source-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.source-card-header {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  margin-bottom: 1rem;
}
.source-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.source-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.source-card .ext-link {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
}
.source-card p { font-size: .875rem; margin-bottom: 1rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-3);
  font-size: .875rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-3); }
.footer-links a:hover { color: var(--text-2); }

/* ── Syntax highlighting (manual, no Prism) ──────────────────── */
.tok-kw   { color: #f97316; } /* orange: SQL keywords */
.tok-fn   { color: #22d3ee; } /* cyan: functions */
.tok-str  { color: #4ade80; } /* green: strings */
.tok-num  { color: #a78bfa; } /* purple: numbers */
.tok-cmt  { color: #475569; font-style: italic; } /* gray: comments */
.tok-op   { color: #94a3b8; } /* muted: operators */
.tok-type { color: #fb923c; } /* orange-400: types */

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-subtitle  { max-width: 100%; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .ref-layout     { grid-template-columns: 1fr; }
  .ref-sidebar    { position: static; }
  .ref-nav        { display: flex; flex-wrap: wrap; gap: .375rem; }
  .ref-nav a      { border-left: none; border: 1px solid var(--border); padding: .25rem .625rem; font-size: .8rem; }
  .slide-cols     { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger  { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero           { padding: 3rem 0 3rem; }
  .section        { padding: 3rem 0; }
  .podcast-card   { flex-direction: column; }
  .podcast-thumb  { width: 64px; height: 64px; }
  .hero-stats     { flex-direction: column; gap: 1rem; }
  .slides-controls { padding: 0 1rem; }
  .slide          { padding: 2rem 1.25rem; }
}
