/* ==========================================================================
   SKYNET GLASSMORPHIC PROTOCOL INTERFACE — BITCOIN RXC
   Design System: Tactical HUD / Defense Telemetry / Matrix Green / Terminator
   Autonomous issuance protocol interface on RichX Chain
   ========================================================================== */

:root {
  /* Obsidian & Emerald Depth Stack */
  --void: #0d2e1c;
  --bg-deep: #123a24;
  --bg-surface: #16472c;
  --pane-0: rgba(15, 45, 29, 0.68);
  --pane-1: rgba(20, 58, 38, 0.74);
  --pane-2: rgba(26, 74, 50, 0.60);
  --pane-glass: rgba(32, 90, 62, 0.48);
  
  /* Luminous Edge & Glow System */
  --edge-hi: rgba(165, 255, 220, 0.55);
  --edge-mid: rgba(63, 251, 154, 0.35);
  --edge-lo: rgba(63, 251, 154, 0.20);
  --edge-accent: rgba(79, 227, 215, 0.42);
  --neon: #3ffb9a;
  --neon-bright: #00ff66;
  --cyan: #4fe3d7;
  --ink: #dff5ea;
  --muted: #8fbfa9;
  --dark-muted: #4e806a;
  --glow: rgba(63, 251, 154, 0.4);
  --glow-strong: rgba(63, 251, 154, 0.65);
  --scan: rgba(63, 251, 154, 0.06);
  --bracket: rgba(63, 251, 154, 0.75);
  --pane-r: 16px;
  --pane-r-sm: 12px;
  --max: 1140px;
}

/* ==========================================================================
   AMBIENT BACKGROUND: TACTICAL TELEMETRY GRID & SCANLINES
   ========================================================================== */

body {
  background-color: var(--void) !important;
  color: var(--ink);
  overflow-x: clip;
  position: relative;
}

/* Tactical HUD coordinates grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(var(--scan) 1px, transparent 1px),
    linear-gradient(90deg, var(--scan) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 0%, transparent 82%);
}

/* Fine CRT scanlines + light cinematic vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: 
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse 110% 85% at 50% 10%, transparent 50%, rgba(13, 46, 28, 0.35) 85%, var(--void) 100%);
}

#rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
}

/* ==========================================================================
   GLASS PANEL SYSTEM & HUD RETICLES
   ========================================================================== */

.terminal, .console, .card, .specs, .feed, .presswrap,
.shot, .faqlist details, .code, .scope, .vlink, .pipe-step {
  position: relative;
  background: linear-gradient(155deg, var(--pane-1) 0%, var(--pane-0) 60%, rgba(3, 15, 10, 0.82) 100%);
  border: 1px solid var(--edge-lo);
  border-radius: var(--pane-r);
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    inset 0 0 40px rgba(0, 0, 0, 0.5),
    0 24px 60px -26px rgba(0, 0, 0, 0.95);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .terminal, .console, .card, .specs, .feed, .presswrap, .faqlist details, .scope, .vlink, .pipe-step {
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    background: linear-gradient(155deg, var(--pane-glass) 0%, var(--pane-0) 65%, rgba(2, 12, 8, 0.72) 100%);
  }
}

/* Bevel edge highlight along the top edge of every glass pane */
.terminal::before, .console::before, .card::before, .specs::before,
.feed::before, .presswrap::before, .scope::before, .vlink::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bracket), transparent);
  opacity: 0.85;
  pointer-events: none;
}

/* Tactical Corner Reticles for telemetry & high-trust containers */
.terminal::after, .console::after, .card::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border-radius: 11px;
  background:
    linear-gradient(var(--bracket), var(--bracket)) left top/11px 1px no-repeat,
    linear-gradient(var(--bracket), var(--bracket)) left top/1px 11px no-repeat,
    linear-gradient(var(--bracket), var(--bracket)) right top/11px 1px no-repeat,
    linear-gradient(var(--bracket), var(--bracket)) right top/1px 11px no-repeat,
    linear-gradient(var(--bracket), var(--bracket)) left bottom/11px 1px no-repeat,
    linear-gradient(var(--bracket), var(--bracket)) left bottom/1px 11px no-repeat,
    linear-gradient(var(--bracket), var(--bracket)) right bottom/11px 1px no-repeat,
    linear-gradient(var(--bracket), var(--bracket)) right bottom/1px 11px no-repeat;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.card:hover::after, .terminal:hover::after {
  opacity: 0.85;
}

