/* =====================================================================
   WAJUTECH 2026 — DESIGN SYSTEM
   Dual-tone: cinematic dark / clean editorial light
   Palette: Ink Navy · Deep Teal · Amber (accent used sparingly)
   Type: Plus Jakarta Sans (text) · JetBrains Mono (data / labels)
   Principles: hairline borders, generous whitespace, near-zero shadow,
   restrained motion, WCAG AA contrast, reduced-motion aware.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------- */
:root {
  /* Light canvas */
  --bg:      #FBFAF8;
  --bg-2:    #F3F1EC;
  --surface: #FFFFFF;
  --fg:      #0C1B2A;
  --fg-2:    #4B5B6E;
  --fg-3:    #78859A;
  --border:        #E5E1D9;
  --border-strong: #D5CFC3;
  --accent:     #0A6F63;   /* teal, AA on light */
  --accent-ink: #FFFFFF;
  --amber:      #B4681F;   /* rare highlight on light */

  /* Dark canvas */
  --d-bg:      #080D16;
  --d-bg-2:    #0C1522;
  --d-surface: rgba(255, 255, 255, 0.035);
  --d-fg:      #EEF2F6;
  --d-fg-2:    #97A6B6;
  --d-border:  rgba(255, 255, 255, 0.11);
  --d-accent:     #2FD4C0;
  --d-accent-ink: #04231E;
  --d-amber:      #E0A45E;

  /* Status */
  --ok:   #12A97E;
  --warn: #D98A1F;
  --bad:  #DC4C4C;

  /* Contextual (overridden per section) */
  --c-bg:       var(--bg);
  --c-fg:       var(--fg);
  --c-fg-2:     var(--fg-2);
  --c-fg-3:     var(--fg-3);
  --c-border:   var(--border);
  --c-surface:  var(--surface);
  --c-accent:   var(--accent);
  --c-accent-ink: var(--accent-ink);

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --r: 14px;
  --r-sm: 8px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark sections redefine the contextual tokens */
.hero, .system, .cta, .foot {
  --c-bg:     var(--d-bg);
  --c-fg:     var(--d-fg);
  --c-fg-2:   var(--d-fg-2);
  --c-fg-3:   var(--d-fg-2);
  --c-border: var(--d-border);
  --c-surface: var(--d-surface);
  --c-accent: var(--d-accent);
  --c-accent-ink: var(--d-accent-ink);
}

/* ---------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { text-wrap: balance; margin: 0; }

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }
.hero ::selection, .system ::selection, .cta ::selection, .foot ::selection { background: var(--d-accent); color: var(--d-accent-ink); }

:focus-visible {
  outline: 2px solid var(--c-accent, var(--accent));
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 92px; }

.mono { font-family: var(--font-mono); }

.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;
}

.skip {
  position: fixed; left: 50%; top: 8px; transform: translate(-50%, -200%);
  z-index: 100; background: var(--accent); color: #fff;
  padding: 10px 18px; font-family: var(--font-mono); font-size: 13px;
  font-weight: 600; border-radius: var(--r-sm); text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section label — small mono caps */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 18px;
}

/* ---------------------------------------------------------------
   3. BUTTONS
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0.78rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-fg);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { border-color: var(--c-accent); transform: translateY(-1px); }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--c-accent) 88%, #000);
  border-color: color-mix(in oklab, var(--c-accent) 88%, #000);
  color: var(--c-accent-ink);
}

.btn-ghost { background: var(--c-surface); }
.btn-ghost:hover { background: color-mix(in oklab, var(--c-accent) 8%, var(--c-surface)); }

.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }

.btn-icon { transition: transform 0.2s var(--ease); }

/* LED signal */
.led {
  display: inline-block; flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-3);
}
.led.ok   { background: var(--ok);   box-shadow: 0 0 0 3px rgba(18, 169, 126, 0.17); }
.led.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(217, 138, 31, 0.17); }
.led.bad  { background: var(--bad);  box-shadow: 0 0 0 3px rgba(220, 76, 76, 0.17); }
.hero .led.ok, .system .led.ok { animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------------------------------------------------------------
   4. PROGRESS BAR
   --------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--d-accent));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------------------------------------------------------------
   5. MASTHEAD
   --------------------------------------------------------------- */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 50;
  --c-fg: var(--d-fg);
  --c-fg-2: #A7B4C2;
  --c-border: rgba(255, 255, 255, 0.14);
  --c-accent: var(--d-accent);
  --c-accent-ink: var(--d-accent-ink);
  --c-surface: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid transparent;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), backdrop-filter 0.28s var(--ease);
}
.masthead.scrolled {
  --c-fg: var(--fg);
  --c-fg-2: var(--fg-2);
  --c-border: var(--border);
  --c-accent: var(--accent);
  --c-accent-ink: #fff;
  --c-surface: var(--surface);
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom-color: var(--border);
}

