/* ============================================================
   TORZON MARKET — STYLES
   16-bit Cyberpunk / Futuristic Dark Theme
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --bg-base:       #020408;
  --bg-surface:    #060c14;
  --bg-card:       #0a1220;
  --bg-card-hover: #0e1a2e;
  --bg-border:     #0d2040;

  --cyan:       #00e5ff;
  --cyan-dim:   #007a8a;
  --cyan-glow:  rgba(0, 229, 255, 0.18);
  --purple:     #b040ff;
  --purple-dim: #4a0080;
  --purple-glow:rgba(176, 64, 255, 0.18);
  --green:      #00ff88;
  --green-dim:  #005c30;
  --yellow:     #ffe000;
  --yellow-dim: #5c4800;
  --red:        #ff3060;
  --red-dim:    #5c0020;

  --text-primary:   #e0f4ff;
  --text-secondary: #6888aa;
  --text-muted:     #2a4060;
  --text-accent:    #00e5ff;

  --font-pixel: 'Press Start 2P', monospace;
  --font-mono:  'Share Tech Mono', monospace;

  --border-pixel: 2px solid var(--bg-border);
  --radius:       0px; /* pixel art — no radius */

  --shadow-cyan:   0 0 20px rgba(0, 229, 255, 0.25), 0 0 60px rgba(0, 229, 255, 0.08);
  --shadow-purple: 0 0 20px rgba(176, 64, 255, 0.25), 0 0 60px rgba(176, 64, 255, 0.08);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 229, 255, 0.06);

  --transition: 0.15s ease;

  --container: 1200px;
  --gap: 24px;
}

/* ---- RESET ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-mono);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  image-rendering: pixelated;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ---- MATRIX CANVAS ---- */
#matrixCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.045;
  pointer-events: none;
  /* Force own GPU compositing layer — avoids triggering page repaints */
  transform: translateZ(0);
  will-change: contents;
}

/* ---- SCANLINES OVERLAY ----
   KEY: animate transform instead of background-position.
   background-position triggers paint; transform is GPU-only. ---- */
.scanlines {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Taller than viewport so translateY loop never shows gap */
  height: calc(100% + 100px);
  z-index: 1;
  pointer-events: none;
  /* Static gradient — no repaints */
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  will-change: transform;
  animation: scanlineScroll 8s linear infinite;
}
@keyframes scanlineScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(100px); }
}

/* ---- CRT VIGNETTE ---- */
.crt-vignette {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  pointer-events: none;
  /* Static gradient — no animation, no repaint */
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* ---- UTILITY: CONTAINER / SECTION ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.section-padding {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.5vw, 28px);
  color: var(--text-primary);
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  line-height: 1.6;
}
.section-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: 20px auto 0;
}

/* ---- PIXEL CARD ---- */
.pixel-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: 1px solid transparent;
  /* Limit reflow scope — layout/style changes inside don't affect outside */
  contain: layout style;
}
.pixel-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--cyan-dim) 0%, transparent 50%, var(--purple-dim) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
  pointer-events: none;
}
.pixel-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan-dim);
  box-shadow: var(--shadow-card), var(--shadow-cyan);
}
.pixel-card:hover::before { opacity: 0.15; }

/* ---- BUTTONS ---- */
.btn {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--transition);
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-lg {
  font-size: 10px;
  padding: 16px 28px;
}
.btn-sm {
  font-size: 8px;
  padding: 8px 14px;
}

.btn-primary {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 0 2px var(--cyan), 0 0 20px rgba(0,229,255,0.3);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 40px rgba(0,229,255,0.6), 0 0 80px rgba(0,229,255,0.2);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-dim);
}
.btn-ghost:hover {
  background: var(--cyan-glow);
  box-shadow: 0 0 0 2px var(--cyan), 0 0 20px rgba(0,229,255,0.2);
  color: #fff;
}

.btn-icon { font-size: 12px; }

/* ---- PIXEL CORNERS DECORATION ---- */
.pixel-corner {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 5;
}
.pixel-corner--tl { top: 0; left: 0;
  border-top: 3px solid var(--cyan); border-left: 3px solid var(--cyan); }
