/* ============================================================
   Quite — marketing site
   A quiet, minimal system: flat surfaces, one accent,
   generous spacing, readable type.
   ============================================================ */

:root {
  --bg: #1b1b1b;
  --bg-deep: #141414;
  --sidebar: #141414;
  --surface: #202020;
  --surface-2: #252525;
  --surface-3: #2b2b2b;
  --input: #2a2a2a;
  --border: #2d2d2d;
  --border-soft: #252525;
  --border-strong: #3a3a3a;
  --text: #f5f5f5;
  --text-soft: #d4d4d4;
  --muted: #a6a6a6;
  --dim: #8a8a8a;
  --faint: #6a6a6a;
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-pale: #6ee7b7;
  --accent-soft: rgba(52, 211, 153, 0.1);
  --accent-line: rgba(52, 211, 153, 0.28);
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1120px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(52, 211, 153, 0.28);
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
pre,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* Scrollbars, matching the app */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #4d4d4d;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

.brand-mark .icon,
.mock-brand .icon {
  stroke: none;
  fill: currentColor;
}

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

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--text);
  color: #171717;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: #4a4a4a;
  color: #fff;
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 8px;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
}

.brand-mark .icon {
  width: 21px;
  height: 21px;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-links a:hover {
  color: #fff;
  background: var(--surface-2);
}

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

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 17px;
  height: 17px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 148px 0 96px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 62% at 58% 34%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 58% 34%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 13px;
  height: 13px;
  color: var(--accent-bright);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.8rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy > h1:first-child {
  margin-top: 0;
}

.gradient-text {
  color: var(--accent-bright);
}

.hero-lede {
  max-width: 480px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.7;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 500px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  padding-right: 16px;
}

.hero-stats div + div {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-stats dd {
  margin-top: 5px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   App mockup
   ------------------------------------------------------------ */
.hero-visual {
  position: relative;
  min-width: 0;
}

.app-shell {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--sidebar);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  background: #141414;
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3a3a;
}

.app-titlebar-title {
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.titlebar-spacer {
  flex: 1;
}

.app-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  height: 456px;
  min-width: 0;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  padding: 12px 9px 9px;
  background: #141414;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.mock-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 3px 12px;
}

.mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mock-brand .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-bright);
}

.mock-head-actions {
  display: flex;
  gap: 2px;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--dim);
}

.mini-icon .icon {
  width: 12px;
  height: 12px;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 9px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #1b1b1b;
  color: var(--dim);
  font-size: 10px;
}

.mock-search .icon {
  width: 11px;
  height: 11px;
}

.mock-chat-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.mock-chat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}

.mock-chat-item .icon {
  width: 11px;
  height: 11px;
  flex: none;
  opacity: 0.7;
}

.mock-chat-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-chat-item.active {
  background: #202020;
  color: var(--text);
  font-weight: 500;
}

.mock-side-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 9px 8px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 10px;
}

.mock-side-foot .icon {
  width: 12px;
  height: 12px;
  color: var(--dim);
}

.mock-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1b1b1b;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft);
  flex: none;
}

.mock-chat-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 6px;
  overflow: hidden;
}

.mock-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: fade-up 0.6s var(--ease) both;
}

.mock-msg.user {
  justify-content: flex-end;
}

.mock-bubble {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 10px 10px 2px 10px;
  background: #374151;
  color: #e4e4e7;
  font-size: 10.5px;
  line-height: 1.5;
}

.mock-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--accent-bright);
}

.mock-avatar .icon {
  width: 11px;
  height: 11px;
}

.mock-answer {
  min-width: 0;
  max-width: 92%;
  color: #cfcfd4;
  font-size: 10.5px;
  line-height: 1.6;
}

.mock-answer strong {
  color: var(--text);
  font-weight: 600;
}

.mock-code {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #161616;
  overflow: hidden;
}

.mock-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--dim);
  font-size: 8.5px;
  font-family: var(--font-mono);
}

.mock-copy {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mock-copy .icon {
  width: 8px;
  height: 8px;
}

.mock-code pre {
  padding: 7px 9px;
  color: #a7f3d0;
  font-size: 8.5px;
  line-height: 1.6;
  white-space: pre;
  overflow: hidden;
}

.mock-msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 9px;
}

.mock-msg-actions .icon {
  width: 10px;
  height: 10px;
}

.branch-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  border-left: 1px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.branch-count b {
  color: var(--muted);
  font-weight: 500;
}

