@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* ---------- Design tokens (mirrors apps/web/app/globals.css) ---------- */
:root {
  color-scheme: light dark;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --color-accent-50: oklch(0.97 0.025 42);
  --color-accent-400: oklch(0.72 0.15 42);
  --color-accent-500: oklch(0.62 0.18 42);
  --color-accent-600: oklch(0.53 0.19 42);
  --color-aether-gold: oklch(0.82 0.12 88);

  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-inset: #f5f5f4;
  --fg: #1c1917;
  --fg-muted: #57534e;
  --fg-subtle: #78716c;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --code-bg: #1c1917;
  --code-fg: #f5f5f4;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px -12px rgba(28, 25, 23, 0.12);
}

:root.dark {
  --bg: #161412;
  --bg-elevated: #1c1a17;
  --bg-inset: #201d1a;
  --fg: #fafaf9;
  --fg-muted: #d6d3d1;
  --fg-subtle: #a8a29e;
  --border: #2c2926;
  --border-strong: #3a3632;
  --code-bg: #0f0d0c;
  --code-fg: #e7e5e4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: color-mix(in oklch, var(--color-accent-400) 30%, transparent);
}

.font-serif {
  font-family: var(--font-serif);
  font-feature-settings: "ss01" 1;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Nav (floating bubble) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  height: 54px;
  gap: 16px;
  margin-inline: auto;
  padding-inline: 8px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-nav .brand {
  padding-left: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

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

.nav-link {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg-inset);
  color: var(--fg);
}

.nav-link.active {
  color: var(--color-accent-600);
}

:root.dark .nav-link.active {
  color: var(--color-accent-400);
}

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

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-subtle);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-inset);
  color: var(--fg);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent-500);
  color: #fffaf5;
  box-shadow: 0 1px 2px color-mix(in oklch, var(--color-accent-600) 40%, transparent);
}

.btn-primary:hover {
  background: var(--color-accent-600);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn-secondary:hover {
  background: var(--bg-inset);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
}

.btn-ghost:hover {
  background: var(--bg-inset);
  color: var(--fg);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 48px;
  overflow-x: clip;
}

.hero-bg {
  position: absolute;
  left: -10%;
  right: -10%;
  top: -220px;
  height: 680px;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.5;
}

:root.dark .hero-bg {
  opacity: 0.28;
}

.aether-a,
.aether-b,
.aether-c {
  position: absolute;
  border-radius: 999px;
}

.aether-a {
  width: 420px;
  height: 420px;
  left: 4%;
  top: 0;
  background: var(--color-accent-400);
  animation: aether-drift-a 26s ease-in-out infinite;
}

.aether-b {
  width: 380px;
  height: 380px;
  right: 8%;
  top: 60px;
  background: var(--color-aether-gold);
  animation: aether-drift-b 32s ease-in-out infinite;
}

.aether-c {
  width: 300px;
  height: 300px;
  left: 40%;
  top: 120px;
  background: var(--color-accent-500);
  animation: aether-drift-c 20s ease-in-out infinite;
}

@keyframes aether-drift-a {
  0%, 100% { transform: translate(-8%, -6%) scale(1); }
  50% { transform: translate(10%, 8%) scale(1.2); }
}
@keyframes aether-drift-b {
  0%, 100% { transform: translate(6%, 10%) scale(1.1); }
  50% { transform: translate(-12%, -4%) scale(0.9); }
}
@keyframes aether-drift-c {
  0%, 100% { transform: translate(0%, -8%) scale(0.95); }
  50% { transform: translate(-6%, 12%) scale(1.15); }
}

.hero-inner {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fffaf5;
  background: var(--color-accent-600);
  border: 1px solid var(--color-accent-600);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08);
}

:root.dark .eyebrow {
  background: var(--color-accent-500);
  border-color: var(--color-accent-500);
  color: #1c1917;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent-600);
}

:root.dark .hero h1 em {
  color: var(--color-accent-400);
}

.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--fg-muted);
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.install-copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 10px;
  padding: 12px 12px 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  max-width: 100%;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.install-copy .prompt {
  color: var(--color-accent-400);
}

.install-copy button {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--code-fg);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.install-copy button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.install-copy svg {
  width: 15px;
  height: 15px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--fg-subtle);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
}

/* ---------- Screenshot frame ---------- */
.browser-frame {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 36px;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-strong);
}

.browser-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

section + section {
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 70%);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-600);
  margin: 0 0 10px;
}

:root.dark .kicker {
  color: var(--color-accent-400);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--fg-muted);
  font-size: 1rem;
  margin: 0;
}

/* ---------- Problem / prose ---------- */
.prose p {
  color: var(--fg-muted);
  font-size: 1.02rem;
}

.prose p + p {
  margin-top: 16px;
}

.prose strong {
  color: var(--fg);
}

