/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Warm dark palette — walnut, charcoal, aged paper */
  --bg:           #0f0d0a;
  --bg-surface:   #141210;
  --bg-card:      #1c1914;
  --bg-card-alt:  #181511;
  --border:       #2a2720;
  --border-light: #383228;

  --text:         #e8dcc9;
  --text-dim:     #8a7d66;
  --text-dimmer:  #4e4738;

  /* Warm amber — aged brass, incandescent light */
  --accent:       #c49558;
  --accent-dim:   #9e7842;
  --accent-glow:  rgba(196, 149, 88, 0.1);
  --accent-glow2: rgba(196, 149, 88, 0.05);

  /* Muted secondaries — warm steel, lavender, burnt orange */
  --blue:         #6e8fa8;
  --blue-glow:    rgba(110, 143, 168, 0.1);
  --purple:       #9480a8;
  --orange:       #c47a40;

  --green:        #6d9b72;
  --red:          #b06464;

  --font-mono:    'IBM Plex Mono', 'Fira Mono', 'Cascadia Code', monospace;
  --font-sans:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;

  --radius:       5px;
  --radius-lg:    10px;
  --radius-xl:    14px;

  --shadow-glow:  0 0 40px rgba(196, 149, 88, 0.06);
  --shadow-card:  0 1px 3px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.4);
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Typography ─────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.accent { color: var(--accent); }
.accent-text { color: var(--accent); font-family: var(--font-mono); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0f0d0a;
  font-weight: 600;
}
.btn-primary:hover {
  background: #d4a870;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 149, 88, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.75rem; }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 13, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Dots instead of grid lines — deliberate, not industrial */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(196, 149, 88, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 100%);
}

/* Candle-like warm glow, not neon */
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(196, 149, 88, 0.06) 0%, transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(196, 149, 88, 0.08);
  border: 1px solid rgba(196, 149, 88, 0.2);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dimmer);
  flex-wrap: wrap;
}
.hero-meta .sep { color: var(--border-light); }

/* ─── Shell Mockup ───────────────────────────────────────────── */
.shell-mockup-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card), 0 0 60px rgba(196, 149, 88, 0.05);
}

.shell-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.chrome-dots {
  display: flex;
  gap: 5px;
}
.chrome-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}
.chrome-dots span:nth-child(1) { background: #b06464; }
.chrome-dots span:nth-child(2) { background: #c47a40; }
.chrome-dots span:nth-child(3) { background: var(--green); }

.chrome-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dimmer);
  flex: 1;
  text-align: center;
}

.chrome-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dimmer);
}

.shell-body {
  display: flex;
  height: 380px;
}

/* Rail */
.shell-rail {
  width: 52px;
  background: var(--bg-card-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
  gap: 2px;
}

.rail-item {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  color: var(--text-dimmer);
}
.rail-item:hover { background: rgba(255,255,255,0.04); color: var(--text-dim); }
.rail-item.active {
  background: rgba(196, 149, 88, 0.12);
  color: var(--accent);
}
.rail-item.insights { color: var(--purple); }
.rail-item svg { width: 16px; height: 16px; }
.rail-key {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dimmer);
  margin-top: 1px;
}

.rail-spacer { flex: 1; }

.rail-status {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.status-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.status-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dimmer);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.status-dot.local { background: var(--accent); box-shadow: 0 0 5px rgba(196, 149, 88, 0.5); }
.status-dot.cloud { background: var(--blue); box-shadow: 0 0 5px rgba(110, 143, 168, 0.5); }
.status-dot.small { width: 5px; height: 5px; }

.daemon-health {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 3s ease infinite;
}

/* Main content */
.shell-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell-content {
  flex: 1;
  padding: 0.75rem 1rem;
  overflow: hidden;
}

.terminal-output { font-family: var(--font-mono); font-size: 0.75rem; }
.term-line { padding: 0.05rem 0; line-height: 1.5; }
.term-line.dim { color: var(--text-dimmer); }
.term-line.err { color: var(--red); }
.term-line.indent { padding-left: 2rem; }