.card:hover {
  border-color: var(--edge-hi);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    0 16px 40px -16px rgba(63, 251, 154, 0.25),
    0 24px 60px -26px rgba(0, 0, 0, 0.95);
}

/* ==========================================================================
   NAVIGATION BAR & MOBILE DRAWER
   ========================================================================== */

nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: calc(100% - 28px);
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 18px;
  background: rgba(4, 20, 14, 0.72) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--edge-mid) !important;
  box-shadow: 0 1px 0 var(--edge-hi) inset, 0 20px 48px -20px rgba(0, 0, 0, 0.95);
}

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

.brand {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  display: inline-block;
  animation: pulse 2.4s infinite;
}

.brand span {
  color: var(--neon);
  text-shadow: 0 0 14px rgba(63, 251, 154, 0.4);
}

nav .links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav a:not(.brand):not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 4px;
  transition: color 0.18s, text-shadow 0.18s;
  position: relative;
}

nav a:not(.brand):not(.btn):hover, nav a:not(.brand):not(.btn):focus-visible {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(63, 251, 154, 0.45);
}

nav .links a.active {
  color: var(--neon);
  font-weight: 600;
}

nav .links a.active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  border-radius: 2px;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 36, 27, 0.6);
  border: 1px solid var(--edge-mid);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-toggle:hover, .nav-toggle:focus-visible {
  border-color: var(--neon);
  box-shadow: 0 0 16px rgba(63, 251, 154, 0.35);
}

.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen Glass Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 86vw);
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  background: linear-gradient(170deg, rgba(6, 26, 20, 0.96) 0%, rgba(2, 12, 8, 0.98) 100%);
  border-left: 1px solid var(--edge-hi);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--edge-lo);
}

.drawer-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--neon);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge-lo);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.18s, border-color 0.18s;
}

.drawer-close:hover {
  color: var(--neon);
  border-color: var(--neon);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 22px 0;
}

.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.drawer-links a:hover, .drawer-links a:focus-visible {
  background: rgba(63, 251, 154, 0.1);
  color: var(--neon);
}

.drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--edge-lo);
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.drawer-backdrop.open {
  display: block;
}

@media (max-width: 920px) {
  nav .links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ==========================================================================
   HERO: SKYNET PROTOCOL COMMAND CENTER & COIN REACTOR HUD
   ========================================================================== */

header#top {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  padding: 130px 0 70px;
  text-align: center;
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Tactical Telemetry Kicker */
.sys-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 1.6px;
  color: var(--neon);
  background: rgba(63, 251, 154, 0.08);
  border: 1px solid rgba(63, 251, 154, 0.28);
  padding: 7px 18px;
  border-radius: 30px;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(63, 251, 154, 0.12);
}

.sys-kicker .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 1.8s infinite;
}

header#top h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0 auto;
  text-align: center;
  max-width: 18ch;
  text-shadow: 0 0 54px rgba(63, 251, 154, 0.28);
}

/* Tagline chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 22px;
  max-width: 780px;
}

.hchip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(10, 36, 27, 0.65);
  border: 1px solid var(--edge-mid);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(79, 227, 215, 0.12);
}

header#top .lede {
  margin: 16px auto 0;
  max-width: 66ch;
  font-size: 1.06rem;
  color: #c4e8d6;
  line-height: 1.72;
  text-align: center;
}

/* Quick Spec Pills under Hero */
.hero-specs-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(63, 251, 154, 0.16);
  max-width: 860px;
  width: 100%;
}

.spec-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.spec-pill .sp-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.8px;
}

.spec-pill .sp-val {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

/* Centered Reactor Placement */
.hero-reactor-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 24px;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   THE COIN REACTOR HUD — PROMINENT FLOATING COIN PNG
   ========================================================================== */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.coin-reactor {
  position: relative;
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  isolation: isolate;
  margin: 0 auto;
}

/* Tactical Corner Reticle Frame around the Reactor */
.reactor-frame {
  position: absolute;
  inset: -14px;
  pointer-events: none;
}

.reactor-frame .rc-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--neon);
  border-style: solid;
  opacity: 0.65;
}

.reactor-frame .rc-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.reactor-frame .rc-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.reactor-frame .rc-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.reactor-frame .rc-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Rotating Orbital Rings */
.reactor-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(63, 251, 154, 0.32);
  box-shadow: 0 0 35px rgba(63, 251, 154, 0.12), inset 0 0 35px rgba(63, 251, 154, 0.08);
  animation: reactor-spin-cw 50s linear infinite;
  pointer-events: none;
}

