/* ============================================================
   SonarCompute — design system v2
   Dark glassmorphism · Unbounded + Inter + JetBrains Mono
   Precision-instrument aesthetic for an inference provider
   ============================================================ */

:root {
  --ink1: #f4f1fb;
  --ink2: rgba(244, 241, 251, .85);
  --ink3: rgba(244, 241, 251, .60);
  --ink4: rgba(244, 241, 251, .55);   /* smallest readable text — AA on #0a0416 */
  --ink-faint: rgba(244, 241, 251, .30); /* decorative only, never text */
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --chip: rgba(255, 255, 255, .06);
  --chip2: rgba(255, 255, 255, .12);
  --card-bg: rgba(255, 255, 255, .05);
  --card-hover: rgba(255, 255, 255, .08);
  --header-bg: rgba(13, 6, 28, .55);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 60px -30px rgba(0, 0, 0, .5);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 26px 70px -28px rgba(0, 0, 0, .6), 0 0 28px -14px rgba(139, 92, 246, .28);
  --glass-glint: inset 0 1px 0 rgba(255, 255, 255, .07);
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --primary-light: #c084fc;
  --ok: #34d399;
  --ok-dim: rgba(52, 211, 153, .12);
  --ok-line: rgba(52, 211, 153, .3);
  --glow-a: rgba(139, 92, 246, .34);
  --glow-b: rgba(192, 132, 252, .16);
  --glow-c: rgba(76, 29, 149, .22);
  --app-bg:
    radial-gradient(820px 540px at 84% -10%, var(--glow-a) 0%, transparent 58%),
    radial-gradient(680px 520px at -6% 108%, var(--glow-b) 0%, transparent 56%),
    radial-gradient(500px 400px at 50% 40%, var(--glow-c) 0%, transparent 70%),
    linear-gradient(157deg, #0a0416 0%, #140a29 100%);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  /* radius scale */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 20px;
}

html.light {
  --ink1: #1a0f2e;
  --ink2: rgba(26, 15, 46, .86);
  --ink3: rgba(26, 15, 46, .62);
  --ink4: rgba(26, 15, 46, .62);
  --ink-faint: rgba(26, 15, 46, .32);
  --line: rgba(26, 15, 46, .1);
  --line2: rgba(26, 15, 46, .18);
  --chip: rgba(109, 40, 217, .06);
  --chip2: rgba(109, 40, 217, .13);
  --card-bg: rgba(255, 255, 255, .78);
  --card-hover: #ffffff;
  --header-bg: rgba(249, 246, 253, .72);
  --shadow: 0 1px 3px rgba(26, 15, 46, .05), 0 14px 38px -18px rgba(109, 40, 217, .16);
  --shadow-hover: 0 2px 6px rgba(26, 15, 46, .06), 0 20px 48px -18px rgba(109, 40, 217, .24);
  --glass-glint: inset 0 1px 0 rgba(255, 255, 255, .65);
  --ok: #059669;
  --ok-dim: rgba(5, 150, 105, .1);
  --ok-line: rgba(5, 150, 105, .35);
  --glow-a: rgba(139, 92, 246, .15);
  --glow-b: rgba(192, 132, 252, .11);
  --glow-c: rgba(139, 92, 246, .06);
  --app-bg:
    radial-gradient(820px 540px at 84% -10%, var(--glow-a) 0%, transparent 58%),
    radial-gradient(680px 520px at -6% 108%, var(--glow-b) 0%, transparent 56%),
    linear-gradient(157deg, #faf8fe 0%, #f1ecfa 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: dark; }
html.light { color-scheme: light; }
html, body { overflow-x: clip; }

a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* keyboard focus — visible, brand-colored, radius-aware */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}
html.light a:focus-visible, html.light button:focus-visible { outline-color: var(--primary-dark); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink1);
  background: #0a0416;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: color .25s;
}
html.light body { background: #faf8fe; }
/* fixed gradient backdrop — more stable than background-attachment: fixed (mobile Safari, compositing) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--app-bg);
  pointer-events: none;
}
/* film grain — kills gradient banding, adds material */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.light body::after { opacity: .015; }

::selection { background: rgba(139, 92, 246, .4); }

.skip-link { position: absolute; left: -9999px; z-index: 100; }
.skip-link:focus {
  left: 16px; top: 12px; padding: 10px 16px;
  background: var(--primary-dark); color: #fff; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 14px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 32px -20px rgba(0, 0, 0, .5);
}
html.light .site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(26, 15, 46, .18); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--ink1); text-decoration: none; letter-spacing: -.01em;
}
.logo svg { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; }
.logo .accent { color: var(--primary-light); }
html.light .logo .accent { color: var(--primary-dark); }
/* radar sweep — the brand, alive. One slow beam; paused for reduced motion */
.logo .sweep { transform-origin: 16px 16px; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink3); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink1); background: var(--chip); }

