/* ═══════════════════════════════════════════════
   PR0XY — Matrix Terminal Stylesheet
   Color system based on matrix green palette
═══════════════════════════════════════════════ */

/* ── LOCAL FONTS — zero external dependencies ── */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/jetbrains-mono-300.ttf') format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400.ttf') format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500.ttf') format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/share-tech-mono-400.ttf') format('truetype');
}

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg:         #080d08;
  --bg-alt:     #0b110b;
  --bg-card:    #0e150e;
  --bg-glass:   rgba(14, 21, 14, 0.85);
  --border:     rgba(57, 255, 20, 0.13);
  --border-hi:  rgba(57, 255, 20, 0.35);

  /* Matrix greens */
  --green:      #39ff14;   /* bright matrix green */
  --green-dim:  #1aad0a;   /* mid green */
  --green-dark: #0a4a04;   /* dark green */
  --green-muted:#2d6b24;   /* muted */
  --green-glow: rgba(57, 255, 20, 0.18);

  --text:       #c8ffc8;   /* off-white green tint */
  --text-dim:   #6aaa6a;
  --text-muted: #3d6b3d;
  --accent:     #39ff14;
  --accent2:    #00ff9f;

  --font-mono: 'JetBrains Mono', 'Share Tech Mono', 'Courier New', monospace;
  --radius: 4px;
  --radius-lg: 8px;
}

/* ── RESET ───────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--green); color: var(--bg); }
a { color: var(--green); text-decoration: none; }
a:hover { color: #fff; }

/* ── OVERLAYS ────────────────────────────────── */
.scanline-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── MATRIX CANVAS ───────────────────────────── */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}

/* ── NAVBAR ──────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 13, 8, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.logo-bracket { color: var(--green-dim); }
.logo-text { color: var(--green); text-transform: uppercase; letter-spacing: 0.12em; }
.logo-cursor { color: var(--green); font-size: 0.9em; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex: 1;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--green);
  border-color: var(--border-hi);
  background: var(--green-glow);
  text-shadow: 0 0 8px var(--green);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--green);
  flex-shrink: 0;
}

/* ── BLINK + PULSE ───────────────────────────── */
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green), 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{ box-shadow: 0 0 4px var(--green), 0 0 8px var(--green); opacity:1; }
  50%{ box-shadow: 0 0 12px var(--green), 0 0 24px var(--green); opacity:0.7; }
}

/* ── HERO ────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  padding: 88px 2rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0 6rem;
}

/* hero terminal window */
.hero-terminal {
  width: 100%;
  box-shadow: 0 0 60px rgba(57,255,20,0.12), 0 0 120px rgba(57,255,20,0.04);
}

/* terminal window generic */
.terminal-window {
  background: #090f09;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.82rem;
}

