/* Fluctara — Static Site Styles */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1424;
  --bg-card: #141a2e;
  --accent-cyan: #00d4ff;
  --accent-purple: #7c3aed;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a4b8;
  --nav-height: 64px;
  --container-max: 1100px;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 212, 255, 0.08);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--accent-cyan); text-decoration: none;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.875rem;
  font-weight: 500; transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent-cyan); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  margin: 5px 0; transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
}
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 0 24px; }
.hero h1 {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 16px;
}
.hero .tagline {
  font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 8px;
  font-weight: 500;
}
.hero .sub {
  font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 36px;
  opacity: 0.8;
}
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px; font-size: 0.9rem;
  font-weight: 600; text-decoration: none; transition: all var(--transition);
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent-cyan); color: var(--bg-primary);
}
.btn-primary:hover { background: #33ddff; box-shadow: 0 0 24px rgba(0, 212, 255, 0.3); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ── Sections ── */
section { padding: 100px 0; position: relative; }
section.dark { background: var(--bg-secondary); }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 12px;
}
.section-title {
  font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem; color: var(--text-secondary); max-width: 600px;
  margin-bottom: 48px;
}

/* ── Cards ── */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 28px; transition: border-color var(--transition);
}
.card:hover { border-color: rgba(0, 212, 255, 0.2); }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 16px; color: var(--accent-cyan);
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Layer Stack ── */
.layer-stack { display: flex; flex-direction: column; gap: 4px; margin: 48px 0; }
.layer-bar {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  border-radius: 4px; font-size: 0.8rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.03); border-left: 3px solid;
  transition: box-shadow var(--transition);
  animation: layerGlow 4s ease-in-out infinite;
}
.layer-bar:hover { box-shadow: 0 0 16px rgba(0, 212, 255, 0.15); }
.layer-bar .layer-num {
  font-size: 0.7rem; font-weight: 700; color: var(--text-secondary);
  min-width: 28px;
}
@keyframes layerGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.layer-bar:nth-child(odd) { animation-delay: 0s; }
.layer-bar:nth-child(even) { animation-delay: 2s; }

/* ── Research Cards ── */
.research-card {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent-purple); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 20px;
}
.research-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.research-card .meta { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.research-card .meta a:hover { text-decoration: underline; }
.badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 12px; margin-bottom: 10px;
}
.badge-purple { background: rgba(124, 58, 237, 0.2); color: var(--accent-purple); }

