/* FORGECHAIN OS — Matrix Phone Booth Theme */
/* Zero frameworks. Zero dependencies. The phone is ringing. */

:root {
  --bg: #000000;
  --bg-section: #020804;
  --bg-card: #0a120a;
  --text: #b0ffb0;
  --text-dim: #4a7a4a;
  --text-bright: #00ff41;
  --accent: #ff6b2b;
  --accent-glow: #ff6b2b66;
  --chain: #00ff41;
  --chain-glow: #00ff4133;
  --chain-bright: #00ff41;
  --border: #0a3a0a;
  --booth-gold: #c89b3c;
  --booth-glow: #c89b3c44;
  --font: 'Courier New', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

/* BSV BANNER */
#bsv-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--accent);
  color: #000;
  text-align: center;
  padding: 4px 24px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.bsv-banner-text {
  text-shadow: none;
}

.bsv-banner-address {
  font-weight: normal;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* NAV */
#nav {
  position: fixed;
  top: 26px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  color: var(--chain-bright);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: bold;
  text-shadow: 0 0 10px var(--chain-glow);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--chain-bright);
  text-shadow: 0 0 5px var(--chain-glow);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* SECTIONS */
section {
  padding: 80px 0;
  border-bottom: none;
  position: relative;
}

/* MATRIX DIVIDER between sections */
section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--chain-bright) 10%,
    transparent 20%,
    var(--chain-bright) 35%,
    transparent 40%,
    transparent 45%,
    var(--chain-bright) 55%,
    transparent 60%,
    var(--chain-bright) 75%,
    transparent 80%,
    var(--chain-bright) 90%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: matrix-border-flow 4s linear infinite;
  box-shadow: 0 0 8px var(--chain-glow), 0 0 20px rgba(0, 255, 65, 0.1);
}

@keyframes matrix-border-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Matrix scan line on section borders */
section:not(#hero)::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--chain-bright);
  box-shadow: 0 0 15px var(--chain-bright), 0 0 30px var(--chain-glow);
  animation: matrix-scan 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes matrix-scan {
  0% { left: -60px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

section:nth-child(even) {
  background: var(--bg-section);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: 0.3em;
  color: var(--chain-bright);
  text-shadow: 0 0 20px var(--chain-glow), 0 0 60px var(--chain-glow), 0 0 100px #00ff4111;
  margin-bottom: 16px;
  animation: flicker 4s infinite;
}

@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
  98% { opacity: 0.6; }
  99% { opacity: 1; }
}

h2 {
  font-size: 1.8rem;
  color: var(--chain-bright);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--chain-glow);
}

h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

p { margin-bottom: 16px; }

a { color: var(--chain-bright); }

code {
  color: var(--chain-bright);
  background: #000a00;
  padding: 2px 6px;
  font-size: 0.85em;
  text-shadow: 0 0 5px var(--chain-glow);
}

/* PHONE BOOTH */
.phone-booth {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.booth-frame {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: url('img/phone-booth.jpg') center center / cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(204, 0, 0, 0.3), 0 0 80px rgba(0, 255, 65, 0.1);
}

.booth-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 0, 0.52);
  z-index: 1;
}

.booth-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--chain-bright);
  border-radius: 12px;
  box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.08);
  z-index: 2;
  pointer-events: none;
}

.booth-light {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--chain-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--chain-bright), 0 0 30px var(--chain-bright), 0 0 60px var(--chain-glow);
  animation: pulse-light 2s ease-in-out infinite;
  z-index: 3;
}

@keyframes pulse-light {
  0%, 100% { box-shadow: 0 0 10px var(--chain-bright), 0 0 30px var(--chain-bright), 0 0 60px var(--chain-glow); }
  50% { box-shadow: 0 0 20px var(--chain-bright), 0 0 50px var(--chain-bright), 0 0 100px var(--chain-glow); }
}

.booth-screen {
  position: relative;
  z-index: 3;
  padding: 60px 40px 40px;
  text-align: center;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 2px solid var(--booth-gold);
  padding-top: 80px;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 500px;
  margin: 0 auto 16px;
}

.sub {
  color: var(--chain-bright);
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px var(--chain-bright), 0 0 30px var(--chain-glow);
  margin-bottom: 32px;
  animation: pulse-text 3s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* MATRIX CLIP */
.matrix-clip {
  margin: 32px auto;
  max-width: 560px;
  border: 1px solid var(--booth-gold);
  box-shadow: 0 0 30px var(--chain-glow), 0 0 60px rgba(0, 255, 65, 0.1);
  position: relative;
}

.matrix-clip iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
}

.bsv-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: bold;
  text-shadow: 0 0 10px var(--accent-glow);
  box-shadow: 0 0 20px var(--accent-glow);
  animation: badge-pulse 3s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(255, 107, 43, 0.2); }
}