.reactor-ring-mid {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(79, 227, 215, 0.28);
  animation: reactor-spin-ccw 35s linear infinite;
  pointer-events: none;
}

.reactor-ring-mid::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.reactor-ring-inner {
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(63, 251, 154, 0.55);
  background: radial-gradient(circle, rgba(63, 251, 154, 0.16) 0%, rgba(10, 36, 27, 0.45) 55%, transparent 75%);
  box-shadow: 0 0 45px rgba(63, 251, 154, 0.22), inset 0 0 40px rgba(63, 251, 154, 0.18);
  animation: reactor-pulse 3.6s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Crosshair Grid */
.reactor-crosshairs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reactor-crosshairs::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 251, 154, 0.22) 20%, rgba(63, 251, 154, 0.22) 80%, transparent);
}

.reactor-crosshairs::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(63, 251, 154, 0.22) 20%, rgba(63, 251, 154, 0.22) 80%, transparent);
}

/* The Transparent Floating Coin PNG */
.reactor-coin {
  position: relative;
  z-index: 5;
  width: min(210px, 50vw);
  height: auto;
  display: block;
  filter: 
    drop-shadow(0 0 35px rgba(63, 251, 154, 0.45))
    drop-shadow(0 22px 48px rgba(0, 0, 0, 0.95));
  animation: coin-float 5s ease-in-out infinite alternate;
  transition: transform 0.3s ease, filter 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.coin-reactor:hover .reactor-coin {
  filter: 
    drop-shadow(0 0 50px rgba(63, 251, 154, 0.65))
    drop-shadow(0 28px 60px rgba(0, 0, 0, 0.95));
}

/* Floating Telemetry Badges Around the Reactor */
.t-badge {
  position: absolute;
  z-index: 6;
  background: rgba(4, 20, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--edge-hi);
  border-radius: 9px;
  padding: 5px 11px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(63, 251, 154, 0.15);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.t-badge .tb-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.8px;
}

.t-badge .tb-val {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--neon);
  white-space: nowrap;
}

.t-badge-tl { top: 12px; left: -18px; }
.t-badge-tr { top: 12px; right: -18px; }
.t-badge-bl { bottom: 12px; left: -18px; }
.t-badge-br { bottom: 12px; right: -18px; }

@media (max-width: 640px) {
  .coin-reactor {
    width: min(270px, 76vw);
    height: min(270px, 76vw);
  }
  .reactor-coin {
    width: min(165px, 46vw);
  }
  .t-badge {
    display: none; /* Hide floating corner badges on small mobile screens to prevent overflow */
  }
}

/* Status Beacon under Reactor */
.reactor-status-beacon {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.71rem;
  color: var(--ink);
  letter-spacing: 0.8px;
  padding: 6px 16px;
  background: rgba(6, 26, 20, 0.6);
  border: 1px solid var(--edge-lo);
  border-radius: 20px;
}

.reactor-status-beacon .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: pulse 1.6s infinite;
}

/* ==========================================================================
   BUTTONS: TACTICAL NEON HUD
   ========================================================================== */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 12px;
  font-family: 'Chakra Petch', Inter, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon) 0%, #10b981 100%);
  color: #020c08;
  box-shadow: 0 0 28px rgba(63, 251, 154, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 46px rgba(63, 251, 154, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background: rgba(6, 26, 19, 0.65);
  border: 1px solid var(--edge-hi);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  transform: translateY(-2px);
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 26px rgba(63, 251, 154, 0.28);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

/* ==========================================================================
   LIVE TELEMETRY TERMINAL — REAL RPC MONITOR
   ========================================================================== */

.terminal {
  margin: 54px auto 0;
  max-width: 1040px;
  width: 100%;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(74, 222, 163, 0.15);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.6px;
  background: rgba(4, 18, 14, 0.45);
}

.terminal-bar .tb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.term-ident {
  color: var(--neon);
  font-weight: 600;
}

.term-status-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(63, 251, 154, 0.12);
  border: 1px solid rgba(63, 251, 154, 0.3);
  color: var(--neon);
  font-size: 0.66rem;
  letter-spacing: 0.8px;
}

.grid-live {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.grid-live .cell {
  padding: 22px 18px;
  border-right: 1px solid rgba(74, 222, 163, 0.12);
  text-align: center;
  transition: background 0.2s ease;
}

.grid-live .cell:last-child {
  border-right: none;
}

.grid-live .cell:hover {
  background: rgba(63, 251, 154, 0.04);
}

.grid-live .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.grid-live .val {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-weight: 700;
  color: var(--neon);
  margin-top: 6px;
  line-height: 1.1;
  text-shadow: 0 0 24px var(--glow);
}

.terminal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid rgba(74, 222, 163, 0.1);
  background: rgba(4, 18, 14, 0.35);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--dark-muted);
}

