/* ============================================================
   AlphaQuant dashboard — pixel-arcade hero + neon terminal UI
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-panel: #0b0f1d;
  --bg-panel-2: #101527;
  --line: #1e2742;
  --text: #e8ecf8;
  --dim: #8b94b3;
  --green: #3dff9e;
  --green-dim: #123f2c;
  --red: #ff5d73;
  --cyan: #4dc9ff;
  --amber: #ffc857;
  --magenta: #ff4d8d;
  --font-pixel: "Press Start 2P", monospace;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

::selection { background: var(--green); color: var(--bg); }

/* ============ HERO ============ */

#hero {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.9s ease;
}

#hero.leaving {
  transform: translateY(-100%);
  opacity: 0.4;
  pointer-events: none;
}

#pixel-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.22) 3px,
      rgba(0, 0, 0, 0.22) 4px
    );
  mix-blend-mode: multiply;
}

.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.boot-log {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  text-shadow: 0 0 8px rgba(61, 255, 158, 0.7);
  min-height: 5.5em;
  margin-bottom: 2rem;
  text-align: left;
  white-space: pre-wrap;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.6rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow:
    0 0 12px rgba(61, 255, 158, 0.9),
    4px 4px 0 #0a5c36,
    8px 8px 0 rgba(0, 0, 0, 0.45);
  animation: title-flicker 4s infinite;
}

@keyframes title-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.6; }
  94% { opacity: 1; }
  96% { opacity: 0.75; }
  97% { opacity: 1; }
}

.hero-sub {
  font-family: var(--font-pixel);
  font-size: clamp(0.55rem, 1.6vw, 0.85rem);
  color: var(--cyan);
  margin-top: 1.4rem;
  letter-spacing: 0.3em;
  text-shadow: 0 0 10px rgba(77, 201, 255, 0.8);
}

.press-start {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--green);
  background: rgba(5, 7, 15, 0.6);
  padding: 0.9em 1.3em;
  border: 2px solid rgba(61, 255, 158, 0.35);
  margin-top: 3.5rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(61, 255, 158, 0.9);
  animation: blink 1.1s steps(2, start) infinite;
}

.press-start:hover { color: #fff; }
.press-start:focus-visible { outline: 2px dashed var(--green); outline-offset: 6px; }

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

.ticker-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  border-top: 2px solid var(--line);
  background: rgba(5, 7, 15, 0.85);
  padding: 0.55rem 0;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  animation: marquee 30s linear infinite;
}

.ticker-track .up { color: var(--green); }
.ticker-track .down { color: var(--red); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ DASHBOARD SHELL ============ */

#dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
  animation: dash-in 0.8s ease 0.15s both;
}

@keyframes dash-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

#logo-sprite {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.mode-pill {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--amber);
  border: 2px solid var(--amber);
  padding: 0.35em 0.7em;
  letter-spacing: 0.1em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--dim);
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.live-dot.stale {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: none;
}

@keyframes pulse { 50% { opacity: 0.35; } }

/* ============ STAT CARDS ============ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.stat-card {
  --accent: var(--green);
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 1rem 1rem 0.85rem;
  position: relative;
  clip-path: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0,
                     100% 0, 100% calc(100% - 6px),
                     calc(100% - 3px) calc(100% - 6px),
                     calc(100% - 3px) calc(100% - 3px),
                     calc(100% - 6px) calc(100% - 3px),
                     calc(100% - 6px) 100%, 0 100%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card[data-accent="red"]   { --accent: var(--red); }
.stat-card[data-accent="cyan"]  { --accent: var(--cyan); }
.stat-card[data-accent="amber"] { --accent: var(--amber); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px color-mix(in srgb, var(--accent) 25%, transparent);
}

.stat-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--dim);
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
}

.stat-foot {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
  margin-top: 0.5rem;
  min-height: 1em;
}

/* ============ PANELS ============ */

.panel {
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  padding: 1.2rem 1.3rem 1.4rem;
  margin-bottom: 1.6rem;
  clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
                     100% 0, 100% calc(100% - 8px),
                     calc(100% - 4px) calc(100% - 8px),
                     calc(100% - 4px) calc(100% - 4px),
                     calc(100% - 8px) calc(100% - 4px),
                     calc(100% - 8px) 100%, 0 100%);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.panel-head h2 {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.pixel-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  image-rendering: pixelated;
  background-size: contain;
  background-repeat: no-repeat;
}

.count-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.1em 0.6em;
}

/* ============ CHART ============ */

.range-btns { display: flex; gap: 0.4rem; }

.range-btns button {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 0.55em 0.9em;
  background: transparent;
  color: var(--dim);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all 0.12s ease;
}