.branch-count .icon {
  width: 9px;
  height: 9px;
}

.mock-typing {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 30px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}

.pulse-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.28);
  animation: ping-soft 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.shimmer-word {
  background: linear-gradient(90deg, #737373 0%, #f5f5f5 45%, #737373 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.4s linear infinite;
}

.typing-dots {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  transform: translateY(1px);
}

.typing-dots i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot-bounce 1.2s infinite ease-in-out both;
}

.typing-dots i:nth-child(2) {
  animation-delay: 150ms;
}
.typing-dots i:nth-child(3) {
  animation-delay: 300ms;
}

.mock-composer-wrap {
  padding: 10px 14px 12px;
  background: #1b1b1b;
  flex: none;
}

.mock-composer {
  position: relative;
  padding: 9px 9px 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--input);
}

.mock-placeholder {
  display: block;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.4;
}

.mock-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  background: #363636;
  color: #b4b4bb;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.model-chip .icon {
  width: 8px;
  height: 8px;
}

.send-btn {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: var(--text);
  color: #171717;
}

.send-btn .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.6;
}

.mock-disclaimer {
  margin-top: 7px;
  text-align: center;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   Provider strip
   ------------------------------------------------------------ */
.provider-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #181818;
}

.provider-strip-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 84px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.strip-label {
  flex: none;
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strip-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
}

.strip-names span {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 180ms ease;
}

