/* ==========================================================================
   PROJECT ARWE — Design System
   technology + systems + connectivity + Ethiopia + future
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg-0: #04060c;
  --bg-1: #070b14;
  --bg-2: #0b1120;
  --bg-3: #101830;
  --surface: rgba(16, 24, 48, .55);
  --surface-solid: #0d1426;
  --line: rgba(120, 160, 255, .14);
  --line-strong: rgba(120, 160, 255, .3);

  --text-1: #eef2ff;
  --text-2: #a8b3cf;
  --text-3: #66718f;

  --accent: #00e5a0;          /* ARWE signal green */
  --accent-dim: rgba(0, 229, 160, .14);
  --accent-2: #ffb454;        /* amber — Ethiopian highland light */
  --accent-2-dim: rgba(255, 180, 84, .12);
  --accent-3: #5fa8ff;

  --danger: #ff5d73;
  --ok: var(--accent);

  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .65);
  --glow-accent: 0 0 24px rgba(0, 229, 160, .25);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

[data-theme="light"] {
  --bg-0: #f4f6fb;
  --bg-1: #eef1f8;
  --bg-2: #ffffff;
  --bg-3: #e6ebf7;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --line: rgba(30, 50, 110, .14);
  --line-strong: rgba(30, 50, 110, .32);
  --text-1: #0c1226;
  --text-2: #45506b;
  --text-3: #7a84a0;
  --accent: #009468;
  --accent-dim: rgba(0, 148, 104, .1);
  --accent-2: #b96a00;
  --accent-2-dim: rgba(185, 106, 0, .1);
  --accent-3: #2563eb;
  --shadow: 0 20px 50px -24px rgba(20, 35, 80, .25);
  --glow-accent: 0 0 20px rgba(0, 148, 104, .15);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
code, pre { font-family: var(--font-mono); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #04120c; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #04120c; padding: .6rem 1rem;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout utilities ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }
.section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.section-kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .7;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
.section-sub { color: var(--text-2); font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

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

/* Blueprint backdrop used by several sections */
.blueprint {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  opacity: .5;
}

/* ---------- 4. Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-0) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg-0) 88%, transparent); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-1); font-family: var(--font-head); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(0,229,160,.5)); }
.brand-word { font-weight: 800; letter-spacing: .34em; font-size: 1.02rem; translate: 0 1px; }

.nav-menu { display: flex; align-items: center; gap: 1.2rem; flex: 1; justify-content: space-between; }
.nav-links { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .45rem .72rem; border-radius: 8px;
  color: var(--text-2); font-size: .92rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-1); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-dim); }

.nav-actions { display: flex; align-items: center; gap: .7rem; }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text-2); transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--line-strong); }
.icon-sun { display: none; width: 17px; height: 17px; }
.icon-moon { width: 17px; height: 17px; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-3)));
  color: #04120c; box-shadow: var(--glow-accent);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(0, 229, 160, .4); }
.btn-outline { border-color: var(--line-strong); color: var(--text-1); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-2); border-color: var(--line); background: transparent; }
.btn-ghost:hover { color: var(--text-1); border-color: var(--line-strong); }
.btn-github { background: #161b27; color: #fff; border-color: rgba(240, 246, 255, .18); }
.btn-github:hover { background: #1f2534; }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; border-radius: 9px; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-icon { padding: .5rem .6rem; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: clip; padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  position: absolute; inset: -6% 0; width: 100%; height: 112%;
  object-fit: cover; opacity: .16; filter: saturate(.7) contrast(1.05) hue-rotate(90deg);
  will-change: transform;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent 20%, var(--bg-0) 82%),
    linear-gradient(to bottom, var(--bg-0) 0%, transparent 22%, transparent 62%, var(--bg-0) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 25%, transparent 72%);
  will-change: transform;
}
#hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; width: min(1240px, 94%); margin-inline: auto; }
.hero-copy .hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .26em;
  color: var(--accent); border: 1px solid var(--line-strong);
  padding: .42rem .9rem; border-radius: 99px; background: var(--accent-dim);
  margin-bottom: 1.4rem;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(0,229,160,.55);} 55% { box-shadow: 0 0 0 7px rgba(0,229,160,0);} }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: .06em;
  margin: 0 0 .35rem;
  background: linear-gradient(115deg, var(--text-1) 55%, var(--accent) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.08rem, 2.1vw, 1.35rem); font-weight: 600; color: var(--text-1); margin-bottom: .8rem; }
.hero-desc { color: var(--text-2); max-width: 54ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.hero-secondary { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-2); font-size: .92rem; }
.hero-secondary:hover { color: var(--accent); text-decoration: none; }
.hero-secondary .arrow { transition: transform .25s var(--ease); }
.hero-secondary:hover .arrow { transform: translateY(3px); }

/* Hero ecosystem graph */
.hero-graph { position: relative; }
.hero-graph svg { width: 100%; height: auto; display: block; }
.graph-node { cursor: pointer; }
.graph-node rect, .graph-node polygon { fill: var(--surface-solid); stroke: var(--line-strong); stroke-width: 1.2; transition: stroke .25s, filter .25s; }
.graph-node text { fill: var(--text-1); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-anchor: middle; }
.graph-node .node-root text { font-size: 13px; fill: var(--accent); }
.graph-node:hover rect, .graph-node:focus-visible polygon { stroke: var(--accent); filter: drop-shadow(0 0 8px rgba(0,229,160,.45)); }
.edge { stroke: var(--line-strong); stroke-width: 1.1; fill: none; }
.edge-flow { stroke: var(--accent); stroke-width: 1.3; fill: none; stroke-dasharray: 5 130; stroke-dashoffset: 135; animation: edge-flow 4.2s linear infinite; opacity: .85; }
@keyframes edge-flow { to { stroke-dashoffset: -135; } }
.graph-tip {
  position: absolute; z-index: 5; max-width: 250px; padding: .6rem .8rem;
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: .8rem; color: var(--text-2); box-shadow: var(--shadow);
  opacity: 0; translate: 0 6px; transition: opacity .2s, translate .2s; pointer-events: none;
}
.graph-tip.show { opacity: 1; translate: 0 0; }
.graph-tip strong { display: block; color: var(--accent); font-family: var(--font-mono); letter-spacing: .1em; margin-bottom: .15rem; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: var(--text-3); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .3em;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue-drop 1.8s var(--ease) infinite;
}
@keyframes cue-drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 8. Marquee strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-1); overflow: hidden; padding: .85rem 0; }
.strip-track { display: flex; gap: 3.2rem; width: max-content; animation: strip-scroll 36s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .24em; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.2rem; }
.strip-item i { color: var(--accent); font-style: normal; }
@keyframes strip-scroll { to { transform: translateX(-50%); } }

/* ---------- 9. Philosophy ---------- */
.philo-flow { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 2.5rem 0; }
.philo-step {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1.6rem; min-width: min(420px, 90%);
  backdrop-filter: blur(6px);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.philo-step:hover { border-color: var(--accent); transform: translateX(6px); box-shadow: var(--glow-accent); }
.philo-step b { font-family: var(--font-head); font-size: 1rem; }
.philo-step small { color: var(--text-3); font-size: .82rem; }
.philo-arrow { color: var(--accent); font-size: 1.1rem; line-height: 1.6; opacity: .8; }
.philo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.philo-point { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.philo-point:last-child { border-bottom: 0; }
.philo-point svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.philo-point b { display: block; font-family: var(--font-head); }
.philo-point p { margin: 0; color: var(--text-2); font-size: .93rem; }

/* ---------- 10. System cards ---------- */
.sys-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-chip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  padding: .45rem .95rem; border-radius: 99px;
  background: transparent; color: var(--text-2); border: 1px solid var(--line);
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--text-1); }
.filter-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.4rem; perspective: 1400px; }