.hero-bottom {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 24px;
}

/* BUTTONS */
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  position: relative;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  font-weight: bold;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--chain-bright);
  border: 1px solid var(--chain-bright);
}

.btn-secondary:hover {
  background: var(--chain-bright);
  color: #000;
  box-shadow: 0 0 20px var(--chain-glow), 0 0 40px var(--chain-glow);
}

/* WHAT GRID */
.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.what-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.what-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chain-bright), transparent);
  animation: card-matrix-top 5s linear infinite;
}

@keyframes card-matrix-top {
  0% { left: -50%; }
  100% { left: 150%; }
}

.what-item:hover {
  border-color: var(--chain-bright);
  box-shadow: 0 0 15px var(--chain-glow), inset 0 0 15px rgba(0, 255, 65, 0.03);
}

.what-item h3 { color: var(--chain-bright); }

/* COST COMPARISON TABLE */
.cost-compare {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.1);
}

.cost-compare h3 {
  color: var(--chain-bright);
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}

td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:hover td {
  background: rgba(0, 255, 65, 0.03);
}

/* FEATURES LIST */
.features {
  list-style: none;
  margin-bottom: 24px;
}

.features li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text);
}

.features li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--chain-bright);
  font-weight: bold;
  text-shadow: 0 0 5px var(--chain-glow);
}

.kicker {
  color: var(--chain-bright);
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 0 10px var(--chain-glow);
}

/* STACK */
.stack-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.stack-layer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-left: 3px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stack-layer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 30%;
  background: var(--chain-bright);
  box-shadow: 0 0 8px var(--chain-bright);
  animation: stack-pulse-line 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes stack-pulse-line {
  0% { top: -30%; opacity: 0; }
  30% { opacity: 0.6; }
  70% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.stack-layer:hover {
  border-left-color: var(--chain-bright);
  background: #0a1f0a;
  box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.stack-layer.active {
  border-left-color: var(--accent);
  background: #1a0f05;
  box-shadow: inset 0 0 20px rgba(255, 107, 43, 0.05);
}

.layer-num {
  font-size: 1.5rem;
  color: var(--text-dim);
  min-width: 30px;
  padding-top: 2px;
}

.stack-layer.active .layer-num {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.stack-content { flex: 1; }
.stack-content h3 { margin-bottom: 4px; font-size: 1rem; }
.stack-content p { margin-bottom: 4px; color: var(--text-dim); font-size: 0.85rem; }

.stack-status {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  margin-top: 4px;
}

.stack-status.live {
  color: #000;
  background: var(--chain-bright);
  text-shadow: none;
}

.stack-status.dev {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.stack-status.planned {
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
}

.stack-revenue {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--chain-bright);
  box-shadow: 0 0 20px var(--chain-glow);
}

.stack-revenue h3 { color: var(--chain-bright); margin-bottom: 16px; }

/* PROOF */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.proof-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.proof-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chain-bright), transparent);
  animation: card-matrix-top 4s linear infinite;
}

.proof-item:hover {
  border-color: var(--chain-bright);
  box-shadow: 0 0 10px var(--chain-glow);
}

.proof-label { color: var(--text-dim); font-size: 0.85rem; }

.tx-hash {
  color: var(--chain-bright);
  text-decoration: none;
  font-size: 0.85rem;
  text-shadow: 0 0 5px var(--chain-glow);
}

.tx-hash:hover {
  text-decoration: underline;
  text-shadow: 0 0 15px var(--chain-glow);
}

.proof-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

/* SAGA */
.saga-premise {
  padding: 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--booth-gold);
  margin-bottom: 32px;
  box-shadow: 0 0 15px var(--booth-glow);
}

.saga-premise p { color: var(--text); }

.saga-cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.character {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.character::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--chain-bright), transparent);
  animation: card-matrix-left 4s linear infinite;
}

@keyframes card-matrix-left {
  0% { top: -50%; }
  100% { top: 150%; }
}

.character:hover {
  border-color: var(--chain-bright);
  box-shadow: 0 0 20px var(--chain-glow), inset 0 0 20px rgba(0, 255, 65, 0.03);
}

.char-glyph {
  font-size: 2rem;
  color: var(--chain-bright);
  text-shadow: 0 0 20px var(--chain-glow);
  margin-bottom: 8px;
  letter-spacing: 0.2em;
  font-weight: bold;
}

.archetype {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-style: italic;
}

