/* ============================================
   GRIDLOCK — Hackerman Theme
   Matrix green, terminal UI, competitive mining
   ============================================ */

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

:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --bg-card: #0c0c0c;
  --bg-card-hover: #111111;
  --border: #1a1a1a;
  --border-light: #252525;

  --green: #00FF41;
  --green-mid: #00CC33;
  --green-dim: #008F11;
  --green-dark: #003B00;
  --green-glow: rgba(0, 255, 65, 0.15);
  --green-glow-strong: rgba(0, 255, 65, 0.3);

  --cyan: #00E5FF;
  --red: #FF1744;
  --yellow: #FFD600;

  --text: #C0C0C0;
  --text-bright: #E0E0E0;
  --text-dim: #666;
  --text-dark: #444;

  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-display: 'Space Mono', 'JetBrains Mono', monospace;
  --font-retro: 'VT323', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Matrix Rain Canvas --- */
#matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}

/* --- Scanlines --- */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* --- Boot Screen --- */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-text {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--green);
  max-width: 600px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.boot-cursor {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--green);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  height: clamp(56px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-bracket {
  color: var(--green);
}

.logo-text {
  color: var(--text-bright);
  padding: 0 4px;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 2.2vw, 40px);
}

.nav-links a {
  font-size: clamp(12px, 1vw, 15px);
  color: var(--text-dim);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  padding: clamp(6px, 0.6vw, 10px) clamp(16px, 1.5vw, 24px);
  border: 1px solid var(--green-dim);
  color: var(--green);
  border-radius: 2px;
  transition: all 0.2s;
  font-family: var(--font-mono);
}

.nav-cta:hover {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 20px var(--green-glow);
}

/* --- Mobile Menu Toggle (hamburger) --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 301;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 199;
}

.mobile-menu-overlay.visible {
  display: block;
}

/* --- Mobile Menu Drawer --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  padding-top: 80px;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.mobile-menu-link {
  display: block;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.mobile-menu-link:hover {
  color: var(--green);
  background: rgba(0, 255, 65, 0.03);
  border-left-color: var(--green-dark);
}

.mobile-menu-cta {
  display: block;
  margin: 24px 32px 0;
  padding: 12px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  border: 1px solid var(--green-dim);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu-cta:hover {
  background: var(--green);
  color: var(--bg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
  gap: clamp(40px, 5vw, 100px);
}

.hero-content {
  flex: 1;
  max-width: clamp(480px, 40vw, 640px);
}

/* Terminal Window */
.terminal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--border);
  border-bottom: 1px solid var(--border-light);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #28CA41; }

.terminal-title {
  font-size: clamp(10px, 0.8vw, 13px);
  color: var(--text-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: clamp(12px, 1.5vw, 24px);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.8;
}

.terminal-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.prompt {
  color: var(--green);
  font-weight: 700;
}

.cmd {
  color: var(--text-bright);
}

.output {
  color: var(--green-dim);
  font-size: clamp(11px, 0.85vw, 14px);
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: clamp(16px, 1.5vw, 28px);
  color: var(--text-bright);
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}

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

.glitch::before {
  color: var(--cyan);
  z-index: -1;
  animation: glitch-1 3s infinite linear alternate-reverse;
}

.glitch::after {
  color: var(--red);
  z-index: -2;
  animation: glitch-2 3s infinite linear alternate-reverse;
}

.glitch:hover::before,
.glitch:hover::after {
  opacity: 0.8;
}

@keyframes glitch-1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 0.7; }
  94% { transform: translate(3px, -1px); opacity: 0; }
  96% { transform: translate(-2px, -1px); opacity: 0.7; }
  98% { transform: translate(2px, 1px); opacity: 0; }
}

@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  91% { transform: translate(3px, -1px); opacity: 0.7; }
  93% { transform: translate(-3px, 1px); opacity: 0; }
  95% { transform: translate(2px, 1px); opacity: 0.7; }
  97% { transform: translate(-2px, -1px); opacity: 0; }
}

