/* ============================================================
   CHEON:AI — site stylesheet
   Design system matched to antigravity.google:
   font: Google Sans Flex · surface #FFFFFF · text #121317
   containers #F8F9FC / #EFF2F7 · outline rgba(33,34,38,.12)
   Brand accent: copper #C0763B (colon, small details only).
   Also loaded by the blog admin, which reuses the tokens, buttons,
   tables and prose styles so the editor preview matches a post.
   ============================================================ */
:root {
  --white: #ffffff;
  --surface: #f8f9fc;
  --surface-2: #eff2f7;
  --surface-3: #e6eaf0;
  --ink: #121317;
  --ink-2: #2f3034;
  --muted: #45474d;
  --line: rgba(33, 34, 38, 0.12);
  --line-weak: rgba(33, 34, 38, 0.06);
  --line-strong: rgba(33, 34, 38, 0.22);
  --copper: #c0763b;
  --copper-strong: #a8622c;
  --copper-light: #e3a36f;
  --blue: #3279f9;
  --violet: #7b6cb2;
  --green: #3e9e6b;
  --slate: #9aa1ad;
  --night: #121317;
  --night-2: #1a1c21;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-ink: #eef0f4;
  --night-muted: #a3a8b3;
  --danger: #b3261e;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1280px;
  --gutter: 32px;
  --header: 72px;
  --font: 'Google Sans Flex', 'Google Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, system-ui, sans-serif;
  --mono: 'Google Sans Code', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --brand: 'Jost', 'Google Sans Flex', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--copper); color: #fff; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* dot-canvas sits behind everything */
#dotfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.mono { font-family: var(--mono); }

/* ---------- wordmark: bold CHEON + copper colon + regular AI ---------- */
.wordmark {
  font-family: var(--brand);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .colon { color: var(--copper); letter-spacing: 0; margin-left: -0.19em; margin-right: -0.03em; }
.wordmark .suffix { color: var(--ink); font-weight: 400; }

/* ---------- nav (plain pill links + dark pill CTA) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0; background: #fff; transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line-weak), 0 1px 12px rgba(33, 34, 38, 0.05); }
.nav-shell { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 40px; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a, .menu-panel a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.nav-cta {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink-2); }
.menu { display: none; position: relative; margin-left: auto; }
.menu summary {
  list-style: none;
  cursor: pointer;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-weak);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(18, 19, 23, 0.25);
}
.menu-panel a { padding: 14px 18px; border-radius: 12px; }
.menu-panel a:hover { background: var(--surface); }

/* ---------- typography (Google Sans Flex, medium, tight) ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.08; }
h1 em { font-style: normal; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.015em; }
h2 em { font-style: normal; color: var(--copper); font-weight: inherit; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--copper); }
.eyebrow.center::before { display: none; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); display: inline-block; }
.lead { max-width: 58ch; margin-top: 28px; font-size: 1.1rem; color: var(--muted); }
.empty { padding: 40px 0; color: var(--muted); }
.notice {
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- buttons (pills) & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: var(--surface-2); color: var(--ink); }
.btn-light:hover { background: var(--surface-3); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn .arr, .link-arrow .arr { transition: transform 0.2s ease; }
.btn:hover .arr, .link-arrow:hover .arr { transform: translateX(4px); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--copper); }
.link { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--copper); padding-bottom: 1px; transition: color 0.2s ease; }
.link:hover { color: var(--copper-strong); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }

/* ---------- layout ---------- */
section, .section { padding: 104px 0; }
.section-tight { padding: 32px 0 96px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.section-head.center { max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(92vh - var(--header));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 100px;
}
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.4rem); max-width: 17ch; }
.hero .lead { margin: 32px auto 0; max-width: 56ch; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  font-family: var(--brand);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  color: var(--ink);
}
.hero-lockup .colon { color: var(--copper); letter-spacing: 0; margin-left: -0.19em; margin-right: -0.03em; }
.hero-lockup .suffix { font-weight: 400; }
.mark { display: inline-flex; flex-direction: column; gap: 5px; }
.mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); display: block; }

