@font-face {
  font-family: Inter;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-muted: #f3f5f3;
  --bg-card: #f6f8f6;
  --bg-sage: #eef3ef;
  --ink: #141414;
  --ink-2: #5a5f5c;
  --ink-3: #8a908c;
  --line: #e5e8e5;
  --line-strong: #d5d9d5;
  --teal: #12b886;
  --teal-deep: #0d9f7a;
  --teal-soft: #d8f5eb;
  --orange: #ff7043;
  --orange-bar: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --turquoise: #14b8a6;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 10px 40px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 20, 20, 0.14);
  --max: 1120px;
  --nav-h: 68px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.announce {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.announce a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.055em;
  font-size: 22px;
  flex-shrink: 0;
}
.logo-mark {
  width: 26px;
  height: 26px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links > a,
.drop > summary {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.01em;
}
.nav-links > a:hover,
.drop > summary:hover,
.nav-links > a.active {
  color: var(--ink);
  background: var(--bg-muted);
}
.drop { position: relative; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  margin-bottom: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}
.drop[open] > summary { color: var(--ink); }
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 300px;
  display: grid;
  gap: 2px;
}
.mega a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.mega a:hover { background: var(--bg-muted); }
.mega small {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 450;
  margin-top: 2px;
  letter-spacing: 0;
}
.nav-cta { display: flex; gap: 8px; margin-left: 10px; }
.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line-strong);
  width: 42px;
  height: 42px;
  border-radius: 11px;
  margin-left: auto;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--bg-muted); }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
  border-radius: 1px;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 20px rgba(20,20,20,0.18);
}
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-muted); }
.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-teal {
  background: var(--teal-deep);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.65rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0 auto 14px;
  font-weight: 700;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--teal-deep);
}
.hero .lead {
  color: var(--ink-2);
  font-size: 1.2rem;
  margin: 0 auto 28px;
  font-weight: 450;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.setup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.editor-dots {
  display: flex;
  gap: 6px;
}
.editor-dots span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}
.editor-dots .c { background: #d97757; }
.editor-dots .x { background: #1f1f1f; }
.editor-dots .u { background: #54a3ff; }

.hero-stage {
  position: relative;
  margin-top: 8px;
  min-height: 420px;
}
.hero-photo {
  position: absolute;
  inset: 72px 0 0;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 18%),
    url("../img/meadow.svg") center 30% / cover no-repeat;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}

.demo {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 20, 20, 0.04);
  padding: 14px;
  text-align: left;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  animation: floaty 7s var(--ease) infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.demo-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.demo-tabs button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  border-radius: 9px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.demo-tabs button.active {
  background: var(--bg-muted);
  color: var(--ink);
  font-weight: 650;
}
.demo-row { display: flex; gap: 8px; flex-wrap: nowrap; }
.demo-row .btn { flex-shrink: 0; }
.demo-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  background: #fff;
  outline: none;
}
.demo-row input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 184, 134, 0.18); }
.demo-out {
  margin-top: 12px;
  background: #111;
  color: #c8f5de;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  display: none;
}
.demo-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

.marquee-wrap {
  padding: 48px 0 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--bg) 28%);
  position: relative;
}
.marquee-wrap p {
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 20px;
}
.marquee-fade {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  display: flex;
  gap: 48px;
  animation: slide 32s linear infinite;
  width: max-content;
  align-items: center;
}
.logo-pill {
  color: #9aa09c;
  font-weight: 750;
  letter-spacing: 0.02em;
  font-size: 15px;
  white-space: nowrap;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 8px 0 40px;
}
.trust-row article {
  text-align: center;
  padding: 18px 8px;
  border-top: 1px solid var(--line);
}
.trust-row strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.trust-row span {
  color: var(--ink-2);
  font-size: 13px;
}

