:root {
  --bg: #030804;
  --bg2: #07120a;
  --panel: rgba(6, 14, 8, 0.88);
  --panel-border: rgba(57, 255, 20, 0.14);
  --neon: #39ff14;
  --neon-dim: #1faa0c;
  --neon-glow: rgba(57, 255, 20, 0.45);
  --green: #39ff14;
  --green-soft: #22c55e;
  --red: #ff3b3b;
  --text: #d8f5d0;
  --muted: #6b8f6a;
  --header-h: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.ticker-wrap {
  position: relative;
  background: linear-gradient(90deg, #030804, #0a160c, #030804);
  border-bottom: 1px solid rgba(57, 255, 20, 0.28);
  overflow: hidden;
  height: 36px;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  background: linear-gradient(90deg, #030804 65%, transparent);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-glow);
}

.ticker-label .dot,
.tape-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 1.3s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll-left 48s linear infinite;
  padding-left: 130px;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-reverse { animation-name: scroll-right; padding-left: 0; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.2rem;
  height: 36px;
  white-space: nowrap;
  font-size: 0.78rem;
  border-right: 1px solid rgba(57, 255, 20, 0.08);
  font-family: "JetBrains Mono", monospace;
}

.ticker-sym {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.06em;
}

.ticker-price { font-variant-numeric: tabular-nums; }

.ticker-change {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.ticker-change.up { color: var(--green-soft); }
.ticker-change.down { color: var(--red); }

.market-bar {
  background: #050a06;
  border-bottom: 1px solid var(--panel-border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
}

.market-bar-scroll {
  display: flex;
  gap: 1.5rem;
  padding: 0.35rem 1rem;
  overflow-x: auto;
}

.market-bar-item { white-space: nowrap; }

.mb-label { color: var(--muted); margin-right: 0.35rem; }

.mb-val { color: var(--text); font-variant-numeric: tabular-nums; }

.mb-val.up, .mb-val.green, .nyse-open, .feed-ok { color: var(--neon); }

.mb-val.down, .nyse-closed { color: var(--red); }

.feed-warn { color: #eab308; }

.page-offset {
  padding-top: var(--header-h);
  position: relative;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.25;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 50vh;
  background: radial-gradient(ellipse, rgba(57, 255, 20, 0.12), transparent 65%);
  z-index: 0;
}

nav,
section,
footer {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  border-radius: 6px;
  border: 1px solid var(--panel-border);
}

.nav-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.nav-title span { color: var(--neon); text-shadow: 0 0 16px var(--neon-glow); }

.nav-ca {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
}

.nav-ca:not(:disabled):hover { border-color: var(--neon); color: var(--neon); }

.nav-ca-val.awaiting { color: var(--muted); }

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--neon); }

.hero { padding: 2rem 0 3rem; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  letter-spacing: 0.04em;
}

.badge-live { color: var(--neon); border-color: rgba(57, 255, 20, 0.35); }

.badge-mm { color: #a3e635; }

.badge-sol { color: #94a3b8; }

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.dim-line {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 600;
}

.neon-text {
  color: var(--neon);
  text-shadow: 0 0 24px var(--neon-glow), 0 0 48px rgba(57, 255, 20, 0.2);
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.tagline strong { color: var(--text); }

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.06em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--neon);
  color: #030804;
  box-shadow: 0 0 20px var(--neon-glow);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--neon);
  color: var(--neon);
  background: transparent;
}

.btn-outline:hover { background: rgba(57, 255, 20, 0.08); }

.hero-tape,
.mm-terminal {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.08);
}

.tape-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--panel-border);
  flex-wrap: wrap;
}

.tape-head-title {
  flex: 1;
  min-width: 120px;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-size: 0.62rem;
}

.tape-head-live {
  color: var(--neon);
  font-size: 0.6rem;
  animation: pulse 1.2s ease infinite;
}

.tape-head-stats {
  font-variant-numeric: tabular-nums;
  font-size: 0.62rem;
  color: var(--muted);
}

.tape-head-stats .up { color: var(--neon); }
.tape-head-stats .down { color: var(--red); }

.tape-scroll {
  overflow: auto;
  background: rgba(0, 0, 0, 0.45);
}

.tape-scroll-hero {
  height: 210px;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-dim) transparent;
}

.tape-scroll-full {
  height: min(52vh, 480px);
}

.tape-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.tape-table .col-time { width: 19%; }
.tape-table .col-sym { width: 6%; }
.tape-table .col-ord { width: 6%; }
.tape-table .col-side { width: 7%; }
.tape-table .col-qty { width: 5%; }
.tape-table .col-fill { width: 12%; }
.tape-table .col-mkt { width: 11%; }
.tape-table .col-fee { width: 8%; }
.tape-table .col-pnl { width: 9%; }
.tape-table .col-lat { width: 10%; }

.tape-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #050a06;
}

.tape-table th {
  padding: 0.35rem 0.4rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: #4a6b4a;
  border-bottom: 1px solid var(--panel-border);
}

