html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { max-height: 1000000px; }
/* ==========================================================================
   Nerva Protocol — v2 redesign
   Palette:  --bg #0A0A0B · --panel #1a1a1a · --border #28282C
             --text #F7F6F2 (bright) · --text-dim #A8A8AF · --text-faint #5C5C63
             Accent: pure white — monochrome system
   Type:     Display/mono → 'JetBrains Mono' · Body → 'Inter'
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --panel: #1a1a1a;
  --panel-hover: #222222;
  --border: #262626;
  --border-soft: #171717;
  --border-bright: #3a3a3a;
  --text: #f1f1f1;
  --text-dim: #b5b5b5;
  --text-faint: #6e6e6e;
  --white: #ffffff;
  --white-soft: rgba(255,255,255,0.08);

  --font-mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; color: var(--white); }

::selection { background: rgba(255,255,255,0.92); color: #000000; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2c30; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ---------- ambient layers ---------- */

#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 35%, transparent 90%);
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  position: relative;
  z-index: 2;
}

.section { position: relative; z-index: 2; padding: 128px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* section header: index number + rule + kicker, then title */
.sec-head { margin-bottom: 72px; }
.sec-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.sec-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}
.sec-rule { flex: 1; height: 1px; background: var(--border-soft); }
.sec-slash {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}
.sec-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
  white-space: nowrap;
}
.sec-head h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 720px;
}
.sec-desc {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 560px;
}
.sec-head--center { text-align: center; }
.sec-head--center h2, .sec-head--center .sec-desc { margin-left: auto; margin-right: auto; }
.sec-head--center .sec-meta { justify-content: center; }
.sec-head--center .sec-rule { max-width: 80px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn-primary { background: var(--white); color: #000000; }
.btn-primary:hover { background: #e9e9ea; }

.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-bright); }

.btn-text { background: transparent; color: var(--text-dim); padding: 13px 10px; }
.btn-text:hover { color: var(--text); }

.btn-sm { padding: 9px 18px; font-size: 13px; }


.icon-x::before {
  content: ""; display: inline-block; width: 14px; height: 14px; background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.9 2H22l-7.5 8.6L23.3 22h-6.9l-5.4-7-6.2 7H1.7l8-9.1L1 2h7l4.9 6.4L18.9 2zm-1.2 18h1.9L7.4 4h-2l12.3 16z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.9 2H22l-7.5 8.6L23.3 22h-6.9l-5.4-7-6.2 7H1.7l8-9.1L1 2h7l4.9 6.4L18.9 2zm-1.2 18h1.9L7.4 4h-2l12.3 16z'/></svg>");
}

/* ---------- corner-tick motif (design signature) ---------- */

.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: "";
  position: absolute;
  width: 11px; height: 11px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}
.ticked::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.ticked::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border-soft); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 27px; height: 27px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-family: var(--font-mono); font-weight: 700; font-size: 15px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

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

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  z-index: 49;
  background: rgba(0,0,0,0.97);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px 28px;
  flex-direction: column;
  gap: 20px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { font-family: var(--font-mono); font-size: 15px; color: var(--text-dim); }
.nav-mobile a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 32px 140px;
  z-index: 2;
  isolation: isolate;
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 62% 52% at 50% 44%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.15) 78%, var(--bg) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 17px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  margin-bottom: 34px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.rh-feather { color: var(--text); flex-shrink: 0; }
.eyebrow-text { font-family: var(--font-body); font-size: 13.5px; color: var(--text-dim); font-weight: 500; }
.eyebrow-text strong { color: var(--text); font-weight: 700; }

.hero-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}
.type-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: line-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.type-line[data-line="1"] { animation-delay: 0.05s; }
.type-line[data-line="2"] { animation-delay: 0.22s; }
.type-line[data-line="3"] { animation-delay: 0.39s; }
@keyframes line-rise {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .type-line { animation: none; opacity: 1; transform: none; }
}

.hero-sub {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.75;
  color: #e8e8e8;
  margin: 0 auto 42px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.95), 0 0 4px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* hero bottom meta bar */