.hero-sub {
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--text-dim);
  margin-bottom: clamp(24px, 2.5vw, 40px);
  line-height: 1.8;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.7vw, 12px);
  padding: clamp(12px, 1vw, 18px) clamp(24px, 2vw, 36px);
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 30px var(--green-glow-strong), 0 0 60px var(--green-glow);
}

.btn-prefix {
  opacity: 0.6;
}

.btn-large {
  padding: clamp(16px, 1.3vw, 22px) clamp(32px, 3vw, 52px);
  font-size: clamp(15px, 1.2vw, 19px);
}

/* --- Hero Visual (Grid) --- */
.hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.grid-wrapper {
  position: relative;
}

.grid-5x5 {
  display: grid;
  grid-template-columns: repeat(5, clamp(48px, 4.5vw, 80px));
  grid-template-rows: repeat(5, clamp(48px, 4.5vw, 80px));
  gap: clamp(3px, 0.3vw, 6px);
  transform: perspective(800px) rotateX(12deg) rotateY(-8deg);
  transition: transform 0.5s;
}

.grid-5x5:hover {
  transform: perspective(800px) rotateX(6deg) rotateY(-4deg);
}

.grid-cell {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid var(--green-dark);
  border-radius: 2px;
  position: relative;
  cursor: crosshair;
  transition: all 0.3s;
}

.grid-cell::after {
  content: attr(data-coord);
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 8px;
  color: var(--green-dark);
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.2s;
}

.grid-cell:hover::after {
  opacity: 1;
}

.grid-cell:hover {
  background: var(--green-glow);
  border-color: var(--green-dim);
}

.grid-cell.active {
  background: var(--green-glow);
  border-color: var(--green-dim);
  box-shadow: inset 0 0 12px var(--green-glow);
  animation: cell-pulse 2s infinite;
}

.grid-cell.winner {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 20px var(--green-glow-strong), inset 0 0 20px rgba(0,0,0,0.3);
  animation: winner-pulse 1.2s infinite;
}

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

@keyframes winner-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--green-glow-strong); }
  50% { box-shadow: 0 0 40px var(--green-glow-strong), 0 0 60px var(--green-glow); }
}

.grid-readout {
  text-align: center;
  margin-top: clamp(8px, 0.8vw, 16px);
  font-size: clamp(11px, 0.85vw, 14px);
  display: flex;
  justify-content: center;
  gap: clamp(6px, 0.6vw, 12px);
}

.readout-label {
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.readout-value {
  color: var(--green);
  font-weight: 700;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: clamp(16px, 1.5vw, 32px);
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.3vw, 6px);
  padding: clamp(10px, 0.9vw, 16px) clamp(16px, 1.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-card);
}

.stat-label {
  font-size: clamp(9px, 0.7vw, 12px);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-value {
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-display);
}

/* --- Protocol Bar (Ticker) --- */
.protocol-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: clamp(10px, 0.9vw, 16px) 0;
}

.ticker-track {
  display: flex;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  gap: clamp(16px, 1.5vw, 32px);
  animation: ticker 20s linear infinite;
  white-space: nowrap;
  font-size: clamp(11px, 0.85vw, 14px);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.ticker-sep {
  color: var(--green-dark);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 8vw, 160px) clamp(20px, 4vw, 64px);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-tag {
  font-size: clamp(11px, 0.85vw, 14px);
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: clamp(10px, 0.8vw, 16px);
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  color: var(--text-bright);
}

.section-desc {
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--text-dim);
  margin-bottom: clamp(48px, 4vw, 80px);
  max-width: clamp(420px, 35vw, 600px);
}

.mono-num {
  color: var(--green);
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.2vw, 24px);
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(24px, 2.2vw, 40px);
  transition: border-color 0.3s;
}

.step:hover {
  border-color: var(--green-dark);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  font-size: clamp(12px, 0.9vw, 15px);
  color: var(--green);
  font-weight: 700;
}