.terminal-foot span {
  color: #72a991;
}

/* ==========================================================================
   IMMUTABILITY / NO-PRIVILEGE 4 GLASS MODULES
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  padding: 28px 24px;
  text-align: left;
}

.card-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 1px;
}

.card-step-num {
  color: var(--neon);
  font-weight: 600;
}

.card-status-tag {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(63, 251, 154, 0.1);
  border: 1px solid rgba(63, 251, 154, 0.22);
  color: var(--neon);
}

.card h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.card p {
  font-size: 0.94rem;
  color: #aed5c1;
  line-height: 1.65;
}

/* ==========================================================================
   PROOF-OF-WORK PIPELINE VISUALIZATION (DIRECTIVE SECTION 15)
   ========================================================================== */

.pow-pipeline {
  margin: 48px auto 0;
  max-width: 1040px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
}

.pipe-step {
  padding: 18px 14px;
  border-radius: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.pipe-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--neon);
  letter-spacing: 1px;
}

.pipe-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.pipe-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Pipeline Flow Indicator Connectors */
@media (min-width: 900px) {
  .pipe-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon);
    font-size: 1.1rem;
    z-index: 10;
    text-shadow: 0 0 8px var(--neon);
  }
}

@media (max-width: 899px) {
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SPECIFICATIONS CONSOLE
   ========================================================================== */

.specs {
  margin: 42px auto 0;
  max-width: 820px;
  text-align: left;
}

.specs-head {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(74, 222, 163, 0.15);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  color: var(--neon);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  background: rgba(4, 18, 14, 0.4);
}

.specs .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(63, 251, 154, 0.08);
  font-size: 0.92rem;
  transition: background 0.16s ease;
}

.specs .row:hover {
  background: rgba(63, 251, 154, 0.03);
}

.specs .row:last-child {
  border-bottom: none;
}

.specs .row span:first-child {
  color: var(--muted);
}

.specs .row span:last-child {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}

/* ==========================================================================
   LIVE CONSOLE — DARPA / SKYNET SURVEILLANCE FEED
   ========================================================================== */

.console {
  max-width: 960px;
  margin: 48px auto 0;
}

.consbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(74, 222, 163, 0.15);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.6px;
  background: rgba(4, 18, 14, 0.45);
}

.consbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px;
}

.feed {
  border: 1px solid var(--edge-lo);
  border-radius: var(--pane-r-sm);
  overflow: hidden;
  background: rgba(4, 18, 14, 0.55);
}

.feedhead {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(74, 222, 163, 0.14);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--neon);
  letter-spacing: 1.2px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedbody {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--edge-mid) transparent;
}

.frow {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(74, 222, 163, 0.07);
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  transition: background 0.16s ease;
}

.frow:hover {
  background: rgba(63, 251, 154, 0.04);
}

.frow:last-child {
  border-bottom: none;
}

.fmain {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.fnum {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.96rem;
}

.famt {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  color: var(--neon);
  font-size: 0.96rem;
}

.fhash {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
}

.fmeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.69rem;
  color: #6d9c86;
}

.fempty {
  padding: 32px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.consnote {
  padding: 0 20px 18px;
  font-size: 0.83rem;
  color: #6d9c86;
  text-align: center;
  max-width: 64ch;
  margin: 0 auto;
}

/* ==========================================================================
   GATEWAY PORTAL & LOWER COIN SEAL
   ========================================================================== */

.gateway {
  padding: 120px 0;
  position: relative;
  isolation: isolate;
}

.gateway .coin-seal {
  margin: 0 auto 34px;
  display: block;
  width: min(320px, 64vw);
  height: auto;
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 50px rgba(63, 251, 154, 0.22));
  animation: coin-float 6s ease-in-out infinite alternate;
}

.portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 56px;
  border-radius: 60px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #03150d;
  text-decoration: none;
  background: linear-gradient(120deg, var(--neon), var(--cyan));
  box-shadow: 0 0 46px rgba(63, 251, 154, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.portal:hover, .portal:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 76px rgba(63, 251, 154, 0.72);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.9); }
}

@keyframes reactor-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes reactor-spin-ccw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes reactor-pulse {
  0% { transform: scale(0.98); opacity: 0.75; }
  100% { transform: scale(1.03); opacity: 1; }
}

@keyframes coin-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(-4px) rotate(-1deg); }
}

/* ==========================================================================
   ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  #rain { display: none !important; }
  .reactor-ring-outer, .reactor-ring-mid, .reactor-ring-inner, .reactor-coin {
    animation: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT HARDENING (MOBILE FIRST)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  header#top h1 {
    text-align: center;
  }
  header#top .lede {
    text-align: center;
  }
  .hero-chips {
    justify-content: center;
  }
  .hero-specs-strip {
    justify-content: center;
  }
  .cta-row {
    justify-content: center;
  }
  .t-badge-tl { left: 4px; }
  .t-badge-tr { right: 4px; }
  .t-badge-bl { left: 4px; }
  .t-badge-br { right: 4px; }
}

@media (max-width: 820px) {
  :root {
    --pane-r: 14px;
    --pane-r-sm: 10px;
  }
  header#top {
    padding: 110px 0 50px !important;
  }
  .grid-live {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-live .cell:nth-child(2) {
    border-right: none;
  }
  .grid-live .cell:nth-child(1), .grid-live .cell:nth-child(2) {
    border-bottom: 1px solid rgba(74, 222, 163, 0.12);
  }
  .feeds {
    grid-template-columns: 1fr;
  }
  .btn {
    min-height: 48px;
    width: 100%;
  }
  .cta-row {
    width: 100%;
  }
  .cta-row .btn {
    width: 100%;
  }
  .coin-reactor {
    width: min(340px, 86vw);
    height: min(340px, 86vw);
  }
  .reactor-coin {
    width: min(220px, 56vw);
  }
  .t-badge {
    padding: 4px 8px;
  }
  .t-badge .tb-lbl { font-size: 0.54rem; }
  .t-badge .tb-val { font-size: 0.76rem; }
}

@media (max-width: 480px) {
  .grid-live {
    grid-template-columns: 1fr !important;
  }
  .grid-live .cell {
    border-right: none !important;
    border-bottom: 1px solid rgba(74, 222, 163, 0.1) !important;
  }
  .grid-live .cell:last-child {
    border-bottom: none !important;
  }
  .coin-reactor {
    width: min(280px, 84vw);
    height: min(280px, 84vw);
  }
  .reactor-coin {
    width: min(180px, 54vw);
  }
  .t-badge {
    display: none; /* Hide floating badges on tiny screens to avoid viewport overflow */
  }
  .reactor-frame {
    inset: -6px;
  }
}

/* ==========================================================================
   CYBERNETIC GLOW ORBS — HERO AMBIENT LIGHTING
   ========================================================================== */
.glow-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.75;
}
.glow-orb-a {
  top: -10%;
  left: 8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--neon) 0%, rgba(63,251,154,0) 70%);
}
.glow-orb-b {
  top: 20%;
  right: 4%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--cyan) 0%, rgba(79,227,215,0) 70%);
  opacity: 0.6;
}
.glow-orb-c {
  bottom: -8%;
  left: 42%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--neon-bright) 0%, rgba(0,255,102,0) 70%);
  opacity: 0.5;
}
@media (max-width: 760px) {
  .glow-orb-a, .glow-orb-b, .glow-orb-c { width: 280px; height: 280px; filter: blur(46px); }
}

/* Whole-page ambient orbs — stay fixed to the viewport as you scroll,
   so the glow reads on every section, not just the hero */
.page-glow-orb {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.page-glow-orb-1 {
  top: 10%;
  left: -6%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--neon) 0%, rgba(63,251,154,0) 72%);
  opacity: 0.30;
}
.page-glow-orb-2 {
  bottom: 6%;
  right: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--cyan) 0%, rgba(79,227,215,0) 72%);
  opacity: 0.26;
}
@media (max-width: 760px) {
  .page-glow-orb-1, .page-glow-orb-2 { width: 260px; height: 260px; filter: blur(55px); }
}