.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--chip); border: 1px solid var(--line);
  color: var(--ink2); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.theme-toggle::after { content: ''; position: absolute; inset: -6px; } /* 48px hit area */
.theme-toggle:hover { background: var(--chip2); border-color: var(--line2); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

/* ---------- glass primitives ---------- */
.glass {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow), var(--glass-glint);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.glass-hover { transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; will-change: transform; }
.glass-hover:hover {
  border-color: rgba(192, 132, 252, .38);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), var(--glass-glint);
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; color: var(--ink2);
  letter-spacing: .01em;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok-line);
}

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 22px 0 18px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--primary-light); }
html.light .hero h1 .accent { color: var(--primary-dark); }
.hero .sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink3);
  max-width: 520px;
  margin: 0 0 34px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-lg);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: filter .15s, background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .55);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(139, 92, 246, .65);
}
.btn-ghost {
  background: var(--chip); color: var(--ink1);
  border: 1px solid var(--line2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--chip2); }

/* ---------- terminal (hero) ---------- */
.terminal {
  border-radius: var(--r-xl);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.term-bar .tl { width: 10px; height: 10px; border-radius: 50%; }
.term-bar .tl:nth-child(1) { background: #ff5f57; }
.term-bar .tl:nth-child(2) { background: #febc2e; }
.term-bar .tl:nth-child(3) { background: #28c840; }
.term-bar .term-title {
  margin-left: auto; margin-right: auto;
  font-size: 11px; color: var(--ink4); letter-spacing: .04em;
  transform: translateX(-21px); /* optically center vs traffic lights */
}
.term-body {
  padding: 18px 20px 20px;
  min-height: 264px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink2);
}
.term-body .p  { color: var(--primary-light); }   /* prompt $ */
html.light .term-body .p { color: var(--primary-dark); }
.term-body .c  { color: var(--ink4); }            /* comment */
.term-body .s  { color: #6ee7b7; }                /* string */
html.light .term-body .s { color: #047857; }
.term-body .tok { color: var(--ink1); }
.term-caret {
  display: inline-block; width: 7px; height: 15px;
  background: var(--primary-light); vertical-align: -2px;
  animation: caret 1.1s steps(1) infinite;
}
html.light .term-caret { background: var(--primary-dark); }
@keyframes caret { 50% { opacity: 0; } }
.term-meta { color: var(--ink4); font-size: 11.5px; }

/* hero stats bar */
.stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  padding: 22px 24px 18px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 2.6vw, 25px);
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--ink1);
  font-variant-numeric: tabular-nums;
}
.stat .v em { font-style: normal; color: var(--primary-light); }
html.light .stat .v em { color: var(--primary-dark); }
.stat .v .unit {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--ink4); margin-left: 3px; letter-spacing: 0;
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink4); margin-top: 4px;
  letter-spacing: .07em; text-transform: uppercase; font-weight: 500;
}
.stat .spark { margin-top: 10px; display: block; width: 100%; height: 26px; }
.stat .spark path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section[id] { scroll-margin-top: 76px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--primary-light);
  margin-bottom: 14px;
}
html.light .eyebrow { color: var(--primary-dark); }
.eyebrow::before { content: '// '; color: var(--ink-faint); }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: -.015em; line-height: 1.2;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-sub { color: var(--ink3); font-size: 16px; max-width: 560px; margin: 0 0 44px; }

/* ---------- models ---------- */
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.model-card { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.model-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.model-avatar {
  width: 42px; height: 42px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff;
}
.model-avatar.k { background: linear-gradient(135deg, #1c1c1e, #3a3a3f); }
.model-avatar.m { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.model-name h3 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: 18px; letter-spacing: -.01em; line-height: 1.3;
}
.model-name .by { font-size: 13px; color: var(--ink4); margin-top: 2px; }
.ctx {
  flex-shrink: 0; padding: 5px 12px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; color: var(--ink2); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.model-id {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink4);
  background: var(--chip); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 6px;
  cursor: pointer; transition: color .15s, border-color .15s;
}
.model-id:hover { color: var(--ink1); border-color: var(--line2); }
.model-id.copied { color: var(--ok); border-color: var(--ok-line); }
.model-desc { color: var(--ink3); font-size: 14.5px; margin: 0; flex: 1; }
.model-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; color: var(--ink3);
  background: var(--chip); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: var(--r-sm);
}
.model-pricing {
  display: flex; gap: 0; margin-top: 4px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.price { flex: 1; }
.price .pv {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.price .pv span { font-size: 12px; color: var(--ink4); font-family: var(--font-mono); font-weight: 500; }
.price .pl {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink4); text-transform: uppercase;
  letter-spacing: .06em; margin-top: 3px; font-weight: 500;
}

/* ---------- infrastructure ---------- */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.infra-card { padding: 26px 26px 28px; }
.infra-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(109, 40, 217, .3));
  border: 1px solid rgba(139, 92, 246, .3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); margin-bottom: 18px;
}
html.light .infra-icon { color: var(--primary-dark); }
.infra-icon svg { width: 20px; height: 20px; }
.infra-card h3 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
}
.infra-card p { margin: 0; color: var(--ink3); font-size: 14px; }