.pixel-corner--tr { top: 0; right: 0;
  border-top: 3px solid var(--cyan); border-right: 3px solid var(--cyan); }
.pixel-corner--bl { bottom: 0; left: 0;
  border-bottom: 3px solid var(--cyan); border-left: 3px solid var(--cyan); }
.pixel-corner--br { bottom: 0; right: 0;
  border-bottom: 3px solid var(--cyan); border-right: 3px solid var(--cyan); }

/* ---- STATUS DOTS ---- */
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 0;
  animation: blink 1.5s steps(1) infinite;
}
.dot--green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot--cyan   { background: var(--cyan);  box-shadow: 0 0 6px var(--cyan); }
.dot--purple { background: var(--purple);box-shadow: 0 0 6px var(--purple); }
.dot--yellow { background: var(--yellow);box-shadow: 0 0 6px var(--yellow); }
.dot--red    { background: var(--red);   box-shadow: 0 0 6px var(--red); }
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100%{ opacity: 0.2; }
}

/* ---- GLITCH TEXT ---- */
.glitch-text {
  position: relative;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  /* Own compositing layer — transform animation stays on GPU */
  will-change: transform, opacity;
}
.glitch-text::before {
  color: var(--red);
  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
  animation: glitch1 3.5s infinite steps(1);
  opacity: 0;
}
.glitch-text::after {
  color: var(--cyan);
  clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
  animation: glitch2 3.5s infinite steps(1);
  opacity: 0;
}
@keyframes glitch1 {
  0%,94%,100% { opacity: 0; transform: translate(0); }
  95% { opacity: 1; transform: translate(-3px, 1px); }
  97% { opacity: 1; transform: translate(3px, -1px); }
}
@keyframes glitch2 {
  0%,93%,100% { opacity: 0; transform: translate(0); }
  94% { opacity: 1; transform: translate(3px, 2px); }
  96% { opacity: 1; transform: translate(-2px, -1px); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid bg instead of backdrop-filter:blur — blur forces repaint on EVERY scroll pixel */
  background: #020b14;
  border-bottom: 1px solid var(--bg-border);
  /* Own compositing layer so scroll doesn't repaint the header */
  transform: translateZ(0);
  will-change: transform;
}
/* Shadow added via JS class toggle, not inline style — avoids style recalculation */
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.7), 0 1px 0 rgba(0,229,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo */
.logo-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.logo-block > a { text-decoration: none; }
.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.4));
  image-rendering: auto;
}
.logo-pixel {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.logo-bracket {
  color: var(--cyan);
  text-shadow: var(--shadow-cyan);
}
.logo-text {
  color: var(--text-primary);
}
.logo-sub {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-secondary);
  letter-spacing: 3px;
  padding-left: 2px;
}

/* Nav */
.main-nav { flex: 1; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-link {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 8px 10px;
  border: 1px solid transparent;
  transition: all var(--transition);
  display: block;
}
.nav-link:hover, .nav-link:focus {
  color: var(--cyan);
  border-color: var(--bg-border);
  background: var(--bg-card);
  outline: none;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* Status bar */
.status-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-border);
  padding: 6px 0;
  overflow: hidden;
}
.status-bar-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-bar-inner::-webkit-scrollbar { display: none; }
.status-item {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.status-clock { color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  /* opacity-only animation → GPU composited */
  will-change: opacity;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.hero-inner {
  padding-top: 60px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 780px;
}

.hero-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--green);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--green-dim);
  background: rgba(0,255,136,0.05);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1s steps(1) infinite;
}

.hero-title {
  font-family: var(--font-pixel);
  line-height: 1.2;
  letter-spacing: 6px;
}
.hero-title-line1 {
  font-size: clamp(40px, 8vw, 80px);
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0,229,255,0.5), 0 0 80px rgba(0,229,255,0.2);
  display: block;
}
.hero-title-line2 {
  font-size: clamp(32px, 6vw, 60px);
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(255,255,255,0.15);
  display: block;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--text-secondary);
  min-height: 22px;
}
#typedText::after {
  content: '█';
  color: var(--cyan);
  animation: blink 0.7s steps(1) infinite;
}