.sys-card {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
}
.sys-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.sys-card.hidden { display: none; }
.sys-card-glow {
  position: absolute; inset: -40%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-dim), transparent 45%);
  transition: opacity .3s;
}
.sys-card:hover .sys-card-glow { opacity: 1; }

.sys-card-head { display: flex; align-items: flex-start; gap: .9rem; }
.sys-num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 8px; padding: .28rem .5rem; margin-top: .2rem; }
.sys-name { margin: 0; font-size: 1.28rem; letter-spacing: .1em; }
.sys-name a { color: var(--text-1); }
.sys-name a:hover { color: var(--accent); text-decoration: none; }
.sys-cat { margin: .1rem 0 0; color: var(--text-3); font-size: .8rem; font-family: var(--font-mono); letter-spacing: .06em; }
.status-pill {
  margin-left: auto; flex: none;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  padding: .32rem .6rem; border-radius: 99px; border: 1px solid;
}
.status-active      { color: var(--accent);  border-color: var(--accent);  background: var(--accent-dim); }
.status-development { color: var(--accent-3);border-color: var(--accent-3);background: rgba(95,168,255,.1); }
.status-research    { color: var(--accent-2);border-color: var(--accent-2);background: var(--accent-2-dim); }
.status-concept     { color: var(--text-2);  border-color: var(--line-strong); background: transparent; }
.status-planned     { color: var(--text-2);  border-color: var(--line-strong); }
.status-completed   { color: var(--accent);  border-color: var(--accent); background: var(--accent-dim); }
.status-future      { color: var(--text-3);  border-color: var(--line); }