.hero-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}
.hero-meta-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 54px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.hero-meta-item { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.hero-meta-item strong { color: var(--text-dim); font-weight: 600; }

.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3F9163;
  box-shadow: 0 0 0 3px rgba(63,145,99,0.18);
  animation: blink-dot 1s steps(1) infinite;
}
@keyframes blink-dot {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

/* ---------- ticker marquee ---------- */

.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: #000;
  overflow: hidden;
  padding: 15px 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker-item .t-pair { color: var(--text); font-weight: 700; }
.ticker-item .t-conf { color: var(--text-faint); }
.ticker-item .t-status { color: var(--text-faint); }
.ticker-item .t-status--ok { color: var(--text); }
.ticker-sep { color: var(--text-faint); opacity: 0.5; }

/* ---------- stats band ---------- */

.stats { position: relative; z-index: 2; padding: 72px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12,12,14,0.6);
  overflow: hidden;
}
.stat {
  padding: 34px 30px 30px;
  border-left: 1px solid var(--border-soft);
}
.stat:first-child { border-left: none; }
.stat-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-num .stat-suffix { font-size: 20px; color: var(--text-dim); font-weight: 600; }
.stat-label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- how it works: pipeline ---------- */

.pipeline { position: relative; }
.pipeline-rail {
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright) 12%, var(--border-bright) 88%, transparent);
  z-index: 0;
}
.pipeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  z-index: 1;
}
.pipe-step { display: flex; flex-direction: column; }
.pipe-node {
  width: 52px; height: 52px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 0 0 6px var(--bg);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.pipe-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 24px 24px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.pipe-step:hover .pipe-card { border-color: var(--border-bright); background: var(--panel-hover); transform: translateY(-3px); }
.pipe-step:hover .pipe-node { border-color: rgba(255,255,255,0.7); box-shadow: 0 0 0 6px var(--bg), 0 0 22px rgba(255,255,255,0.12); }

.pipe-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.pipe-card h3 { font-family: var(--font-mono); font-size: 17.5px; font-weight: 700; margin-bottom: 5px; }
.pipe-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pipe-desc { color: var(--text-dim); font-size: 13.8px; line-height: 1.68; margin-bottom: 20px; }

.pipe-stats { display: flex; gap: 10px; margin-top: auto; }
.pipe-stat {
  flex: 1;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 9px 11px;
  background: rgba(255,255,255,0.02);
}
.pipe-stat b { display: block; font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.3; }
.pipe-stat span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--text-faint); }

.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-live { background: #3F9163; box-shadow: 0 0 0 3px rgba(63,145,99,0.18); animation: blink-status 1s steps(1) infinite; }
.status-pending { background: transparent; border: 1px solid var(--text-faint); }
@keyframes blink-status {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

/* ---------- network: loop + roles ---------- */

.net-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.net-copy { position: sticky; top: 120px; }
.net-copy .sec-head { margin-bottom: 30px; }
.net-note {
  border-left: 2px solid var(--border-bright);
  padding: 4px 0 4px 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 34px;
}
.net-note strong { color: var(--text); font-weight: 600; }

.role-rows { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.role-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 30px 4px 30px 8px;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease, padding-left .2s ease;
}
.role-row:hover { background: rgba(255,255,255,0.025); padding-left: 16px; }
.role-idx {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-faint);
  line-height: 1;
  padding-top: 3px;
  transition: color .2s ease;
}
.role-row:hover .role-idx { color: var(--text); }
.role-body h3 { font-family: var(--font-mono); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.role-body .role-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.role-body p { color: var(--text-dim); font-size: 14px; line-height: 1.7; max-width: 480px; }

/* ---------- signals ---------- */

.sig-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.sig-stat { background: var(--bg-alt); padding: 28px 30px; text-align: center; }
.sig-stat .stat-num { justify-content: center; font-size: 36px; }
.sig-stat .stat-label { text-align: center; }

.term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.term-window {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0,0,0,0.92);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 8px; height: 8px; border-radius: 50%; background: #333338; border: 1px solid #3f3f45; }
.term-dots i:nth-child(1) { background: #B8413B; border-color: #93332E; }
.term-dots i:nth-child(2) { background: #B8912F; border-color: #937326; }
.term-dots i:nth-child(3) { background: #3F9163; border-color: #33744F; }
.term-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-faint); }
.term-live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 7px;
}
.term-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--text-dim);
}
.term-body p { margin: 0; }
.term-head { color: var(--white); font-weight: 700; }
.term-sep { color: var(--text-faint); opacity: 0.45; }
.term-body strong { display: inline-block; min-width: 132px; color: var(--white); font-weight: 700; }
.term-status { color: var(--text-faint); }
.term-cursor::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.65em;
  background: var(--text);
  vertical-align: baseline;
  margin-left: 3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- roadmap timeline ---------- */

