/* Tidalloom — Linear-style design system */

:root {
  --bg: oklch(0.11 0.008 260);
  --surface: oklch(0.14 0.01 260);
  --surface-elevated: oklch(0.17 0.012 260);
  --text: oklch(0.97 0.005 260);
  --text-muted: oklch(0.62 0.015 260);
  --text-dim: oklch(0.48 0.012 260);
  --border: oklch(0.28 0.01 260 / 0.45);
  --border-subtle: oklch(1 0 0 / 0.06);
  --accent: oklch(0.72 0.12 280);
  --accent-teal: oklch(0.75 0.14 195);
  --accent-hover: oklch(0.78 0.13 280);
  --priority-high: oklch(0.72 0.16 45);
  --priority-med: oklch(0.78 0.14 85);
  --label-blue: oklch(0.65 0.14 250);
  --label-green: oklch(0.72 0.14 155);
  --label-purple: oklch(0.68 0.12 300);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --nav-h: 56px;
  --max-w: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-ui: 0 0 0 1px var(--border-subtle), 0 24px 80px oklch(0 0 0 / 0.55);
  --shadow-glow: 0 0 120px oklch(0.55 0.18 280 / 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

.container-wide {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
}
.skip-link:focus { left: 16px; }

/* ─── Navigation ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border-subtle);
  background: oklch(0.11 0.008 260 / 0.82);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-right: 16px;
  flex-shrink: 0;
}

.logo-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.logo-mark svg { width: 18px; height: 18px; fill: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a,
.nav-dropdown {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover,
.nav-dropdown:hover {
  color: var(--text);
  background: oklch(1 0 0 / 0.04);
}

.nav-dropdown svg { width: 12px; height: 12px; opacity: 0.5; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 32px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-ghost {
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-signup {
  background: var(--text);
  color: var(--bg);
}
.btn-signup:hover { background: oklch(0.9 0.005 260); }

.mobile-toggle { display: none; padding: 8px; }

/* ─── Hero ─── */
.hero {
  padding: 64px 0 0;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.03);
  transition: border-color 0.15s, color 0.15s;
}
.hero-badge:hover {
  color: var(--text);
  border-color: oklch(1 0 0 / 0.12);
}
.hero-badge .new {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  margin-top: 16px;
  padding-bottom: 80px;
}

.hero-glow {
  position: absolute;
  inset: -10% 10% 20%;
  background: radial-gradient(ellipse at 50% 30%, oklch(0.45 0.2 280 / 0.18), transparent 65%);
  pointer-events: none;
}

.hero-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-ui), var(--shadow-glow);
  overflow: hidden;
  background: var(--surface);
  text-align: left;
}

/* ─── Product UI (shared) ─── */
.ui-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 520px;
  font-size: 13px;
}

.ui-sidebar {
  border-right: 1px solid var(--border-subtle);
  padding: 12px 8px;
  background: oklch(0.12 0.008 260);
}

.ui-sidebar-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 12px;
  font-weight: 500;
  font-size: 13px;
}

.ui-sidebar-top .workspace-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, oklch(0.55 0.18 280), oklch(0.6 0.16 195));
}

.ui-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
}
.ui-nav-item.active {
  color: var(--text);
  background: oklch(1 0 0 / 0.06);
}
.ui-nav-item svg { width: 16px; height: 16px; opacity: 0.7; }

.ui-nav-section {
  margin-top: 16px;
  padding: 0 8px;
}
.ui-nav-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.ui-fav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
}
.ui-fav-item.active { color: var(--text); background: oklch(1 0 0 / 0.04); }
.ui-fav-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--priority-high); flex-shrink: 0; }

.ui-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

.ui-issue-header {
  padding: 20px 24px 0;
}

.ui-issue-id {
  font-size: 12px;
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
  margin-bottom: 8px;
}