/* ---------- statement (big left-aligned mission text) ---------- */
.statement { padding: 140px 0; }
.statement p { max-width: 26ch; font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.caret { display: inline-block; width: 3px; height: 0.95em; margin-left: 0.12em; vertical-align: -0.12em; background: var(--copper); animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- flow stepper (the retrieval stack) ---------- */
.section.flow-section { padding-top: 0; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line-weak);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  list-style: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.flow-step:hover { border-color: var(--copper); transform: translateY(-2px); }
.flow-step .fnum { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--copper); text-transform: uppercase; }
.flow-step h3 { margin-top: 6px; font-size: 1.2rem; }
.flow-step p { font-size: 0.9rem; color: var(--muted); }
.flow-step .status { margin-top: auto; }
.flow .flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -19px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--copper);
  font-size: 1.1rem;
}
.models-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding: 20px 28px;
  border: 1px solid var(--line-weak);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(50, 121, 249, 0.05), rgba(123, 108, 178, 0.05), rgba(192, 118, 59, 0.07));
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.models-bar:hover { border-color: var(--copper); transform: translateY(-2px); }
.mb-left { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: var(--ink-2); }
.mb-left strong { font-weight: 600; color: var(--ink); }
.mb-mark { display: inline-flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.mb-mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); display: block; }

/* status chip: released model or "In development" */
.status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.status.is-live::before { background: var(--green); }
.status .mono { color: var(--ink); font-size: 0.8rem; overflow-wrap: anywhere; }

/* ---------- feature rows (text + glowing media card) ---------- */
.features { padding: 30px 0; }
.feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; padding: 70px 0; }
.feature.flip .feature-media { order: -1; }
.feature .knum { display: block; margin-bottom: 18px; font-size: 0.85rem; font-weight: 500; color: var(--copper); }
.feature h2 { margin-bottom: 20px; }
.feature p { max-width: 46ch; color: var(--muted); }
.feature .btn { margin-top: 28px; }
.feature .status { display: flex; }
.feature-media { min-height: 440px; display: flex; align-items: center; justify-content: center; }
.media-card {
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
}
.glow-blue { background: radial-gradient(65% 55% at 28% 18%, rgba(50, 121, 249, 0.2), transparent 70%), radial-gradient(55% 45% at 82% 85%, rgba(123, 108, 178, 0.16), transparent 70%), var(--surface); }
.glow-violet { background: radial-gradient(65% 55% at 70% 18%, rgba(123, 108, 178, 0.18), transparent 70%), radial-gradient(55% 45% at 20% 85%, rgba(50, 121, 249, 0.12), transparent 70%), var(--surface); }
.glow-warm { background: radial-gradient(65% 55% at 75% 15%, rgba(217, 106, 62, 0.16), transparent 70%), radial-gradient(55% 45% at 18% 85%, rgba(242, 169, 59, 0.15), transparent 70%), var(--surface); }
.glow-brand { background: radial-gradient(60% 55% at 25% 15%, rgba(50, 121, 249, 0.14), transparent 70%), radial-gradient(55% 50% at 80% 85%, rgba(192, 118, 59, 0.13), transparent 70%), var(--surface); }

