/* ============================================================
   Quite — marketing site
   Palette mirrors the desktop app:
   #212121 canvas · #171717 sidebar · #2f2f2f composer
   #303030 borders · zinc text · emerald accent
   ============================================================ */

:root {
  --bg: #212121;
  --bg-deep: #1b1b1b;
  --sidebar: #171717;
  --surface: #1e1e1e;
  --surface-2: #242424;
  --surface-3: #2a2a2a;
  --input: #2f2f2f;
  --border: #303030;
  --border-soft: #262626;
  --border-strong: #3f3f46;
  --text: #f4f4f5;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #71717a;
  --faint: #52525b;
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-pale: #6ee7b7;
  --accent-soft: rgba(16, 185, 129, 0.1);
  --accent-line: rgba(16, 185, 129, 0.32);
  --danger: #f87171;
  --radius: 16px;
  --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: 1200px;
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.52);
  --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.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(16, 185, 129, 0.32);
  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: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

.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 24px;
}

/* ------------------------------------------------------------
   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: 11px;
  font-size: 13.5px;
  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,
    box-shadow 160ms ease;
}

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

.btn-primary {
  background: #f4f4f5;
  color: #171717;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 30px rgba(0, 0, 0, 0.34);
}

.btn-ghost {
  background: rgba(36, 36, 36, 0.65);
  border-color: #343434;
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: #2a2a2a;
  border-color: #48484f;
  color: #fff;
}

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

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(23, 23, 23, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #202020, #171717);
  border: 1px solid #343434;
  color: var(--accent-bright);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

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

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

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

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

.nav-links a:hover {
  color: #fff;
  background: #242424;
}

.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 #343434;
  border-radius: 9px;
  cursor: pointer;
}

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

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

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 900px;
  height: 700px;
  top: -280px;
  right: -200px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 700px;
  height: 600px;
  bottom: -380px;
  left: -260px;
  background: radial-gradient(circle at center, rgba(82, 82, 91, 0.22), transparent 66%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 15%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid #323232;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.72);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.9rem, 5.1vw, 4.45rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.gradient-text {
  background: linear-gradient(105deg, #ffffff 8%, #d1fae5 48%, #34d399 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 480px;
  margin-top: 44px;
  border-top: 1px solid #2e2e2e;
  padding-top: 20px;
}

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

.hero-stats div + div {
  padding-left: 18px;
  border-left: 1px solid #2e2e2e;
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fafafa;
}

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

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

.app-shell {
  position: relative;
  border: 1px solid #383838;
  border-radius: 18px;
  background: var(--sidebar);
  overflow: hidden;
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 80px rgba(16, 185, 129, 0.045);
  transform: perspective(1500px) rotateY(-2.2deg) rotateX(1.2deg);
  transform-origin: center;
  transition: transform 500ms var(--ease);
}

.hero-visual:hover .app-shell {
  transform: perspective(1500px) rotateY(0deg) rotateX(0deg);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  background: #171717;
  border-bottom: 1px solid #262626;
}

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

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

.app-titlebar-title {
  color: #6b6b73;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.titlebar-spacer {
  flex: 1;
}

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

.mock-sidebar {
  display: flex;
  flex-direction: column;
  padding: 10px 8px 8px;
  background: #171717;
  border-right: 1px solid #262626;
  min-width: 0;
}

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

.mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fafafa;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

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

.mini-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #8b8b93;
}

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

.mock-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  margin-bottom: 10px;
  border: 1px solid #2a2a2a;
  border-radius: 7px;
  background: #1f1f1f;
  color: #5e5e66;
  font-size: 8.5px;
}

.mock-search .icon {
  width: 10px;
  height: 10px;
  color: #6b6b73;
}

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

.mock-chat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 8px;
  color: #8b8b93;
  font-size: 8.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

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

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

.mock-chat-item.active {
  background: #212121;
  color: #f4f4f5;
  font-weight: 500;
}

.mock-side-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 7px 0;
  border-top: 1px solid #242424;
  color: #a1a1aa;
  font-size: 8.5px;
}

.mock-side-foot .icon {
  width: 11px;
  height: 11px;
  color: #71717a;
}

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

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  flex: none;
}

.mock-chat-title {
  color: #8b8b93;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.mock-msg {
  display: flex;
  gap: 7px;
  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: 7px 10px;
  border-radius: 10px 10px 2px 10px;
  background: #374151;
  color: #e4e4e7;
  font-size: 9px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

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

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

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

.mock-answer strong {
  color: #f4f4f5;
  font-weight: 600;
}

.mock-code {
  margin-top: 7px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #181818;
  overflow: hidden;
}

.mock-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  border-bottom: 1px solid #2a2a2a;
  color: #71717a;
  font-size: 7.5px;
  font-family: var(--font-mono);
}

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

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

.mock-code pre {
  padding: 6px 8px;
  color: #a7f3d0;
  font-size: 7.5px;
  line-height: 1.55;
  white-space: pre;
  overflow: hidden;
}

.mock-msg-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #71717a;
  font-size: 8px;
}

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

.branch-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 7px;
  border-left: 1px solid #343434;
  color: #8b8b93;
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.branch-count b {
  color: #a1a1aa;
  font-weight: 500;
}

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

.mock-typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 27px;
  color: #a1a1aa;
  font-size: 8px;
  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, #71717a 0%, #f4f4f5 45%, #71717a 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: #a1a1aa;
  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: 8px 12px 10px;
  background: linear-gradient(to top, #212121 55%, rgba(33, 33, 33, 0.2));
  flex: none;
}

.mock-composer {
  position: relative;
  padding: 8px 8px 7px 10px;
  border: 1px solid #3f3f3f;
  border-radius: 11px;
  background: #2f2f2f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mock-placeholder {
  display: block;
  color: #8b8b93;
  font-size: 9px;
  line-height: 1.4;
}

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

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

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

.send-btn {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 7px;
  background: #f4f4f5;
  color: #171717;
}

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

.mock-disclaimer {
  margin-top: 5px;
  text-align: center;
  color: #5e5e66;
  font-size: 7px;
  letter-spacing: 0.01em;
}

.floating-map {
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 210px;
  padding: 8px;
  border: 1px solid #3a3a3a;
  border-radius: 13px;
  background: rgba(27, 27, 27, 0.97);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  transform: rotate(-1.5deg);
  animation: float-map 7s ease-in-out infinite;
}

.floating-map-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 2px 6px;
  color: #d4d4d8;
  font-size: 8px;
  font-weight: 600;
}

.floating-map-head .icon {
  width: 10px;
  height: 10px;
  color: var(--accent-bright);
}

.map-ellipsis {
  margin-left: auto;
  color: #5e5e66;
  letter-spacing: 0.12em;
}

.floating-map-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 10px 10px,
    #181818;
}

.floating-map-svg .edge {
  fill: none;
  stroke: #3f3f46;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.floating-map-svg .edge.active {
  stroke: #10b981;
  stroke-width: 1.8;
}

.floating-map-svg .node {
  fill: #52525b;
  stroke: #3f3f46;
  stroke-width: 1.2;
}

.floating-map-svg .node.active {
  fill: #10b981;
  stroke: #6ee7b7;
}

.floating-map-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 2px 1px;
  color: #71717a;
  font-size: 7px;
}

.legend-node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.legend-fork {
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border: 1px dashed #52525b;
  border-radius: 50%;
}

/* ------------------------------------------------------------
   Provider strip
   ------------------------------------------------------------ */