/* Hero stats row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat .stat-val {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,229,255,0.4);
}
.hero-stat .stat-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
  letter-spacing: 2px;
}
.hero-stat-sep {
  color: var(--bg-border);
  font-size: 24px;
  align-self: center;
}

/* Hero CTA */
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero notice */
.hero-notice {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--yellow);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--yellow-dim);
  background: rgba(255,224,0,0.04);
}
.notice-icon { font-size: 12px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--bg-surface); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.step-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.step-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.step-card:hover::after { transform: scaleX(1); }

.step-num {
  font-family: var(--font-pixel);
  font-size: 32px;
  color: var(--bg-border);
  line-height: 1;
  position: absolute;
  top: 16px; right: 16px;
  pointer-events: none;
  transition: color var(--transition);
}
.step-card:hover .step-num { color: var(--cyan-dim); }

.step-icon { color: var(--cyan); }
.step-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.6;
}
.step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.step-link {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 1px;
  margin-top: auto;
  transition: color var(--transition);
}
.step-link:hover { color: #fff; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.cat-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.06), transparent);
  pointer-events: none;
}
.cat-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #0a1830, #0a1220);
  border-color: var(--cyan-dim);
}
.cat-card--all {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
}
.cat-all-icon {
  font-size: 24px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cat-icon { color: var(--cyan); margin-bottom: 4px; }
.cat-icon--cyan   { color: var(--cyan); }
.cat-icon--purple { color: var(--purple); }
.cat-icon--green  { color: var(--green); }
.cat-icon--yellow { color: var(--yellow); }
.cat-icon--red    { color: var(--red); }

.cat-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-primary);
  letter-spacing: 2px;
}
.cat-count {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--cyan);
}
.cat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.cat-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tag {
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 4px 8px;
  background: rgba(0,229,255,0.06);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section { background: var(--bg-surface); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.stat-block {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.stat-block--primary {
  border-color: var(--cyan-dim);
  box-shadow: inset 0 0 30px rgba(0,229,255,0.05);
}
.stat-block-icon {
  font-size: 24px;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
}
.stat-block--primary .stat-block-icon { color: var(--cyan); }
.stat-block:nth-child(2) .stat-block-icon { color: var(--purple); text-shadow: 0 0 12px var(--purple); }
.stat-block:nth-child(3) .stat-block-icon { color: var(--green);  text-shadow: 0 0 12px var(--green); }
.stat-block:nth-child(4) .stat-block-icon { color: var(--yellow); text-shadow: 0 0 12px var(--yellow); }
.stat-block:nth-child(5) .stat-block-icon { color: var(--red);    text-shadow: 0 0 12px var(--red); }

.stat-block-num {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text-primary);
  line-height: 1;
}
.stat-block-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}
.stat-block-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.feat-item {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  opacity: 0.85;
  transition: opacity var(--transition), box-shadow var(--transition);
}
.feat-icon--cyan   { color: var(--cyan); }
.feat-icon--purple { color: var(--purple); }
.feat-icon--green  { color: var(--green); }
.feat-icon--yellow { color: var(--yellow); }
.feat-icon--red    { color: var(--red); }

.feat-item:hover .feat-icon { opacity: 1; box-shadow: 0 0 16px currentColor; }

.feat-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.6;
}
.feat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   MIRRORS
   ============================================================ */
.mirrors { background: var(--bg-surface); }
.mirrors-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-color: var(--yellow-dim);
  background: rgba(255,224,0,0.04);
  font-size: 12px;
  color: var(--yellow);
  margin-bottom: 32px;
  line-height: 1.6;
}
.mirrors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.mirror-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mirror-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mirror-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-secondary);
  flex: 1;
  letter-spacing: 1px;
}
.mirror-ping {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--green);
}
.mirror-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  word-break: break-all;
  line-height: 1.6;
  padding: 12px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--cyan); }