/* ---------- Feature grid (bento) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}

.feature-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-card.span-lg {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(155deg, var(--color-accent-50), var(--bg-elevated) 55%);
  justify-content: center;
}

:root.dark .feature-card.span-lg {
  background: linear-gradient(155deg, color-mix(in oklch, var(--color-accent-500) 14%, transparent), var(--bg-elevated) 60%);
}

.feature-card.span-wide {
  grid-column: span 2;
}

.feature-card.span-wide {
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
}

.feature-card.span-wide .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-accent-50);
  color: var(--color-accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card.span-lg .feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--color-accent-500);
  color: #fffaf5;
}

:root.dark .feature-icon {
  background: color-mix(in oklch, var(--color-accent-500) 18%, transparent);
  color: var(--color-accent-400);
}

:root.dark .feature-card.span-lg .feature-icon {
  background: var(--color-accent-500);
  color: #1c1917;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature-card.span-lg .feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card.span-lg h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin: 0;
}

.feature-card.span-lg p {
  font-size: 0.96rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card.span-lg,
  .feature-card.span-wide {
    grid-column: span 2;
  }
  .feature-card.span-lg {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card,
  .feature-card.span-lg,
  .feature-card.span-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .feature-card.span-wide {
    flex-direction: column;
  }
}

/* ---------- Showcase gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-full {
  grid-column: 1 / -1;
  min-width: 0;
}

.gallery-item {
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-caption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

.gallery-caption strong {
  color: var(--fg);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

/* ---------- Before/after compare slider ---------- */
.compare-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.compare {
  position: relative;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.compare img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.compare-base {
  position: relative;
  z-index: 1;
}

.compare-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 3px;
  background: #fffaf5;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fffaf5;
  color: var(--color-accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.compare-grip svg {
  width: 18px;
  height: 18px;
}

.compare-tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fffaf5;
  background: rgba(28, 25, 23, 0.65);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.compare-tag-left {
  left: 14px;
}

.compare-tag-right {
  right: 14px;
}

.compare-caption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

.compare-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-hint svg {
  width: 14px;
  height: 14px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
  font-weight: 600;
  background: var(--bg-inset);
}

tr:last-child td {
  border-bottom: none;
}

td code,
p code,
li code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--color-accent-600);
}

:root.dark td code,
:root.dark p code,
:root.dark li code {
  color: var(--color-accent-400);
}

/* ---------- Code blocks ---------- */
.code-block {
  position: relative;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-block .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 244, 0.5);
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre;
}

.code-block .copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--code-fg);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.code-block .copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.code-block .copy-btn svg {
  width: 13px;
  height: 13px;
}

.tok-comment { color: #a8a29e; }
.tok-string { color: #f0b088; }
.tok-flag { color: #8ecae6; }
.tok-cmd { color: var(--color-aether-gold); font-weight: 600; }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  min-width: 0;
}

.step > div {
  min-width: 0;
}

.step-num {
  counter-increment: step;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-accent-500);
  color: #fffaf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
}

.step h3 {
  margin: 4px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.step p {
  margin: 0 0 10px;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

/* ---------- Surfaces (CLI/Web/MCP) ---------- */
.surfaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.surface-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--bg-elevated);
}

.surface-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-600);
  margin-bottom: 14px;
}

:root.dark .surface-card .badge {
  color: var(--color-accent-400);
}

.surface-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.surface-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.surface-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-muted);
  font-size: 0.88rem;
}

.surface-card li + li {
  margin-top: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--fg);
  padding: 56px 40px;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--color-accent-400);
  filter: blur(90px);
  opacity: 0.16;
  z-index: 0;
  animation: aether-drift-a 30s ease-in-out infinite;
}

:root.dark .cta-band::before {
  opacity: 0.12;
}

.cta-band h2,
.cta-band p,
.cta-band .hero-ctas {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  font-weight: 500;
}

.cta-band p {
  margin: 0 0 28px;
  color: var(--fg-muted);
  font-size: 1rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--color-accent-600);
}

:root.dark .footer-col a:hover {
  color: var(--color-accent-400);
}

.footer-col p {
  color: var(--fg-muted);
  font-size: 0.88rem;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--fg-subtle);
}

.footer-bottom .brand {
  font-size: 0.9rem;
}