.chain-ref {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* GNOSTIC MAPPING */
.saga-gnostic {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.saga-gnostic h3 {
  color: var(--chain-bright);
  margin-bottom: 16px;
}

.gnostic-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gnostic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.gnostic-symbol {
  color: var(--booth-gold);
  min-width: 120px;
  text-shadow: 0 0 5px var(--booth-glow);
}

.gnostic-equals {
  color: var(--text-dim);
}

.gnostic-real {
  color: var(--chain-bright);
  text-shadow: 0 0 5px var(--chain-glow);
}

.saga-seasons {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
}

.saga-rule {
  text-align: center;
  color: var(--accent);
  font-size: 0.9rem;
  text-shadow: 0 0 10px var(--accent-glow);
}

/* DESCI */
.desci-headline {
  font-size: 1.1rem;
  color: var(--chain-bright);
  padding: 16px;
  background: var(--bg-card);
  border-left: 3px solid var(--chain-bright);
  margin-bottom: 32px;
}

.desci-arch {
  margin: 24px 0;
  overflow-x: auto;
}

.desci-arch table {
  min-width: 600px;
}

/* ECOSYSTEM FULL */
.eco-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 16px;
}

.eco-item-full {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.eco-item-full::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -100%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chain-bright), transparent);
  animation: card-matrix-bottom 6s linear infinite;
}

@keyframes card-matrix-bottom {
  0% { right: -50%; }
  100% { right: 150%; }
}

.eco-item-full:hover {
  border-color: var(--chain-bright);
  box-shadow: 0 0 15px var(--chain-glow), inset 0 0 20px rgba(0, 255, 65, 0.03);
}

.eco-item-full h3 { margin-bottom: 4px; }

.eco-status {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--chain-bright);
}

.eco-item-full p:last-child { margin-bottom: 0; color: var(--text-dim); font-size: 0.9rem; }

/* FORGETUBE */
.video-placeholder {
  padding: 60px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  text-align: center;
}

.video-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 500px;
  margin: 16px auto 0;
}

/* GLITCH TEXT */
.glitch {
  color: var(--chain-bright);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  position: relative;
  animation: glitch-anim 3s infinite;
  margin-bottom: 0;
}

@keyframes glitch-anim {
  0%, 90%, 100% { transform: none; opacity: 1; }
  91% { transform: translateX(-2px) skewX(-1deg); opacity: 0.8; }
  92% { transform: translateX(2px); opacity: 1; }
  93% { transform: translateX(-1px) skewX(1deg); opacity: 0.9; }
  94% { transform: none; opacity: 1; }
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--accent);
  animation: glitch-before 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: #00ccff;
  animation: glitch-after 3s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-before {
  0%, 90%, 100% { transform: none; }
  91% { transform: translateX(-3px); }
  93% { transform: translateX(3px); }
  95% { transform: none; }
}

@keyframes glitch-after {
  0%, 90%, 100% { transform: none; }
  92% { transform: translateX(3px); }
  94% { transform: translateX(-3px); }
  95% { transform: none; }
}

/* BLOG */
.post {
  padding: 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.post::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 40%;
  background: var(--chain-bright);
  box-shadow: 0 0 8px var(--chain-bright);
  animation: stack-pulse-line 4s ease-in-out infinite;
  opacity: 0.5;
}

.post h3 { margin-bottom: 4px; }

.post time {
  color: var(--text-dim);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 12px;
}

/* CLAN TIERS */
.clan-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.clan-tier {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.clan-tier::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chain-bright), transparent);
  animation: card-matrix-bottom 5s linear infinite;
}

.clan-tier:hover {
  border-color: var(--chain-bright);
  box-shadow: 0 0 15px var(--chain-glow);
}

.clan-tier.featured {
  border-color: var(--booth-gold);
  box-shadow: 0 0 20px var(--booth-glow);
}

.clan-tier.featured h3 {
  color: var(--booth-gold);
}

.clan-tier h3 { margin-bottom: 8px; }
.clan-tier p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0; }