.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; padding: 4px; object-fit: contain;
  background: #fff; border-radius: 9px;
  box-shadow: 0 1px 2px rgba(8, 13, 22, 0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title {
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--c-fg);
}
.brand-sub {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-fg-2);
}

.nav-main { display: flex; align-items: center; gap: 30px; }
.nav-main a {
  position: relative;
  font-size: 0.92rem; font-weight: 500; color: var(--c-fg-2);
  text-decoration: none; padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-main a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.25s var(--ease);
}
.nav-main a:hover { color: var(--c-fg); }
.nav-main a:hover::after, .nav-main a:focus-visible::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  padding: 7px 13px; border: 1px solid var(--c-border); border-radius: var(--r-pill);
  color: var(--c-fg-2); text-decoration: none; white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.status-chip:hover { border-color: var(--c-accent); color: var(--c-fg); }

.burger {
  display: none;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 16px; height: 1.5px; background: var(--c-fg);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: rgba(251, 250, 248, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 0; font-size: 1.05rem; font-weight: 600;
  color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; color: var(--accent); }

@media (max-width: 900px) {
  .nav-main { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
}

/* ---------------------------------------------------------------
   6. HERO (dark)
   --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--d-bg);
  color: var(--d-fg);
  padding: clamp(120px, 17vh, 190px) 0 clamp(72px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute; z-index: -2; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(48% 60% at 22% 26%, rgba(47, 212, 192, 0.16) 0%, transparent 62%),
    radial-gradient(42% 55% at 84% 12%, rgba(224, 164, 94, 0.09) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; z-index: -1; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-inner.hero-simple { grid-template-columns: 1fr; }
.hero-simple .hero-copy { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #B6C2CE; margin: 0 0 26px;
  padding: 6px 14px; border: 1px solid var(--d-border); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--d-amber);
  box-shadow: 0 0 0 3px rgba(224, 164, 94, 0.18);
}

.hero h1 {
  font-size: clamp(2.9rem, 7.6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 26px;
}
.hero h1 .hl {
  background: linear-gradient(102deg, #2FD4C0 0%, #8FE6DA 48%, #E9B978 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--d-fg-2);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Live node board */
.hero-board {
  border: 1px solid var(--d-border);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--d-border);
}
.board-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #A7B4C2;
}
.board-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--d-accent);
}
.board-list { margin: 0; padding: 6px 18px; }
.board-list > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.board-list > div:last-child { border-bottom: none; }
.board-list dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #8593A3; white-space: nowrap;
}
.board-list dd {
  margin: 0; text-align: right; font-size: 13px; font-weight: 600; color: #EAF0F5;
  font-family: var(--font-mono);
}
.board-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-top: 1px solid var(--d-border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: #8593A3; text-transform: uppercase;
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-board { max-width: 480px; }
}

/* ---------------------------------------------------------------
   7. STATEMENT (light)
   --------------------------------------------------------------- */
.statement { background: var(--bg); padding: clamp(72px, 11vh, 132px) 0 clamp(64px, 9vh, 104px); }
.statement-lead {
  font-size: clamp(1.7rem, 3.9vw, 3.05rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.028em;
  color: var(--fg);
  max-width: 20ch;
  margin: 0 0 22px;
}
.statement-lead em { font-style: normal; color: var(--accent); }
.statement-desc {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0;
}

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin: clamp(40px, 6vh, 64px) 0 0;
  border-top: 1px solid var(--border);
}
.fact { padding: 24px 22px 0 0; border-left: 1px solid var(--border); padding-left: 24px; }
.fact:first-child { border-left: none; padding-left: 0; }
.fact dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-3);
}
.fact dd {
  margin: 10px 0 0; font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--fg); letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding-top: 20px; }
  .fact:nth-child(3) { border-left: none; padding-left: 0; }
  .fact:nth-child(odd) { border-left: none; padding-left: 0; }
  .fact { border-top: 1px solid var(--border); }
  .fact:nth-child(-n+2) { border-top: none; }
}