/* abstract illustrations inside media cards */
.illustration { width: 100%; max-width: 420px; height: auto; }
.illustration .ill-bar { fill: var(--surface-3); }
.illustration .ill-dot { fill: var(--line-strong); }
.illustration .ill-accent { fill: var(--copper); }
.illustration .ill-arrow { fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illustration .ill-cluster-a circle { fill: var(--blue); opacity: 0.75; }
.illustration .ill-cluster-b circle { fill: var(--violet); opacity: 0.75; }
.illustration .ill-cluster-c circle { fill: var(--green); opacity: 0.75; }
.illustration .ill-link { stroke: var(--copper); stroke-width: 1.4; stroke-dasharray: 4 4; }
.illustration .ill-ring { fill: none; stroke: var(--copper); stroke-width: 2; }
.illustration .ill-edge { stroke: rgba(33, 34, 38, 0.16); stroke-width: 1.2; }
.illustration .ill-path { stroke: var(--copper); stroke-width: 2.2; }
.illustration .ill-node { fill: #fff; stroke: rgba(33, 34, 38, 0.25); stroke-width: 1.2; }
.illustration .ill-node.is-hit { stroke: var(--copper); stroke-width: 2; }

/* ---------- specs ---------- */
.specs { display: grid; }
.specs div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 0.875rem; }
.specs dd { font-family: var(--mono); font-size: 0.9rem; overflow-wrap: anywhere; }

/* ---------- latest release (dark band) ---------- */
.band-dark { background: var(--night); color: var(--night-ink); }
.band-dark h2 { color: var(--night-ink); }
.band-dark .eyebrow { color: var(--copper-light); }
.release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.release h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.release-copy > p { margin-top: 16px; color: var(--night-muted); font-size: 1.05rem; }
.release-copy .specs { margin-top: 28px; }
.band-dark .specs div { border-color: var(--night-line); }
.band-dark .specs dt { color: var(--night-muted); }
.band-dark .btn-light { background: #fff; }
.band-dark .btn-light:hover { background: var(--surface-2); }
.release-code pre.code { max-height: 560px; }

/* ---------- code ---------- */
.code-block { position: relative; }
pre.code {
  overflow: auto;
  padding: 20px 22px;
  background: var(--night-2);
  color: #e6e8ee;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.65;
  tab-size: 4;
}
pre.code code { font: inherit; background: none; padding: 0; color: inherit; }
.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(26, 28, 33, 0.92);
  color: #cfd3da;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.copy:hover { background: #2a2d35; }
.hljs-comment, .hljs-quote { color: #7d8590; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-meta .hljs-keyword { color: #f0a36e; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-meta .hljs-string { color: #a5d6a7; }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-built_in, .hljs-type { color: #79c0ff; }
.hljs-title, .hljs-title.function_, .hljs-title.class_, .hljs-section { color: #d2a8ff; }
.hljs-attr, .hljs-attribute, .hljs-property, .hljs-variable, .hljs-template-variable { color: #ffd580; }
.hljs-meta, .hljs-deletion { color: #ff9e9e; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 600; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table, .admin-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.data-table th, .admin-table th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td, .admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-weak); vertical-align: top; }
.data-table tbody th { background: #fff; color: var(--ink); font-size: 0.875rem; letter-spacing: 0; text-transform: none; font-weight: 500; white-space: normal; border-bottom-color: var(--line-weak); }
.data-table tr:last-child td, .data-table tr:last-child th, .admin-table tr:last-child td { border-bottom: 0; }
.data-table td { color: var(--ink-2); }

/* ---------- access, name story, duo ---------- */
.access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.access-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 34px;
  background: var(--surface);
  border: 1px solid var(--line-weak);
  border-radius: var(--radius-lg);
}
.access-card h3 { font-size: 1.55rem; }
.access-card p { color: var(--muted); }
.access-card .link { align-self: flex-start; margin-top: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split h2 { margin-bottom: 22px; }
.split p { color: var(--muted); }
.split p + p { margin-top: 16px; }
.frame { overflow: hidden; background: #fff; border: 1px solid var(--line-weak); border-radius: var(--radius-xl); }
.frame figcaption { padding: 20px 26px; border-top: 1px solid var(--line-weak); background: var(--surface); color: var(--muted); font-size: 0.84rem; }
.wordmark-art { width: 100%; height: auto; display: block; background: #fff; }
.wordmark-art text { font-family: var(--brand); font-size: 120px; letter-spacing: 26px; fill: #1c1d20; }
.wordmark-art .wa-brand, .wordmark-art .wa-colon { font-weight: 600; }
.wordmark-art .wa-colon { fill: var(--copper); }
.wordmark-art .wa-suffix { font-weight: 400; }
.dotgrid { background-image: radial-gradient(rgba(18, 19, 23, 0.2) 1.1px, transparent 1.1px); background-size: 24px 24px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; }
.duo > div { text-align: center; padding: 40px 24px; }
.duo h3, .duo .subhead { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.duo .subhead { color: var(--muted); margin-bottom: 30px; line-height: 1.25; }

/* ---------- latest cards (home & blog index) ---------- */
.latest-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.latest-card { display: block; color: inherit; text-decoration: none; }
.latest-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #fff;
  font-family: var(--brand);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.3s ease;
  background: var(--surface);
}
.latest-card:hover .thumb { transform: translateY(-4px); }
.latest-card .thumb-a { background: radial-gradient(80% 90% at 30% 20%, #2a3a68, #121317); }
.latest-card .thumb-b { background: radial-gradient(80% 90% at 70% 25%, #5a3320, #121317); }
.latest-card .thumb-c { background: radial-gradient(80% 90% at 30% 80%, #1f4634, #121317); }
.latest-card .thumb-d { background: radial-gradient(80% 90% at 75% 75%, #45264f, #121317); }
.latest-card .post-meta { margin-top: 16px; }
.latest-card h3 { margin-top: 6px; font-size: 1.05rem; letter-spacing: -0.005em; }
.latest-card p:not(.post-meta) {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* ---------- FAQ ---------- */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 1.08rem;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--copper); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { max-width: 72ch; padding: 0 4px 24px; color: var(--muted); }
.faq-answer p + p { margin-top: 8px; }
.faq-answer a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 3px; }

/* ---------- CTA panel ---------- */
.cta-panel {
  padding: 92px 60px;
  background: var(--surface);
  border: 1px solid var(--line-weak);
  border-radius: var(--radius-xl);
  text-align: center;
}
.cta-panel .eyebrow { margin-bottom: 24px; }
.cta-panel h2 { max-width: 22ch; margin: 0 auto 20px; }
.cta-panel p:not(.eyebrow) { max-width: 50ch; margin: 0 auto 40px; color: var(--muted); }

/* ---------- page heads ---------- */
.page-head { padding: 96px 0 40px; }
.page-head h1 { max-width: 22ch; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.page-head h1.title-model { max-width: none; font-size: clamp(1.7rem, 3.6vw, 2.8rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.page-head .status { display: flex; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- product pages ---------- */
.explainer h2 { margin-bottom: 22px; }
.explainer p { color: var(--muted); font-size: 1.05rem; }
.explainer p + p { margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* ---------- playground (reranker page) ---------- */
.playground {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px 56px;
  padding: 44px 40px;
  background: var(--surface);
  border: 1px solid var(--line-weak);
  border-radius: var(--radius-xl);
}
.pg-intro { grid-column: 1 / -1; max-width: 780px; }
.pg-intro h2 { margin-bottom: 16px; }
.pg-intro p:not(.eyebrow) { color: var(--muted); }
.pg-intro a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 3px; }
.pg-form, .contact-form { display: grid; gap: 18px; align-content: start; }
.pg-form label, .contact-form label { display: grid; gap: 8px; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; }
.pg-form small, .contact-form small { color: var(--muted); font-weight: 400; }
.pg-form input, .pg-form textarea,
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}
.pg-form textarea { min-height: 220px; resize: vertical; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.pg-form input:focus, .pg-form textarea:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--copper); outline-offset: 0; border-color: transparent; }
.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pg-status { color: var(--muted); font-size: 0.9rem; }
.pg-output { display: grid; gap: 12px; align-content: start; }
.pg-meta { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.pg-results { display: grid; gap: 10px; list-style: none; }
.pg-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line-weak);
  border-radius: 14px;
}
.pg-item.is-top { border-color: var(--copper); }
.pg-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 0.8rem;
  font-weight: 600;
}
.pg-item.is-top .pg-rank { background: var(--copper); color: #fff; }
.pg-text { color: var(--ink-2); font-size: 0.925rem; overflow-wrap: anywhere; }
.pg-was { margin-top: 2px; color: var(--muted); font-size: 0.75rem; }
.pg-bar { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.pg-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--copper); }
.pg-score { color: var(--ink); font-size: 0.85rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-main { padding: 40px; background: var(--surface); border: 1px solid var(--line-weak); border-radius: var(--radius-xl); }
.contact .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-about { color: var(--muted); font-size: 0.9rem; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 0.85rem; font-weight: 400; line-height: 1.55; }
.contact-form .consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--copper); }
.contact-form .form-error { padding: 12px 14px; border-radius: 12px; background: #fdecea; color: var(--danger); font-size: 0.9rem; }
.contact-form .btn { justify-self: start; }
.contact-done h2 { margin-bottom: 14px; }
.contact-done p:not(.eyebrow) { color: var(--muted); }
.contact-done:focus { outline: none; }
.contact-aside { display: grid; gap: 28px; }
.contact-aside p { margin-bottom: 8px; color: var(--muted); font-size: 0.95rem; }
.contact-aside .link { font-size: 0.95rem; }

/* ---------- models catalogue & model pages ---------- */
.model-line { padding: 44px 0; border-top: 1px solid var(--line); }
.model-line:first-child { padding-top: 0; border-top: 0; }
.model-line-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 24px; }
.model-line-head h2 { font-size: 1.8rem; }
.model-line-head p { max-width: 70ch; margin-top: 10px; color: var(--muted); }
.model-line > .status { padding-top: 0; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.model-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.model-card:hover { border-color: var(--line-strong); box-shadow: 0 20px 44px -24px rgba(18, 19, 23, 0.16); }
.model-card-name { font-size: 1.15rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.model-card-name:hover { color: var(--copper-strong); }
.model-card > p { color: var(--muted); font-size: 0.95rem; }
.model-card .specs div { grid-template-columns: 11rem minmax(0, 1fr); padding: 8px 0; }
.model-card-links { display: flex; gap: 20px; margin-top: auto; padding-top: 4px; }
.model-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.model-aside { position: sticky; top: calc(var(--header) + 24px); }
.model-aside .specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.use-via { display: grid; gap: 10px; margin-top: 28px; }
.footer-title, .use-via h2 { margin-bottom: 8px; color: var(--muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.use-via a { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-weak); border-radius: 14px; text-decoration: none; transition: border-color 0.2s ease; }
.use-via a:hover { border-color: var(--copper); }
.use-via strong { font-weight: 500; font-size: 0.925rem; }
.use-via span { color: var(--muted); font-size: 0.85rem; }

/* ---------- blog ---------- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.75rem; font-weight: 500; }
.tags a { color: inherit; text-decoration: none; }
.tags li:has(a:hover) { background: var(--surface-3); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 56px; color: var(--muted); font-size: 0.925rem; }
.pager > :last-child { justify-self: end; }
.post-head { padding-top: 80px; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.post-head .post-meta { margin-top: 24px; }
.post-head .tags { margin-top: 14px; }
.post-cover { margin-top: 40px; }
.post-cover img { width: 100%; border-radius: var(--radius-lg); }
.post-foot { display: grid; justify-items: start; gap: 28px; padding-top: 56px; padding-bottom: 72px; }

/* index: categories, search, filter status, feed */
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-filter a { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.blog-filter a:hover { background: var(--surface-3); }
.blog-filter a[aria-current="page"] { background: var(--ink); color: #fff; }
.blog-search { display: flex; gap: 8px; margin-left: auto; }
.blog-search input {
  width: 260px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
}
.blog-search input:focus { outline: 2px solid var(--copper); outline-offset: 0; border-color: transparent; }
.blog-status { margin-bottom: 28px; color: var(--muted); }
.blog-status .link { margin-left: 8px; }
.blog-feed { margin-top: 48px; font-size: 0.9rem; }

/* post: body with the table of contents beside it on wide screens, above it otherwise */
.post-body { display: grid; gap: 32px; max-width: calc(780px + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 0; }
.post-body > .prose { min-width: 0; }
.toc { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line-weak); border-radius: var(--radius); font-size: 0.9rem; }
.toc-title { color: var(--muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.toc ol { display: grid; gap: 8px; margin-top: 12px; list-style: none; }
.toc a { display: block; color: var(--muted); line-height: 1.45; text-decoration: none; }
.toc a:hover, .toc a[aria-current] { color: var(--ink); }
.toc a[aria-current] { font-weight: 500; }
.toc .toc-sub { padding-left: 14px; font-size: 0.85rem; }
@media (min-width: 1280px) {
  .post-body { grid-template-columns: minmax(0, 1fr) 780px minmax(0, 1fr); column-gap: 48px; max-width: 1440px; }
  .post-body > .prose { grid-column: 2; grid-row: 1; }
  .toc {
    position: sticky;
    top: calc(var(--header) + 32px);
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    max-width: 260px;
    max-height: calc(100vh - var(--header) - 64px);
    overflow-y: auto;
    padding: 2px 0 2px 20px;
    background: none;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
  }
}

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding-top: 28px; border-top: 1px solid var(--line); }
.share-label { margin-right: 8px; color: var(--muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.related { padding-top: 0; }
.related h2 { margin-bottom: 32px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.related .latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Korean text on this English site keeps words whole when lines wrap */
:lang(ko) { word-break: keep-all; }

/* ---------- prose (blog posts, model cards, editor preview) ---------- */
.prose { min-width: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h4 { margin-top: 1.6em; font-size: 1.05rem; }
.prose a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 3px; }
.prose a:hover { color: var(--copper-strong); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--copper); color: var(--muted); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: 0.88em; }
.prose img { border-radius: var(--radius); }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 8px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); font-weight: 500; }
.prose :is(th, td):first-child { min-width: 8em; }
.prose :is(h2, h3, h4) .anchor { margin-left: 0.35em; color: var(--line-strong); font-weight: 400; text-decoration: none; opacity: 0; transition: opacity 0.15s ease; }
.prose :is(h2, h3, h4) .anchor::before { content: "#"; }
.prose :is(h2, h3, h4):hover .anchor { opacity: 1; }
.prose details { padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.prose details[open] > summary { margin-bottom: 12px; }
.prose summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.prose kbd { padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: #fff; font-family: var(--mono); font-size: 0.85em; }
.prose mark { padding: 0 3px; border-radius: 3px; background: #fbeee3; color: inherit; }
.prose sub, .prose sup { line-height: 0; }

/* math: KaTeX writes MathML, which the browser lays out with a math font */
.prose math { font-family: 'Latin Modern Math', 'STIX Two Math', 'Cambria Math', math; font-size: 1.08em; }
.math-display { display: block; margin: 1.4em 0; overflow-x: auto; overflow-y: hidden; }
.math-display math { font-size: 1.15em; }

/* charts drawn by api/_lib/charts.js; series colours are classes */
.chart { margin: 2.2em 0; }
.chart figcaption { display: grid; gap: 2px; margin-bottom: 14px; }
.chart figcaption strong { color: var(--ink); font-weight: 600; }
.chart figcaption span { color: var(--muted); font-size: 0.9rem; }
.chart-frame { overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 480px; height: auto; }
.chart text { fill: var(--muted); font-family: var(--font); }
.chart .chart-value { fill: var(--ink-2); font-weight: 500; }
.chart .chart-label { fill: var(--ink-2); }
.chart-grid line { stroke: var(--line); }
.chart .copper { --series: var(--copper); }
.chart .blue { --series: var(--blue); }
.chart .green { --series: var(--green); }
.chart .violet { --series: var(--violet); }
.chart .slate { --series: var(--slate); }
.chart .ink { --series: var(--ink); }
.chart-series rect, .chart-series circle, .chart-legend rect { fill: var(--series); }
.chart-line path { fill: none; stroke: var(--series); stroke-width: 2.5; stroke-linejoin: round; }
.chart-line circle { stroke: #fff; stroke-width: 2; }
.chart-legend text { fill: var(--ink-2); }

/* embeds (api/_lib/embeds.js) */
.embed { margin: 2.2em 0; }
.embed-frame { overflow: hidden; background: var(--surface-2); border-radius: var(--radius); }
.embed-video .embed-frame { aspect-ratio: 16 / 9; }
.embed-app .embed-frame { height: 640px; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* source a post could not render (shown in the admin preview) */
.render-error { outline: 2px solid var(--danger); outline-offset: 2px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line-weak); background: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 68px var(--gutter) 40px;
}
.footer-grid .tagline { max-width: 32ch; margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; color: var(--ink-2); font-size: 0.92rem; }
.site-footer li a { color: var(--ink-2); text-decoration: none; transition: color 0.2s ease; }
.site-footer li a:hover { color: var(--copper); }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.footer-base small { color: var(--muted); font-size: 0.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav, .nav-cta { display: none; }
  .menu { display: block; }
  .nav-shell { justify-content: space-between; }
}

@media (max-width: 1020px) {
  section, .section { padding: 80px 0; }
  .section-tight { padding: 24px 0 72px; }
  .statement { padding: 90px 0; }
  .flow, .steps { grid-template-columns: minmax(0, 1fr); }
  .flow .flow-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -21px; transform: translateX(-50%); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 0; }
  .feature.flip .feature-media { order: 0; }
  .feature-media, .media-card { min-height: 360px; }
  .release, .access, .split, .model-layout, .model-grid, .playground, .contact { grid-template-columns: minmax(0, 1fr); }
  .playground { padding: 32px 24px; }
  .split, .release { gap: 48px; }
  .model-aside { position: static; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .latest-grid, .related .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .cta-panel { padding: 68px 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  section, .section { padding: 64px 0; }
  .hero { min-height: 78vh; padding: 90px var(--gutter) 70px; }
  .hero h1 { font-size: clamp(2.25rem, 10.5vw, 3rem); }
  .hero .lead { margin-top: 26px; font-size: 1rem; }
  .hero-actions { gap: 10px; margin-top: 36px; }
  .hero-actions .btn { padding: 14px 24px; font-size: 0.9rem; }
  .hero-lockup { margin-bottom: 28px; font-size: 0.92rem; }
  .statement { padding: 70px 0; }
  .statement p { font-size: clamp(1.4rem, 6.4vw, 1.8rem); }
  h2 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .page-head { padding: 56px 0 24px; }
  .feature { padding: 36px 0; gap: 32px; }
  .feature-media, .media-card { min-height: 280px; }
  .media-card { padding: 28px 18px; border-radius: var(--radius-lg); }
  .latest-grid, .related .latest-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-search { width: 100%; margin-left: 0; }
  .blog-search input { flex: 1; width: auto; min-width: 0; }
  .embed-app .embed-frame { height: 520px; }
  .latest-head { flex-direction: column; align-items: flex-start; }
  .specs div, .model-card .specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .access-card, .model-card, .contact-main { padding: 28px 22px; }
  .contact .field-row { grid-template-columns: minmax(0, 1fr); }
  .cta-panel { padding: 56px 22px; border-radius: var(--radius-lg); }
  .footer-grid { padding: 52px var(--gutter) 32px; gap: 32px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager > span:not(:first-child):not(:last-child) { display: none; }
  .post-head { padding-top: 48px; }
  .duo > div { padding: 28px 8px; }
}