.sys-media { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; }
.sys-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s var(--ease), opacity .4s; }
.sys-card:hover .sys-media img { transform: scale(1.05); opacity: 1; }

.sys-desc { color: var(--text-2); font-size: .93rem; margin: 0; }
.sys-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.sys-tags li {
  font-size: .72rem; color: var(--text-2); border: 1px solid var(--line);
  padding: .22rem .55rem; border-radius: 6px; background: var(--bg-2);
}
.sys-progress { height: 4px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.sys-progress-bar { height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-3), var(--accent)); transition: width 1.2s var(--ease) .2s; }
.sys-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: .9rem; }
.sys-tech { display: flex; flex-wrap: wrap; gap: .35rem; }
.tech-chip {
  font-family: var(--font-mono); font-size: .68rem; padding: .2rem .5rem;
  border-radius: 6px; border: 1px solid var(--line); color: var(--text-2);
}
.tech-c   { border-color: rgba(95,168,255,.5); color: #5fa8ff; }
.tech-cpp { border-color: rgba(143,123,255,.5); color: #a893ff; }
.tech-python { border-color: rgba(255,209,102,.5); color: #ffd166; }
.tech-php { border-color: rgba(124,140,255,.5); color: #9aa6ff; }
.tech-html, .tech-css, .tech-javascript { color: var(--text-2); }
.sys-links { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Project 09 placeholder card */
.sys-card.card-future {
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(120,160,255,.03) 12px 24px), var(--bg-1);
  border-style: dashed; border-color: var(--line-strong);
  align-items: center; justify-content: center; text-align: center; min-height: 380px;
}
.future-num { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; color: var(--text-3); letter-spacing: .2em; }
.future-title { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: .18em; margin: .4rem 0 .2rem; }
.future-sub { color: var(--text-2); max-width: 34ch; }
.pill-duo { display: flex; gap: .5rem; margin-top: 1rem; }

/* ---------- 11. Ecosystem map ---------- */
.eco-map-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: stretch; }
.eco-map-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; position: relative; overflow: hidden;
}
.eco-map svg { width: 100%; height: auto; display: block; }
.map-node { cursor: pointer; }
.map-node circle { fill: var(--bg-3); stroke: var(--line-strong); stroke-width: 1.4; transition: all .3s var(--ease); }
.map-node text { fill: var(--text-1); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-anchor: middle; pointer-events: none; }
.map-node text.map-label { fill: var(--text-3); font-size: 9.5px; letter-spacing: .18em; }
.map-node.selected text, .map-node.neighbor text { fill: var(--accent); }
.map-node:hover circle { stroke: var(--accent); }
.map-node.selected circle { stroke: var(--accent); fill: var(--accent-dim); filter: drop-shadow(0 0 10px rgba(0,229,160,.5)); }
.map-node.neighbor circle { stroke: var(--accent-2); fill: var(--accent-2-dim); }
.map-node.dimmed { opacity: .28; }
.map-edge { stroke: var(--line-strong); stroke-width: 1.1; transition: stroke .3s, opacity .3s; }
.map-edge.active { stroke: var(--accent); stroke-width: 1.8; filter: drop-shadow(0 0 4px rgba(0,229,160,.6)); }
.map-edge.dimmed { opacity: .18; }

.eco-detail {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .9rem;
}
.eco-detail h3 { margin: 0; letter-spacing: .12em; font-size: 1.2rem; }
.eco-detail .eco-cat { color: var(--text-3); font-family: var(--font-mono); font-size: .78rem; margin-top: -.6rem; }
.eco-relations { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.eco-relations li { font-size: .88rem; color: var(--text-2); border-left: 2px solid var(--accent-2); padding-left: .8rem; }
.eco-relations b { color: var(--text-1); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; }
.eco-empty { color: var(--text-3); font-size: .92rem; }

/* ---------- 12. Technology stack ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.lang-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.lang-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.lang-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lang-color, var(--accent));
}
.lang-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.lang-name { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: var(--lang-color, var(--accent)); }
.lang-role { font-size: .74rem; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.lang-uses { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.lang-uses li { font-size: .72rem; border: 1px solid var(--line); padding: .2rem .5rem; border-radius: 6px; color: var(--text-2); }
.lang-note { color: var(--text-2); font-size: .86rem; margin: 0; }

.stack-principle {
  margin-top: 2.2rem; text-align: center; font-family: var(--font-mono);
  color: var(--accent); letter-spacing: .18em; font-size: .9rem;
}

/* ---------- 13. Architecture diagram ---------- */
.arch-diagram { display: flex; flex-direction: column; align-items: center; gap: 0; }
.arch-node {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .8rem 1.6rem; text-align: center; min-width: min(320px, 86%);
  transition: border-color .25s, box-shadow .25s;
}
.arch-node:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }
.arch-node b { font-family: var(--font-head); letter-spacing: .12em; }
.arch-node small { display: block; color: var(--text-3); font-family: var(--font-mono); font-size: .72rem; margin-top: .2rem; }
.arch-node.node-root { border-color: var(--accent); background: var(--accent-dim); }
.arch-line { width: 1px; height: 34px; background: linear-gradient(var(--line-strong), var(--accent)); position: relative; }
.arch-line::after {
  content: ""; position: absolute; bottom: -1px; left: 50%; translate: -50% 0;
  border: 5px solid transparent; border-top-color: var(--accent);
}
.arch-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; width: 100%; margin-top: .5rem; }
.arch-branch { display: flex; flex-direction: column; align-items: center; gap: 0; }
.arch-branch .arch-node { width: 100%; }
.arch-capabilities { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.cap-chip {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em;
  border: 1px dashed var(--line-strong); color: var(--text-2);
  padding: .45rem .9rem; border-radius: 99px; transition: all .2s;
}
.cap-chip:hover { border-color: var(--accent); color: var(--accent); }
.arch-note { text-align: center; color: var(--text-3); font-size: .88rem; max-width: 62ch; margin: 1.4rem auto 0; }

/* ---------- 14. Open source / stats ---------- */
.gh-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.gh-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1rem; text-align: center;
  transition: border-color .25s, transform .25s var(--ease);
}
.gh-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.gh-value { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.gh-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.gh-note { text-align: center; color: var(--text-3); font-size: .8rem; margin-top: 1rem; }

.os-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* ---------- 15. Developer steps ---------- */
.dev-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.dev-steps li {
  counter-increment: step; display: flex; gap: 1rem; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; transition: border-color .25s, transform .25s var(--ease);
}
.dev-steps li:hover { border-color: var(--accent); transform: translateY(-3px); }
.dev-steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono); color: var(--accent); font-size: .85rem; font-weight: 600;
}
.code-window {
  background: #0a0f1d; border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
[data-theme="light"] .code-window { background: #101830; }
.code-window-bar { display: flex; align-items: center; gap: .45rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.code-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.code-window-bar i:first-child { background: var(--danger); opacity: .7; }
.code-window-bar span { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); }
.code-window pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .84rem; line-height: 1.7; color: #c8d3f5; }
.copy-btn {
  position: relative; background: transparent; border: 1px solid var(--line);
  color: var(--text-3); font-family: var(--font-mono); font-size: .68rem;
  padding: .25rem .6rem; border-radius: 6px; transition: all .2s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

/* ---------- 16. Documentation portal ---------- */
.docs-layout { display: grid; grid-template-columns: 270px 1fr; gap: 2.5rem; align-items: start; }
.docs-sidebar {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
}
.docs-search {
  width: 100%; padding: .6rem .9rem; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text-1);
  font: inherit; font-size: .9rem; margin-bottom: 1rem;
}
.docs-search:focus { outline: none; border-color: var(--accent); }
.docs-nav { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.docs-nav a { display: block; padding: .38rem .6rem; border-radius: 7px; color: var(--text-2); border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--text-1); background: var(--bg-2); text-decoration: none; }
.docs-nav a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-dim); }
.docs-nav .docs-group { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); padding: .9rem .6rem .3rem; }
.docs-nav li.no-match { display: none; }