.faq-question[aria-expanded="true"] { color: var(--cyan); }
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(90deg); color: var(--cyan); }
.faq-arrow {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color var(--transition);
}
.faq-answer {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--bg-border);
}
.faq-answer[hidden] { display: none; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.review-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-user {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--cyan);
  letter-spacing: 1px;
}
.review-stars {
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.review-date {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
}
.review-badge {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--green);
  padding: 3px 7px;
  border: 1px solid var(--green-dim);
  background: rgba(0,255,136,0.05);
  letter-spacing: 1px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-border);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--bg-border);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-tagline {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 2px;
}
.footer-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-nav-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--cyan); }

.footer-bottom {
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}
.footer-crypto {
  display: flex;
  gap: 8px;
}
.crypto-tag {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
  padding: 4px 8px;
  border: 1px solid var(--bg-border);
  letter-spacing: 1px;
}
.footer-uptime {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-cyan);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .mirrors-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card--featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { display: none; width: 100%; order: 3; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .nav-link { padding: 12px 8px; border-bottom: 1px solid var(--bg-border); }
  .mobile-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }

  .hero-inner { align-items: center; text-align: center; }
  .hero-cta-row { justify-content: center; }
  .hero-stats-row { justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .cat-card--featured { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .section-padding { padding: 56px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-stats-row { flex-direction: column; align-items: center; }
  .hero-stat-sep { display: none; }
  .mirrors-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOCUS ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--cyan);
  color: #000;
  padding: 8px 16px;
  font-family: var(--font-pixel);
  font-size: 9px;
  z-index: 9999;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   NEON BORDER ANIMATION
   ============================================================ */
@keyframes neonBorderCycle {
  0%,100% { border-color: var(--bg-border); }
  50%      { border-color: var(--cyan-dim); }
}

/* ============================================================
   PIXEL SELECTION
   ============================================================ */
::selection {
  background: var(--cyan);
  color: #000;
}

/* ============================================================
   PERFORMANCE: prefers-reduced-motion
   Disable all non-essential animations for users who request it
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #matrixCanvas    { display: none; }
  .scanlines       { animation: none; }
  .glitch-text::before,
  .glitch-text::after { display: none; }
  .hero-grid-bg    { animation: none; opacity: 0.7; }
  .dot             { animation: none; opacity: 1; }
}

/* ============================================================
   PERFORMANCE: Disable heavy effects on low-end / mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Scanlines are barely visible on mobile screens — skip the layer */
  .scanlines { display: none; }
  /* Grid bg static on mobile */
  .hero-grid-bg { animation: none; opacity: 0.7; }
}

/* ============================================================
   GPU LAYERS: promote fixed overlays so scroll never repaints them
   ============================================================ */
.scanlines,
.crt-vignette {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============================================================
   SUBPAGE COMPONENTS
   Styles for about/, faq/, features/, news/, security/,
   torzon-link/, torzon-access-market-guide/
   These override each page's inline <style> (cascade order wins)
   ============================================================ */

/* ---- Override body font ---- */
body {
  font-family: var(--font-mono) !important;
  background: var(--bg-base) !important;
}

/* ---- Subpage header (#mainHeader) ---- */
#mainHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #020b14 !important;
  border-bottom: 1px solid var(--bg-border) !important;
  transform: translateZ(0);
}
#mainHeader.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.7), 0 1px 0 rgba(0,229,255,0.08);
}
.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo-wrapper img { height: 28px; width: auto; filter: drop-shadow(0 0 8px rgba(0,229,255,0.4)); }

/* ---- Subpage nav ---- */
nav#mainNav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
nav#mainNav a {
  font-family: var(--font-pixel) !important;
  font-size: 7px !important;
  color: var(--text-secondary) !important;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 7px 10px;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
nav#mainNav a:hover,
nav#mainNav a:focus,
nav#mainNav a.active {
  color: var(--cyan) !important;
  border-color: var(--bg-border);
  background: var(--bg-card);
  outline: none;
}

