:root {
  --bg: #11141b;
  --panel: #1a1f2a;
  --panel-2: #222836;
  --ink: #eef1f7;
  --ink-2: #b9c0ce;
  --ink-3: #8b93a5;
  --rule: #2d3444;
  --accent: #ffcf5a;
  --accent-ink: #1b1608;
  --link: #8cc0ff;
  --max: 1180px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.88em; }
kbd { font-size: 0.82em; padding: 0.05em 0.4em; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; background: var(--panel-2); }
h1, h2, h3, p { margin-top: 0; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.75rem max(16px, calc((100vw - var(--max)) / 2)); background: rgba(17, 20, 27, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-header nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.site-header nav a { color: var(--ink-2); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.nav-source { color: var(--accent) !important; }

main { padding: 0 16px; }
.hero, .section { max-width: var(--max); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem; }
.lede { color: var(--ink-2); font-size: 1.15rem; max-width: 38rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.6rem 0; }
.button { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 8px; font: 600 1rem var(--sans); text-decoration: none; border: 1px solid var(--rule); cursor: pointer; }
.button-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.button-quiet { background: transparent; color: var(--ink); }
.facts { display: flex; gap: 2rem; flex-wrap: wrap; margin: 0; }
.facts dt { color: var(--ink-3); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 0; font-weight: 600; }

.glyph-wall { margin: 0; padding: 1.4rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; }
.glyph-wall .row { display: grid; grid-template-columns: 7.5rem repeat(3, 56px); gap: 0.9rem; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.glyph-wall .row:last-of-type { border-bottom: 0; }
.glyph-wall span { color: var(--ink-2); font-weight: 500; }
.glyph-wall img { width: 56px; height: 56px; }
.glyph-wall figcaption { color: var(--ink-3); font-size: 0.9rem; margin-top: 0.9rem; }

.section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 48rem; margin-bottom: 1.6rem; }
.section-head h2 { font-size: 1.9rem; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-2); }

.demo-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #0b0d12; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-note { color: var(--ink-3); font-size: 0.92rem; margin-top: 0.8rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.grid article { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 1.2rem 1.3rem; }
.grid h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.grid p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 1.2rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; tab-size: 4; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-3); font-weight: 500; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; }
td:first-child { font-weight: 500; white-space: nowrap; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 2rem 16px 3rem; color: var(--ink-3); font-size: 0.9rem; border-top: 1px solid var(--rule); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .glyph-wall .row { grid-template-columns: 6rem repeat(3, 44px); }
  .glyph-wall img { width: 44px; height: 44px; }
  td:first-child { white-space: normal; }
}