.doc-section { padding: 2.2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-section:last-child { border-bottom: 0; }
.doc-section h2 { font-size: 1.45rem; display: flex; align-items: center; gap: .7rem; }
.doc-version { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: .18rem .55rem; }
.doc-section p, .doc-section li { color: var(--text-2); font-size: .95rem; }
.doc-toc { float: right; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.2rem; font-size: .82rem; max-width: 240px; margin: 0 0 1rem 1.4rem; }
.doc-toc b { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; color: var(--text-3); margin-bottom: .4rem; }
.doc-toc ul { margin: 0; padding-left: 1em; }

/* ---------- 17. Roadmap timeline ---------- */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 19px; width: 2px;
  background: linear-gradient(var(--accent) 0%, var(--line-strong) 100%);
}
.timeline-year { position: relative; padding: 0 0 3rem 64px; }
.timeline-year:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--accent);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600; color: var(--accent);
  box-shadow: var(--glow-accent);
}
.timeline-phase { font-size: 1.3rem; margin-bottom: .1rem; }
.timeline-summary { color: var(--text-3); font-size: .9rem; margin-bottom: 1.1rem; }
.milestones { display: flex; flex-direction: column; gap: .7rem; }
.milestone {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1.1rem; transition: border-color .25s, transform .25s var(--ease);
}
.milestone:hover { border-color: var(--line-strong); transform: translateX(4px); }
.ms-date { font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); }
.ms-project { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--accent); }
.ms-objective { font-size: .9rem; color: var(--text-2); margin: .15rem 0 0; }
.ms-side { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; min-width: 130px; }
.ms-progress { width: 110px; height: 4px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.ms-progress i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--accent-3), var(--accent)); border-radius: inherit; }