/* ---- Mobile toggle ---- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.2s;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99;
}
.mobile-menu-overlay.active { display: block; }

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  nav#mainNav {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--bg-border);
    flex-direction: column;
    gap: 0;
    padding: 60px 0 20px;
    z-index: 105;
    overflow-y: auto;
  }
  nav#mainNav.active { display: flex; }
  nav#mainNav a {
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--bg-border) !important;
    border-radius: 0 !important;
  }
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  padding: 8px 0;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 1px;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after { content: '▶'; color: var(--text-muted); font-size: 6px; }
.breadcrumb-list a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--cyan); }
.breadcrumb-list .current { color: var(--cyan); }

/* ---- Container variants ---- */
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Typography ---- */
.heading-xl {
  font-family: var(--font-pixel) !important;
  font-size: clamp(16px, 2.5vw, 28px);
  color: var(--text-primary);
  letter-spacing: 3px;
  line-height: 1.6;
  text-shadow: 0 0 30px rgba(0,229,255,0.2);
}
.heading-lg {
  font-family: var(--font-pixel) !important;
  font-size: clamp(13px, 2vw, 20px);
  color: var(--text-primary);
  letter-spacing: 3px;
  line-height: 1.6;
}
.heading-md {
  font-family: var(--font-pixel) !important;
  font-size: clamp(11px, 1.5vw, 15px);
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.6;
}
.heading-sm {
  font-family: var(--font-pixel) !important;
  font-size: 10px;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.6;
}
.section-title {
  font-family: var(--font-pixel) !important;
  font-size: clamp(13px, 2vw, 20px);
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: 3px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 32px;
}

/* ---- Section variants ---- */
.section-accent  { background: var(--bg-surface); padding: 56px 0; }
.section-dark    { background: var(--bg-base); padding: 40px 0; }
.section-cta     { background: var(--bg-surface); padding: 56px 0; }
.section-compact { padding: 24px 0; }
.section-gradient {
  background: linear-gradient(135deg, #020408 0%, #060c18 50%, #020408 100%);
  padding: 56px 0;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--bg-border);
  margin: 0;
}
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 28px !important; }
.text-center { text-align: center; }