.strip-names span:hover {
  color: var(--text);
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  position: relative;
  padding: 104px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head h2,
.split-copy h2,
.cta-copy h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.split-copy > p {
  max-width: 580px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.dim {
  color: var(--dim);
}

.accent {
  color: var(--accent-bright);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Pillars
   ------------------------------------------------------------ */
.pillars {
  padding-top: 80px;
  padding-bottom: 24px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pillar {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.pillar:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.pillar:hover .pillar-icon {
  color: var(--accent-bright);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.pillar-icon .icon {
  width: 18px;
  height: 18px;
}

.pillar h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pillar p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   Feature explorer
   ------------------------------------------------------------ */
.feature-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.feature-tab .icon {
  width: 13px;
  height: 13px;
}

.feature-tab:hover {
  background: var(--surface-2);
  color: var(--text);
}

.feature-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #171717;
}

.feature-tab .tab-count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
}

.feature-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  width: 280px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--dim);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.feature-search:focus-within {
  border-color: #525252;
  background: var(--surface-2);
}

.feature-search .icon {
  width: 14px;
  height: 14px;
}

.feature-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.feature-search input::placeholder {
  color: var(--dim);
}

.feature-search input::-webkit-search-cancel-button {
  display: none;
}

.search-kbd {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.01em;
}

#featureCount {
  color: var(--muted);
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  position: relative;
  padding: 18px 17px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
  animation: card-in 0.35s var(--ease) both;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.feature-card:hover .feature-icon {
  color: var(--accent-bright);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.feature-icon .icon {
  width: 15px;
  height: 15px;
}

.feature-cat {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.feature-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.feature-empty .icon {
  width: 24px;
  height: 24px;
  color: var(--faint);
}

.feature-empty strong {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

.feature-empty span {
  font-size: 13px;
}

.noscript {
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------
   Branching / map demo
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.check-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--accent-bright);
  stroke-width: 2.2;
}

.check-list code {
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
}

.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.inline-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: none;
  color: var(--accent-bright);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.inline-note kbd {
  margin: 0 1px;
  vertical-align: 1px;
}

.map-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #181818;
  box-shadow: var(--shadow);
}

.map-window-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px 0 15px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.map-fork-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-bright);
}

.map-window-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.map-window-chat {
  color: var(--dim);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.map-controls button {
  display: grid;
  place-items: center;
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.map-controls button:hover {
  background: var(--surface-3);
  color: #fff;
}

#mapZoomLabel {
  min-width: 42px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.map-canvas {
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0) 0 0 / 18px 18px,
    #161616;
  cursor: grab;
  touch-action: none;
}

.map-canvas:active {
  cursor: grabbing;
}

#mapSvg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  user-select: none;
}

#mapViewport {
  transform-origin: 0 0;
}

.map-edge {
  fill: none;
  stroke: #3f3f3f;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.72;
  transition: stroke 160ms ease, stroke-width 160ms ease;
}

.map-edge.active {
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.95;
}

.map-hit {
  fill: transparent;
}

.map-node {
  fill: #525252;
  stroke: #3f3f3f;
  stroke-width: 1.5;
  transition: fill 160ms ease, r 160ms ease;
}

.map-node.active {
  fill: var(--accent);
  stroke: var(--accent-pale);
}

.map-node-group {
  cursor: pointer;
  outline: none;
}

.map-node-group:hover .map-node,
.map-node-group:focus-visible .map-node {
  r: 8.5;
}

.map-node-group:focus-visible .map-node {
  stroke: #fff;
  stroke-width: 2.5;
}

.map-fork-ring {
  fill: none;
  stroke: #525252;
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.72;
}

.map-node-label {
  fill: var(--dim);
  stroke: #161616;
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-family: var(--font-sans);
  font-size: 10px;
  text-anchor: middle;
  pointer-events: none;
}

.map-selected-ring {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 1.5;
  opacity: 0.9;
  pointer-events: none;
  transition: cx 180ms var(--ease), cy 180ms var(--ease);
}

.map-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 13px 15px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.map-detail-main {
  min-width: 0;
  flex: 1;
}

.map-detail-role {
  display: block;
  margin-bottom: 4px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-detail-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.map-detail-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

.mini-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.mini-action:hover {
  background: #363636;
  color: #fff;
}

.mini-action .icon {
  width: 12px;
  height: 12px;
}

.accent-action {
  background: var(--accent-soft);
  color: var(--accent-pale);
}

.accent-action:hover {
  background: rgba(52, 211, 153, 0.18);
  color: #a7f3d0;
}

.map-hint {
  padding: 8px 15px 10px;
  border-top: 1px solid var(--border-soft);
  background: #181818;
  color: var(--faint);
  font-size: 10px;
}

/* ------------------------------------------------------------
   Providers
   ------------------------------------------------------------ */
.providers {
  background: #181818;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.provider-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 56px;
  margin-bottom: 40px;
}

.code-callout {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #161616;
}

.code-callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-callout-head span:last-child {
  color: var(--accent-bright);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.code-callout > code {
  display: block;
  padding: 14px 15px;
  color: #a7f3d0;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.fine-print {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

.fine-print .icon {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--muted);
}

.picker-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.picker-badge {
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
}

.picker-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #181818;
  color: var(--dim);
  font-size: 11px;
}

.picker-search .icon {
  width: 12px;
  height: 12px;
}

.picker-scroll {
  max-height: 340px;
  padding: 0 5px 6px;
  overflow: hidden;
}

.picker-group {
  padding: 5px 0;
}

.picker-group-label {
  display: block;
  padding: 6px 10px 5px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.picker-item.selected {
  background: var(--surface-3);
  color: #fff;
}

.picker-check {
  display: grid;
  place-items: center;
  color: var(--accent-bright);
}

.picker-check .icon {
  width: 11px;
  height: 11px;
}

.local-tag {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent-pale);
  font-family: var(--font-sans);
  font-size: 8.5px;
}

.picker-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 10px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.provider-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.provider-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.provider-card > div {
  min-width: 0;
  flex: 1;
}

.provider-card h3 {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.provider-card code {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-tag {
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--dim);
  font-size: 8.5px;
  line-height: 1.6;
}

.provider-tag.local {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-pale);
}

/* ------------------------------------------------------------
   Shortcuts
   ------------------------------------------------------------ */
.shortcut-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shortcut-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.shortcut-card-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shortcut-card-head .icon {
  width: 15px;
  height: 15px;
  color: var(--accent-bright);
}

.shortcut-badge {
  padding: 2px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-pale);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border-soft);
}

.shortcut-row > div {
  min-width: 0;
}

.shortcut-row strong {
  display: block;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.shortcut-row span:not(.keys) {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.4;
}

.keys {
  display: flex;
  gap: 4px;
  flex: none;
}

.shortcut-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 17px;
  background: #181818;
  color: var(--dim);
  font-size: 10px;
}

.shortcut-extra span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shortcut-extra kbd {
  height: 19px;
  min-width: 19px;
  font-size: 9px;
}

/* ------------------------------------------------------------
   Privacy
   ------------------------------------------------------------ */
.db-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #161616;
  box-shadow: var(--shadow);
}

.db-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
}

.db-card-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.db-card-head .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-bright);
}

.db-badge {
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
}

