:root {
  color-scheme: dark;
  --bg: #080d0b;
  --bg-soft: #0d1511;
  --panel: #111c17;
  --panel-strong: #17251e;
  --line: #294136;
  --line-soft: #1d3027;
  --text: #edf8f1;
  --muted: #9db4a7;
  --green: #59e391;
  --green-bright: #92ffb8;
  --mint: #b8ffd0;
  --amber: #ffc66d;
  --red: #ff7b7b;
  --blue: #7cc8ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  --content: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(71, 205, 124, 0.13), transparent 25rem),
    radial-gradient(circle at 88% 22%, rgba(65, 138, 102, 0.12), transparent 27rem),
    linear-gradient(180deg, #080d0b 0%, #09100d 58%, #070b09 100%);
  line-height: 1.65;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(115, 255, 168, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 255, 168, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: var(--green-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: white; }
img { max-width: 100%; }
button, input { font: inherit; }
code, pre, .mono { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
code { color: var(--mint); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; background: white; color: #07120b; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; }
.container { width: min(calc(100% - 36px), var(--content)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(89, 227, 145, 0.16);
  background: rgba(8, 13, 11, 0.86);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 850; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #6bf2a0;
  border-radius: 9px 3px 9px 3px;
  color: #061009;
  background: linear-gradient(135deg, var(--green-bright), #35b96d);
  box-shadow: 0 0 24px rgba(89, 227, 145, 0.22);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(89, 227, 145, 0.1); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; color: var(--text); background: var(--panel); }
.hero { padding: clamp(72px, 10vw, 132px) 0 78px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 60px; align-items: center; }
.eyebrow, .status-pill { display: inline-flex; align-items: center; gap: 9px; color: var(--green-bright); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; content: ""; background: var(--green); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(2.75rem, 7vw, 5.9rem); }
h1 span { color: var(--green-bright); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.2rem; }
.hero-copy { max-width: 690px; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--panel); font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--green); color: white; transform: translateY(-1px); }
.button.primary { border-color: var(--green); color: #061109; background: linear-gradient(135deg, var(--green-bright), #45cf7d); }
.button.ghost { background: transparent; }
.terminal { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 22, 17, 0.94); box-shadow: var(--shadow); overflow: hidden; transform: rotate(1deg); }
.terminal::after { position: absolute; inset: 0; pointer-events: none; content: ""; background: linear-gradient(transparent 50%, rgba(0,0,0,.08) 50%); background-size: 100% 4px; }
.terminal-head { display: flex; align-items: center; gap: 7px; padding: 14px 17px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .78rem; }
.dot { width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.terminal-body { padding: 24px; font-size: .88rem; }
.terminal-line { margin: 0 0 9px; color: var(--muted); }
.prompt { color: var(--green-bright); }
.success { color: var(--mint); }
.warning { color: var(--amber); }
.section { padding: 88px 0; }
.section.muted { border-block: 1px solid var(--line-soft); background: rgba(17, 28, 23, 0.58); }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .hero-grid > * { min-width: 0; }
.card { position: relative; padding: 26px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24, 39, 32, .9), rgba(13, 22, 17, .9)); box-shadow: 0 12px 35px rgba(0,0,0,.15); }
.card:hover { border-color: var(--line); }
.card p, .card li { color: var(--muted); }
.card ul { padding-left: 19px; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid rgba(89, 227, 145, .35); border-radius: 11px 4px 11px 4px; color: var(--green-bright); background: rgba(89, 227, 145, .08); font-weight: 900; }
.platform-card { overflow: hidden; }
.platform-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: var(--green); }
.platform-card.paper::before { background: var(--blue); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(7,13,10,.45); font-size: .76rem; font-weight: 750; }
.steps { counter-reset: steps; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(15,25,20,.78); }
.step::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--green); border-radius: 10px 3px 10px 3px; color: var(--green-bright); font-family: monospace; font-weight: 900; }
.step h3 { margin: 3px 0 6px; }
.step p { margin: 0; color: var(--muted); }
.code-block { position: relative; margin: 18px 0; border: 1px solid var(--line); border-radius: 13px; background: #070c09; overflow: hidden; }
.code-block pre { margin: 0; padding: 20px; overflow: auto; color: #d6f7e0; font-size: .88rem; line-height: 1.75; }
.copy-button { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel); cursor: pointer; font-size: .75rem; font-weight: 750; }
.copy-button:hover { color: white; border-color: var(--green); }
.badge-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.badge-stack img { display: block; }
.banner { width: 100%; max-width: 720px; margin: 0 auto 34px; display: block; filter: drop-shadow(0 18px 45px rgba(0,0,0,.4)); }
.callout { padding: 22px 24px; border: 1px solid rgba(255,198,109,.35); border-left: 4px solid var(--amber); border-radius: 12px; background: rgba(255,198,109,.06); color: #f8e7cb; }
.callout.info { border-color: rgba(124,200,255,.3); border-left-color: var(--blue); background: rgba(124,200,255,.06); }
.site-footer { padding: 40px 0; border-top: 1px solid var(--line-soft); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px; }
.footer-links a { color: var(--muted); }
.page-hero { padding: 72px 0 46px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { margin-bottom: 18px; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.search-wrap { position: relative; max-width: 720px; margin-top: 28px; }
.search-input { width: 100%; min-height: 52px; padding: 12px 18px 12px 46px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--panel); }
.search-wrap::before { position: absolute; top: 13px; left: 17px; content: "⌕"; color: var(--green); font-size: 1.35rem; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.docs-nav { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(14,23,18,.78); }
.docs-nav strong { display: block; margin-bottom: 10px; }
.docs-nav a { display: block; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: .87rem; text-decoration: none; }
.docs-nav a:hover { color: white; background: rgba(89,227,145,.08); }
.doc-section { margin-bottom: 52px; padding-bottom: 45px; border-bottom: 1px solid var(--line-soft); }
.doc-section[hidden], .release-card[hidden] { display: none; }
.doc-section h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.doc-section p, .doc-section li { color: #bed0c5; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; background: rgba(12,20,16,.68); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { color: var(--green-bright); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.empty-state { display: none; padding: 32px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.empty-state.visible { display: block; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 34px; }
.filter { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 750; }
.filter:hover, .filter.active { border-color: var(--green); color: #071109; background: var(--green-bright); }
.timeline { position: relative; display: grid; gap: 20px; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 23px; width: 1px; content: ""; background: var(--line); }
.release-card { position: relative; margin-left: 58px; padding: 26px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.release-card::before { position: absolute; top: 30px; left: -45px; width: 15px; height: 15px; content: ""; border: 4px solid var(--bg); border-radius: 3px; background: var(--green); box-shadow: 0 0 0 1px var(--line); }
.release-card.legacy::before { background: var(--amber); }
.release-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: .82rem; }
.release-label { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-bright); font-weight: 800; }
.release-card.legacy .release-label { color: var(--amber); }
.release-card ul { color: var(--muted); }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found .brand-mark { width: 70px; height: 70px; margin: 0 auto 24px; font-size: 1.7rem; }

@media (max-width: 900px) {
  .hero-grid, .docs-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .terminal { max-width: 620px; transform: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-nav { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .docs-nav strong { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav-links { width: 100%; display: grid; padding: 0 0 12px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links { position: absolute; top: 72px; left: 18px; right: 18px; width: auto; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #0d1712; box-shadow: var(--shadow); }
  .js .nav-links.open { display: grid; }
  .nav-links a { padding: 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding-top: 58px; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .docs-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .button, .release-card { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
  .card:hover, .release-card:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