/* ── API Preview ── */
.api-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.api-card {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 20px;
}
.api-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.api-card .prefix {
  font-family: 'Courier New', monospace; font-size: 0.75rem;
  color: var(--text-secondary); margin-bottom: 10px;
}
.method-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.method-pill {
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; letter-spacing: 0.04em;
}
.method-get { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.method-post { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.method-patch { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.method-delete { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.method-ws { background: rgba(124, 58, 237, 0.15); color: var(--accent-purple); }

.code-block {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 20px; margin-top: 32px;
  font-family: 'Courier New', monospace; font-size: 0.82rem;
  color: var(--text-secondary); overflow-x: auto;
}
.code-block .kw { color: var(--accent-cyan); }
.code-block .str { color: #22c55e; }

/* ── Tech Diagram ── */
.arch-diagram {
  display: grid; grid-template-columns: 1fr; gap: 2px; margin: 40px 0;
  border-radius: var(--radius); overflow: hidden;
}
.arch-tier {
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
}
.arch-tier .tier-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; min-width: 80px; color: var(--text-secondary);
}
.arch-tier .tier-items {
  display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; font-weight: 500;
}
.arch-tier .tier-items span {
  padding: 4px 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.06);
}
.tier-rust { background: rgba(0, 212, 255, 0.05); border-left: 3px solid var(--accent-cyan); }
.tier-python { background: rgba(124, 58, 237, 0.05); border-left: 3px solid var(--accent-purple); }
.tier-client { background: rgba(255, 255, 255, 0.02); border-left: 3px solid var(--text-secondary); }

/* ── Team + Footer ── */
.team-block {
  display: flex; align-items: center; gap: 20px; margin-bottom: 64px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem;
  font-weight: 700; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary); flex-shrink: 0;
}
.team-info h3 { font-size: 1.1rem; font-weight: 600; }
.team-info p { font-size: 0.85rem; color: var(--text-secondary); }
.team-info a { color: var(--accent-cyan); text-decoration: none; font-size: 0.8rem; }
.team-info a:hover { text-decoration: underline; }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.footer p, .footer a { font-size: 0.82rem; color: var(--text-secondary); }
.footer a { text-decoration: none; display: block; margin-bottom: 6px; }
.footer a:hover { color: var(--accent-cyan); }
.footer-bottom {
  font-size: 0.75rem; color: var(--text-secondary); opacity: 0.6;
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Use Cases ── */
.usecase-icon {
  font-size: 1.6rem; margin-bottom: 12px; display: block; line-height: 1;
  filter: grayscale(0.3);
}

/* ── Live Demo ── */
.demo-wrap {
  display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start;
}
.demo-canvas-wrap {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.demo-canvas-wrap canvas { display: block; width: 100%; height: 300px; }
.demo-controls {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 24px;
}
.demo-controls label {
  display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px;
  color: var(--text-secondary);
}
.demo-controls input[type="range"] {
  width: 100%; margin: 4px 0 16px; accent-color: var(--accent-cyan);
}
.demo-value {
  font-family: 'Courier New', monospace; font-size: 0.85rem;
  color: var(--accent-cyan); margin-bottom: 20px;
}
.demo-readout {
  font-size: 0.75rem; color: var(--text-secondary); line-height: 1.8;
}
.demo-readout span { color: var(--text-primary); font-weight: 500; }
.btn-demo {
  width: 100%; margin-top: 16px; justify-content: center;
  font-size: 0.8rem; padding: 10px 20px;
}

/* ── Comparison ── */
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-table th {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}
.compare-table td { color: var(--text-secondary); }
.compare-table td:first-child { color: var(--text-primary); font-weight: 500; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight-row td {
  background: rgba(0, 212, 255, 0.04);
  border-left: 2px solid var(--accent-cyan);
}
.compare-table .highlight-row td:first-child { color: var(--accent-cyan); font-weight: 700; }
.check { color: #22c55e; }
.cross { color: #ef4444; opacity: 0.5; }

/* ── Stats Bar ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  margin-top: 48px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }

/* ── Roadmap ── */
.roadmap {
  display: flex; gap: 0; position: relative; margin: 48px 0;
}
.roadmap::before {
  content: ''; position: absolute; top: 20px; left: 0; right: 0;
  height: 2px; background: rgba(255, 255, 255, 0.08);
}
.roadmap-step {
  flex: 1; text-align: center; position: relative; padding-top: 48px;
}
.roadmap-dot {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15); background: var(--bg-primary);
}
.roadmap-step.active .roadmap-dot {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  background: var(--accent-cyan);
}
.roadmap-step.active .roadmap-dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--bg-primary);
}
.roadmap-step h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.roadmap-step p { font-size: 0.75rem; color: var(--text-secondary); }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 8px;
  color: var(--text-primary);
}
.faq-a { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Early Access ── */
.early-access-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius); padding: 48px; text-align: center;
  max-width: 600px; margin: 0 auto;
}
.early-access-box h3 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 12px;
}
.early-access-box p {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px;
}

/* ── Devices Table ── */
.device-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
}
.device-table th, .device-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.device-table th {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}
.device-table td { color: var(--text-secondary); }
.device-table td:first-child { color: var(--text-primary); font-weight: 500; }
.device-table tr:last-child td { border-bottom: none; }
.device-cat {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 10px;
}
.device-cat-eeg { background: rgba(0, 212, 255, 0.12); color: var(--accent-cyan); }
.device-cat-hr { background: rgba(124, 58, 237, 0.12); color: var(--accent-purple); }
.device-cat-wearable { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.device-cat-bio { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.device-cat-met { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.device-cat-fnirs { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

/* ── Code Examples ── */
.code-example {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
}
.code-example-header {
  padding: 10px 16px; font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary); background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex; align-items: center; gap: 8px;
}
.code-example-header .lang {
  font-size: 0.6rem; padding: 1px 6px; border-radius: 3px;
  background: rgba(0, 212, 255, 0.12); color: var(--accent-cyan);
}
.code-example pre {
  padding: 16px; margin: 0; font-family: 'Courier New', monospace;
  font-size: 0.78rem; line-height: 1.7; color: var(--text-secondary);
  overflow-x: auto; white-space: pre;
}
.code-example .kw { color: var(--accent-cyan); }
.code-example .fn { color: #c084fc; }
.code-example .str { color: #22c55e; }
.code-example .cm { color: #4a5568; font-style: italic; }
.code-example .num { color: #fbbf24; }

/* ── Glossary ── */
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary-item {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 18px 20px;
}
.glossary-term {
  font-size: 0.85rem; font-weight: 700; color: var(--accent-cyan);
  font-family: 'Courier New', monospace; margin-bottom: 4px;
}
.glossary-full {
  font-size: 0.75rem; color: var(--text-primary); margin-bottom: 4px;
}
.glossary-def { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; }

/* ── Benchmarks ── */
.bench-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bench-item {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.bench-val {
  font-size: 1.8rem; font-weight: 800; color: var(--accent-cyan);
  letter-spacing: -0.02em;
}
.bench-unit { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.bench-label { font-size: 0.8rem; color: var(--text-primary); margin-top: 8px; font-weight: 500; }
.bench-note { font-size: 0.7rem; color: var(--text-secondary); margin-top: 4px; }

/* ── Citation ── */
.citation-block {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.citation-block h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.citation-block pre {
  font-family: 'Courier New', monospace; font-size: 0.72rem;
  color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap;
  word-break: break-all; margin: 0;
}

/* ── License Detail ── */
.license-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.license-card {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 24px;
}
.license-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.license-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.license-card .license-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; margin-bottom: 12px;
}
.license-free { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.license-paid { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.license-collab { background: rgba(0, 212, 255, 0.15); color: var(--accent-cyan); }

/* ── Protocol Cards ── */
.protocol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.protocol-card {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 20px; position: relative;
  border-top: 2px solid var(--accent-cyan);
}
.protocol-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.protocol-card .protocol-meta {
  font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 10px;
  display: flex; gap: 12px;
}
.protocol-card .protocol-meta span { display: flex; align-items: center; gap: 4px; }
.protocol-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; }
.protocol-card .band-tag {
  display: inline-block; font-size: 0.6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; margin-top: 10px;
}
.band-delta { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.band-beta { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.band-theta { background: rgba(0, 212, 255, 0.15); color: var(--accent-cyan); }
.band-alpha { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.band-gamma { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ── Noise/Audio Chips ── */
.audio-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.audio-chip {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px; padding: 12px 18px; font-size: 0.82rem; font-weight: 500;
}
.audio-chip .chip-label { color: var(--accent-cyan); font-weight: 700; font-size: 0.75rem; display: block; margin-bottom: 2px; }
.audio-chip .chip-detail { color: var(--text-secondary); font-size: 0.72rem; }

/* ── Metric Grid ── */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-item {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.metric-item .metric-name {
  font-family: 'Courier New', monospace; font-size: 0.8rem;
  font-weight: 700; color: var(--accent-cyan); margin-bottom: 4px;
}
.metric-item .metric-desc { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.4; }

/* ── CLI Block ── */
.cli-block {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
}
.cli-block .cli-prompt {
  padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 0.78rem;
  color: var(--text-secondary); line-height: 1.6;
}
.cli-block .cli-prompt .prompt-char { color: var(--accent-cyan); user-select: none; }
.cli-block .cli-prompt .flag { color: #fbbf24; }
.cli-block .cli-prompt .val { color: #22c55e; }
.cli-desc { font-size: 0.75rem; color: var(--text-secondary); margin: 4px 0 16px 0; }

/* ── Band Bars ── */
.band-bars { display: flex; flex-direction: column; gap: 6px; }
.band-bar-row {
  display: grid; grid-template-columns: 90px 1fr 80px; gap: 12px; align-items: center;
  font-size: 0.78rem;
}
.band-bar-label { font-weight: 600; color: var(--text-primary); }
.band-bar-track {
  height: 8px; background: rgba(255, 255, 255, 0.04); border-radius: 4px;
  overflow: hidden; position: relative;
}
.band-bar-fill { height: 100%; border-radius: 4px; }
.band-bar-range { font-size: 0.7rem; color: var(--text-secondary); text-align: right; font-family: 'Courier New', monospace; }

/* ── Screenshot ── */
.screenshot-wrap {
  margin-top: 48px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.screenshot-wrap img { display: block; width: 100%; height: auto; }

/* ── Equation Overlay ── */
.eq-overlay {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
section > .container { position: relative; z-index: 1; }
.eq {
  position: absolute; white-space: nowrap;
  font-family: 'Times New Roman', 'Georgia', serif; font-style: italic;
  color: var(--accent-cyan); opacity: 0;
  animation: eqDrift 20s ease-in-out infinite;
  user-select: none;
}
@keyframes eqDrift {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  15%  { opacity: 0.055; }
  50%  { opacity: 0.055; transform: translateY(-18px) translateX(6px); }
  85%  { opacity: 0.055; }
  100% { opacity: 0; transform: translateY(0) translateX(0); }
}
.eq-purple { color: var(--accent-purple); }
.eq-sm { font-size: 0.8rem; }
.eq-md { font-size: 1.05rem; }
.eq-lg { font-size: 1.3rem; }

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3); }
.band-filter:focus-visible { outline-offset: 1px; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary); font-size: 1.1rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-cyan); color: var(--bg-primary); border-color: var(--accent-cyan); }

/* ── FAQ Accordion ── */
.faq-q[role="button"] { cursor: pointer; position: relative; padding-right: 24px; }
.faq-q[role="button"]::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-size: 1.1rem; color: var(--text-secondary);
  transition: transform var(--transition);
}
.faq-q[aria-expanded="true"]::after { content: '\2212'; }

/* ── Utility Classes ── */
.container--center { text-align: center; }
.demo-hint {
  font-size: 0.65rem; color: var(--text-secondary); margin-top: 8px; text-align: center;
}
.subsection-label {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--text-primary);
}
.footer-copyright { margin-top: 12px; font-size: 0.75rem; opacity: 0.6; }
.table-scroll-inner { overflow-x: auto; }
.gh-badge { height: 18px; vertical-align: middle; margin-left: 4px; }

/* ── Research Card Link ── */
.research-card .meta a { color: var(--accent-cyan); }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  padding: 8px 16px; background: var(--accent-cyan); color: var(--bg-primary);
  font-size: 0.85rem; font-weight: 600; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ── Scroll Progress ── */
.scroll-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--accent-cyan); width: 0%;
  transition: none;
}

/* ── Band Filters ── */
.band-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.band-filter {
  padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1); background: transparent;
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
}
.band-filter:hover { border-color: var(--accent-cyan); color: var(--text-primary); }
.band-filter.active { background: var(--accent-cyan); color: var(--bg-primary); border-color: var(--accent-cyan); }
.protocol-card.filtered-out { display: none; }

/* ── API Group Titles ── */
.api-group-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-secondary); margin: 32px 0 12px;
}
.api-group-title:first-of-type { margin-top: 0; }

/* ── Copy Button ── */
.copy-btn {
  margin-left: auto; padding: 2px 10px; font-size: 0.65rem; font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition);
}
.copy-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.copy-btn.copied { background: rgba(34,197,94,0.15); color: #22c55e; border-color: #22c55e; }

/* ── Device Category Rows ── */
.device-category-row td {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent-cyan);
  background: rgba(0,212,255,0.04); border-bottom: none; padding: 10px 16px;
}

/* ── Table Scroll Hint ── */
.table-scroll-wrap { position: relative; }
.table-scroll-wrap::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 32px;
  background: linear-gradient(to right, transparent, var(--bg-secondary));
  pointer-events: none; opacity: 1;
  transition: opacity var(--transition);
}
.table-scroll-wrap.scrolled-end::after { opacity: 0; }

/* ── Mid-Page CTA ── */
.mid-cta { padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.04); }
.mid-cta p {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px;
}

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

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-in { opacity: 1; transform: none; }
  .eq { opacity: 0.04; animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
    flex-direction: column; background: var(--bg-secondary); padding: 80px 32px 32px;
    gap: 20px; transition: right var(--transition);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: block; z-index: 101; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1.05rem; }
  .section-title { font-size: 1.75rem; }
  section { padding: 64px 0; }

  .card-grid.cols-3, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .arch-tier { flex-direction: column; align-items: flex-start; }
  .team-block { flex-direction: column; text-align: center; }
  .eq-overlay { display: none; }
  .demo-wrap { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .compare-table { font-size: 0.75rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .roadmap { flex-direction: column; gap: 0; }
  .roadmap::before { display: none; }
  .roadmap-step { padding-top: 0; padding-left: 36px; text-align: left; padding-bottom: 24px; }
  .roadmap-dot { top: 2px; left: 0; }
  .early-access-box { padding: 32px 24px; }
  .glossary-grid { grid-template-columns: 1fr; }
  .bench-grid { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: 1fr; }
  .device-table { font-size: 0.75rem; }
  .device-table th, .device-table td { padding: 8px 10px; }
  .protocol-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .band-bar-row { grid-template-columns: 70px 1fr 60px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .api-grid { grid-template-columns: repeat(2, 1fr); }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
