/* Terikat — foundation, header, shared primitives */
:root {
  --ink: #08130e;
  --ink-2: #0d1f17;
  --ink-3: #12291f;
  --paper: #f3efe4;
  --paper-2: #e9e2d2;
  --paper-3: #fffaf0;
  --line: #d5cbb6;
  --line-dark: #2b3d33;
  --muted: #5f6558;
  --muted-dark: #9aada2;
  --lime: #c9ff6a;
  --lime-soft: #e6ffb4;
  --copper: #d59a5a;
  --red: #d64b3f;
  --cyan: #62d6ff;
  --violet: #b795ff;
  --amber: #ffd166;
  --board-accent: #0d7973;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  --max: 1280px;
  --max-wide: 1460px;
  --pad: clamp(20px, 4vw, 64px);
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--ink); }
img, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, dl, dd, dt, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
section[id] { scroll-margin-top: 86px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px;
  font: 600 12px var(--font-mono); transition: top .2s;
}
.skip:focus { top: 12px; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: min(var(--max), 100% - (var(--pad) * 2)); margin-inline: auto; }
.wrap--wide { width: min(var(--max-wide), 100% - (var(--pad) * 2)); margin-inline: auto; }

svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg use { pointer-events: none; }
.sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 70px; display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad);
  color: var(--paper);
  background: rgba(8, 19, 14, .78);
  border-bottom: 1px solid rgba(220, 240, 228, .12);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(201, 255, 106, .25), 0 0 22px rgba(201, 255, 106, .14);
}
.brand__mark svg { width: 22px; height: 22px; stroke-width: 1.4; }
.brand__type { font: 800 19px/1 var(--font-display); letter-spacing: -.045em; text-transform: uppercase; }
.brand__type span { color: var(--lime); margin: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 11px; font: 500 11px var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; color: #c3d0c9; border-radius: 2px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--lime); background: rgba(201, 255, 106, .07); }
.nav a.is-active { color: var(--lime); }
.head-cta {
  display: flex; align-items: center; gap: 9px; flex: none;
  font: 600 11px var(--font-mono); letter-spacing: .04em;
  color: var(--ink); background: var(--lime); padding: 10px 14px;
  border-radius: 2px; transition: transform .2s, background .2s;
}
.head-cta:hover { background: var(--lime-soft); transform: translateY(-1px); }
.head-cta svg { width: 14px; height: 14px; stroke-width: 2; }
.status-dot, .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px rgba(201, 255, 106, .18); flex: none;
}
.live-dot { display: inline-block; background: var(--lime); color: var(--lime); }

/* primitives */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border: 1px solid transparent; border-radius: 2px;
  font: 600 12px var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 15px; height: 15px; stroke-width: 2; }
.btn--primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--primary:hover { background: var(--lime-soft); border-color: var(--lime-soft); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(226, 241, 233, .3); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--small { padding: 9px 13px; font-size: 10px; }
.btn--danger { color: #ff9e93; border-color: rgba(255, 120, 105, .35); }
.btn:active { transform: translateY(1px); }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 600 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.kicker span:first-child {
  display: inline-grid; place-items: center; min-width: 27px; height: 24px; padding: 0 5px;
  border: 1px solid var(--line); color: var(--ink); background: var(--paper-3);
  font-size: 10px; letter-spacing: .04em;
}
.kicker--small { gap: 8px; font-size: 10px; }
.kicker--small span:first-child { min-width: auto; height: auto; border: 0; padding: 0; background: none; color: var(--copper); }
.kicker--small span:last-child { color: var(--muted); }
.kicker--light { color: var(--muted-dark); }

.section { padding: clamp(74px, 8vw, 122px) 0; border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 28px 64px; align-items: end; margin-bottom: clamp(34px, 4vw, 54px);
}
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(2.35rem, 4.7vw, 4.4rem);
  line-height: .97; letter-spacing: -.045em; font-weight: 650;
  max-width: 760px; text-wrap: balance;
}
.section-head h2 em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; }
.section-lead { max-width: 430px; justify-self: end; color: var(--muted); font-size: 15px; line-height: 1.7; }
.table-note { margin-top: 20px; font: 400 12px/1.6 var(--font-mono); color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--line);
  font: 500 10px var(--font-mono); text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: rgba(255, 255, 255, .25);
}
.chip-mini {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 9px;
  border: 1px solid rgba(226, 241, 233, .16); background: rgba(8, 19, 14, .55);
  font: 500 10px var(--font-mono); color: #dce9e1; backdrop-filter: blur(8px);
}
.chip-mini b { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); font-weight: 500; }

.search-field {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--paper-3);
}
.search-field svg { width: 16px; height: 16px; color: var(--muted); }
.search-field input {
  width: 100%; border: 0; background: transparent; outline: 0;
  font: 400 13px var(--font-body); color: var(--ink);
}
.search-field input::placeholder { color: #969887; }
.search-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.search-field--sm { height: 38px; }
.search-field--sm input { font-size: 12px; }

.text-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: 500 10px var(--font-mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--lime); text-decoration: underline; text-underline-offset: 3px;
}
.text-btn svg { width: 13px; height: 13px; }
.text-btn:hover { color: var(--lime-soft); }
.text-btn--danger { color: #ff9c91; }
.text-btn--danger:hover { color: #ffc3bc; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.noscript { padding: 120px var(--pad) 40px; text-align: center; background: #fff3d6; }
.webgl-fallback {
  display: grid; place-items: center; min-height: 280px; padding: 28px;
  text-align: center; font: 400 12px/1.7 var(--font-mono); color: #9db3a5;
  border: 1px dashed rgba(201, 255, 106, .25); margin: 14px; background: rgba(8, 19, 14, .5);
}
.runtime-warning {
  position: fixed; inset: auto 0 0; z-index: 200;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 12px var(--pad); background: #3a2c08; color: #ffe9a8;
  border-top: 1px solid #6b5313; box-shadow: 0 -12px 34px rgba(0, 0, 0, .4);
  font: 500 11px/1.55 var(--font-mono);
}
.runtime-warning[hidden] { display: none; }
.runtime-warning strong { color: #fff3c4; }
.runtime-warning code { padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .28); color: #fff3c4; }