/* ---------- Docs layout ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-bottom: 40px;
}

.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-group {
  margin-bottom: 18px;
}

.docs-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  padding: 6px 10px;
}

.docs-sidebar a {
  display: block;
  text-decoration: none;
  font-size: 0.87rem;
  color: var(--fg-muted);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
}

.docs-sidebar a:hover {
  background: var(--bg-inset);
  color: var(--fg);
}

.docs-sidebar a.active {
  color: var(--color-accent-600);
  background: var(--color-accent-50);
  border-left-color: var(--color-accent-500);
  font-weight: 500;
}

:root.dark .docs-sidebar a.active {
  color: var(--color-accent-400);
  background: color-mix(in oklch, var(--color-accent-500) 14%, transparent);
}

.docs-content {
  position: relative;
  min-width: 0;
  max-width: 760px;
  padding-bottom: 100px;
  overflow-x: hidden;
}

.docs-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 12px;
}

.docs-lead {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.docs-title-divider {
  height: 1px;
  margin: 0 0 20px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.docs-section {
  position: relative;
  scroll-margin-top: 88px;
  padding: 0 0 40px;
  margin-bottom: 56px;
}

.docs-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 70%);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.docs-section:last-child::after {
  display: none;
}

.docs-section + .docs-section::before {
  display: none;
}

.docs-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.docs-section .section-desc {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.cmd-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.cmd-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}

.cmd-header code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  background: none;
  border: none;
  padding: 0;
}

.cmd-body {
  padding: 16px 18px;
}

.cmd-body > p {
  margin: 0 0 14px;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.opt-table-wrap {
  overflow-x: auto;
}

.opt-table {
  width: 100%;
  min-width: 480px;
  font-size: 0.84rem;
  border-collapse: collapse;
}

.opt-table th,
.opt-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.opt-table th {
  color: var(--fg-subtle);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  background: transparent;
}

.opt-table tr:last-child td {
  border-bottom: none;
}

.opt-flag {
  font-family: var(--font-mono);
  color: var(--color-accent-600);
  white-space: nowrap;
}

:root.dark .opt-flag {
  color: var(--color-accent-400);
}

.tool-grid {
  display: grid;
  gap: 14px;
}

.tool-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg-elevated);
}

.tool-item code {
  font-weight: 600;
}

.tool-item p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.callout {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--color-accent-500);
  background: var(--color-accent-50);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--fg);
  margin: 20px 0;
}

:root.dark .callout {
  background: color-mix(in oklch, var(--color-accent-500) 12%, transparent);
}

.callout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent-600);
  margin-top: 2px;
}

:root.dark .callout svg {
  color: var(--color-accent-400);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-pill.yes {
  background: #dcfce7;
  color: #15803d;
}

.badge-pill.no {
  background: var(--bg-inset);
  color: var(--fg-subtle);
  border: 1px solid var(--border);
}

.badge-pill.partial {
  background: #fef3c7;
  color: #92620a;
}

:root.dark .badge-pill.yes {
  background: #14532d;
  color: #86efac;
}

:root.dark .badge-pill.partial {
  background: #78350f;
  color: #fde68a;
}

/* ---------- FAQ accordion (single flat list) ---------- */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 0.96rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--fg-subtle);
  transition: transform 0.2s ease, color 0.15s ease;
}

.faq-item[open] summary .faq-chevron {
  transform: rotate(45deg);
  color: var(--color-accent-600);
}

:root.dark .faq-item[open] summary .faq-chevron {
  color: var(--color-accent-400);
}

.faq-item .faq-answer {
  padding: 0 4px 20px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .surfaces {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .docs-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .docs-group {
    display: contents;
  }
  .docs-group-title {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 78px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    gap: 2px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .menu-toggle {
    display: flex;
  }
  .surfaces {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .step {
    grid-template-columns: 36px 1fr;
  }
  .hero {
    padding: 56px 0 40px;
  }
  section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll to top ---------- */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.15s ease, color 0.15s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  border-color: var(--color-accent-500);
  color: var(--color-accent-600);
}

:root.dark .scroll-top-btn:hover {
  color: var(--color-accent-400);
}

.scroll-top-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Scroll reveal + entrance polish ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
  }

  .reveal.in-view {
    opacity: 1;
    transform: none;
  }

  .hero .eyebrow,
  .hero h1,
  .hero p.lead,
  .hero .hero-ctas,
  .hero .hero-meta {
    opacity: 0;
    animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero .eyebrow {
    animation-delay: 0.05s;
  }
  .hero h1 {
    animation-delay: 0.12s;
  }
  .hero p.lead {
    animation-delay: 0.2s;
  }
  .hero .hero-ctas:nth-of-type(1) {
    animation-delay: 0.28s;
  }
  .hero .hero-ctas:nth-of-type(2) {
    animation-delay: 0.34s;
  }
  .hero .hero-meta {
    animation-delay: 0.4s;
  }

  .hero .browser-frame {
    opacity: 0;
    animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.32s;
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  img[data-fade] {
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  img[data-fade].loaded {
    opacity: 1;
  }
}

/* Smoother, more premium hover response across interactive surfaces */
.surface-card,
.gallery-item,
.tool-item,
.cmd-block,
.compare-wrap {
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.surface-card:hover,
.gallery-item:hover,
.compare-wrap:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn {
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.step-num {
  transition: transform 0.2s ease;
}

.step:hover .step-num {
  transform: scale(1.08);
}

/* ---------- Who it's for (editorial list, not a card grid) ---------- */
.persona-list {
  border-top: 1px solid var(--border);
  max-width: 760px;
  margin-inline: auto;
}

.persona-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.persona-row:hover {
  background: var(--bg-elevated);
}

.persona-row:hover .persona-icon {
  transform: translateX(2px);
  color: var(--color-accent-600);
}

.persona-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-50);
  color: var(--color-accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

:root.dark .persona-icon {
  background: color-mix(in oklch, var(--color-accent-500) 18%, transparent);
  color: var(--color-accent-400);
}

.persona-icon svg {
  width: 20px;
  height: 20px;
}

.persona-row h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.persona-row p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .persona-row {
    padding: 20px 2px;
    gap: 14px;
  }
}
