@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --bg: #0a0e0a;
  --text: #33ff66;
  --accent: #ff4444;
  --dim: #1a3a1f;
  --muted: #2a4a2f;
  --bright: #66ff99;
  --yellow: #ffff44;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}

/* ── SCANLINES ──────────────────────────────────────────── */
.scanlines::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 3px);
}

/* ── CURSOR BLINK ────────────────────────────────────────── */
.cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background: var(--text);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--text);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.logo .prompt { color: var(--accent); }

.header-cta {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--text);
  color: var(--bg) !important;
  background: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.header-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

/* ── ASCII BORDER ────────────────────────────────────────── */
.ascii-box {
  border: 1px solid var(--muted);
  position: relative;
  padding: 24px;
  margin: 16px 0;
}
.ascii-box::before {
  content: attr(data-label);
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ── HERO / BOOT SEQUENCE ────────────────────────────────── */
.hero {
  padding: 60px 40px 48px;
  border-bottom: 1px solid var(--muted);
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.boot-lines { display: flex; flex-direction: column; gap: 4px; }
.boot-line {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}
.boot-line.dim { color: #3a6a3f; }
.boot-line.ok { color: var(--bright); }
.boot-line.warn { color: var(--yellow); }
.boot-line.err { color: var(--accent); }
@keyframes fadeIn { to { opacity: 1; } }

.hero-title {
  margin-top: 36px;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-title .hl { color: var(--accent); }

.hero-prompt {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--dim);
  max-width: 70ch;
}
.hero-prompt .p { color: var(--text); }

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid var(--text);
  color: var(--bg) !important;
  background: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hero-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.hero-btn-ghost {
  color: var(--text) !important;
  font-size: 0.85rem;
  text-decoration: none !important;
  border-bottom: 1px solid var(--text);
}
.hero-btn-ghost:hover { color: var(--accent) !important; border-color: var(--accent); }

/* ── STATS ROW ───────────────────────────────────────────── */
.stats-row {
  display: flex;
  border-bottom: 1px solid var(--muted);
  background: rgba(0,20,5,0.5);
}
.stat-cell {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--muted);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-cell .val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bright);
  line-height: 1;
}
.stat-cell .key { font-size: 0.65rem; color: var(--text); opacity: 0.6; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 4px; }

/* ── SECTION ─────────────────────────────────────────────── */
.section {
  padding: 56px 40px;
  border-bottom: 1px solid var(--muted);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.section-header .prompt { color: var(--accent); font-size: 0.9rem; }
.section-header h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section p { max-width: 76ch; color: var(--text); opacity: 0.85; margin-bottom: 14px; }

/* ── TABLE ───────────────────────────────────────────────── */
.term-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.85rem;
}
.term-table th {
  background: var(--dim);
  color: var(--text);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}
.term-table td {
  padding: 10px 14px;
  border: 1px solid var(--muted);
  color: var(--text);
  opacity: 0.85;
}
.term-table tr:hover td { background: rgba(51,255,102,0.05); }
.hl-green { color: var(--bright); font-weight: 700; }
.hl-red { color: var(--accent); font-weight: 700; }
.hl-yellow { color: var(--yellow); }

/* ── LIST STYLES ─────────────────────────────────────────── */
.term-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.term-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--muted);
  font-size: 0.87rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.term-list li::before { content: ">"; color: var(--accent); font-weight: 700; min-width: 12px; }
.term-list li:last-child { border-bottom: none; }

/* ── STEP LIST ───────────────────────────────────────────── */
.step-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--muted);
  margin-top: 20px;
}
.step-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  border-bottom: 1px solid var(--muted);
}
.step-row:last-child { border-bottom: none; }
.step-n {
  background: var(--dim);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-right: 1px solid var(--muted);
  padding: 14px 8px;
}
.step-content { padding: 14px 16px; }
.step-content .cmd { color: var(--yellow); font-weight: 600; font-size: 0.85rem; display: block; }
.step-content .desc { font-size: 0.78rem; color: var(--text); opacity: 0.7; margin-top: 4px; }

/* ── TWO COL ─────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

/* ── GAME ROWS ───────────────────────────────────────────── */
.game-rows { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--muted); }
.game-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--muted);
  align-items: center;
  font-size: 0.85rem;
}
.game-row:last-child { border-bottom: none; }
.game-row:hover { background: rgba(51,255,102,0.04); }
.game-row .g-num { color: var(--accent); font-weight: 700; font-size: 0.75rem; }
.game-row .g-name { font-weight: 600; }
.game-row .g-rtp { color: var(--bright); font-size: 0.78rem; font-weight: 600; }

/* ── PAYMENT LIST ────────────────────────────────────────── */
.pay-rows { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--muted); }
.pay-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--muted);
  font-size: 0.83rem;
  align-items: center;
}
.pay-row:last-child { border-bottom: none; }
.pay-row:hover { background: rgba(51,255,102,0.04); }
.pay-name { font-weight: 600; }
.pay-time { color: var(--yellow); font-size: 0.75rem; }
.pay-min { color: var(--bright); font-size: 0.75rem; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section {
  padding: 72px 40px;
  text-align: center;
  background: var(--dim);
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}
.cta-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.cta-title .hl { color: var(--accent); }
.cta-section p { max-width: 65ch; margin: 0 auto 32px; opacity: 0.8; font-size: 0.9rem; }
.cta-btn {
  display: inline-block;
  padding: 18px 52px;
  background: var(--text);
  color: var(--bg) !important;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  border: 2px solid var(--text);
  text-decoration: none !important;
  letter-spacing: 0.05em;
  transition: background 0.2s, border-color 0.2s;
}
.cta-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.cta-note { margin-top: 20px; font-size: 0.72rem; color: var(--text); opacity: 0.5; }

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--dim);
  border-bottom: 1px solid var(--text);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
}
.ticker-track span { font-size: 0.75rem; color: var(--text); letter-spacing: 0.05em; }
.ticker-track span.err { color: var(--accent); }
.ticker-track span.ok { color: var(--bright); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text);
  opacity: 0.5;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .stats-row { flex-wrap: wrap; }
  .stat-cell { min-width: 50%; }
  .section { padding: 36px 20px; }
  .site-header { padding: 12px 20px; }
  .hero { padding: 40px 20px; }
  .cta-section { padding: 48px 20px; }
}
@media (max-width: 600px) {
  .stats-row { flex-direction: column; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--muted); }
}