/* ---------------------------------------------------------------
   8. SYSTEM (dark band)
   --------------------------------------------------------------- */
.system {
  background: var(--d-bg-2);
  color: var(--d-fg);
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
}
.system-head h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.03em;
  color: #fff; margin: 0 0 8px;
}

/* Traffic path diagram */
.path { margin: clamp(44px, 6vh, 68px) 0 0; }
.path-track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.path-node {
  position: relative;
  border-top: 1px solid var(--d-border);
  padding: 24px 18px 0 0;
}
.path-node::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--d-bg-2); border: 1px solid var(--d-accent);
}
.path-num {
  display: block; font-family: var(--font-mono); font-size: 11px;
  color: var(--d-amber); letter-spacing: 0.08em; margin-bottom: 8px;
}
.path-name { display: block; font-size: 1.05rem; font-weight: 700; color: #fff; }
.path-meta {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--d-fg-2); margin-top: 5px;
}
.path-cap {
  font-family: var(--font-mono); font-size: 12px; color: var(--d-fg-2);
  margin: 26px 0 0;
}

/* Capability list */
.cap-list { list-style: none; margin: clamp(56px, 8vh, 88px) 0 0; padding: 0; }
.cap-item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 24px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--d-border);
  transition: border-color 0.25s var(--ease);
}
.cap-item:last-child { border-bottom: 1px solid var(--d-border); }
.cap-item:hover { border-top-color: var(--d-accent); }
.cap-idx {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--d-amber); letter-spacing: 0.06em; padding-top: 4px;
}
.cap-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700;
  color: #fff; margin: 0 0 9px; letter-spacing: -0.015em;
}
.cap-body p { margin: 0; color: var(--d-fg-2); font-size: 1rem; max-width: 62ch; }

@media (max-width: 820px) {
  .path-track { grid-template-columns: 1fr; }
  .path-node {
    border-top: none; border-left: 1px solid var(--d-border);
    padding: 0 0 26px 22px;
  }
  .path-node:last-child { padding-bottom: 0; }
  .path-node::before { top: 6px; left: -4px; }
  .cap-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------------------------------------------------------------
   9. TELEMETRY (light)
   --------------------------------------------------------------- */
.telemetry { background: var(--bg); padding: clamp(76px, 11vh, 126px) 0; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.sec-head h2, .system h2, .cta h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
}
.sec-note { color: var(--fg-2); max-width: 40ch; margin: 0; font-size: 1rem; }

.console { }
.table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.stat-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 13.5px;
}
.stat-table th, .stat-table td {
  text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border);
}
.stat-table thead th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2); background: var(--bg-2);
}
.stat-table tbody tr { transition: background 0.15s var(--ease); }
.stat-table tbody tr:hover { background: #FAF9F6; }
.stat-table tbody tr:last-child td { border-bottom: none; }
.stat-table td.num { text-align: right; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.stat-table .name { color: var(--fg); font-weight: 600; }
.stat-table .st { display: inline-flex; align-items: center; gap: 8px; }
.stat-table .st .txt { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.stat-table .empty { text-align: center; padding: 36px 20px; color: var(--fg-3); }

.rule-note {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3);
  margin: 18px 0 0;
}
.rule-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); }
.rule-note a:hover { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------
   10. MAKMAL — bento
   --------------------------------------------------------------- */
.lab { background: var(--bg); padding: clamp(72px, 11vh, 126px) 0 clamp(76px, 11vh, 126px); }
.lab .sec-head { margin-bottom: 40px; }

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
.bento-card {
  display: flex; flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.bento-card h3 {
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.015em;
  color: var(--fg); margin: auto 0 10px;
}
.bento-card p { margin: 0; color: var(--fg-2); font-size: 0.97rem; max-width: 46ch; }
a.bento-card:hover { border-color: var(--accent); transform: translateY(-3px); }
a.bento-card:hover .bento-arrow { color: var(--accent); transform: translate(3px, -3px); }

.bento-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bento-badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-pill);
}
.bento-arrow { color: var(--fg-3); font-size: 18px; transition: transform 0.25s var(--ease), color 0.25s var(--ease); }