.step-header h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.05em;
}

.step p {
  font-size: clamp(13px, 1vw, 16px);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: clamp(16px, 1.4vw, 24px);
}

.step-terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(10px, 0.9vw, 16px) clamp(12px, 1.1vw, 20px);
}

.step-terminal code {
  font-size: clamp(11px, 0.85vw, 14px);
  color: var(--green-dim);
  font-family: var(--font-mono);
  line-height: 1.8;
}

/* --- Mechanics Grid --- */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.2vw, 24px);
}

.mech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(24px, 2.2vw, 40px);
  transition: border-color 0.3s;
}

.mech-card:hover {
  border-color: var(--green-dark);
}

.mech-card-wide {
  grid-column: span 2;
}

.mech-header {
  margin-bottom: 16px;
}

.mech-tag {
  font-size: clamp(10px, 0.8vw, 13px);
  color: var(--green);
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: clamp(3px, 0.3vw, 6px) clamp(8px, 0.7vw, 14px);
  border: 1px solid var(--green-dark);
  border-radius: 2px;
  display: inline-block;
}

.mech-card p {
  font-size: clamp(13px, 1vw, 16px);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: clamp(16px, 1.6vw, 28px);
  max-width: 600px;
}

/* Fee Visual */
.fee-visual {
  margin-top: 8px;
}

.fee-bar {
  display: flex;
  height: 6px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg);
  gap: 2px;
}

.fee-segment {
  border-radius: 1px;
}

.fee-protocol { background: var(--red); }
.fee-winners { background: var(--green); }
.fee-burn { background: var(--green-dim); }

.fee-labels {
  display: flex;
  gap: clamp(16px, 1.5vw, 32px);
  margin-top: clamp(8px, 0.8vw, 16px);
  font-size: clamp(10px, 0.8vw, 13px);
  color: var(--text-dark);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-red { background: var(--red); }
.dot-green { background: var(--green); }
.dot-cyan { background: var(--green-dim); }
.dot-dim { background: var(--text-dark); }
.dot-dark { background: var(--border-light); }

/* Burn Flow */
.burn-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-node {
  padding: clamp(4px, 0.4vw, 8px) clamp(10px, 1vw, 18px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 600;
  color: var(--text-dim);
}

.flow-arrow {
  color: var(--green-dark);
  font-size: clamp(12px, 1vw, 16px);
}

.flow-burn {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
  text-shadow: 0 0 8px var(--green-glow);
}

/* Staking */
.staking-indicator {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.7vw, 14px);
  font-size: clamp(12px, 0.9vw, 15px);
  color: var(--green);
  padding: clamp(8px, 0.7vw, 14px) clamp(12px, 1.1vw, 20px);
  background: var(--green-glow);
  border: 1px solid var(--green-dark);
  border-radius: 2px;
  width: fit-content;
}

.staking-pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow-strong); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px transparent; }
}