.timeline { position: relative; }
.timeline-rail {
  position: absolute;
  top: 9px; left: 2%; right: 30%;
  height: 1px;
  background: var(--border-bright);
  z-index: 0;
}
.timeline-rail::after {
  content: "";
  position: absolute;
  right: -1px; top: 0;
  width: 30%;
  height: 1px;
  left: 100%;
  background: repeating-linear-gradient(90deg, var(--border-bright) 0 6px, transparent 6px 13px);
}
.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  z-index: 1;
}
.tl-item { position: relative; padding-top: 40px; }
.tl-dot {
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  background: var(--bg);
  box-shadow: 0 0 0 5px var(--bg);
}
.tl-item--done .tl-dot { background: var(--white); border-color: var(--white); }
.tl-item--now .tl-dot { background: var(--white); border-color: var(--white); }
.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tl-chip--done { background: var(--white); color: #000000; }
.tl-chip--now { border: 1px solid var(--white); color: var(--white); }
.tl-chip--next { border: 1px solid var(--border); color: var(--text-faint); }
.tl-phase {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.tl-item h3 { font-family: var(--font-mono); font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.tl-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 12px;
}
.tl-item p { color: var(--text-dim); font-size: 13.5px; line-height: 1.68; max-width: 250px; }
/* roadmap over image: role labels + titles white, descriptions grey, all with dark halo for legibility */
#roadmap .tl-item p { color: var(--text-dim); }
#roadmap .tl-phase { color: var(--text-dim); }
#roadmap .tl-role { color: var(--text-dim); }
#roadmap .tl-phase,
#roadmap .tl-role,
#roadmap .tl-item h3,
#roadmap .tl-item p { text-shadow: 0 0 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9); }

/* ---------- developers ---------- */

.dev-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.dev-copy .sec-head { margin-bottom: 30px; }
.dev-list { margin: 4px 0 36px; display: flex; flex-direction: column; gap: 14px; }
.dev-list li {
  font-size: 14.5px; color: var(--text-dim);
  padding-left: 26px; position: relative;
}
.dev-list li::before {
  content: "→";
  position: absolute; left: 0; color: var(--white);
  font-family: var(--font-mono);
}

.code-window {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.92);
}
.code-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
}
.code-dot { width: 8px; height: 8px; border-radius: 50%; background: #333338; border: 1px solid #3f3f45; }
.code-dot:nth-child(1) { background: #B8413B; border-color: #93332E; }
.code-dot:nth-child(2) { background: #B8912F; border-color: #937326; }
.code-dot:nth-child(3) { background: #3F9163; border-color: #33744F; }
.code-filename { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.code-copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 4px;
  transition: color .2s ease;
}
.code-copy:hover { color: var(--text); }

.code-body {
  padding: 26px 24px;
  font-family: var(--font-mono);
  font-size: 13.2px;
  line-height: 1.85;
  color: #c6c5c0;
  overflow-x: auto;
}
.c-kw { color: var(--white); font-weight: 600; }
.c-str { color: #99989f; }
.c-fn { color: var(--white); }
.c-num { color: var(--white); }
.c-cm { color: var(--text-faint); font-style: italic; }

/* ---------- cta ---------- */

.cta { position: relative; z-index: 2; padding: 90px 0; background: #000; }
.cta-card {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.62) 38%, rgba(0,0,0,0.14) 72%, rgba(0,0,0,0.35) 100%); }
.cta-content { position: relative; z-index: 2; padding: 56px 60px; max-width: 540px; }
.cta-content h2 { font-family: var(--font-mono); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 20px; }
.cta-content p { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; max-width: 400px; margin-bottom: 32px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: #000; font-family: var(--font-mono); font-weight: 600; font-size: 14px; padding: 13px 26px; border-radius: 100px; transition: all .2s ease; }
.cta-btn:hover { background: #e8e8e8; transform: translateY(-1px); }

/* ---------- footer ---------- */

.footer { position: relative; z-index: 2; border-top: 1px solid var(--border-soft); background: var(--bg-alt); padding-top: 72px; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; align-items: flex-start; padding-top: 34px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 16px; max-width: 270px; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 12px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  flex-wrap: wrap; gap: 10px;
}
.footer-badge { display: flex; align-items: center; gap: 9px; color: var(--text-dim); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 599px) {
  .net-grid { grid-template-columns: 1fr; gap: 48px; }
  .net-copy { position: static; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 96px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
  .pipeline-rail { display: none; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .pipe-node { margin-bottom: 18px; }
  .term-grid { grid-template-columns: 1fr; }
  .timeline-rail { display: none; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .dev-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .hero-meta-inner { justify-content: center; }
  .hero-meta-item:nth-child(n+3) { display: none; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid var(--border-soft); }
  .stat:first-child { border-top: none; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .role-idx { font-size: 20px; }
  .cta { padding: 56px 0; }
  .cta-content { padding: 40px 28px; }
  .cta-shade { background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.78) 100%); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 130px; }
}



/* ---------- how-it-works: horizontal timeline (telegraph style) ---------- */

#how-it-works .hwx-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 90px;
}
.hwx-angel {
  width: min(380px, 36vw);
  height: auto;
  flex-shrink: 0;
  margin-top: -30px;
  margin-right: -16px;
  margin-bottom: -24px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
  pointer-events: none;
}
.hwx-headline {
  max-width: 480px;
  margin-right: auto;
  text-align: left;
  padding-top: 28px;
}
.hwx-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
  margin-bottom: 18px;
}
.hwx-headline h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hwx-headline p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.85;
}
.hwx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.hwx-steps::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--border-bright);
}
.hwx-glow {
  position: absolute;
  top: 13px;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  margin-left: -7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 8px 3px rgba(255,255,255,0.95),
    0 0 22px 8px rgba(255,255,255,0.55),
    0 0 42px 16px rgba(255,255,255,0.25);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.hwx-glow.is-ready { opacity: 1; }
@media (max-width: 900px) {
  .hwx-glow { display: none; }
}
.hwx-step { position: relative; }
.hwx-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.hwx-step h4 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hwx-step p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
  max-width: 220px;
}
@media (max-width: 900px) {
  #how-it-works .hwx-hero { flex-direction: column-reverse; align-items: flex-start; gap: 24px; margin-bottom: 56px; }
  .hwx-headline { text-align: left; margin-right: 0; padding-top: 0; }
  .hwx-angel { width: 220px; margin: 0 0 0 auto; }
  .hwx-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .hwx-steps::before { display: none; }
}
@media (max-width: 560px) {
  .hwx-steps { grid-template-columns: 1fr; }
}
/* ---------- tokenomics ---------- */
#tokenomics { position: relative; background: #000; }
.tok-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.tok-donut { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.tok-donut svg { width: 100%; height: auto; display: block; }
.tok-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tok-center b { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--text); }
.tok-center span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-faint); text-transform: uppercase; margin-top: 4px; }
.tok-rows { display: flex; flex-direction: column; }
.tok-row { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--border-soft); }
.tok-row:first-child { border-top: 1px solid var(--border-soft); }
.tok-swatch { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.tok-name { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text); }
.tok-desc { font-size: 12.5px; color: var(--text-faint); margin-left: 4px; }
.tok-pct { margin-left: auto; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }
.tok-note {
  margin-top: 44px; padding: 16px 20px;
  border: 1px solid var(--border-soft); border-radius: 10px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.8; color: var(--text-faint);
  background: rgba(0,0,0,0.6);
}
.tok-note strong { color: var(--text-dim); }
@media (max-width: 900px) {
  .tok-grid { grid-template-columns: 1fr; gap: 40px; }
  .tok-donut { max-width: 300px; }
}