/* ---------- 18. Research ---------- */
.research-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.research-card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.research-domain { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.research-card h3 { margin: 0; font-size: 1.15rem; }
.research-card p { margin: 0; color: var(--text-2); font-size: .9rem; }
.research-feeds { font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); letter-spacing: .06em; }
.research-feeds b { color: var(--accent); font-weight: 400; }
.legend-official, .legend-experimental {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  padding: .4rem .85rem; border-radius: 99px; border: 1px solid;
}
.legend-official { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.legend-experimental { color: var(--accent-2); border-color: var(--accent-2); background: var(--accent-2-dim); }

/* ---------- 19. Demo workflow ---------- */
.demo-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; justify-content: center; }
.demo-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem 1.1rem; font-family: var(--font-mono); font-size: .8rem; color: var(--text-1);
  animation: demo-blink 6s infinite;
}
.demo-step:nth-child(odd) { animation-delay: .35s; }
@keyframes demo-blink { 0%, 88%, 100% { border-color: var(--line); } 94% { border-color: var(--accent); box-shadow: var(--glow-accent); } }
.demo-arrow { color: var(--accent); font-size: 1rem; }
.demo-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.demo-media img { width: 100%; aspect-ratio: 16/8; object-fit: cover; opacity: .9; }

/* ---------- 20. Ethiopia section ---------- */
.eth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.eth-item {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; transition: border-color .25s, transform .25s var(--ease);
}
.eth-item:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.eth-item svg { flex: none; width: 21px; height: 21px; color: var(--accent-2); margin-top: 2px; }
.eth-item b { display: block; font-family: var(--font-head); font-size: .95rem; }
.eth-item p { margin: 0; font-size: .83rem; color: var(--text-2); }
.eth-disclaimer {
  margin-top: 1.8rem; padding: 1rem 1.3rem; border-left: 3px solid var(--accent-2);
  background: var(--accent-2-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2); font-size: .9rem;
}

