@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --void: #08080a;
  --panel: #111114;
  --panel-2: #18181c;
  --line: #2a2a32;
  --line-hot: #6d4aff;
  --ink: #e8e6ef;
  --dim: #6e6e7a;
  --acid: #b8ff4a;
  --warn: #ffb020;
  --hot: #9d78ff;
  --rail-w: 220px;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Archivo', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
}

a { color: var(--hot); text-decoration: none; }
a:hover { color: #fff; }

/* Site shell */
.site {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
}

.canvas {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), var(--line) calc(100% - 1px)),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(42, 42, 50, 0.35) 79px, rgba(42, 42, 50, 0.35) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(42, 42, 50, 0.2) 79px, rgba(42, 42, 50, 0.2) 80px);
  background-color: var(--void);
}

.canvas::before {
  content: '';
  position: fixed;
  inset: 0;
  left: var(--rail-w);
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.main {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px) 80px;
  max-width: 1100px;
}

/* Rail nav */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #060608;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  z-index: 100;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  color: var(--ink);
}

.rail-brand img {
  width: 40px;
  height: 40px;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
}

.rail-brand span {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  list-style: none;
}

.rail-nav a {
  display: block;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.rail-nav a:hover {
  color: var(--ink);
  background: var(--panel);
}

.rail-nav a.active {
  color: var(--acid);
  border-left-color: var(--line-hot);
  background: var(--panel);
}

.rail-nav .rail-cta {
  margin-top: 16px;
  color: #000 !important;
  background: var(--acid);
  border-left: none;
  font-weight: 600;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.rail-nav .rail-cta:hover {
  filter: brightness(1.08);
  color: #000 !important;
}

.rail-foot {
  padding: 20px 22px 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 20px;
}

.rail-status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(184, 255, 74, 0.12);
  color: var(--acid);
  font-size: 0.6rem;
}

.rail-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 48px;
  height: 48px;
  background: var(--acid);
  color: #000;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Typography */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 16px;
  display: block;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-lead {
  color: var(--dim);
  font-size: 1.05rem;
  max-width: 52ch;
}

.section-gap { margin-top: clamp(64px, 10vw, 100px); }

.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* Hero split */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 70vh;
  padding-top: 24px;
}

.hero-split h1 {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  text-transform: uppercase;
}

.hero-split h1 em {
  font-style: normal;
  color: var(--hot);
  display: block;
}

.hero-split .lead {
  margin: 24px 0 32px;
  color: var(--dim);
  max-width: 46ch;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(12% 0, 100% 0, 100% 76%, 88% 100%, 0 100%, 0 12%);
}

.hero-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--line-hot), transparent 50%);
  clip-path: inherit;
  z-index: -1;
  opacity: 0.6;
}

.hero-frame img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-tag {
  position: absolute;
  bottom: -12px;
  right: -8px;
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 8px 12px;
  background: var(--acid);
  color: #000;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--line-hot);
  color: #fff;
}

.btn-solid {
  background: var(--acid);
  border-color: var(--acid);
  color: #0a0a0a;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-solid:hover {
  filter: brightness(1.06);
  color: #000;
}

/* Panels — no glass */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
}

.panel-accent {
  border-left: 3px solid var(--line-hot);
}

/* Stats bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.bento-cell {
  background: var(--panel);
  padding: 22px 20px;
}

.bento-cell .val {
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: block;
}

.bento-cell .key {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Feature rows */
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feat-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--panel);
  align-items: start;
}

.feat-row .idx {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--hot);
  padding-top: 4px;
}

.feat-row h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feat-row p {
  color: var(--dim);
  font-size: 0.9rem;
}

/* Games */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--line-hot);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover,
.chip.active {
  border-color: var(--line-hot);
  color: var(--acid);
}

.games-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.game-tile {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s;
}

.game-tile:hover {
  border-color: var(--line-hot);
}

.game-tile-img {
  height: 100px;
  position: relative;
  overflow: hidden;
}

.game-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.game-tile-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--panel) 0%, transparent 55%);
}

.game-tile-body {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.game-tile-body h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.game-tile-body .sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
}

.tag-status {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  text-transform: uppercase;
  z-index: 1;
}