.provider-strip {
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  background: rgba(23, 23, 23, 0.42);
}

.provider-strip-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 74px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.strip-label {
  flex: none;
  color: #6b6b73;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.strip-names span {
  color: #8b8b93;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 180ms ease;
}

.strip-names span:hover {
  color: #d4d4d8;
}

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

.section-head {
  max-width: 650px;
  margin-bottom: 36px;
}

.section-head h2,
.split-copy h2,
.cta-copy h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

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

.dim {
  color: #6b6b73;
}

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

/* ------------------------------------------------------------
   Pillars
   ------------------------------------------------------------ */
.pillars {
  padding-top: 72px;
  padding-bottom: 30px;
}

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

.pillar {
  padding: 22px 20px;
  border: 1px solid #2c2c2c;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1e1e1e, #1a1a1a);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.pillar:hover {
  border-color: #3f3f46;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #202020, #1b1b1b);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid #343434;
  border-radius: 11px;
  background: #242424;
  color: #a1a1aa;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

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

.pillar h3 {
  margin-bottom: 7px;
  color: #ececee;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pillar p {
  color: #8b8b93;
  font-size: 12px;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   Feature explorer
   ------------------------------------------------------------ */
.features {
  padding-top: 92px;
}

.feature-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2c2c2c;
}

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

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

.feature-tab:hover {
  background: #242424;
  color: #d4d4d8;
}

.feature-tab.active {
  background: #f4f4f5;
  border-color: #f4f4f5;
  color: #171717;
}

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

.feature-search {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  width: 270px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #343434;
  border-radius: 9px;
  background: #1e1e1e;
  color: #71717a;
  transition: border-color 150ms ease, background 150ms ease;
}

.feature-search:focus-within {
  border-color: #52525b;
  background: #222;
}

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

.feature-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e4e4e7;
  font-size: 11.5px;
}