/* ---- Grid ---- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-gap-1 { gap: 12px; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  contain: layout style;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan-dim);
  box-shadow: var(--shadow-card), var(--shadow-cyan);
}
.card-glow {
  border-color: var(--cyan-dim) !important;
  box-shadow: var(--shadow-cyan) !important;
}
.card-sm { padding: 16px; }
.card a { color: var(--cyan); text-decoration: none; }
.card a:hover { color: #fff; }

/* ---- Feature icons ---- */
.feature-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-border);
  font-size: 22px;
  color: var(--cyan);
}
.feature-icon-sky    { color: var(--cyan);   border-color: var(--cyan-dim);   background: rgba(0,229,255,0.06); }
.feature-icon-blue   { color: #4fa8ff;       border-color: #1a3a6a;           background: rgba(79,168,255,0.06); }
.feature-icon-indigo { color: var(--purple); border-color: var(--purple-dim); background: rgba(176,64,255,0.06); }
.feature-icon-violet { color: var(--purple); border-color: var(--purple-dim); background: rgba(176,64,255,0.06); }
.feature-icon-success { color: var(--green); border-color: var(--green-dim);  background: rgba(0,255,136,0.06); }
.feature-icon-cyan   { color: var(--cyan);   border-color: var(--cyan-dim);   background: rgba(0,229,255,0.06); }

/* ---- Badges ---- */
.badge {
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 4px 8px;
  letter-spacing: 1px;
  border: 1px solid var(--bg-border);
  background: var(--bg-card);
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge-cyan    { color: var(--cyan);   border-color: var(--cyan-dim);   background: rgba(0,229,255,0.08); }
.badge-sky     { color: var(--cyan);   border-color: var(--cyan-dim);   background: rgba(0,229,255,0.08); }
.badge-blue    { color: #4fa8ff;       border-color: #1a3a6a;           background: rgba(79,168,255,0.08); }
.badge-indigo  { color: var(--purple); border-color: var(--purple-dim); background: rgba(176,64,255,0.08); }
.badge-violet  { color: var(--purple); border-color: var(--purple-dim); background: rgba(176,64,255,0.08); }
.badge-success { color: var(--green);  border-color: var(--green-dim);  background: rgba(0,255,136,0.08); }
.badge-warning { color: var(--yellow); border-color: var(--yellow-dim); background: rgba(255,224,0,0.08); }
.badge-danger  { color: var(--red);    border-color: var(--red-dim);    background: rgba(255,48,96,0.08); }

/* ---- Buttons (subpage variants) ---- */
.btn-secondary {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  text-transform: uppercase;
  background: transparent;
  color: var(--purple);
  box-shadow: 0 0 0 2px var(--purple-dim);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--purple-glow);
  box-shadow: 0 0 0 2px var(--purple), 0 0 20px rgba(176,64,255,0.2);
  color: #fff;
}
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Font Awesome icon spacing inside buttons */
.btn i, .btn-primary i, .btn-secondary i { margin-right: 4px; }

/* ---- Alerts ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0,229,255,0.05);
  border: 1px solid var(--cyan-dim);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.alert-icon { color: var(--cyan); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.alert-warning { background: rgba(255,224,0,0.05); border-color: var(--yellow-dim); }
.alert-warning .alert-icon { color: var(--yellow); }
.alert-danger  { background: rgba(255,48,96,0.05);  border-color: var(--red-dim); }

/* ---- Status dot ---- */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  animation: blink 1.5s steps(1) infinite;
}
.status-online  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.status-warning { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.status-offline { background: var(--red);    box-shadow: 0 0 6px var(--red); animation: none; opacity: 0.6; }

/* ---- Code block ---- */
.code-block {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  padding: 12px 16px;
  color: var(--green);
  word-break: break-all;
  line-height: 1.6;
}

/* ---- Toast notification ---- */
.toast-notification {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast-notification.show, .toast-notification.visible {
  opacity: 1; transform: translateY(0);
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 50;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, box-shadow var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-to-top:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: var(--shadow-cyan);
}

/* ---- Subpage footer ---- */
footer {
  background: var(--bg-surface) !important;
  border-top: 1px solid var(--bg-border);
  padding: 48px 0 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bg-border);
}
.footer-logo img { height: 24px; width: auto; filter: drop-shadow(0 0 8px rgba(0,229,255,0.4)); }
.footer-tagline {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-top: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  align-content: flex-start;
}
.footer-links a {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 9px;
  border: 1px solid transparent;
  letter-spacing: 1px;
  transition: all var(--transition);
}
.footer-links a:hover {
  color: var(--cyan);
  border-color: var(--bg-border);
  background: var(--bg-card);
}
.footer-bottom {
  padding: 14px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 11px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { gap: 4px; }
}

/* ---- Text utilities ---- */
.text-mono   { font-family: var(--font-mono); }
.text-accent { color: var(--cyan); }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 11px; }
.fw-700      { font-weight: 700; }

/* ---- Section-accent anchored main sections ---- */
main > section { position: relative; z-index: 5; }

/* ---- Subpage timeline cards ---- */
.card[style*="border-left"] {
  border-left-width: 3px !important;
}
.card[style*="border-left: 4px solid var(--accent-sky)"]    { border-left-color: var(--cyan) !important; }
.card[style*="border-left: 4px solid var(--accent-blue)"]   { border-left-color: #4fa8ff !important; }
.card[style*="border-left: 4px solid var(--accent-indigo)"] { border-left-color: var(--purple) !important; }
.card[style*="border-left: 4px solid var(--accent-violet)"] { border-left-color: var(--purple) !important; }
.card[style*="border-left: 4px solid var(--success)"]       { border-left-color: var(--green) !important; }

/* ---- FAQ subpage accordion ---- */
.faq-category-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 2px;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 8px;
}
details summary {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid var(--bg-border);
  transition: color var(--transition);
}
details summary::-webkit-details-marker { display: none; }
details summary:hover { color: var(--cyan); }
details[open] summary { color: var(--cyan); }
details > :not(summary) {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}
details > p { color: var(--text-secondary); }

/* ---- News page ---- */
.news-card { transition: border-color var(--transition), box-shadow var(--transition); }
.news-card:hover { border-color: var(--cyan-dim); box-shadow: var(--shadow-cyan); }

/* ---- Overide accent colors from old theme to match new palette ---- */
:root {
  --accent-cyan:   #00e5ff;
  --accent-sky:    #00e5ff;
  --accent-blue:   #4fa8ff;
  --accent-indigo: #b040ff;
  --accent-violet: #b040ff;
  --success:       #00ff88;
  --warning:       #ffe000;
  --danger:        #ff3060;
  --font-heading:  'Press Start 2P', monospace;
  --font-mono:     'Share Tech Mono', monospace;
  --border-subtle: rgba(0, 229, 255, 0.06);
  --border-default:rgba(0, 229, 255, 0.12);
  --border-strong: rgba(0, 229, 255, 0.28);
}

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-article { margin-bottom: 1.5rem; }
.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.news-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.news-title {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.news-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}
.news-body a { color: var(--cyan); }
.news-body p { margin-bottom: 0.75rem; }
.month-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 0.5rem 0.85rem;
  margin: 2rem 0 1rem;
  background: rgba(0,229,255,0.07);
  border: 1px solid var(--bg-border);
  color: var(--cyan);
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-15 { gap: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   ACCESS GUIDE — prerequisites scroll
   ============================================================ */
.prereq-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-border) transparent;
}
.prereq-scroll::-webkit-scrollbar { height: 4px; }
.prereq-scroll::-webkit-scrollbar-track { background: transparent; }
.prereq-scroll::-webkit-scrollbar-thumb { background: var(--bg-border); }
.prereq-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 1.25rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.prereq-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.15);
}
.prereq-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--cyan);
  margin: 0.75rem 0 0.5rem;
  letter-spacing: 0.05em;
}
.prereq-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
}
.prereq-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto;
}
.prereq-icon.sky    { background: rgba(0,229,255,0.12); color: var(--cyan); }
.prereq-icon.blue   { background: rgba(79,168,255,0.12); color: #4fa8ff; }
.prereq-icon.indigo { background: rgba(176,64,255,0.12); color: var(--purple); }
.prereq-icon.violet { background: rgba(176,64,255,0.15); color: var(--purple); }

/* ============================================================
   ACCESS GUIDE — vertical step path
   ============================================================ */
.section-gradient { background: transparent; }
.vertical-path {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}
.path-line {
  position: absolute;
  left: 2.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
  opacity: 0.3;
}
.path-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}
.path-step-left {
  flex-shrink: 0;
  width: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.25rem;
}
.step-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.path-step-content { flex: 1; min-width: 0; }