.prompt { color: var(--accent); }
.cmd { color: var(--text); }

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Suggestion bar */
.shell-suggestion {
  padding: 0.5rem 1rem;
  background: rgba(196, 149, 88, 0.05);
  border-top: 1px solid rgba(196, 149, 88, 0.14);
  border-bottom: 1px solid rgba(196, 149, 88, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  min-height: 36px;
}

.suggestion-icon { color: var(--accent); font-size: 0.85rem; }
.suggestion-text { flex: 1; color: var(--text-dim); }
.suggestion-hint {
  color: var(--text-dimmer);
  font-size: 0.65rem;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}

/* Input bar */
.shell-input {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 40px;
}

.input-mode {
  width: 20px; height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.shell-mode {
  background: rgba(196, 149, 88, 0.14);
  color: var(--accent);
  border: 1px solid rgba(196, 149, 88, 0.28);
}

.ai-mode {
  background: rgba(148, 128, 168, 0.14);
  color: var(--purple);
  border: 1px solid rgba(148, 128, 168, 0.28);
}

.input-field { flex: 1; }
.input-placeholder { color: var(--text-dimmer); }

.input-inference {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-dimmer);
}

/* ─── Section Styles ─────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Problem Section ────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--border-light); }

.problem-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.problem-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }

.problem-thesis {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.thesis-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
blockquote {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  font-style: normal;
  flex-shrink: 0;
}
blockquote em { color: var(--accent); font-style: normal; }

/* ─── Shell Anatomy ──────────────────────────────────────────── */
.shell-anatomy {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Anatomy diagram */
.anatomy-diagram {
  position: sticky;
  top: 100px;
}

.anatomy-shell {
  display: flex;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.anatomy-rail {
  width: 44px;
  background: var(--bg-card-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  gap: 8px;
}

.anatomy-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--border);
}
.anatomy-icon.a {
  background: rgba(196, 149, 88, 0.2);
  border: 1px solid rgba(196, 149, 88, 0.38);
}
.anatomy-icon.b {
  background: rgba(148, 128, 168, 0.14);
  border: 1px solid rgba(148, 128, 168, 0.28);
}

.anatomy-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.anatomy-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anatomy-code-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}
.anatomy-code-line.w80 { width: 80%; }
.anatomy-code-line.w60 { width: 60%; }
.anatomy-code-line.w90 { width: 90%; }
.anatomy-code-line.w40 { width: 40%; }
.anatomy-code-line.w70 { width: 70%; }
.anatomy-code-line.w55 { width: 55%; }
.anatomy-code-line.w85 { width: 85%; }
.anatomy-code-line.w30 { width: 30%; }

.anatomy-suggestion {
  padding: 0.5rem 1rem;
  background: rgba(196, 149, 88, 0.05);
  border-top: 1px solid rgba(196, 149, 88, 0.14);
  border-bottom: 1px solid rgba(196, 149, 88, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.anatomy-spark { font-size: 0.75rem; color: var(--accent); }
.anatomy-suggest-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(196, 149, 88, 0.2);
}

.anatomy-input {
  padding: 0.5rem 1rem;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.anatomy-mode {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  width: 18px; height: 18px;
  background: rgba(196, 149, 88, 0.12);
  border: 1px solid rgba(196, 149, 88, 0.24);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anatomy-input-line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

/* Anatomy labels */
.anatomy-labels { display: flex; flex-direction: column; gap: 2.5rem; }

.anatomy-label { display: flex; gap: 1rem; align-items: flex-start; }
.label-line {
  width: 2px;
  background: var(--border);
  border-radius: 1px;
  flex-shrink: 0;
  min-height: 80px;
  margin-top: 4px;
}
.anatomy-label:nth-child(3) .label-line { background: rgba(196, 149, 88, 0.38); }

.label-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.label-content p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }
.label-content code { font-size: 0.78em; }

/* ─── Daemon Section ─────────────────────────────────────────── */
.daemon-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 4rem;
}

.daemon-arrow {
  font-size: 1.5rem;
  color: var(--border-light);
  padding: 0 1rem;
  padding-top: 4.5rem;
  align-self: flex-start;
}

.daemon-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.stage-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.stage-icon svg { width: 22px; height: 22px; }
.stage-icon.collector { background: rgba(196, 149, 88, 0.1); color: var(--accent); }
.stage-icon.analyzer  { background: rgba(148, 128, 168, 0.1); color: var(--purple); }
.stage-icon.actuator  { background: rgba(196, 122, 64, 0.1); color: var(--orange); }

.daemon-stage h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.stage-sub { font-size: 0.75rem; color: var(--text-dimmer); font-family: var(--font-mono); margin-bottom: 1rem; }

.stage-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}
.stage-sources li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stage-sources li::before {
  content: '·';
  color: var(--accent-dim);
}

.stage-note {
  font-size: 0.78rem;
  color: var(--text-dimmer);
  background: rgba(196, 149, 88, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-style: italic;
}

.tier-card {
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.tier-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.local-tier { background: rgba(196, 149, 88, 0.06); border: 1px solid rgba(196, 149, 88, 0.14); }
.cloud-tier { background: rgba(110, 143, 168, 0.06); border: 1px solid rgba(110, 143, 168, 0.14); }
.local-tier .tier-label { color: var(--accent); }
.cloud-tier .tier-label { color: var(--blue); }

.actuator-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.action {
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  border: 1px solid var(--border);
}
.action-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dimmer);
  display: block;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.action.passive { background: rgba(255,255,255,0.02); }
.action.active { background: rgba(196, 122, 64, 0.04); border-color: rgba(196, 122, 64, 0.15); }
.action.active .action-tag { color: var(--orange); }

/* Daemon stats */
.daemon-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent-dim);
}
.stat-label { font-size: 0.8rem; color: var(--text-dimmer); }