/* Jackpot */
.jackpot-display {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.jackpot-odds {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.jackpot-label {
  font-size: clamp(12px, 0.9vw, 15px);
  color: var(--text-dark);
}

/* Reward Modes */
.mode-split {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mode {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-pct {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  color: var(--text-bright);
}

.mode-label {
  font-size: clamp(10px, 0.8vw, 13px);
  color: var(--text-dark);
  letter-spacing: 0.08em;
}

.mode-divider {
  color: var(--green-dark);
  font-size: clamp(28px, 2.2vw, 40px);
  font-weight: 300;
}

/* --- Tokenomics --- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.2vw, 24px);
  margin-bottom: clamp(32px, 2.8vw, 48px);
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(24px, 2.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.1vw, 20px);
  transition: border-color 0.3s;
}

.token-card:hover {
  border-color: var(--green-dark);
}

.token-pct {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.3vw, 60px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  text-shadow: 0 0 30px var(--green-glow);
}

.token-info h3 {
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.token-info p {
  font-size: clamp(13px, 1vw, 16px);
  color: var(--text-dim);
}

.token-note {
  font-size: clamp(11px, 0.85vw, 14px);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Allocation Bar */
.alloc-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-card);
  gap: 2px;
}

.alloc-fill { border-radius: 1px; }
.alloc-mining { background: var(--green); }
.alloc-team { background: var(--text-dark); }
.alloc-lp { background: var(--border-light); }

.alloc-labels {
  display: flex;
  gap: clamp(16px, 1.5vw, 32px);
  margin-top: clamp(8px, 0.8vw, 16px);
  font-size: clamp(10px, 0.8vw, 13px);
  color: var(--text-dark);
}

/* --- FAQ --- */
.faq-layout {
  display: flex;
  gap: clamp(48px, 5vw, 100px);
}

.faq-left {
  flex-shrink: 0;
  width: clamp(240px, 20vw, 320px);
}

.faq-left .section-title {
  margin-bottom: 0;
}

.faq-right {
  flex: 1;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 1.4vw, 24px) 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 500;
  font-family: var(--font-mono);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--green);
}

.faq-toggle {
  font-size: 18px;
  font-weight: 300;
  color: var(--green-dark);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: clamp(12px, 0.9vw, 15px);
  color: var(--text-dim);
  line-height: 1.8;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 8vw, 160px) clamp(20px, 4vw, 64px);
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-terminal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cta-prompt {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--green);
  font-weight: 700;
  font-family: var(--font-display);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-bright);
}

.cta-section p {
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--text-dim);
  margin-bottom: clamp(32px, 2.8vw, 52px);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 3vw, 56px) clamp(20px, 4vw, 64px) clamp(20px, 1.8vw, 32px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-tagline {
  font-size: clamp(12px, 0.9vw, 15px);
  color: var(--text-dark);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: clamp(20px, 2vw, 36px);
}

.footer-links a {
  font-size: clamp(12px, 0.9vw, 15px);
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  max-width: 1400px;
  margin: clamp(20px, 1.8vw, 36px) auto 0;
  padding-top: clamp(16px, 1.4vw, 24px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: clamp(11px, 0.85vw, 14px);
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Large screens — scale up */
@media (min-width: 1600px) {
  .section-inner,
  .nav-inner,
  .footer-inner,
  .footer-bottom {
    max-width: 1600px;
  }

  .hero {
    max-width: 1600px;
  }

  body {
    font-size: 17px;
  }

  .grid-5x5 {
    grid-template-columns: repeat(5, 88px);
    grid-template-rows: repeat(5, 88px);
    gap: 6px;
  }
}

@media (min-width: 2000px) {
  .section-inner,
  .nav-inner,
  .footer-inner,
  .footer-bottom {
    max-width: 1800px;
  }

  .hero {
    max-width: 1800px;
  }

  .grid-5x5 {
    grid-template-columns: repeat(5, 100px);
    grid-template-rows: repeat(5, 100px);
    gap: 8px;
  }
}

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 600px;
  }

  .terminal-window {
    text-align: left;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .mechanics-grid {
    grid-template-columns: 1fr;
  }

  .mech-card-wide {
    grid-column: span 1;
  }

  .faq-layout {
    flex-direction: column;
    gap: 40px;
  }

  .faq-left {
    width: 100%;
  }
}

/* Mobile landscape & small tablets */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .grid-5x5 {
    grid-template-columns: repeat(5, 48px);
    grid-template-rows: repeat(5, 48px);
    gap: 3px;
  }

  .hero-stats {
    gap: 6px;
  }

  .stat-block {
    padding: 8px 10px;
  }

  .stat-label {
    font-size: 8px;
  }

  .stat-value {
    font-size: 12px;
  }

  .token-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

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

  .cta-terminal {
    flex-direction: column;
    gap: 8px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .grid-5x5 {
    grid-template-columns: repeat(5, 40px);
    grid-template-rows: repeat(5, 40px);
  }
}
