/* Runwick · Kinetic Intelligence design system (public site). */
@font-face { font-family: "Inter Tight"; src: url(/fonts/inter-tight-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --ground: #0D0E10; --surface: #15161A; --raised: #1C1E22; --rise: #23262B;
  --ink: #ECEBE7; --dim: #B2B0AA; --faint: #8A8882; --line: rgba(236, 235, 231, .12); --line-2: rgba(236, 235, 231, .24);
  --bone: #E8E5DE; --bone-2: #DCD8CF; --carbon: #121214; --carbon-dim: #4C4B47;
  --mint: #7FE3C4; --cobalt: #6F86FF; --amber: #E7B35A; --coral: #FF7B6E;
  --ui: "Inter Tight", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --g: clamp(16px, 3.4vw, 40px); --max: 1400px;
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ol, ul, dl, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(127, 227, 196, .28); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.kicker { font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.kicker b { color: var(--mint); font-weight: 400; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 11px/1 var(--mono); letter-spacing: .06em; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--dim); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.live { color: var(--mint); border-color: rgba(127, 227, 196, .35); }
.tag.gated { color: var(--amber); border-color: rgba(231, 179, 90, .35); }
.tag.planned { color: var(--dim); }
.tag.example { color: var(--cobalt); border-color: rgba(111, 134, 255, .35); }
.note { font: 12px/1.5 var(--mono); color: var(--faint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 560; font-size: 15px;
  text-decoration: none; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn.solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.solid:hover { background: #fff; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.on-bone .btn { border-color: rgba(18, 18, 20, .28); color: var(--carbon); }
.on-bone .btn.solid { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s var(--ease), border-color .35s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(13, 14, 16, .78); backdrop-filter: saturate(1.4) blur(18px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav > a, .nav > .menu > button { font-size: 14.5px; font-weight: 500; color: var(--dim); text-decoration: none; padding: 9px 13px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav > .menu > button:hover, .nav > a[aria-current="page"] { color: var(--ink); background: rgba(236, 235, 231, .06); }
.menu { position: relative; }
.menu > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-3px) rotate(45deg); }
.menu-panel { position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: rgba(21, 22, 26, .96); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.menu.open .menu-panel { opacity: 1; transform: none; pointer-events: auto; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.menu-panel a:hover { background: var(--raised); }
.menu-panel b { display: block; font-weight: 560; font-size: 14.5px; }
.menu-panel span { display: block; font-size: 13px; color: var(--faint); line-height: 1.4; margin-top: 2px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font: 12px var(--mono); color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11, 12, 13, .72); backdrop-filter: blur(8px); }
.lang:hover { border-color: var(--ink); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger i, .burger i::before, .burger i::after { position: absolute; left: 13px; width: 16px; height: 1.5px; background: var(--ink); content: ""; transition: transform .3s var(--ease), opacity .2s; }
.burger i { top: 21px; } .burger i::before { left: 0; top: -5px; } .burger i::after { left: 0; top: 5px; }
.menu-open .burger i { background: transparent; } .menu-open .burger i::before { transform: translateY(5px) rotate(45deg); } .menu-open .burger i::after { transform: translateY(-5px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 45; background: var(--ground); padding: 92px var(--g) 32px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.menu-open .sheet { opacity: 1; pointer-events: auto; }
.sheet nav a { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet .sheet-group { margin-top: 26px; }
.sheet .sheet-group a { font-size: 17px; padding: 9px 0; border: 0; color: var(--dim); }
.sheet .btn { margin-top: 28px; width: 100%; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 72px 0 40px; background: var(--ground); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--dim); font-size: 14.5px; margin-top: 16px; max-width: 30ch; }
.foot-brand .phrase { font-size: 28px; font-weight: 300; letter-spacing: -.04em; color: var(--ink); margin-top: 26px; line-height: 1.05; }
.foot h4 { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 14px; }
.foot li { margin: 0 0 9px; }
.foot li a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
.foot li a:hover { color: var(--ink); }
.foot li .pending { color: var(--faint); font-size: 14px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font: 12px/1.6 var(--mono); color: var(--faint); }

/* Shared page chrome for information pages */
.page-hero { padding: 168px 0 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(44px, 7vw, 112px); font-weight: 300; line-height: .95; letter-spacing: -.055em; max-width: 14ch; margin-top: 18px; }
.page-hero p.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--dim); max-width: 52ch; margin-top: 26px; line-height: 1.5; }
.page-hero .hero-art { position: absolute; right: max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); bottom: -40px; width: min(36vw, 460px); opacity: .95; pointer-events: none; }
.prose { display: grid; grid-template-columns: 240px minmax(0, 820px); gap: 64px; padding: 72px var(--g) 120px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc a { display: block; color: var(--faint); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--ink); }
.prose article > section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.prose article > section:last-child { border: 0; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 18px; }
.prose h3 { font-size: 19px; font-weight: 560; letter-spacing: -.015em; margin: 28px 0 10px; }
.prose p, .prose li { color: #CFCDC7; font-size: 16.5px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.prose ul.dots li { position: relative; padding-left: 20px; margin: 8px 0; }
.prose ul.dots li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.prose code, .prose pre { font-family: var(--mono); font-size: 13.5px; }
.prose code { background: var(--raised); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; line-height: 1.6; margin: 16px 0; color: #DAD8D2; }
.prose a { color: var(--ink); text-decoration-color: var(--mint); text-underline-offset: 3px; }
.callout { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; margin: 18px 0; background: var(--surface); }
.callout.warn { border-color: rgba(231, 179, 90, .4); }
.callout b { display: block; margin-bottom: 4px; }
.table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; }
.table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td.n { font-family: var(--mono); white-space: nowrap; color: var(--ink); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 18px 0; }
.status-grid > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.status-grid b { display: block; margin: 10px 0 4px; font-weight: 560; }
.status-grid p { font-size: 14.5px; color: var(--dim); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 500; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1; color: var(--faint); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; }
.draft-banner { border: 1px dashed rgba(231, 179, 90, .5); color: var(--amber); padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 32px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav, .top-actions .lang, .top-actions .btn { display: none; }
  .burger { display: block; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .prose { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .page-hero .hero-art { position: relative; right: auto; bottom: auto; width: 70%; margin: 40px auto -40px; }
}
@media (max-width: 560px) {
  .page-hero { padding: 120px 0 48px; }
  .prose p, .prose li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.prose > *, .prose article, .prose section { min-width: 0; }
.prose pre { max-width: 100%; }
.table td:first-child { width: 42%; color: var(--ink); }
.toc a { color: var(--dim); }