/* ─── Inference Section ──────────────────────────────────────── */
.inference-diagram {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.inf-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.inf-icon { font-size: 1.2rem; }

.daemon-box { border-color: rgba(196, 149, 88, 0.24); color: var(--accent); }
.local-box { border-color: rgba(196, 149, 88, 0.24); }
.cloud-box { border-color: rgba(110, 143, 168, 0.24); }

.inf-target-title { font-size: 0.82rem; color: var(--text); }
.inf-target-sub { font-size: 0.68rem; color: var(--text-dimmer); margin-top: 2px; }

.inference-targets { display: flex; flex-direction: column; gap: 1rem; }

.router-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.router-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  text-align: center;
}
.router-modes {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.rmode {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--border);
  color: var(--text-dimmer);
  border: 1px solid transparent;
}
.rmode.active {
  background: rgba(196, 149, 88, 0.1);
  border-color: rgba(196, 149, 88, 0.28);
  color: var(--accent);
}

.router-split { display: flex; flex-direction: column; gap: 0.75rem; }
.split-line { display: flex; align-items: flex-start; gap: 0.75rem; }
.split-pct {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.split-line.local-line .split-pct { color: var(--accent); }
.split-line.cloud-line .split-pct { color: var(--blue); }
.split-desc { font-size: 0.82rem; color: var(--text-dimmer); line-height: 1.4; }

.cactus-note {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.cactus-note-icon { font-size: 1.5rem; flex-shrink: 0; }
.cactus-note strong { color: var(--text); }

/* ─── Privacy Section ────────────────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.privacy-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}
.privacy-card.always-on {
  background: var(--bg-card);
}
.privacy-card.fleet-scope {
  background: var(--bg-card);
  border-color: rgba(110, 143, 168, 0.2);
}

.privacy-scope {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dimmer);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.privacy-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.privacy-list li {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.privacy-list.no li { color: var(--text-dimmer); }

.fleet-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(110, 143, 168, 0.05);
  border: 1px solid rgba(110, 143, 168, 0.14);
  border-radius: var(--radius);
  padding: 0.75rem;
  line-height: 1.6;
  font-style: italic;
}
.fleet-note strong { color: var(--text); font-style: normal; }

.open-source-note {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(196, 149, 88, 0.05);
  border: 1px solid rgba(196, 149, 88, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.oss-icon svg {
  width: 24px; height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.open-source-note strong { color: var(--text); }

/* ─── Enterprise Section ─────────────────────────────────────── */
.enterprise-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

/* Fleet dashboard mockup */
.fleet-dashboard {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
}
.chrome-dots.small span { width: 8px; height: 8px; }
.chrome-title.small { font-size: 0.65rem; }

.dashboard-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.dash-section { }
.dash-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.tier-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.tier-row { display: flex; align-items: center; gap: 0.6rem; }
.tier-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  width: 130px;
  flex-shrink: 0;
}
.tier-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.tier-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.tier-bar.t3 { background: var(--accent); }
.tier-bar.t2 { background: var(--blue); }
.tier-bar.t1 { background: var(--purple); }
.tier-bar.t0 { background: var(--border-light); }
.tier-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dimmer);
  width: 28px;
}