/* JOIN */
.join-links {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.join-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

/* FOOTER */
footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

footer code {
  color: var(--chain-bright);
  font-size: 0.8rem;
  text-shadow: 0 0 5px var(--chain-glow);
}

.footer-note {
  margin-top: 8px;
  font-style: italic;
  font-size: 0.75rem;
}

/* SCANLINE OVERLAY */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* STAGGER MATRIX ANIMATIONS across sections */
#what::after { animation-delay: 0s; }
#what::before { animation-delay: 0.5s; }
#stack::after { animation-delay: 1s; }
#stack::before { animation-delay: 1.5s; }
#proof::after { animation-delay: 0.5s; }
#proof::before { animation-delay: 2s; }
#saga::after { animation-delay: 1.5s; }
#saga::before { animation-delay: 0.3s; }
#desci::after { animation-delay: 2s; }
#desci::before { animation-delay: 1s; }
#ecosystem::after { animation-delay: 0.8s; }
#ecosystem::before { animation-delay: 2.5s; }
#forgetube::after { animation-delay: 1.2s; }
#forgetube::before { animation-delay: 0.7s; }
#blog::after { animation-delay: 1.8s; }
#blog::before { animation-delay: 1.3s; }
#join::after { animation-delay: 0.3s; }
#join::before { animation-delay: 2.2s; }

/* Stagger card animations within grids */
.what-item:nth-child(2)::after { animation-delay: 1.2s; }
.what-item:nth-child(3)::after { animation-delay: 2.4s; }
.what-item:nth-child(4)::after { animation-delay: 3.6s; }

.eco-item-full:nth-child(2)::after { animation-delay: 0.8s; }
.eco-item-full:nth-child(3)::after { animation-delay: 1.6s; }
.eco-item-full:nth-child(4)::after { animation-delay: 2.4s; }
.eco-item-full:nth-child(5)::after { animation-delay: 3.2s; }
.eco-item-full:nth-child(6)::after { animation-delay: 0.4s; }
.eco-item-full:nth-child(7)::after { animation-delay: 1.2s; }
.eco-item-full:nth-child(8)::after { animation-delay: 2.0s; }
.eco-item-full:nth-child(9)::after { animation-delay: 2.8s; }

.stack-layer:nth-child(2)::after { animation-delay: 0.4s; }
.stack-layer:nth-child(3)::after { animation-delay: 0.8s; }
.stack-layer:nth-child(4)::after { animation-delay: 1.2s; }
.stack-layer:nth-child(5)::after { animation-delay: 1.6s; }
.stack-layer:nth-child(6)::after { animation-delay: 2.0s; }
.stack-layer:nth-child(7)::after { animation-delay: 2.4s; }

.character:nth-child(2)::before { animation-delay: 1.3s; }
.character:nth-child(3)::before { animation-delay: 2.6s; }

.proof-item:nth-child(2)::after { animation-delay: 0.5s; }
.proof-item:nth-child(3)::after { animation-delay: 1.0s; }
.proof-item:nth-child(4)::after { animation-delay: 1.5s; }
.proof-item:nth-child(5)::after { animation-delay: 2.0s; }
.proof-item:nth-child(6)::after { animation-delay: 2.5s; }

.post:nth-child(2)::after { animation-delay: 1s; }
.post:nth-child(3)::after { animation-delay: 2s; }
.post:nth-child(4)::after { animation-delay: 3s; }
.post:nth-child(5)::after { animation-delay: 4s; }

.clan-tier:nth-child(2)::after { animation-delay: 1.2s; }
.clan-tier:nth-child(3)::after { animation-delay: 2.4s; }
.clan-tier:nth-child(4)::after { animation-delay: 3.6s; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--chain-bright); }

/* HAMBURGER TOGGLE (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--chain-bright);
  margin: 4px 0;
  transition: all 0.3s;
  box-shadow: 0 0 4px var(--chain-glow);
}

/* Animate to X when open */
#nav.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
#nav.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* RESPONSIVE — TABLET */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; letter-spacing: 0.2em; }
  h2 { font-size: 1.5rem; }
  section { padding: 60px 0; }
  .eco-grid-full { grid-template-columns: 1fr; }
  .booth-screen { padding: 50px 30px 35px; }

  /* Show hamburger, hide nav links by default */
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 16px;
    gap: 0;
    backdrop-filter: blur(12px);
  }

  /* Show nav links when open */
  #nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    display: block;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:active {
    color: var(--chain-bright);
    background: rgba(0, 255, 65, 0.05);
  }

  /* BSV banner: hide address on tablet */
  .bsv-banner-address { display: none; }

  /* Ensure tap targets are at least 44px */
  .btn { padding: 14px 28px; min-height: 44px; }
  .clan-tier { padding: 24px; }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 600px) {
  h1 { font-size: 2rem; letter-spacing: 0.15em; }
  h2 { font-size: 1.4rem; }
  section { padding: 48px 0; }
  .tagline { font-size: 1rem; }
  .booth-screen { padding: 40px 16px 30px; }
  .booth-frame::before { font-size: 0.7rem; }
  .saga-cast { grid-template-columns: 1fr; }
  .eco-grid-full { grid-template-columns: 1fr; }
  .clan-tiers { grid-template-columns: 1fr; }
  .char-glyph { font-size: 1.5rem; }
  .gnostic-symbol { min-width: 90px; font-size: 0.85rem; }
  .what-grid { grid-template-columns: 1fr; }
  .cost-compare { padding: 16px; overflow-x: auto; }
  .container { padding: 0 16px; }
  .stack-layer { padding: 12px 14px; gap: 10px; }
  .layer-num { font-size: 1.2rem; min-width: 24px; }
  .proof-item { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Phone booth tighter on small phones */
  .booth-frame { border-width: 1px; }
  .booth-frame::before { top: -22px; letter-spacing: 0.3em; }
  .booth-frame::after { height: 2px; }

  /* Hero padding for fixed header */
  #hero { padding-top: 70px; }

  /* Gnostic items stack */
  .gnostic-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