.db-code {
  padding: 18px 18px 20px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.j-key {
  color: #93c5fd;
}

.j-str {
  color: #a7f3d0;
}

.db-card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--dim);
  font-size: 10px;
}

.db-card-foot .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.db-card-foot code {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Stack strip
   ------------------------------------------------------------ */
.stack-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #181818;
}

.stack-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.stack-label {
  flex: none;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-badges span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.cta {
  padding-top: 96px;
  padding-bottom: 104px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
}

.cta-copy {
  max-width: 480px;
}

.cta-copy h2 {
  margin-top: 14px;
}

.cta-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex: none;
}

.run-command {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #161616;
  color: var(--muted);
  font-size: 11px;
}

.run-command code {
  color: var(--text-soft);
  font-size: 11px;
}

.run-command > span:first-child {
  color: var(--accent-bright);
}

.run-sep {
  color: var(--faint);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 12px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 12.5px;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 11px;
}

.footer-palette {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-palette i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #1b1b1b;
  border: 1px solid var(--border-strong);
}

.footer-palette i:nth-child(2) {
  background: #2a2a2a;
}
.footer-palette i:nth-child(3) {
  background: #10b981;
  border-color: #10b981;
}
.footer-palette i:nth-child(4) {
  background: #f5f5f5;
  border-color: #f5f5f5;
}

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.96);
  color: #d1fae5;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------
   Reveal / animation
   ------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(1px);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-1.5px);
    opacity: 1;
  }
}

@keyframes ping-soft {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1120px) {
  .hero-inner {
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillar-grid,
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 124px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-visual {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .split,
  .provider-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .split-copy {
    max-width: 640px;
  }

  .feature-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .feature-search {
    width: 100%;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-side {
    align-items: flex-start;
    width: 100%;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    gap: 12px;
    height: 60px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(20, 20, 20, 0.99);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 12px;
    font-size: 14px;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    padding: 108px 0 68px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 9.5vw, 3.4rem);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .hero-stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .app-layout {
    grid-template-columns: 140px minmax(0, 1fr);
    height: 420px;
  }

  .mock-sidebar {
    padding-left: 7px;
    padding-right: 7px;
  }

  .provider-strip-inner,
  .stack-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .strip-names {
    gap: 8px 22px;
  }

  .strip-names span {
    font-size: 13px;
  }

  .section {
    padding: 76px 0;
  }

  .pillars {
    padding-top: 56px;
    padding-bottom: 16px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .feature-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .feature-tabs::-webkit-scrollbar {
    display: none;
  }

  .feature-tab {
    flex: none;
  }

  .map-window-head {
    flex-wrap: wrap;
    padding-top: 9px;
    padding-bottom: 9px;
    row-gap: 6px;
  }

  .map-window-chat {
    display: none;
  }

  .map-controls {
    margin-left: auto;
  }

  .map-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .map-detail-actions {
    width: 100%;
  }

  .mini-action {
    flex: 1;
    justify-content: center;
  }

  .provider-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cta-card {
    padding: 32px 26px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1;
  }
}

@media (max-width: 540px) {
  .nav-github {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-layout {
    grid-template-columns: minmax(0, 1fr);
    height: 400px;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-messages {
    padding: 14px 14px 4px;
  }

  .mock-answer {
    max-width: 96%;
  }

  .cta-actions {
    flex-direction: column;
  }

  .run-command {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .section-head h2,
  .split-copy h2,
  .cta-copy h2 {
    font-size: 1.9rem;
  }
}

/* ------------------------------------------------------------
   Print & reduced motion
   ------------------------------------------------------------ */
@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .site-header,
  .toast {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Real App Screenshots
   ============================================================ */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.screenshot-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.screenshot-frame {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.28s var(--ease);
}

.screenshot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.screenshot-trigger:hover img,
.screenshot-trigger:focus-visible img {
  transform: scale(1.015);
}

.screenshot-trigger:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: -2px;
}

.lightbox-dialog {
  width: min(94vw, 1180px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.lightbox-dialog[open] {
  display: flex;
  flex-direction: column;
}

.lightbox-dialog::backdrop {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(6px);
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.lightbox-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-3);
}

.lightbox-body {
  padding: 14px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
}

.lightbox-body img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 88px);
  width: auto;
  height: auto;
  border-radius: 8px;
}

.screenshot-caption {
  padding: 18px 20px 20px;
}

.screenshot-caption h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.screenshot-caption p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.screenshot-caption code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-pale);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
}

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