.feature-search input::placeholder {
  color: #6b6b73;
}

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

.search-kbd {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  color: #6b6b73;
  font-size: 10px;
  letter-spacing: 0.02em;
}

#featureCount {
  color: #a1a1aa;
  font-weight: 500;
}

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

.feature-card {
  position: relative;
  padding: 17px 16px 18px;
  border: 1px solid #2b2b2b;
  border-radius: 13px;
  background: linear-gradient(180deg, #1d1d1d 0%, #191919 100%);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
  animation: card-in 0.35s var(--ease) both;
}

.feature-card:hover {
  border-color: #3f3f46;
  background: linear-gradient(180deg, #212121 0%, #1b1b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #343434;
  border-radius: 8px;
  background: #242424;
  color: #a1a1aa;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

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

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

.feature-card h3 {
  margin-bottom: 5px;
  color: #ececee;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.feature-card p {
  color: #8b8b93;
  font-size: 11px;
  line-height: 1.6;
}

.feature-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed #343434;
  border-radius: 14px;
  color: #8b8b93;
  text-align: center;
}

.feature-empty .icon {
  width: 22px;
  height: 22px;
  color: #52525b;
}

.feature-empty strong {
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 500;
}

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

.noscript {
  padding: 20px;
  border: 1px dashed #3f3f46;
  border-radius: 10px;
  color: #a1a1aa;
  font-size: 12px;
}

/* ------------------------------------------------------------
   Branching / map demo
   ------------------------------------------------------------ */
.branching {
  background:
    radial-gradient(ellipse 55% 55% at 78% 45%, rgba(16, 185, 129, 0.055), transparent 70%),
    transparent;
}

.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: 10px;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #b4b4bb;
  font-size: 12.5px;
  line-height: 1.55;
}

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

.check-list code {
  padding: 1px 4px;
  border: 1px solid #343434;
  border-radius: 4px;
  background: #1e1e1e;
  color: #d4d4d8;
  font-size: 10.5px;
}

.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 26px;
  padding: 11px 13px;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  background: rgba(24, 24, 24, 0.65);
  color: #8b8b93;
  font-size: 11px;
  line-height: 1.55;
}

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

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 1px solid #3d3d3d;
  border-bottom-color: #4a4a4a;
  border-radius: 5px;
  background: linear-gradient(180deg, #2c2c2c, #232323);
  color: #d4d4d8;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  white-space: nowrap;
}

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

.map-window {
  overflow: hidden;
  border: 1px solid #383838;
  border-radius: var(--radius);
  background: #1b1b1b;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.map-window-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid #2f2f2f;
  background: #1f1f1f;
}

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

.map-window-title {
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.map-window-chat {
  color: #71717a;
  font-size: 10px;
  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: 26px;
  min-width: 26px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #a1a1aa;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.map-controls button:hover {
  background: #2f2f2f;
  color: #fff;
}

#mapZoomLabel {
  min-width: 38px;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

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

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

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

#mapViewport {
  transform-origin: 0 0;
}

