/* Waterline design system: light, square, gridded. */
:root {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --ink: #242424;
  --text: #2f2f2f;
  --muted: #6c6c6c;
  --faint: #a3a3a3;
  --line: #e4e4e4;
  --line-2: #d5d5d5;
  --accent: #7ca994;
  --accent-600: #68967f;
  --accent-700: #4e7a65;
  --accent-50: #f0f6f3;
  --accent-100: #e1ede7;
  --gray-btn: #4b4b4b;
  --dark: #2a2a2a;
  --dark-2: #313131;
  --dark-line: #4c4c4c;
  --ok: #4e8f6f;
  --warn: #b5872c;
  --bad: #b8574a;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --outer: 1216px;
  --inner: 1016px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 380; color: var(--ink); letter-spacing: -0.022em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.outer { max-width: var(--outer); margin: 0 auto; padding: 0 24px; }
.inner { max-width: var(--inner); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------- top bars --- */
.announce { background: var(--accent); color: #fff; font-size: 14px; text-align: center; padding: 9px 16px; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(248, 248, 248, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .outer { display: flex; align-items: stretch; height: 56px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 450; letter-spacing: -0.03em; color: var(--ink); }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 30px; margin: 0 30px 0 auto; font-size: 15px; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); transition: color .15s; }
.nav-links a:hover { color: var(--accent-700); }
.nav-links .chev { width: 8px; height: 8px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.nav-cta { display: flex; }
.nav-cta a { display: flex; align-items: center; padding: 0 18px; font-size: 15px; color: #fff; transition: filter .15s; }
.nav-cta a:hover { filter: brightness(1.08); }
.nav-cta .dark { background: var(--gray-btn); }
.nav-cta .accent { background: var(--accent); }
.nav-burger { display: none; margin-left: auto; width: 56px; border: 0; background: transparent; cursor: pointer; }
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; }

/* ----------------------------------------------------------- buttons --- */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; font-size: 15px; line-height: 1; border: 1px solid transparent; background: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, opacity .15s; }
.btn .sq { width: 9px; height: 9px; background: currentColor; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--muted); }
.btn-ghost .sq { background: #9c9c9c; }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-dark { background: var(--gray-btn); color: #fff; }
.btn-dark:hover { background: #3d3d3d; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white .sq { background: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; gap: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* segmented tabs (mono) */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); padding: 4px; }
.seg button { position: relative; border: 0; background: transparent; font: 400 12px/1 var(--mono); letter-spacing: .02em; color: var(--muted); padding: 9px 26px; cursor: pointer; }
.seg button + button::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.seg button[aria-selected='true'] { background: #545454; color: #fff; }
.seg button[aria-selected='true']::before, .seg button[aria-selected='true'] + button::before { display: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font: 400 11.5px/1 var(--mono); letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: #bcd8c9; background: var(--accent-50); }
.chip.warn { color: var(--warn); border-color: #e7d4aa; background: #fbf6ea; }
.chip.bad { color: var(--bad); border-color: #e7c3bd; background: #fbf1ef; }
.chip.dark { background: #545454; border-color: #545454; color: #fff; }
.dot { width: 7px; height: 7px; background: currentColor; display: inline-block; }

.eyebrow { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ------------------------------------------------------------ sections --- */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.lede { color: var(--text); font-size: 16px; max-width: 360px; margin-top: 20px; }

/* ----------------------------------------------------------- hero --- */
.hero { padding: 96px 0 0; text-align: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 54px); line-height: 1.04; letter-spacing: -0.03em; }
.hero .sub { max-width: 400px; margin: 18px auto 0; font-size: 15.5px; line-height: 1.45; }
.hero .seg { margin-top: 52px; }
.hero-stage { position: relative; margin-top: 28px; padding: 0 24px; }
.hero-card { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); text-align: left; box-shadow: 0 30px 60px -40px rgba(30, 60, 50, .35); }
.hero-form { display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 22px; }
.hero-form svg { flex: none; color: var(--ink); }
.hero-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); padding: 6px 0; }
.hero-form input::placeholder { color: #8d8d8d; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 16px 22px; min-height: 52px; }
.hero-meta .left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--faint); cursor: pointer; user-select: none; }
.toggle input { appearance: none; width: 10px; height: 10px; margin: 0; border: 1px solid var(--faint); background: transparent; cursor: pointer; }
.toggle input:checked { background: var(--faint); }
.toggles { display: flex; gap: 16px; }
.try { font-size: 13px; color: var(--muted); }
.try button { border: 0; background: none; padding: 0; color: var(--accent-700); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-out { border-top: 1px solid var(--line); display: none; }
.hero-out.show { display: block; }
.hero-out .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-out .grid > * + * { border-left: 1px solid var(--line); }
.hero-out pre { margin: 0; max-height: 360px; overflow: auto; padding: 18px 22px; font: 400 12.5px/1.6 var(--mono); color: #444; background: #fcfcfc; }
.hero-art { position: relative; max-width: var(--outer); height: 330px; margin: -96px auto 0; overflow: hidden; }
.hero-art canvas { width: 100%; height: 100%; }

.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: overlay; 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* person summary (hero + app) */
.person { padding: 20px 22px; display: grid; gap: 16px; align-content: start; }
.person-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-700); font: 500 16px/1 var(--mono); }
.person-head .name { font-size: 19px; color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; }
.person-head .headline { font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 9px 12px; font-size: 14px; align-items: center; }
.kv dt { font: 400 11.5px/1.4 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 0; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.kv .none { color: var(--faint); }
.copy { border: 0; background: none; padding: 2px; color: var(--faint); cursor: pointer; display: inline-grid; place-items: center; }
.copy:hover { color: var(--accent-700); }
.spinner { width: 14px; height: 14px; border: 1.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: var(--line-2); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- marquee --- */
.marquee-wrap { padding: 64px 0 0; }
.marquee-cap { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 12px; padding: 22px 34px; font: 400 14px/1 var(--mono); color: #7a7a7a; letter-spacing: .02em; border-right: 1px solid var(--line); white-space: nowrap; }
.marquee-track span i { width: 8px; height: 8px; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ------------------------------------------------------- one-api --- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.cap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cap-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / 0.92; padding: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.cap-card:hover { border-color: var(--line-2); }
.cap-card[aria-pressed='true'] { border-color: #9a9a9a; background: #fafafa; }
.cap-card .icon { width: 34px; height: 34px; }
.cap-card h3 { font-size: 18px; margin-bottom: 4px; }
.cap-card small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cap-card .corner { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; background: var(--line-2); }
.cap-card[aria-pressed='true'] .corner { background: var(--accent); }
.feature-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; margin-top: 64px; }
.feature-row h3 { font-size: 26px; }
.feature-row p { margin-top: 14px; font-size: 15px; max-width: 360px; }
.mini-card { margin-top: 28px; max-width: 360px; border: 1px solid var(--line); background: var(--surface); }
.mini-card .hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mini-card .bd { padding: 12px; font-size: 14px; line-height: 1.45; }
.mini-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-card td { padding: 6px 0; border-top: 1px solid var(--line); }
.mini-card tr:first-child td { border-top: 0; }
.mini-card td:last-child { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bar-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding: 0 14px; height: 44px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 15px; transition: border-color .15s, color .15s; }
.bar-link:hover { border-color: var(--accent); color: var(--ink); }
.bar-link .l { display: flex; align-items: center; gap: 12px; }
.bar-link .sq { width: 9px; height: 9px; background: #9c9c9c; }

/* code block */
.code { border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.code-tabs { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 6px; }
.code-tabs button { border: 0; background: none; font: 400 12px/1 var(--mono); color: var(--faint); padding: 13px 10px; cursor: pointer; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.code-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.code-tabs .copy-btn { margin-left: auto; border: 0; font: 400 12px/1 var(--mono); color: var(--faint); background: none; cursor: pointer; padding: 13px 10px; }
.code-tabs .copy-btn:hover { color: var(--ink); }
.code pre { margin: 0; padding: 20px 22px; overflow: auto; font: 400 13px/1.7 var(--mono); color: #3a3a3a; min-height: 250px; tab-size: 2; }
.tok-k { color: #b35c8a; }
.tok-s { color: #4e7a65; }
.tok-c { color: #a3a3a3; }
.tok-n { color: #b07a3a; }

/* ------------------------------------------------------ waterfall --- */
.wf { position: relative; border: 1px solid var(--line-2); background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; background-position: -1px -1px; padding: 28px; min-height: 460px; display: grid; gap: 14px; align-content: center; }
.wf-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); opacity: .25; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease, border-color .5s; }
.wf-step.on { opacity: 1; transform: none; }
.wf-step.hit { border-color: var(--accent); }
.wf-step .n { width: 34px; height: 34px; display: grid; place-items: center; font: 500 12px/1 var(--mono); background: #f1f1f1; color: var(--muted); }
.wf-step.hit .n { background: var(--accent); color: #fff; }
.wf-step .t { font-size: 15px; color: var(--ink); line-height: 1.25; }
.wf-step .e { font: 400 12px/1.3 var(--mono); color: var(--faint); margin-top: 3px; overflow-wrap: anywhere; }
.wf-step .r { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wf-step::after { content: ''; position: absolute; left: 33px; top: 100%; width: 1px; height: 14px; background: var(--line-2); }
.wf-step:last-child::after { display: none; }
.wf-step.final { background: #545454; border-color: #545454; }
.wf-step.final .t { color: #fff; }
.wf-step.final .e { color: #c9c9c9; }
.wf-step.final .n { background: #fff; color: var(--ink); }
.steps-list { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps-list div { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps-list b { font: 400 12px/1.6 var(--mono); color: var(--accent-700); font-weight: 400; }
.steps-list h4 { font-size: 16px; margin-bottom: 4px; }
.steps-list p { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------ use cases --- */
.uc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.arrows { display: flex; gap: 6px; }
.arrow-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; }
.arrow-btn:hover { border-color: var(--accent); color: var(--ink); }
.uc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.uc-track::-webkit-scrollbar { display: none; }
.uc { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.uc-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.uc-top h3 { font-size: 21px; }
.ext { width: 24px; height: 24px; display: grid; place-items: center; background: #ececec; color: var(--muted); }
.uc-art { position: relative; margin-top: 16px; height: 240px; overflow: hidden; }
.uc-art canvas { width: 100%; height: 100%; }
.uc-art .lbl { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 26px; letter-spacing: -0.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.uc ul { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14px; flex: 1; }
.uc li { display: grid; grid-template-columns: 14px 1fr; align-items: baseline; }
.uc li::before { content: ''; width: 6px; height: 6px; background: var(--ink); transform: translateY(-2px); }
.uc .foot { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; background: #e6ece9; font-size: 14px; color: var(--ink); transition: background .15s; }
.uc .foot:hover { background: var(--accent-100); }

/* ------------------------------------------------------ dark band --- */
.dark-band { position: relative; background: var(--dark); color: #e9e9e9; padding: 100px 0; overflow: hidden; }
.dark-band h2 { color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 0.9fr); grid-template-rows: auto auto; gap: 14px; margin-top: 48px; }
.tile { position: relative; border: 1px solid var(--dark-line); padding: 20px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255, 255, 255, .015); }
.tile .ic { width: 18px; height: 18px; color: #cfcfcf; }
.tile h4 { color: #f0f0f0; font-size: 16px; line-height: 1.3; max-width: 160px; }
.tile p { color: #a9a9a9; font-size: 13.5px; margin-top: 6px; max-width: 220px; }
.tile .px { position: absolute; right: 20px; top: 20px; display: grid; grid-template-columns: repeat(var(--c, 5), 28px); grid-auto-rows: 28px; border-left: 1px solid #6a6a6a; border-top: 1px solid #6a6a6a; }
.tile .px i { border-right: 1px solid #6a6a6a; border-bottom: 1px solid #6a6a6a; }
.tile .px i.f { background: #e9e9e9; }
.tile .px i.g { background: #8a8a8a; }
.tile.sec { grid-row: span 2; }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; margin: 20px 0; }
.badge { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12px; color: #bdbdbd; }
.badge .b { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid #777; color: #dcdcdc; }
.badge .b.round { border-radius: 50%; }
.sec-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

/* ----------------------------------------------------- integrate --- */
.int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.int-grid div { display: grid; place-items: center; gap: 8px; aspect-ratio: 1 / 0.8; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); font: 400 13px/1 var(--mono); color: var(--muted); text-align: center; padding: 8px; }
.int-grid div b { display: block; font: 450 17px/1 var(--sans); color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }

/* --------------------------------------------------------- pricing --- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.price { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.price.hot { border-color: var(--accent); box-shadow: 0 24px 50px -40px rgba(40, 90, 70, .5); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price h3 { font-size: 20px; }
.price-amt { font: 330 30px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.price-desc { font-size: 14px; color: var(--muted); min-height: 40px; }
.price-credits { font: 400 12.5px/1.3 var(--mono); color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-credits b { font-weight: 500; color: var(--ink); font-size: 14px; }
.price ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 7px; font-size: 14px; flex: 1; }
.price li { display: grid; grid-template-columns: 16px 1fr; align-items: baseline; }
.price li::before { content: '✓'; color: var(--accent-700); font-size: 12px; }
.price li.off { color: var(--faint); text-decoration: line-through; }
.price li.off::before { content: '–'; color: var(--faint); }
.price .btn { justify-content: center; }
.price-note { margin-top: 16px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }

/* ------------------------------------------------------------- faq --- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 22px; height: 22px; flex: none; position: relative; border: 1px solid var(--line-2); background: var(--surface); }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.3px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 680px; font-size: 15px; }
.faq code, .docs code { font: 400 0.9em var(--mono); background: #eeeeee; padding: 1px 5px; }

/* ---------------------------------------------------------- footer --- */
.footer { padding: 100px 0 0; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.5fr)); gap: 32px; }
.foot-grid h2 { font-size: 34px; line-height: 1.1; max-width: 300px; }
.foot-col h5 { margin: 0 0 14px; font: 400 11px/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.foot-col a { display: block; font-size: 14px; color: var(--ink); padding: 3px 0; }
.foot-col a:hover { color: var(--accent-700); }
.foot-art { position: relative; height: 140px; margin-top: 72px; overflow: hidden; }
.foot-art canvas { width: 100%; height: 100%; }
.foot-art .logo { position: absolute; right: 18px; bottom: 14px; color: #fff; }
.foot-art .logo svg { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 28px; font-size: 12.5px; color: var(--muted); }
.foot-bottom nav { display: flex; gap: 18px; }

/* ------------------------------------------------------- utilities --- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--warn); }
.mobile-menu { display: none; }

/* ------------------------------------------------------- responsive --- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .mobile-menu.open { display: grid; position: fixed; inset: 57px 0 auto 0; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; gap: 2px; }
  .mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mobile-menu .btn-row { margin-top: 12px; }
  .split, .feature-row { grid-template-columns: minmax(0, 1fr) !important; gap: 36px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.sec { grid-row: auto; grid-column: span 2; }
  .uc-track { grid-auto-columns: 78%; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .hero-out .grid { grid-template-columns: 1fr; }
  .hero-out .grid > * + * { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .outer, .inner { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 64px; }
  .hero .seg { margin-top: 36px; }
  .seg button { padding: 9px 16px; }
  .hero-stage { padding: 0 16px; }
  .hero-form { flex-wrap: wrap; padding: 14px; }
  .hero-form input { font-size: 17px; flex-basis: calc(100% - 40px); }
  .hero-form .btn { width: 100%; justify-content: center; }
  .hero-meta { flex-direction: column; align-items: flex-start; padding: 0 14px 14px; }
  .hero-art { height: 220px; margin-top: -80px; }
  .cap-cards { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cap-card { aspect-ratio: auto; min-height: 120px; padding: 12px; }
  .cap-card small { display: none; }
  .cap-card h3 { font-size: 15px; }
  .tiles { grid-template-columns: 1fr; }
  .tile.sec { grid-column: auto; }
  .tile .px { transform: scale(.75); transform-origin: top right; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-track { grid-auto-columns: 88%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
  .kv { grid-template-columns: 78px minmax(0, 1fr); }
  .wf { padding: 16px; }
  .wf-step { grid-template-columns: 30px minmax(0, 1fr); }
  .wf-step .r { grid-column: 2; justify-content: flex-start; }
}