/* tokenomics over image: legibility */
#tokenomics .wrap { position: relative; z-index: 2; }
#tokenomics .sec-kicker, #tokenomics .sec-index { text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
#tokenomics h2, #tokenomics .sec-desc { text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.85); }
.tok-rows { background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: 12px; padding: 6px 22px; }
.tok-donut svg { filter: drop-shadow(0 6px 24px rgba(0,0,0,0.7)); }

.footer-tagline {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 48px;
  color: var(--text-dim);
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 900px) { .footer-tagline { white-space: normal; } }

/* mobile: teks digedein, layout & gambar tetap desktop */
@media (hover: none) and (pointer: coarse) {
  p, li { font-size: 19px !important; line-height: 1.7 !important; }
  .nav-links a { font-size: 13px !important; white-space: nowrap !important; }
  .btn { font-size: 15.5px !important; }
  .hero-sub { font-size: 20px !important; }
  .hero-meta-item { font-size: 14px !important; }
  .sec-kicker, .sec-index, .sec-slash { font-size: 14px !important; }
  .stat-label { font-size: 13px !important; }
  .stat-value { font-size: 34px !important; }
  .footer-col a, .footer-tagline { font-size: 16.5px !important; }
  .footer-col h4 { font-size: 13px !important; }
  .footer-bottom, .footer-bottom span { font-size: 14px !important; }
  .tok-name, .tok-pct { font-size: 15px !important; }
  .tok-desc { font-size: 14px !important; }
  .role-tag, .ticker-item { font-size: 13px !important; }
}

@media (hover: none) and (pointer: coarse) {
  :root { --container: 800px; }
  .nav-links { gap: 12px !important; }
  .nav-links a { font-size: 11.5px !important; padding: 6px 6px !important; }
  .nav-inner, .header-inner { padding-left: 16px !important; padding-right: 16px !important; }
  .btn { font-size: 13px !important; padding: 8px 14px !important; }
}