/* ============================================================
   ACCESS GUIDE — shopper safety checklist
   ============================================================ */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  margin-bottom: 0.75rem;
  transition: border-color var(--transition);
}
.checklist-item:hover { border-color: var(--cyan); }
.checklist-item .check-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,255,136,0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.checklist-item h3, .checklist-item h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}
.checklist-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   ACCESS GUIDE — comparison table
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  overflow: hidden;
}
.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-border);
  font-size: 0.85rem;
}
.comparison-table th {
  background: rgba(0,229,255,0.06);
  color: var(--cyan);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td { color: var(--text-secondary); line-height: 1.7; }
.comparison-table .col-quick { width: 50%; }
.comparison-table .col-advanced { width: 50%; border-left: 1px solid var(--bg-border); }
@media (max-width: 640px) {
  .comparison-table th,
  .comparison-table td { display: block; width: 100%; border-left: none; }
  .comparison-table .col-advanced { border-left: none; border-top: 1px solid var(--bg-border); }
  .comparison-table tr { display: block; }
  .path-step { flex-direction: column; align-items: flex-start; }
  .path-line { left: 1.25rem; }
  .prereq-card { width: 170px; }
}

/* ============================================================
   LINKS PAGE — terminal / status dots
   ============================================================ */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.status-dot.status-online  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.status-offline { background: var(--red); box-shadow: 0 0 6px var(--red); }
.status-dot.status-warn    { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.terminal-line { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.cursor-blink {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   SUBPAGE BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--bg-border);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb-list li + li::before {
  content: '>';
  color: var(--bg-border);
  margin-right: 0.5rem;
}
.breadcrumb-list a { color: var(--cyan); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list .current { color: var(--text-muted); }