.dash-row-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.dash-metric {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}
.dash-metric-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}
.dash-metric-label {
  font-size: 0.65rem;
  color: var(--text-dimmer);
  margin-top: 0.2rem;
  line-height: 1.3;
}

.compliance-row {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}
.comp-check { color: var(--green); }

/* Enterprise features */
.enterprise-features { display: flex; flex-direction: column; gap: 1.5rem; }

.ent-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ent-feature-icon { font-size: 1.3rem; flex-shrink: 0; }
.ent-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.ent-feature p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

.enterprise-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  line-height: 1.65;
}
.enterprise-note strong { color: var(--text); }

/* Pricing tiers */
.enterprise-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ent-tier {
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}
.ent-tier.oss { background: var(--bg-card); }
.ent-tier.enterprise {
  background: linear-gradient(135deg, rgba(196, 149, 88, 0.05), rgba(110, 143, 168, 0.04));
  border-color: rgba(196, 149, 88, 0.22);
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.tier-badge.enterprise-badge { color: var(--accent); }

.ent-tier h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.tier-sub { font-size: 0.82rem; color: var(--text-dimmer); margin-bottom: 1.25rem; font-family: var(--font-mono); }

.ent-tier ul { display: flex; flex-direction: column; gap: 0.4rem; }
.ent-tier li {
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ent-tier li::before { content: '—'; color: var(--text-dimmer); }

/* ─── Open Source / Stack Section ────────────────────────────── */
.stack-table-wrap {
  margin-bottom: 4rem;
}
.stack-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dimmer);
  margin-bottom: 1rem;
}
.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.stack-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dimmer);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.stack-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.stack-table tr:last-child td { border-bottom: none; }
.stack-table td:first-child { color: var(--text); font-weight: 500; width: 140px; }
.stack-table tr:hover td { background: rgba(255,255,255,0.012); }
.stack-table code { background: none; border: none; padding: 0; font-size: 0.85em; }

/* Roadmap */
.roadmap-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dimmer);
  margin-bottom: 1.5rem;
}

.phases {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phase {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}

.phase::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.phase:last-child::before { display: none; }

.phase-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.phase.done .phase-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.phase.active .phase-dot {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 149, 88, 0.18);
}

.phase-content { flex: 1; }
.phase-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dimmer);
  margin-bottom: 0.35rem;
}
.phase-tag.current { color: var(--accent); }
.phase.done .phase-tag { color: var(--green); }

.phase h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.phase p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

/* ─── CTA Section ────────────────────────────────────────────── */
.section-cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(196, 149, 88, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.waitlist-form { max-width: 680px; margin: 0 auto; }
.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-input, .form-select {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.65rem 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-input { flex: 1; }
.form-select { min-width: 160px; cursor: pointer; }
.form-input::placeholder { color: var(--text-dimmer); }
.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-select option { background: var(--bg-card); }

.form-note { font-size: 0.75rem; color: var(--text-dimmer); text-align: center; }

.waitlist-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  padding: 1.5rem;
}
.confirm-icon { font-size: 1.2rem; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.footer-logo { width: 22px; height: 22px; object-fit: contain; opacity: 0.6; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.footer-links a { font-size: 0.85rem; color: var(--text-dimmer); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

.github-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  transition: all 0.15s;
}
.github-link:hover { border-color: var(--border-light); color: var(--text); }
.github-link svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dimmer);
}

/* ─── Scroll Animations ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .shell-mockup-wrap { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .shell-anatomy { grid-template-columns: 1fr; }
  .anatomy-diagram { position: static; }
  .daemon-flow { grid-template-columns: 1fr; }
  .daemon-arrow { display: none; }
  .daemon-stats { grid-template-columns: repeat(2, 1fr); }
  .inference-diagram { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .enterprise-grid { grid-template-columns: 1fr; }
  .enterprise-tiers { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; flex-wrap: wrap; }
  .problem-thesis { flex-direction: column; gap: 1.5rem; }
  .thesis-line { width: 100%; height: 1px; min-height: unset; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero { padding: 120px 0 80px; }
  .daemon-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-row-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