.terminal-bar {
  background: #0d160d;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.t-btn {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.t-red    { background: #3d1a1a; border: 1px solid #5a2020; }
.t-yellow { background: #2e2a10; border: 1px solid #4a4018; }
.t-green  { background: #0a2e10; border: 1px solid #1a5a20; }
.t-title  {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.2rem 1.4rem;
  color: var(--green);
  min-height: 180px;
}

.t-prompt { color: var(--green); font-weight: 700; }
.t-sep    { color: var(--text-muted); }
.t-path   { color: var(--accent2); }
.t-hash   { color: var(--text-muted); margin: 0 4px; }

.code-block { line-height: 1.9; }
.c-green  { color: var(--green); }
.c-yellow { color: #ffd700; }
.c-accent { color: var(--accent2); }
.c-dim    { color: var(--text-muted); }
.c-blue   { color: #5fa8d3; }

/* ── HERO COPY ───────────────────────────────── */
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.title-dim    { color: var(--text-muted); font-weight: 300; }
.title-accent { color: var(--green); text-shadow: 0 0 30px var(--green); }

.hero-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 420px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
  border: 1px solid var(--green);
}
.btn-primary:hover {
  background: transparent;
  color: var(--green);
  text-shadow: 0 0 10px var(--green);
  box-shadow: 0 0 20px var(--green-glow), inset 0 0 20px var(--green-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover {
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

.btn-prefix { color: var(--green-dim); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
}

/* hex floating nodes */
.hex-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hex-node {
  position: absolute;
  font-size: 0.65rem;
  color: var(--green-dark);
  letter-spacing: 0.1em;
  animation: hexFloat 6s ease-in-out infinite;
  text-shadow: 0 0 8px var(--green-dark);
}
@keyframes hexFloat {
  0%,100%{ transform: translateY(0); opacity:.4; }
  50%{ transform: translateY(-12px); opacity:.8; }
}

/* ── SECTIONS ────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}
.alt-bg { background: var(--bg-alt); }

.section-header {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-header h2 .accent { color: var(--green); text-shadow: 0 0 20px rgba(57,255,20,0.4); }
.section-sub {
  margin-top: 0.75rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── SERVICES GRID ───────────────────────────── */
.services-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover { border-color: var(--green); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }

.card-index {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.card-icon {
  width: 40px; height: 40px;
  color: var(--green);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 6px var(--green));
}
.card-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.card-link {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.card-link:hover { color: var(--green); }
.card-link span { transition: transform 0.2s; }
.card-link:hover span { transform: translateX(4px); }

/* ── FEATURE LAYOUT ──────────────────────────── */
.feature-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-layout.reverse { direction: rtl; }
.feature-layout.reverse > * { direction: ltr; }

.feature-lead {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.75rem;
  border-left: 2px solid var(--green);
  padding-left: 1rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.li-icon { color: var(--green); flex-shrink: 0; margin-top: 1px; }

.feature-cmd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.cmd-text { color: var(--green-dim); }

/* ── WALLET SPECIFIC ─────────────────────────── */
.seed-blur {
  display: inline-block;
  filter: blur(4px);
  transition: filter 0.4s;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--green-dim);
  letter-spacing: 0.05em;
}
.seed-blur:hover { filter: blur(0); color: var(--green); }

/* ── MESH DIAGRAM ────────────────────────────── */
.mesh-diagram {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mesh-node {
  position: relative;
  z-index: 2;
  background: var(--green);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  box-shadow: 0 0 20px var(--green), 0 0 40px rgba(57,255,20,0.3);
}

.mesh-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.mesh-line {
  stroke: var(--green-dark);
  stroke-width: 1;
  animation: lineFlash 3s ease-in-out infinite;
}
.active-line { stroke: var(--green); stroke-width: 1.5; opacity: 0.6; }
@keyframes lineFlash {
  0%,100%{ opacity:.3; }
  50%{ opacity:.8; stroke: var(--green); }
}

.mesh-peer {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.peer-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
.dim-peer { background: var(--text-muted); box-shadow: none; animation: none; }
.peer-label { font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.08em; }
.peer-dist  { font-size: 0.55rem; color: var(--text-muted); }

.mesh-enc-badge {
  position: absolute;
  bottom: 0.75rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(8,13,8,0.9);
  border: 1px solid var(--border-hi);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--green);
  padding: 0.25rem 0.8rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── SSH TERMINAL ────────────────────────────── */
.interactive-term { animation: termGlow 4s ease-in-out infinite alternate; }
@keyframes termGlow {
  from { box-shadow: 0 0 20px rgba(57,255,20,0.08); }
  to   { box-shadow: 0 0 40px rgba(57,255,20,0.18), 0 0 80px rgba(57,255,20,0.05); }
}
.t-line-ssh { font-size: 0.78rem; line-height: 1.8; }

/* ── HARDWARE CARDS ──────────────────────────── */
.hw-cards {
  max-width: 1280px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hw-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.hw-card:hover { border-color: var(--green-dim); transform: translateY(-4px); }

.featured-hw {
  border-color: var(--green-muted);
  background: linear-gradient(145deg, #0d1a0d, #0a130a);
  box-shadow: 0 0 30px rgba(57,255,20,0.08);
}
.featured-hw:hover { border-color: var(--green); }

.hw-badge {
  position: absolute;
  top: -10px; left: 1.5rem;
  background: var(--green);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}

.hw-icon-wrap {
  width: 44px; height: 44px;
  color: var(--green);
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 0 6px var(--green));
}
.hw-icon-wrap svg { width: 100%; height: 100%; }

.hw-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.hw-card p {
  font-size: 0.79rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hw-spec {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.hw-spec span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.hw-spec span::before { content: '▸ '; color: var(--green-dark); }

/* ── TOPOLOGY ────────────────────────────────── */
.hw-topology {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.topo-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.topo-row {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.topo-node {
  background: #0d1a0d;
  border: 1px solid var(--border-hi);
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 8px var(--green);
}
.topo-line {
  flex: 1;
  min-width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--green-dark), var(--green), var(--green-dark));
  position: relative;
}
.topo-line.long { min-width: 60px; }
.topo-line::after {
  content: ''; position: absolute;
  top: -3px; right: 0;
  border: 3px solid transparent;
  border-left-color: var(--green);
}

/* ── PEER SCAN ───────────────────────────────── */
.scan-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scan-ring {
  position: absolute;
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 50%;
  animation: scanExpand 3s linear infinite;
}
.ring-1 { width: 30%; height: 30%; animation-delay: 0s; }
.ring-2 { width: 60%; height: 60%; animation-delay: 1s; }
.ring-3 { width: 90%; height: 90%; animation-delay: 2s; }
@keyframes scanExpand {
  0%   { opacity: 0.8; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.05); }
}

.scan-center {
  position: relative;
  z-index: 2;
  background: var(--green);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 16px var(--green), 0 0 40px rgba(57,255,20,0.3);
}
.scan-coords { font-size: 0.5rem; color: rgba(8,13,8,0.7); }

.scan-line {
  position: absolute;
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
  top: 50%; left: 50%;
  transform-origin: left center;
  animation: radarSweep 3s linear infinite;
  opacity: 0.6;
}
@keyframes radarSweep { to { transform: rotate(360deg); } }

.scan-peer {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.active-peer .peer-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ── SECURITY GRID ───────────────────────────── */
.security-grid {
  max-width: 1280px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.sec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.sec-item:hover { border-color: var(--green-muted); transform: translateY(-2px); }

.sec-icon {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  filter: grayscale(20%);
}
.sec-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.sec-item p {
  font-size: 0.79rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── PROTOCOL STACK ──────────────────────────── */
.proto-stack {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.stack-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.stack-layers { display: flex; flex-direction: column; gap: 0.5rem; }
.stack-layer {
  background: #0d1a0d;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-dark);
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
  border-radius: 3px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.5s ease forwards;
  animation-delay: var(--d);
}
.accent-layer {
  border-left-color: var(--green) !important;
  color: var(--green) !important;
  text-shadow: 0 0 8px rgba(57,255,20,0.4);
}
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ── FOOTER ──────────────────────────────────── */
#footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo { font-size: 1.2rem; font-weight: 700; }
.footer-tagline { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); }
.footer-status {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.status-row { display: flex; align-items: center; gap: 0.4rem; }
.footer-note {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-muted); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-content,
  .feature-layout,
  .feature-layout.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }
  .hw-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-title { font-size: 2rem; }
  .topo-row { flex-wrap: wrap; justify-content: center; }
  .topo-line { display: none; }
}

/* ── PWA INSTALL BANNER ──────────────────────── */
#install-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: rgba(11, 17, 11, 0.97);
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0 40px rgba(57,255,20,0.2);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  color: var(--text);
  display: none;
  white-space: nowrap;
}
#install-banner.visible { display: flex; }
#install-btn {
  background: var(--green);
  color: var(--bg);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
}
#install-btn:hover { opacity: 0.85; }
#dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem;
}