.tag-ok { background: #000; color: var(--acid); border: 1px solid var(--acid); }
.tag-warn { background: #000; color: var(--warn); border: 1px solid var(--warn); }

/* Pricing columns */
.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.price-box {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.price-box.hit {
  border-color: var(--line-hot);
  box-shadow: inset 0 0 0 1px rgba(109, 74, 255, 0.2);
}

.price-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.price-box .amt {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 20px 0;
  font-variant-numeric: tabular-nums;
}

.price-box ul {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.price-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--dim);
}

.price-box li:last-child { border-bottom: none; }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  background: var(--panel-2);
  color: var(--dim);
  border: 1px solid var(--line);
}

.data-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.data-table tr:hover td {
  background: var(--panel-2);
}

/* FAQ */
.faq-stack { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--line);
  background: var(--panel);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-q::after {
  font-family: var(--mono);
  color: var(--hot);
  content: '[+]';
  flex-shrink: 0;
}

.faq-item.open .faq-q::after { content: '[−]'; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 20px 18px;
  color: var(--dim);
  font-size: 0.9rem;
  border-top: 1px solid transparent;
}

.faq-item.open .faq-a {
  max-height: 280px;
}

.faq-item.open .faq-a-inner {
  border-top-color: var(--line);
  padding-top: 16px;
}

/* Steps */
.step-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step-block {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  counter-increment: cryst-step;
}

.step-block::before {
  content: counter(cryst-step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--hot);
  display: block;
  margin-bottom: 12px;
}

.step-strip { counter-reset: cryst-step; }

/* Footer */
.foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot a { color: var(--dim); }
.foot a:hover { color: var(--acid); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.on {
  opacity: 1;
  transform: none;
}

/* Page header compact */
.page-head {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

/* Legacy class aliases for JS */
.glass { background: var(--panel); border: 1px solid var(--line); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.game-card { border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.game-card-img { height: 100px; position: relative; }
.game-card-img img { width: 100%; height: 100%; object-fit: cover; }
.game-card-overlay { display: none; }
.game-card-body { padding: 14px 16px; border-top: 1px solid var(--line); }
.game-card-body h4 { font-size: 0.85rem; text-transform: uppercase; }
.game-card .tag { font-family: var(--mono); font-size: 0.65rem; color: var(--dim); }
.game-card-meta { display: none; }
.game-pill { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 0.58rem; padding: 4px 7px; z-index: 1; text-transform: uppercase; }
.pill-green { background: #000; color: var(--acid); border: 1px solid var(--acid); }
.pill-yellow { background: #000; color: var(--warn); border: 1px solid var(--warn); }
.pill-red { background: #000; color: #ff6b6b; border: 1px solid #ff6b6b; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-card { padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.feature-card h3 { text-transform: uppercase; font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--dim); font-size: 0.88rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-card { padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.price-card.featured { border-color: var(--line-hot); }
.price-card.featured::before { display: none; }
.status-table-wrap { border: 1px solid var(--line); overflow-x: auto; }
.status-table { width: 100%; border-collapse: collapse; }
.status-table th, .status-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; }
.status-table th { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; color: var(--dim); background: var(--panel-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: cryst-step; }
.step-card { padding: 22px; background: var(--panel); border: 1px solid var(--line); counter-increment: cryst-step; }
.step-card::before { content: counter(cryst-step, decimal-leading-zero); font-family: var(--mono); font-size: 0.7rem; color: var(--hot); display: block; margin-bottom: 12px; }
.step-card h3 { text-transform: uppercase; font-size: 0.95rem; margin-bottom: 8px; }
.step-card p { color: var(--dim); font-size: 0.88rem; }
.btn-primary { background: var(--acid); border: 1px solid var(--acid); color: #000; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 24px; display: inline-block; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); padding: 14px 24px; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; display: inline-block; }
.container { max-width: none; padding: 0; }
.section { padding: 0; margin-top: 48px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 1.5rem; text-transform: uppercase; }
.section-head p { color: var(--dim); }
.page-hero { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; }
.page-hero p { color: var(--dim); }
.hero-badge { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; padding: 6px 10px; background: rgba(184,255,74,0.12); color: var(--acid); border: 1px solid var(--acid); display: inline-block; margin-top: 12px; }

@media (max-width: 960px) {
  .site { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 85vw);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 40px rgba(0,0,0,0.5);
  }
  .rail.open { transform: translateX(0); }
  .rail-toggle { display: block; }
  .canvas::before { left: 0; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .bento, .price-row, .step-strip, .grid-3, .pricing-grid, .steps { grid-template-columns: 1fr; }
}