/* in-text links — quiet underline, brand on hover */
.doc-card a, .infra-card p a {
  color: inherit;
  text-decoration-color: var(--ink-faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.doc-card a:hover, .infra-card p a:hover { text-decoration-color: var(--primary-light); }

/* ---------- API / platforms ---------- */
.api-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.api-split > * { min-width: 0; } /* prevent <pre> from blowing out the grid on mobile */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink2); }
.check-list .ck {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--r-sm); margin-top: 1px;
  background: var(--ok-dim); border: 1px solid var(--ok-line);
  display: flex; align-items: center; justify-content: center;
}
.check-list .ck svg { width: 12px; height: 12px; color: var(--ok); }
.check-list b { color: var(--ink1); font-weight: 600; }

.code-block {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.75;
  overflow-x: auto;
  border-radius: var(--r-xl);
}
.code-block .c { color: var(--ink4); }
.code-block .k { color: var(--primary-light); }
.code-block .s { color: #6ee7b7; }
html.light .code-block .s { color: #047857; }
html.light .code-block .k { color: var(--primary-dark); }

/* ---------- contact ---------- */
.contact-card {
  padding: 52px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 50% 0%, rgba(139, 92, 246, .18), transparent 70%);
}
.contact-card h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 3.2vw, 32px); letter-spacing: -.015em;
  margin: 0 0 12px; position: relative;
  text-wrap: balance;
}
.contact-card p { color: var(--ink3); max-width: 480px; margin: 0 auto 28px; position: relative; }
.contact-card .btn { position: relative; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner .copy { font-size: 13px; color: var(--ink4); }
.footer-links { display: flex; gap: 14px; }
.footer-links a {
  font-size: 13px; color: var(--ink3); text-decoration: none;
  padding: 10px 4px; margin: -10px -4px; /* ≥40px hit area, same visual */
  transition: color .15s;
}
.footer-links a:hover { color: var(--ink1); }

/* ---------- doc pages (privacy / data policy) ---------- */
.doc-page { padding: 72px 0 96px; }
.doc-card { max-width: 720px; margin: 0 auto; padding: 52px 56px; }
.doc-card h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.015em;
  margin: 0 0 8px; line-height: 1.25;
  text-wrap: balance;
}
.doc-card .updated {
  font-family: var(--font-mono);
  font-size: 12.5px; color: var(--ink4); margin-bottom: 40px;
}
.doc-card h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -.01em; margin: 40px 0 12px; line-height: 1.35;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.doc-card h2:first-of-type { border-top: none; padding-top: 0; margin-top: 28px; }
.doc-card p, .doc-card li { color: var(--ink2); font-size: 16px; }
.doc-card ul { padding-left: 22px; }
.doc-card li { margin-bottom: 6px; }
.doc-card .hl {
  background: var(--chip); border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px; margin: 20px 0;
  font-size: 15px; color: var(--ink2);
}
.doc-card .hl b { color: var(--ink1); }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink3); text-decoration: none; font-size: 14px; font-weight: 500;
  margin-bottom: 28px; padding: 6px 0; margin-top: -6px;
  transition: color .15s;
}
.back-link:hover { color: var(--ink1); }

/* ---------- reveal (JS-gated: no-JS users see everything) ---------- */
/* safety: if scripts are slow (slow network), content self-reveals after 1.1s
   instead of leaving a blank page; app.js adds .in earlier on normal loads */
html.js .reveal {
  opacity: 0; transform: translateY(14px);
  animation: reveal-safety .5s cubic-bezier(.22, 1, .36, 1) 1.1s forwards;
}
@keyframes reveal-safety { to { opacity: 1; transform: translateY(0); } }
html.js .reveal.in {
  opacity: 1; transform: translateY(0);
  animation: none;
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1);
}
/* big glass surfaces animate opacity only — moving backdrop-filter janks Safari */
html.js .glass.reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .logo .sweep { animation: none; }
  .term-caret { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal { max-width: 640px; }
}
@media (max-width: 900px) {
  .infra-grid { grid-template-columns: 1fr 1fr; }
  .api-split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .nav a:not(.nav-keep) { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .model-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 36px 26px; }
  .model-card { padding: 24px 22px; }
  .contact-card { padding: 40px 24px; }
  .term-body { min-height: 240px; }
}