.range-btns button:hover { color: var(--text); border-color: var(--dim); }

.range-btns button.active {
  color: var(--bg);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(61, 255, 158, 0.5);
}

.chart-wrap { position: relative; height: 340px; }

#equity-chart { width: 100%; height: 100%; display: block; cursor: crosshair; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(5, 7, 15, 0.92);
  border: 1px solid var(--green);
  padding: 0.45rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(61, 255, 158, 0.25);
  z-index: 3;
}

.chart-tooltip .tt-date { color: var(--dim); }
.chart-tooltip .tt-val { color: var(--green); font-weight: 600; }
.chart-tooltip .tt-chg.up { color: var(--green); }
.chart-tooltip .tt-chg.down { color: var(--red); }

/* ============ CALCULATOR ============ */

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.calc-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--dim);
  letter-spacing: 0.12em;
  margin: 1.1rem 0 0.6rem;
}

.calc-label:first-child { margin-top: 0; }

.calc-input-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.currency { font-family: var(--font-mono); font-size: 1.3rem; color: var(--green); }

#calc-amount {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--green);
  padding: 0.35rem 0.6rem;
  width: 100%;
  max-width: 260px;
  outline: none;
}

#calc-amount:focus { border-color: var(--green); box-shadow: 0 0 14px rgba(61, 255, 158, 0.25); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 10px);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--green);
  border: none;
  box-shadow: 0 0 10px rgba(61, 255, 158, 0.8), inset -3px -3px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--green);
  border: none;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(61, 255, 158, 0.8);
  cursor: pointer;
}

.calc-date-readout {
  display: inline-block;
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  letter-spacing: 0;
}

.calc-hint {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}

.calc-result {
  text-align: center;
  position: relative;
  padding: 1.4rem 1rem;
  background: radial-gradient(ellipse at center, rgba(61, 255, 158, 0.07), transparent 70%);
}

.calc-result-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--dim);
  letter-spacing: 0.15em;
}

.calc-result-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--green);
  margin: 0.9rem 0 0.7rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(61, 255, 158, 0.5);
}

.calc-result-value.negative { color: var(--red); text-shadow: 0 0 24px rgba(255, 93, 115, 0.5); }

.calc-result-sub { display: flex; justify-content: center; gap: 0.7rem; }

.gain-badge, .mult-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.25em 0.7em;
  border: 1px solid var(--green);
  color: var(--green);
}

.gain-badge.negative { border-color: var(--red); color: var(--red); }

.mult-badge { border-color: var(--cyan); color: var(--cyan); }

.coin {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  animation: coin-bounce 1.6s ease-in-out infinite;
}

@keyframes coin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.game-coin {
  position: static;
  width: 44px;
  height: 44px;
}

/* ============ TWO-COLUMN ============ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.two-col .panel { margin-bottom: 0; }

/* Positions */

.positions-list { display: flex; flex-direction: column; gap: 0.8rem; }

.position-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--bg);
  padding: 0.75rem 0.9rem;
}

.position-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
}

.position-ticker { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.position-sector { font-size: 0.68rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

.position-bar {
  position: relative;
  height: 10px;
  margin: 0.65rem 0 0.45rem;
  background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 8px);
}

.position-bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--red), var(--amber) 45%, var(--green));
  transition: width 0.6s ease;
}

.position-bar .marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 6px #fff;
}

.position-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
}

.empty-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--dim);
  padding: 0.6rem 0;
}

/* Activity */

.activity-list { list-style: none; display: flex; flex-direction: column; }

.activity-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}

.activity-list li:last-child { border-bottom: none; }

.activity-list .a-dot {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--green);
  transform: translateY(-1px);
}

.activity-list .a-dot.closed { background: var(--red); }

.activity-list .a-time { flex: none; color: var(--dim); font-size: 0.68rem; width: 6.2em; }

/* ============ BRAIN ============ */

.status-chip {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  padding: 0.5em 0.9em;
  border: 2px solid var(--green);
  color: var(--green);
}

.status-chip.offline { border-color: var(--red); color: var(--red); }
.status-chip.degraded { border-color: var(--amber); color: var(--amber); }

.themes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.theme-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  background: rgba(77, 201, 255, 0.07);
  padding: 0.3em 0.7em;
}

.theme-tag.new { color: var(--green); border-color: color-mix(in srgb, var(--green) 55%, transparent); background: rgba(61, 255, 158, 0.07); }

.brain-rationale {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  max-width: 75ch;
}

.brain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.brain-sub {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--dim);
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}

.brain-cards { display: flex; flex-direction: column; gap: 0.7rem; }