.tape-table td {
  padding: 0.22rem 0.4rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tape-table .tape-qty,
.tape-table .tape-fee,
.tape-table .tape-net,
.tape-table th:nth-child(5),
.tape-table th:nth-child(8),
.tape-table th:nth-child(9) {
  text-align: right;
}

.tape-row { animation: tape-flash 0.28s ease; }
.tape-row.open { opacity: 0.92; }

.tape-time { color: var(--muted); }
.tape-sym { color: var(--neon); font-weight: 600; }
.tape-ord { color: #4a6b4a; font-size: 0.62rem; }
.tape-side.buy { color: var(--green-soft); }
.tape-side.sell { color: #f97316; }
.tape-fill { color: var(--text); }
.tape-mkt { color: var(--muted); }
.tape-fee { color: #8b6f6f; font-size: 0.62rem; }
.tape-net.up { color: var(--neon); }
.tape-net.down { color: var(--red); }
.tape-net.flat { color: var(--muted); }
.tape-net.open { color: #4a6b4a; text-align: right; }
.tape-lat { color: #4a5f4a; font-size: 0.6rem; }

@media (max-width: 720px) {
  .tape-table { font-size: 0.6rem; min-width: 640px; }
  .tape-table .col-lat,
  .tape-table .tape-lat { display: none; }
}

@keyframes tape-flash {
  0% { background: rgba(57, 255, 20, 0.14); }
  100% { background: transparent; }
}

.tl-time { color: var(--muted); }
.tl-sym { color: var(--neon); font-weight: 600; }
.tl-ord { color: #4a6b4a; font-size: 0.58rem; }
.tl-side.buy { color: var(--green-soft); }
.tl-side.sell { color: #f97316; }
.tl-qty { color: var(--text); text-align: right; }
.tl-px { color: var(--text); }
.tl-pnl.up { color: var(--neon); }
.tl-pnl.down { color: var(--red); }
.tl-lat { color: #4a5f4a; font-size: 0.58rem; text-align: right; }

.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--panel-border);
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  margin-left: 0.35rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.terminal-live {
  color: var(--neon);
  font-size: 0.65rem;
}

.terminal-body { padding: 0.65rem; }

.term-row {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  gap: 1rem;
}

.term-key { color: var(--muted); }

.term-val { color: var(--text); font-variant-numeric: tabular-nums; }

.term-val.dim { color: var(--muted); font-size: 0.68rem; }

.term-val.up { color: var(--neon); }

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-figure {
  max-width: min(420px, 90vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(57, 255, 20, 0.25));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  width: 100%;
  max-width: 420px;
}

.stat-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 440px;
}

.stat-grid-4 .stat-value {
  font-size: 0.78rem;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.stat-label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.stat-value.green { color: var(--neon); }

.stat-value.red { color: var(--red); }

.stat-card-pnl .stat-value {
  font-size: 1.05rem;
  transition: color 0.15s ease;
}


.stat-value.flash {
  animation: stat-flash 0.4s ease;
}

@keyframes stat-flash {
  0% { color: #fff; text-shadow: 0 0 12px var(--neon); }
  100% { color: var(--neon); }
}

section { padding: 3rem 0; }

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--neon);
  margin-bottom: 0.5rem;
}

.section-head p { color: var(--muted); font-size: 0.9rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.step-num {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  color: rgba(57, 255, 20, 0.2);
  display: block;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.step p { color: var(--muted); font-size: 0.85rem; }

.tape-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.06);
}

.tape-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--panel-border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.tape-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon);
}

.tape-meta { color: var(--muted); margin-left: 1rem; }

.tape-panel .tape-scroll {
  border-top: 1px solid rgba(57, 255, 20, 0.06);
}

.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.univ-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.85rem;
}

.univ-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.univ-sym {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: var(--neon);
}

.univ-tag {
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.univ-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.univ-ch { font-size: 0.75rem; font-family: "JetBrains Mono", monospace; }
.univ-ch.up { color: var(--green-soft); }
.univ-ch.down { color: var(--red); }

.univ-meta {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.desk-panel-wide { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .desk-grid { grid-template-columns: 1fr; }
  .tape-meta { display: none; }
}

.desk-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.desk-panel h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--neon);
  margin-bottom: 1rem;
}

.desk-metric {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(57, 255, 20, 0.06);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.dm-label { color: var(--muted); }
.dm-val { font-variant-numeric: tabular-nums; }
.dm-val.green { color: var(--neon); }
.dm-val.dim { color: var(--muted); font-size: 0.72rem; }

.payouts-panel .payouts-empty {
  padding: 2rem 1rem;
  border: 1px dashed rgba(57, 255, 20, 0.12);
  border-radius: 8px;
}

.holders-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 2rem;
}

.empty-state {
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.empty-state strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--panel-border);
}

.footer-brand {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--neon); }

footer p { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; }

.disclaimer {
  max-width: 36rem;
  margin: 1rem auto 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.5;
}

body.nyse-closed .tape-table tbody {
  opacity: 0.35;
}

body.nyse-closed .tape-status {
  color: var(--red);
}

body.nyse-closed .tape-status .dot {
  background: var(--red);
  box-shadow: none;
  animation: none;
}
