@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ink: #151827;
  --muted: #6b6480;
  --paper: #f8f7fc;
  --surface: #ffffff;
  --line: #e4e1ef;
  --line-strong: #cfc8e6;
  --blue: #2050ff;
  --violet: #7a5cff;
  --cyan: #00d4ff;
  --grad: linear-gradient(100deg, var(--blue), var(--violet) 55%, var(--cyan));
  --max: 1180px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(43, 37, 85, .12);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 82% 8%, rgba(122, 92, 255, .10), transparent 65%),
    radial-gradient(700px 500px at 8% 42%, rgba(0, 212, 255, .06), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, svg { max-width: 100%; }
::selection { background: rgba(32, 80, 255, .18); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 16px; }

.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 247, 252, .94);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-block;
  font-size: 31px;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -2px;
  transform: skewX(-6deg);
  transform-origin: left center;
  white-space: nowrap;
}
.brand .vel {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a { transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-actions .btn { white-space: nowrap; }
.lang-switch { display: flex; align-items: center; gap: 1px; }
.lang-switch a { padding: 6px 7px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.lang-switch a:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: rgba(21,24,39,.06); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f3a712;
  box-shadow: 0 0 0 3px rgba(243, 167, 18, .14);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(21, 24, 39, .16); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .55); color: var(--ink); }
.btn-soft { background: rgba(32, 80, 255, .08); color: var(--blue); }
.btn[aria-disabled="true"] { cursor: default; opacity: .72; transform: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #5d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 7.4vw, 92px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.055em;
}
h1 strong { font-weight: 600; }
h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.04em;
}
h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.lead { max-width: 640px; color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.hero { padding: 76px 0 58px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.hero-wordmark {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 28px;
  font-size: clamp(74px, 9.5vw, 128px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.07em;
  transform: skewX(-6deg);
  transform-origin: left center;
}
.hero-wordmark .vel {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .eyebrow { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 12px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.metric .label { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.metric .value { margin-top: 7px; font-size: clamp(27px, 3vw, 38px); font-weight: 300; letter-spacing: -.04em; }

.app-window {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .36));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.app-window::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(var(--radius-lg) - 1px);
  pointer-events: none;
  background: rgba(122, 92, 255, .05);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 72%);
}
.app-window > * { position: relative; z-index: 1; }
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 16px;
  color: var(--muted);
  font-size: 11px;
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d9d3e9; }
.window-tab {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(21, 24, 39, .88);
  color: #fff;
  font-size: 10px;
}
.window-spacer { flex: 1; }
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.window-body { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .68); }
.window-kicker { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.window-title { margin: 8px 0 8px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 300; line-height: 1.05; letter-spacing: -.04em; }
.window-copy { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-tile { padding: 12px 14px; border-radius: 12px; background: rgba(248, 247, 252, .82); border: 1px solid rgba(228, 225, 239, .9); }
.metric-tile .label { color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.metric-tile .value { margin-top: 4px; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.metric-tile.dark { border-color: transparent; background: linear-gradient(135deg, #6554d9, #8f78f2); color: #fff; }
.metric-tile.dark .label { color: rgba(255,255,255,.72); }
.app-caption { margin: 14px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); }
.section-head h2 { margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}
.card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.card .num { display: block; margin-bottom: 42px; color: var(--violet); font-size: 12px; font-weight: 600; letter-spacing: .12em; }

.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.code-card {
  overflow: hidden;
  border: 1px solid #2e2850;
  border-radius: var(--radius);
  background: #211d36;
  box-shadow: 0 18px 50px rgba(33, 29, 54, .16);
}
.code-top { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.1); color: #b8b0cc; font-size: 10px; }
.code-top span { width: 7px; height: 7px; border-radius: 50%; background: #6b6385; }
.code-top em { margin-left: auto; font-style: normal; }
.code { margin: 0; padding: 22px; overflow-x: auto; color: #ddd7ef; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code .k { color: #9da8ff; }
.code .s { color: #8de7f4; }
.code .c { color: #8a819f; }

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .58);
}
.status-panel h2 { margin-bottom: 12px; }
.status-panel p { margin-bottom: 0; color: var(--muted); }
.status-list { margin: 0; padding: 0; list-style: none; }
.status-list li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.status-list li:last-child { border-bottom: 0; }
.status-list b { font-weight: 600; }
.status-list span { color: var(--muted); }

.cta {
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { max-width: 620px; color: #c9c4da; }
.cta .btn-ghost { border-color: rgba(255,255,255,.3); background: transparent; color: #fff; }
.cta .btn-soft { background: rgba(255,255,255,.12); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.site-footer { padding: 42px 0 54px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

.page-head { padding: 70px 0 46px; }
.page-head h1 { max-width: 900px; font-size: clamp(48px, 6.7vw, 82px); }
.page-head .lead { margin-bottom: 0; }
.page-body { padding: 0 0 88px; }
.page-body h2 { margin: 52px 0 16px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; letter-spacing: -.035em; }
.page-body h2:first-child { margin-top: 0; }
.page-body code { padding: 2px 5px; border-radius: 5px; background: rgba(21,24,39,.06); color: var(--ink); font: .9em ui-monospace, Menlo, monospace; }
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #ead9ad;
  border-radius: 14px;
  background: #fffaf0;
  color: #625638;
  font-size: 13px;
}
.notice strong { color: #4a3e22; }
.notice::before { content: "!"; display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #f3a712; color: #fff; font-weight: 700; }

.layout-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.side-nav { position: sticky; top: 104px; display: grid; gap: 4px; }
.side-nav .tiny { margin: 18px 0 7px; color: var(--muted); }
.side-nav a { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.side-nav a:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 52px; font-size: 30px; letter-spacing: -.03em; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose code { padding: 2px 5px; border-radius: 5px; background: rgba(21,24,39,.06); color: var(--ink); font: .9em ui-monospace, Menlo, monospace; }
.prose pre { overflow-x: auto; margin: 18px 0; padding: 18px; border-radius: 14px; background: #211d36; color: #ddd7ef; font: 12px/1.8 ui-monospace, Menlo, monospace; }
.prose pre code { padding: 0; background: transparent; color: inherit; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; border-left: 2px solid var(--violet); background: rgba(122,92,255,.05); color: var(--muted); }

.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list b { display: block; font-size: 14px; }
.list span { color: var(--muted); font-size: 13px; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.platform { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.58); }
.platform b { display: block; font-size: 14px; }
.platform span { display: block; color: var(--muted); font-size: 12px; }
.platform .tag { display: inline-block; margin-top: 18px; padding: 4px 7px; border-radius: 5px; background: rgba(243,167,18,.12); color: #8a6412; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.release-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.release-row .version { color: var(--ink); font-weight: 600; }
.release-row p { margin: 0; color: var(--muted); font-size: 13px; }
.release-row .state { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 900px) {
  .status-pill { display: none; }
  .hero-grid, .split, .status-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 38px; }
  .app-window { max-width: 620px; }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .grid-3, .platforms { grid-template-columns: 1fr; }
  .layout-docs { grid-template-columns: 1fr; gap: 26px; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; }
  .side-nav .tiny { display: none; }
  .side-nav a { border: 1px solid var(--line); background: rgba(255,255,255,.55); }
}
@media (max-width: 680px) {
  .shell, .narrow { width: min(100% - 32px, var(--max)); }
  .header-inner { min-height: 66px; gap: 12px; }
  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .status-pill, .header-actions > .btn-ghost { display: none; }
  .hero { padding-top: 38px; }
  .hero-wordmark { font-size: 72px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  .metrics { gap: 10px; margin-top: 40px; }
  .metric .value { font-size: 23px; }
  .window-body { padding: 16px; }
  .metric-pair { grid-template-columns: 1fr; }
  .page-head { padding: 46px 0 32px; }
  .page-head h1 { font-size: clamp(40px, 12vw, 56px); }
  .release-row { grid-template-columns: 1fr; gap: 7px; }
  .release-row .state { order: 3; }
  .footer-grid { display: block; }
  .footer-links { margin-top: 18px; }
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.btn:focus-visible, .nav-toggle:focus-visible, .lang-switch a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