.map-edge {
  fill: none;
  stroke: #3f3f46;
  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: #52525b;
  stroke: #3f3f46;
  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: #52525b;
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.72;
}

.map-node-label {
  fill: #71717a;
  stroke: #181818;
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-family: var(--font-sans);
  font-size: 8.5px;
  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: 78px;
  padding: 11px 14px;
  border-top: 1px solid #2f2f2f;
  background: #1f1f1f;
}

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

.map-detail-role {
  display: block;
  margin-bottom: 3px;
  color: #71717a;
  font-size: 8px;
  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: #b4b4bb;
  font-size: 10.5px;
  line-height: 1.55;
}

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

.mini-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #2f2f2f;
  color: #d4d4d8;
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

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

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

.accent-action {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.accent-action:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
}

.map-hint {
  padding: 7px 14px 9px;
  border-top: 1px solid #262626;
  background: #1b1b1b;
  color: #5e5e66;
  font-size: 8.5px;
}

/* ------------------------------------------------------------
   Providers
   ------------------------------------------------------------ */
.providers {
  background: linear-gradient(180deg, transparent, rgba(23, 23, 23, 0.32) 45%, transparent);
}

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

.code-callout {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid #343434;
  border-radius: 10px;
  background: #181818;
}

.code-callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-bottom: 1px solid #2c2c2c;
  color: #71717a;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

.fine-print {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: #71717a;
  font-size: 10.5px;
  line-height: 1.5;
}

.fine-print .icon {
  width: 12px;
  height: 12px;
  flex: none;
  color: #8b8b93;
}

.picker-card {
  overflow: hidden;
  border: 1px solid #383838;
  border-radius: 13px;
  background: #242424;
  box-shadow: var(--shadow-lg);
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid #3a3a3a;
  color: #e4e4e7;
  font-size: 10.5px;
  font-weight: 600;
}

.picker-badge {
  padding: 2px 6px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: #8b8b93;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
}

.picker-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px;
  padding: 6px 8px;
  border: 1px solid #3a3a3a;
  border-radius: 7px;
  background: #1a1a1a;
  color: #71717a;
  font-size: 9.5px;
}

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

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

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

.picker-group-label {
  display: block;
  padding: 5px 9px 4px;
  color: #71717a;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.picker-item.selected {
  background: #2f2f2f;
  color: #fff;
}

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

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

.local-tag {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-family: var(--font-sans);
  font-size: 7px;
}

.picker-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid #3a3a3a;
  color: #71717a;
  font-size: 8px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.provider-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #2c2c2c;
  border-radius: 11px;
  background: #1b1b1b;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.provider-card:hover {
  border-color: #3f3f46;
  background: #1f1f1f;
  transform: translateY(-1px);
}

.provider-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid #363636;
  border-radius: 8px;
  background: #242424;
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

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

.provider-card h3 {
  color: #e4e4e7;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.provider-card code {
  display: block;
  margin-top: 2px;
  color: #6b6b73;
  font-size: 7.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-tag {
  flex: none;
  padding: 1px 5px;
  border: 1px solid #343434;
  border-radius: 999px;
  color: #8b8b93;
  font-size: 7px;
  line-height: 1.5;
}

.provider-tag.local {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
}

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

.shortcut-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid #2f2f2f;
  background: #1f1f1f;
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 600;
}

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

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

.shortcut-badge {
  padding: 2px 6px;
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
  font-size: 7.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: 11px 15px;
  border-bottom: 1px solid #262626;
}

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

.shortcut-row strong {
  display: block;
  color: #d4d4d8;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
}

.shortcut-row span:not(.keys) {
  display: block;
  margin-top: 1px;
  color: #71717a;
  font-size: 9px;
  line-height: 1.4;
}

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

.shortcut-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  padding: 10px 15px;
  background: #181818;
  color: #71717a;
  font-size: 8.5px;
}

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

.shortcut-extra kbd {
  height: 18px;
  min-width: 18px;
  font-size: 8px;
}