.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.eyebrow {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  margin: 0 0 10px;
  font-weight: 500;
}
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 0 0 16px; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); margin: 0 0 18px; font-weight: 700; }
h3 { font-size: 1.2rem; margin: 0 0 10px; font-weight: 650; }
.lead { color: var(--ink-2); font-size: 1.125rem; max-width: 46rem; }
.note { font-size: 14px; color: var(--ink-2); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin: 64px 0;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split h3 { font-size: 1.55rem; }
.split p { color: var(--ink-2); margin: 0; }

.mock {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 240px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
  position: relative;
  overflow: hidden;
}
.mock::before {
  content: "";
  display: flex;
  width: 42px;
  height: 8px;
  margin-bottom: 16px;
  background: radial-gradient(circle at 4px 4px, #ff5f57 3.2px, transparent 3.4px),
    radial-gradient(circle at 16px 4px, #febc2e 3.2px, transparent 3.4px),
    radial-gradient(circle at 28px 4px, #28c840 3.2px, transparent 3.4px);
}
.mock code, pre {
  font-family: var(--mono);
  font-size: 12.5px;
  margin: 0;
}
.mock .k {
  color: var(--teal-deep);
  font-weight: 650;
  font-size: 13px;
}
.chip-row { display: flex; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 550;
}
.chip.ok { color: var(--teal-deep); background: var(--teal-soft); border-color: transparent; }
.chip.warn { color: #c2410c; background: #ffedd5; border-color: transparent; }
.chip.bad { color: #b91c1c; background: #fee2e2; border-color: transparent; }
.source-list { display: grid; gap: 8px; margin-top: 8px; }
.source-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.source-list b { font-weight: 650; }
.source-list em { font-style: normal; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.latency {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  height: 88px;
  margin-top: 18px;
}
.latency i {
  display: block;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  border-radius: 4px 4px 2px 2px;
  opacity: 0.85;
  animation: pulsebar 1.8s ease-in-out infinite;
}
@keyframes pulsebar {
  0%, 100% { transform: scaleY(0.86); }
  50% { transform: scaleY(1); }
}
.json-block {
  background: #141414;
  color: #d7fbe9;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  overflow: auto;
  margin: 0;
}

.bench { background: var(--bg-muted); }
.bench-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
}
.tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.bar {
  display: grid;
  grid-template-columns: 148px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 500;
}
.bar i {
  display: block;
  height: 11px;
  border-radius: 6px;
  background: #d8dcd8;
  transform-origin: left center;
  animation: growbar 0.9s var(--ease) both;
}
.bar i.hl { background: linear-gradient(90deg, var(--orange), var(--orange-bar)); }
.bar span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
@keyframes growbar { from { transform: scaleX(0.15); } to { transform: scaleX(1); } }
.method {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
}
.method h3 { font-size: 15px; margin: 16px 0 8px; }
.method h3:first-child { margin-top: 0; }
.method p, .method li { color: var(--ink-2); font-size: 14px; }
.method ul { padding-left: 18px; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.05em;
  margin-bottom: 6px;
}
.stat span { color: var(--ink-2); font-size: 14px; }

.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.press a {
  min-height: 260px;
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
}
.press a:hover { transform: translateY(-4px); }
.press a small {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.press a:nth-child(1) { background: linear-gradient(165deg, #1a1a1a 10%, #0d9f7a 100%); }
.press a:nth-child(2) { background: linear-gradient(165deg, #7f1d1d, #ef4444); }
.press a:nth-child(3) { background: linear-gradient(165deg, #1e3a8a, #3b82f6); }
.press a:nth-child(4) { background: linear-gradient(165deg, #111827, #7c3aed); }
.press a:nth-child(5) { background: linear-gradient(165deg, #0f766e, #14b8a6); }
.press a:nth-child(6) { background: linear-gradient(165deg, #7c2d12, #f97316); }

.cta-band {
  position: relative;
  padding: 108px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/meadow.svg") center 40% / cover no-repeat;
  z-index: -2;
  transform: scale(1.04);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 16, 0.28), rgba(12, 18, 14, 0.5));
  z-index: -1;
}
.cta-band h2 { color: #fff; margin-bottom: 22px; }
.cta-band .hero-actions { margin: 0; }

.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 32px;
}
.footer h3 {
  font-size: 12px;
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 650;
}
.footer a, .footer p {
  color: var(--ink-2);
  font-size: 14px;
  display: block;
  margin: 7px 0;
}
.footer a:hover { color: var(--ink); }
.optin { display: flex; gap: 8px; margin-top: 14px; }
.optin input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  outline: none;
}
.optin input:focus { border-color: var(--teal); }
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}

.page-hero {
  padding: 56px 0 8px;
  text-align: center;
}
.page-hero .lead { margin: 0 auto 24px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}
.plan .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-weight: 650;
}
.plan h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan .price {
  font-size: 2.35rem;
  letter-spacing: -0.05em;
  margin: 0 0 4px;
  font-weight: 720;
  line-height: 1;
}
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li {
  margin: 11px 0;
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}
.plan li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 4px;
  background: var(--c, var(--teal)) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='white' d='M4.7 8.6 2.2 6.1l.9-.9 1.6 1.6 3.7-3.7.9.9z'/></svg>") center / 10px no-repeat;
}
.plan.t { --c: var(--turquoise); }
.plan.p { --c: var(--pink); }
.plan.o { --c: var(--orange-bar); }
.plan.u { --c: var(--purple); }
.plan .btn { width: 100%; }
.plan input[type="range"] {
  width: 100%;
  margin: 10px 0 4px;
  accent-color: var(--orange-bar);
}

.student {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
}
.student-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--ink-3);
  font-weight: 400;
  font-size: 20px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

.endpoints { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 36px 0 8px; }
.ep {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.ep:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ep code {
  font-weight: 700;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal-deep);
}
.ep small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.ep-still {
  height: 64px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, var(--bg-sage) 40%, transparent 40%),
    repeating-linear-gradient(180deg, #fff 0 8px, var(--line) 8px 9px);
  opacity: 0.9;
}

.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.partners a {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.partners a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.partners a strong { display: block; margin-bottom: 4px; font-size: 16px; }
.partners a span { color: var(--ink-2); font-size: 14px; }

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 36px 0 88px;
}
.side {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.side p {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 8px;
  font-weight: 650;
}
.side a {
  display: block;
  padding: 7px 8px;
  color: var(--ink-2);
  font-size: 14px;
  border-radius: 8px;
}
.side a.active, .side a:hover { color: var(--ink); background: var(--bg-muted); }
.code-tabs { display: flex; gap: 6px; margin: 12px 0; }
.code-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
}
.code-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
pre.block {
  background: #141414;
  color: #e7eee9;
  padding: 16px 18px;
  border-radius: 14px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
  font-family: var(--mono);
}
.docs-callout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.docs-callout a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-card);
}
.docs-callout strong { display: block; margin-bottom: 4px; }

.form {
  max-width: 560px;
  display: grid;
  gap: 14px;
}
.form label { font-size: 14px; font-weight: 550; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  background: #fff;
  outline: none;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 184, 134, 0.16);
}

.prose { max-width: 720px; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.why-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--bg-card);
}
.why-grid h3 { font-size: 15px; }

.cookie {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 380px;
  background: var(--ink);
  color: #fff;
  padding: 16px 18px;
  border-radius: 16px;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
}
.cookie[hidden] { display: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js [data-reveal].in {
  animation: rise 0.8s var(--ease) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
  }
  .mega { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 8px; min-width: 0; }
  .menu-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  .split, .bench-grid, .stats, .press, .plans, .endpoints, .partners,
  .docs-layout, .footer-grid, .student, .trust-row, .why-grid, .docs-callout {
    grid-template-columns: 1fr;
  }
  .split.reverse { direction: ltr; }
  .hero-stage { min-height: 340px; }
  .bar { grid-template-columns: 1fr; gap: 4px; }
  .cookie { left: 12px; right: 12px; max-width: none; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .demo, .latency i, .bar i, [data-reveal] {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