.ui-issue-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.ui-issue-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ui-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ui-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: oklch(0.55 0.14 250 / 0.15);
  color: oklch(0.78 0.1 250);
}
.ui-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.ui-label {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.ui-label.orange { background: oklch(0.55 0.14 45 / 0.15); color: oklch(0.78 0.12 45); }
.ui-label.teal { background: oklch(0.5 0.12 195 / 0.15); color: oklch(0.78 0.1 195); }

.ui-activity {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

.ui-activity h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.ui-activity-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.ui-activity-item strong { color: var(--text); font-weight: 500; }

.ui-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: oklch(0.35 0.08 280);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

.ui-agent-panel {
  margin: 0 24px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: oklch(0.12 0.01 260);
  overflow: hidden;
}

.ui-agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.ui-agent-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
}

.ui-agent-body { padding: 14px; }

.ui-agent-msg {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.55;
}
.ui-agent-msg:last-child { margin-bottom: 0; }

.ui-agent-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 13px;
}

/* ─── Intro section ─── */
.intro {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 64px;
  color: var(--text-muted);
}
.intro h2 em {
  font-style: normal;
  color: var(--text);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.intro-card figcaption {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.intro-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.intro-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.intro-card-visual {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.intro-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.intro-card-visual.gradient-1 {
  background: linear-gradient(160deg, oklch(0.2 0.06 280), oklch(0.14 0.04 260));
}
.intro-card-visual.gradient-2 {
  background: linear-gradient(160deg, oklch(0.18 0.08 195), oklch(0.13 0.04 260));
}
.intro-card-visual.gradient-3 {
  background: linear-gradient(160deg, oklch(0.16 0.05 300), oklch(0.12 0.03 260));
}

/* ─── Feature chapters ─── */
.chapter {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.chapter-header {
  margin-bottom: 48px;
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: color 0.15s;
}
.chapter-tag:hover { color: var(--text); }
.chapter-tag .num { font-variant-numeric: tabular-nums; }

.chapter h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.chapter-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.chapter-visual {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-ui);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 24px;
}

.chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-tab {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all 0.15s;
}
.chapter-tab:hover {
  color: var(--text-muted);
  background: oklch(1 0 0 / 0.03);
}
.chapter-tab.active {
  color: var(--text);
  border-color: var(--border-subtle);
  background: oklch(1 0 0 / 0.04);
}
.chapter-tab .sub { color: var(--text-dim); }

/* ─── Kanban board ─── */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  min-height: 400px;
  font-size: 12px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
}
.kanban-col-header span.count {
  font-size: 11px;
  color: var(--text-dim);
  background: oklch(1 0 0 / 0.05);
  padding: 1px 6px;
  border-radius: 999px;
}

.kanban-card {
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: oklch(0.13 0.01 260);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.kanban-card:hover { border-color: oklch(1 0 0 / 0.12); }

.kanban-card-id {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.kanban-card-title {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}

.kanban-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.kanban-label {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
}
.kanban-label.bug { background: oklch(0.5 0.14 25 / 0.2); color: oklch(0.75 0.12 25); }
.kanban-label.perf { background: oklch(0.5 0.12 45 / 0.2); color: oklch(0.78 0.1 45); }
.kanban-label.ai { background: oklch(0.5 0.12 280 / 0.2); color: oklch(0.78 0.1 280); }
.kanban-label.design { background: oklch(0.5 0.1 300 / 0.2); color: oklch(0.78 0.08 300); }

/* ─── Slack-style thread ─── */
.thread-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.thread-chat {
  border-right: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thread-msg {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.thread-msg-body { flex: 1; }
.thread-msg-author { font-weight: 500; margin-bottom: 2px; }
.thread-msg-text { color: var(--text-muted); line-height: 1.5; }

.thread-compose {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 13px;
}

/* ─── Timeline / roadmap ─── */
.roadmap {
  padding: 20px;
  min-height: 380px;
}

.roadmap-months {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}
.roadmap-month { flex: 1; text-align: center; }

.roadmap-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.roadmap-row-label { color: var(--text-muted); }

.roadmap-track {
  position: relative;
  height: 28px;
  background: oklch(1 0 0 / 0.02);
  border-radius: var(--radius-sm);
}

.roadmap-bar {
  position: absolute;
  top: 4px;
  height: 20px;
  border-radius: 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roadmap-bar.blue { background: oklch(0.45 0.14 250 / 0.5); color: oklch(0.85 0.08 250); }
.roadmap-bar.teal { background: oklch(0.42 0.12 195 / 0.5); color: oklch(0.85 0.08 195); }
.roadmap-bar.purple { background: oklch(0.42 0.12 300 / 0.5); color: oklch(0.85 0.08 300); }

.roadmap-initiatives {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.initiative-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.02);
  font-size: 13px;
}
.initiative-row span.count {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Agent terminal ─── */
.agent-terminal {
  padding: 20px;
  min-height: 380px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
}

.agent-line {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.agent-line .prompt { color: var(--accent-teal); flex-shrink: 0; }
.agent-line .cmd { color: var(--text); }
.agent-line .output { color: var(--text-muted); }
.agent-line .thinking { color: var(--text-dim); font-style: italic; }

.agent-menu {
  margin-top: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.agent-menu-input {
  padding: 10px 12px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}
.agent-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
}
.agent-menu-item:hover { background: oklch(1 0 0 / 0.04); }
.agent-menu-item .badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: oklch(0.5 0.12 280 / 0.2);
  color: oklch(0.78 0.1 280);
}

/* ─── Diff viewer ─── */
.diff-viewer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.6;
}

.diff-pane {
  overflow: auto;
  border-right: 1px solid var(--border-subtle);
}
.diff-pane:last-child { border-right: none; }

.diff-header {
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: oklch(0.12 0.008 260);
}

.diff-code { padding: 12px; }
.diff-line { white-space: pre; padding: 0 8px; }
.diff-line.add { background: oklch(0.45 0.12 155 / 0.15); }
.diff-line.remove { background: oklch(0.45 0.14 25 / 0.12); }
.diff-line .ln { color: var(--text-dim); margin-right: 12px; user-select: none; }

/* ─── Monitor / charts ─── */
.monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  min-height: 380px;
}

.chart-panel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: oklch(0.12 0.008 260);
}

.chart-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}
.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: oklch(0.5 0.12 280 / 0.4);
  min-height: 8px;
}
.chart-bar.highlight { background: oklch(0.6 0.16 195 / 0.6); }

.pulse-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.pulse-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 8px;
}
.pulse-status.at-risk { color: oklch(0.72 0.14 45); }
.pulse-status.on-track { color: oklch(0.72 0.14 155); }
.pulse-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pulse-title { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.pulse-list { font-size: 13px; color: var(--text-muted); }
.pulse-list li { padding: 4px 0; padding-left: 14px; position: relative; }
.pulse-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* ─── Changelog ─── */
.changelog {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.changelog h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.changelog-list { display: flex; flex-direction: column; }

.changelog-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 0.15s;
}
.changelog-item:hover { opacity: 0.85; }

.changelog-item h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.changelog-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 640px;
}
.changelog-date {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.changelog-more {
  display: inline-flex;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  gap: 4px;
}
.changelog-more:hover { color: var(--text); }

/* ─── Testimonials ─── */
.testimonials {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 360px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: oklch(1 0 0 / 0.02);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 500;
}
.testimonial-role {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.customers {
  padding: 60px 0 80px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.customers p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.45;
}

.logo-strip span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.customers-link {
  display: inline-flex;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  gap: 4px;
}
.customers-link:hover { color: var(--text); }

/* ─── Final CTA ─── */
.final-cta {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, oklch(0.4 0.16 280 / 0.12), transparent 60%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  position: relative;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}
.btn-primary:hover { background: oklch(0.9 0.005 260); }

.btn-secondary {
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  background: oklch(1 0 0 / 0.03);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: oklch(1 0 0 / 0.12);
}

/* ─── Footer ─── */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-muted); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 16px;
}
.footer-legal a:hover { color: var(--text-muted); }

/* ─── Mobile ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button { padding: 12px 0; font-size: 16px; text-align: left; }

@media (max-width: 1024px) {
  .ui-app { grid-template-columns: 180px 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .thread-panel { grid-template-columns: 1fr; }
  .thread-chat { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .diff-viewer { grid-template-columns: 1fr; }
  .monitor-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost,
  .nav-actions .btn-signup { display: none; }
  .mobile-toggle { display: block; }
  .ui-app { grid-template-columns: 1fr; }
  .ui-sidebar { display: none; }
  .kanban { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 40px; }
  .chapter, .intro, .changelog { padding: 64px 0; }
}