/* ------------------------------------------------------------
   Privacy
   ------------------------------------------------------------ */
.privacy {
  background:
    radial-gradient(ellipse 50% 60% at 25% 50%, rgba(16, 185, 129, 0.04), transparent 70%),
    transparent;
}

.db-card {
  overflow: hidden;
  border: 1px solid #383838;
  border-radius: var(--radius);
  background: #181818;
  box-shadow: var(--shadow-lg);
}

.db-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #2c2c2c;
  background: #1d1d1d;
  color: #d4d4d8;
  font-size: 10px;
  font-weight: 500;
}

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

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

.db-badge {
  padding: 2px 6px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: #8b8b93;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
}

.db-code {
  padding: 16px 16px 18px;
  overflow-x: auto;
  color: #a1a1aa;
  font-size: 10.5px;
  line-height: 1.75;
}

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

.j-str {
  color: #a7f3d0;
}

.db-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-top: 1px solid #2c2c2c;
  background: #1d1d1d;
  color: #71717a;
  font-size: 9px;
}

.db-card-foot .icon {
  width: 11px;
  height: 11px;
  color: #8b8b93;
}

.db-card-foot code {
  color: #8b8b93;
  font-size: 8.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Stack strip
   ------------------------------------------------------------ */
.stack-strip {
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  background: rgba(23, 23, 23, 0.4);
}

.stack-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.stack-label {
  flex: none;
  color: #6b6b73;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.stack-badges span {
  padding: 4px 8px;
  border: 1px solid #303030;
  border-radius: 6px;
  background: #1d1d1d;
  color: #8b8b93;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

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

.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 44px;
  overflow: hidden;
  border: 1px solid #353535;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 55% 140% at 88% 15%, rgba(16, 185, 129, 0.15), transparent 60%),
    linear-gradient(145deg, #1f1f1f, #181818 70%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(16, 185, 129, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

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

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

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

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

.run-command {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #343434;
  border-radius: 9px;
  background: #141414;
  color: #8b8b93;
  font-size: 10px;
}

.run-command code {
  color: #d4d4d8;
  font-size: 10px;
}

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

.run-sep {
  color: #52525b;
}

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

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid #2a2a2a;
  background: #171717;
}

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

.footer-brand p {
  max-width: 300px;
  margin-top: 10px;
  color: #71717a;
  font-size: 11px;
  line-height: 1.6;
}

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

.footer-links a {
  color: #8b8b93;
  font-size: 11px;
  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: 22px;
  border-top: 1px solid #262626;
  color: #5e5e66;
  font-size: 9.5px;
}

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

.footer-palette i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #212121;
  border: 1px solid #343434;
}

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

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 15px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.94);
  color: #d1fae5;
  font-size: 11.5px;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  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(18px);
  transition: opacity 0.65s ease, transform 0.65s 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;
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.08);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.03);
  }
}

@keyframes float-map {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-7px);
  }
}

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

  .hero h1 {
    font-size: clamp(2.7rem, 4.7vw, 3.9rem);
  }

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

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

  .floating-map {
    right: -10px;
    bottom: -26px;
    width: 196px;
  }

  .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;
  }

  .app-shell {
    transform: none;
  }

  .floating-map {
    display: none;
  }

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

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

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

  .feature-search {
    width: 100%;
  }

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

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

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

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

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

  .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 18px 16px;
    border-bottom: 1px solid #2e2e2e;
    background: rgba(23, 23, 23, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

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

  .nav-links a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-readme {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    padding: 104px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 10vw, 3.5rem);
  }

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

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

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

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

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

  .floating-map {
    display: none;
  }

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

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

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

  .section {
    padding: 74px 0;
  }

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

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

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

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

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

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

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

  .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: 24px;
  }

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

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

  .cta-card {
    padding: 30px 24px;
  }

  .cta-actions {
    width: 100%;
  }

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

@media (max-width: 540px) {
  .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: 390px;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-messages {
    padding: 12px 12px 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;
  }
}

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

  .site-header,
  .floating-map,
  .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;
  }
}