/* ---------- 21. Security page ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.sec-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem; }
.sec-item h3 { font-size: 1rem; margin-bottom: .35rem; display: flex; gap: .6rem; align-items: center; }
.sec-item h3 svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.sec-item p { margin: 0; color: var(--text-2); font-size: .87rem; }
.sec-report {
  margin-top: 2.4rem; text-align: center; padding: 2.4rem 1.6rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-1);
}

/* ---------- 22. Founder ---------- */
.founder-card {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; max-width: 780px;
}
.founder-avatar {
  width: 108px; height: 108px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent); box-shadow: var(--glow-accent);
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder-role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.founder-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ---------- 23. Page hero (subpages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 4.5rem) 0 3.5rem; overflow: clip; }
.page-hero .blueprint { opacity: .35; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .04em; margin-bottom: .4rem; }
.page-hero .crumb { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; color: var(--text-3); text-transform: uppercase; margin-bottom: 1rem; display: block; }
.page-hero .crumb a { color: var(--text-3); }
.page-hero .crumb a:hover { color: var(--accent); }

/* ---------- 24. Project detail pages ---------- */
.project-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.project-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.project-section { padding: 3rem 0; border-top: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); width: 190px; }
.spec-table td { color: var(--text-2); }
.conn-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.conn-list li { border-left: 2px solid var(--accent); padding-left: 1rem; }
.conn-list b { font-family: var(--font-mono); letter-spacing: .1em; font-size: .85rem; }
.conn-list p { margin: 0; font-size: .88rem; color: var(--text-2); }