.bento-wide { grid-column: span 2; grid-row: span 2; }
.bento-chart {
  flex: 1 1 auto;
  display: flex; align-items: flex-end; gap: 5px;
  min-height: 96px; margin: 20px 0 6px;
}
.bento-chart i {
  flex: 1 1 0; height: var(--h, 50%);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent) 62%, transparent),
    color-mix(in oklab, var(--accent) 10%, transparent));
}
a.bento-card:hover .bento-chart i { background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 22%, transparent)); }
.bento-meta h3 { font-size: 1.12rem; }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* ---------------------------------------------------------------
   11. COLOPHON
   --------------------------------------------------------------- */
.colophon { background: var(--bg); padding: 0 0 clamp(76px, 11vh, 126px); }
.colophon-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px); align-items: start;
  border-top: 1px solid var(--border); padding-top: 40px;
}
.colophon h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.colophon p { color: var(--fg-2); font-size: 1.02rem; margin: 0 0 18px; }

.spec-inline { list-style: none; margin: 0; padding: 0; }
.spec-inline li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--fg);
}
.spec-inline li span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
}

@media (max-width: 760px) { .colophon-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------------------------------------------
   12. CTA (dark bookend)
   --------------------------------------------------------------- */
.cta {
  background: var(--d-bg);
  color: var(--d-fg);
  padding: clamp(84px, 13vh, 150px) 0;
  border-top: 1px solid var(--d-border);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 120%;
  background: radial-gradient(50% 55% at 50% 0%, rgba(47, 212, 192, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.cta .wrap { position: relative; }
.cta h2 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -0.035em;
  color: #fff; margin: 0 0 22px; max-width: 20ch;
}
.cta-sub { color: var(--d-fg-2); font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 50ch; margin: 0 0 34px; }

/* ---------------------------------------------------------------
   13. FOOTER (dark)
   --------------------------------------------------------------- */
.foot {
  background: var(--d-bg);
  color: var(--d-fg-2);
  border-top: 1px solid var(--d-border);
  padding: 34px 0 40px;
  font-family: var(--font-mono); font-size: 12.5px;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px 28px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--d-fg); }
.foot-brand img {
  width: 28px; height: 28px; padding: 3px; object-fit: contain;
  background: #fff; border-radius: 7px;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-nav a { color: var(--d-fg-2); text-decoration: none; transition: color 0.2s var(--ease); }
.foot-nav a:hover { color: #fff; }
.foot-fine { color: #6C7A8A; }

/* ---------------------------------------------------------------
   14. SCROLL REVEAL
   --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------------------------------------------------------------
   15. STATUS PAGE
   --------------------------------------------------------------- */
.page-top { padding-top: 146px; }

/* Masthead on /status is always in "solid" light state */
.status-page .masthead {
  --c-fg: var(--fg);
  --c-fg-2: var(--fg-2);
  --c-border: var(--border);
  --c-accent: var(--accent);
  --c-accent-ink: #fff;
  --c-surface: var(--surface);
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom-color: var(--border);
}

.page-title {
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -0.035em;
  color: var(--fg); margin: 0 0 18px;
}
.page-lead {
  color: var(--fg-2); font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  max-width: 60ch; margin: 0 0 34px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-3);
}
.select-control {
  font-family: var(--font-mono); font-size: 13.5px;
  padding: 11px 15px; min-width: 190px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg); cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.select-control:hover { border-color: var(--accent); }
.select-control:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(10, 111, 99, 0.18); }

.chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.chart-canvas { height: 320px; position: relative; }
@media (max-width: 560px) { .chart-canvas { height: 240px; } }

/* On /status the last colophon section needs breathing room */
.status-page .colophon { padding-top: 0; }
.status-page .telemetry { padding-top: clamp(52px, 8vh, 84px); padding-bottom: clamp(52px, 8vh, 84px); }

/* ---------------------------------------------------------------
   16. LEGAL / PROSE PAGE (privasi)
   --------------------------------------------------------------- */
.legal { max-width: 76ch; }
.legal .meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-3); margin: 0 0 26px;
}
.legal h2 {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem); font-weight: 700;
  letter-spacing: -0.015em; color: var(--fg); margin: 34px 0 10px;
}
.legal p,
.legal li { color: var(--fg-2); font-size: 1rem; line-height: 1.72; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 1.25em; display: grid; gap: 8px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px;
}
.legal a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
}
.legal a:hover { border-bottom-color: var(--accent); }
.legal a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