.brain-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: var(--bg);
  padding: 0.7rem 0.9rem;
}

.brain-card.thesis { border-left-color: var(--magenta); }

.brain-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}

.brain-card-ticker { font-weight: 600; color: var(--text); }

.brain-card-meta { font-size: 0.65rem; color: var(--dim); text-align: right; }

.brain-card-body {
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.5;
}

.brain-card-trigger {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
}

.brain-card-trigger::before { content: "▸ trigger: "; color: var(--dim); }

.conf-bar {
  display: inline-block;
  width: 64px;
  height: 7px;
  background: var(--line);
  vertical-align: middle;
  margin-left: 0.5rem;
  position: relative;
}

.conf-bar .conf-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(255, 77, 141, 0.6);
}

/* ============ MINI GAME ============ */

.game-copy {
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  max-width: 70ch;
}

.game-stage {
  position: relative;
  height: 260px;
  background: var(--bg);
  border: 1px solid var(--line);
}

#game-canvas { width: 100%; height: 100%; display: block; }

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(5, 7, 15, 0.72);
  text-align: center;
  padding: 1rem;
}

.game-overlay[hidden] { display: none; }

.game-result {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  line-height: 1.6;
  max-width: 46ch;
}

.game-result .you { color: var(--cyan); }
.game-result .bot { color: var(--green); }
.game-result .you.neg,
.game-result .bot.neg { color: var(--red); }

.game-overlay-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

.game-cta {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  border: 2px solid var(--amber);
  padding: 0.9em 1.4em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.game-cta:hover { background: rgba(255, 200, 87, 0.12); }

.game-cta[hidden] { display: none; }

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.game-actions { display: flex; align-items: center; gap: 0.6rem; }

.game-btn {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.9em 1.5em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.1s ease;
}

.game-btn:disabled { opacity: 0.25; cursor: default; box-shadow: none; }

.game-btn.buy {
  color: var(--bg);
  background: var(--green);
  box-shadow: 0 4px 0 #0a5c36;
}

.game-btn.buy:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #0a5c36; }

.game-btn.sell {
  color: var(--bg);
  background: var(--red);
  box-shadow: 0 4px 0 #6e1f2b;
}

.game-btn.sell:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #6e1f2b; }

.game-pos-readout {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--dim);
  margin-left: 0.4rem;
}

.game-pos-readout b { color: var(--text); }
.game-pos-readout b.long { color: var(--green); }
.game-pos-readout b.flat { color: var(--dim); }

.game-score {
  display: flex;
  gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--dim);
}

.game-score b { color: var(--text); font-variant-numeric: tabular-nums; }
.game-score #game-you { color: var(--cyan); }
.game-score #game-bot { color: var(--green); }
.game-score #game-you.neg,
.game-score #game-bot.neg { color: var(--red); }

.game-hint {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  opacity: 0.7;
}

/* ============ SIGNUP ============ */

.signup-panel {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 255, 158, 0.08), transparent 60%),
    linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
}

.signup-inner { max-width: 560px; margin: 0 auto; padding: 0.6rem 0 0.8rem; }

.signup-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.9rem, 2.6vw, 1.3rem);
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(61, 255, 158, 0.6), 3px 3px 0 #0a5c36;
}

.signup-copy {
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 1.1rem auto 1.4rem;
}

.signup-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

#signup-email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--cyan);
  padding: 0.7rem 0.9rem;
  width: min(300px, 100%);
  outline: none;
}

#signup-email:focus { border-color: var(--cyan); box-shadow: 0 0 14px rgba(77, 201, 255, 0.25); }

.signup-btn {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--green);
  border: none;
  padding: 0.9em 1.4em;
  cursor: pointer;
  box-shadow: 0 4px 0 #0a5c36;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.signup-btn:hover { filter: brightness(1.1); }
.signup-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a5c36; }
.signup-btn:disabled { opacity: 0.5; cursor: default; }

.signup-msg {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: 0.9rem;
  min-height: 1.2em;
  color: var(--green);
}

.signup-msg.error { color: var(--red); }

/* honeypot — invisible to humans, bots fill it and get fake-successed */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.footer-contact {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  margin-top: 0.35rem;
  opacity: 0.55;
}

.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */

.dash-footer {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.6;
}

.footer-dim {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  margin-top: 0.6rem;
  opacity: 0.7;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 860px) {
  .calc-grid, .two-col, .brain-grid { grid-template-columns: 1fr; }
  .chart-wrap { height: 260px; }
  .stat-value { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .press-start, .hero-title, .coin, .live-dot, .ticker-track { animation: none; }
  #hero { transition: none; }
}