/* ---------- 25. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-logo { font-family: var(--font-head); font-weight: 800; letter-spacing: .3em; font-size: 1.1rem; margin-bottom: .6rem; }
.footer-tag { color: var(--text-2); font-size: .95rem; }
.footer-note { color: var(--text-3); font-size: .78rem; max-width: 40ch; }
.footer-col h3 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--text-2); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: 1.3rem 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: .8rem; }
.footer-motto { font-family: var(--font-mono); letter-spacing: .08em; }

/* ---------- 26. Parallax helpers ---------- */
[data-parallax] { will-change: transform; }
.float-slow { animation: float-slow 7s ease-in-out infinite; }
.float-slower { animation: float-slow 11s ease-in-out infinite reverse; }
@keyframes float-slow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- 27. Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-graph { max-width: 560px; margin-inline: auto; }
  .philo-cols, .eco-map-wrap, .project-hero { grid-template-columns: 1fr; }
  .gh-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: .4rem;
    background: color-mix(in srgb, var(--bg-0) 96%, transparent);
    border-bottom: 1px solid var(--line); padding: 1rem 4%;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: .1rem; }
  .nav-links a { padding: .7rem .8rem; }
  .nav-actions { justify-content: space-between; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .arch-branches { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .milestone { grid-template-columns: 1fr; gap: .4rem; }
  .ms-side { align-items: flex-start; }
  .timeline::before { left: 13px; }
  .timeline-year { padding-left: 46px; }
  .timeline-marker { width: 28px; height: 28px; font-size: .52rem; }
  .doc-toc { float: none; margin: 0 0 1.2rem; max-width: none; }
  .spec-table th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .spec-table td { display: block; border-bottom: 1px solid var(--line); }
  .spec-table tr { display: block; padding: .5rem 0; }
}

/* ---------- 28. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .strip-track { animation: none; }
}

/* ---------- 29. Live system dashboard ---------- */
.dash-wrap {
  margin-top: 3rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.dash-head {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.dash-title { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .22em; color: var(--text-2); }
.live-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em;
  color: var(--accent); border: 1px solid var(--accent); background: var(--accent-dim);
  padding: .28rem .7rem; border-radius: 99px;
}
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2.2s infinite; }
.live-badge.offline { color: var(--text-3); border-color: var(--line-strong); background: transparent; }
.live-badge.offline::before { background: var(--text-3); animation: none; }
.dash-refresh {
  margin-left: auto; background: transparent; border: 1px solid var(--line);
  color: var(--text-3); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  padding: .38rem .85rem; border-radius: 8px; transition: all .2s;
}
.dash-refresh:hover { color: var(--accent); border-color: var(--accent); }
.dash-scroll { overflow-x: auto; }
.sys-dash { width: 100%; border-collapse: collapse; min-width: 720px; }
.sys-dash th {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line);
}
.sys-dash td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--text-2); vertical-align: middle; }
.sys-dash tr:last-child > td { border-bottom: 0; }
.dash-sys { white-space: nowrap; }
.dash-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .6rem; background: var(--text-3); vertical-align: 1px; }
.dot-live { background: var(--accent); box-shadow: 0 0 6px rgba(0,229,160,.6); }
.dot-warm { background: var(--accent-2); box-shadow: 0 0 6px rgba(255,180,84,.5); }
.dot-idle { background: var(--text-3); }
.dash-sys a { font-family: var(--font-mono); letter-spacing: .1em; font-size: .84rem; color: var(--text-1); }
.dash-sys a:hover { color: var(--accent); text-decoration: none; }
.dash-updated, .dash-lang { font-family: var(--font-mono); font-size: .76rem; white-space: nowrap; }
.dash-nums { font-family: var(--font-mono); font-size: .76rem; white-space: nowrap; }
.dash-nums b { color: var(--text-1); font-weight: 400; }
.dash-more {
  background: transparent; border: 1px solid var(--line); color: var(--text-3);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  padding: .35rem .8rem; border-radius: 7px; transition: all .2s;
}
.dash-more:hover, .dash-more[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.dash-detail-row > td { padding: 0; background: var(--bg-1); }
.dash-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.4rem 1.6rem; }
.dash-detail h4 {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 .6rem;
}
.lang-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg-3); }
.lang-bar i { display: block; height: 100%; }
.lang-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; margin: .7rem 0 0; font-family: var(--font-mono); font-size: .72rem; }
.lang-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .4rem; }
.dash-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .86rem; }
.dash-facts b { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: block; }
.dash-facts .mono { font-size: .78rem; color: var(--text-1); }
.dash-msg { color: var(--text-2); font-style: italic; }
.skel { position: relative; overflow: hidden; color: transparent !important; user-select: none; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.dash-foot { padding: .8rem 1.3rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .68rem; color: var(--text-3); letter-spacing: .06em; }
.row-soon td { color: var(--text-3); font-style: italic; }
@media (max-width: 760px) {
  .dash-detail { grid-template-columns: 1fr; }
}
