/* ========================================
   Page-level layout: nav, sections, footer
   ======================================== */

.page {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--ink-0);
  position: relative;
  overflow-x: hidden;
}
.page::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.page > * { position: relative; z-index: 1; }
/* hero already has its own grid layer; turn it off when embedded so we don't double-up */
.page-hero .heroM-grid::before { display: none; }
/* let the page-level grid show through the hero's bg */
.page-hero .heroM { background: transparent; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  background: color-mix(in srgb, var(--bg-0) 80%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
  color: var(--ink-0);
  text-decoration: none;
  line-height: 1;
}
.nav-brand img { width: auto; height: 26px; flex: none; }
.nav-links {
  display: flex; gap: 28px;
  font-size: var(--t-sm);
  color: var(--ink-1);
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-1);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink-0); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  padding: 8px 16px;
  border-radius: var(--r-md);
  background: var(--brand-500);
  color: #021018;
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--brand-glow); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink-1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--ink-0); transform: rotate(15deg); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ---------- Section scaffold ---------- */
.section {
  padding: 80px 56px;
  position: relative;
  border-top: 1px solid var(--line);
}
.section.no-top { border-top: none; }
/* tighten where short content leaves a vacuum */
#roadmap { padding-bottom: 56px; }
#faq { padding-top: 64px; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--brand-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--brand-500);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
  color: var(--ink-0);
  max-width: 720px;
}
.section-title .pop {
  background-image: linear-gradient(120deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  font-size: var(--t-md);
  color: var(--ink-1);
  max-width: 420px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature {
  background: var(--bg-1);
  padding: 36px 32px;
  position: relative;
  transition: background 0.25s;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 260px;
}
.feature:hover { background: var(--bg-2); }
.feature-head { display: flex; align-items: center; justify-content: space-between; }
.feature-cmd {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--brand-500);
  background: rgba(41,214,255,0.08);
  border: 1px solid var(--line-brand);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.02em;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.feature-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-0);
  margin: 4px 0 0;
}
.feature-desc {
  font-size: var(--t-base);
  color: var(--ink-1);
  line-height: 1.55;
  margin: 0;
}
.feature-visual {
  margin-top: auto;
  padding-top: 16px;
  display: flex; align-items: center;
}

/* Visual: sync */
.fv-sync { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fv-sync img { width: 24px; height: 24px; opacity: 0.8; }
.fv-sync-arrow {
  font-family: var(--font-mono); color: var(--brand-500);
  margin: 0 4px;
}
.fv-sync-discord {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-1);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.3);
}

/* Visual: common - venn */
.fv-venn {
  width: 100%; height: 80px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.fv-venn-circle {
  position: absolute;
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-500);
  background: rgba(41,214,255,0.05);
}
.fv-venn-circle:nth-child(1) { transform: translateX(-32px); }
.fv-venn-circle:nth-child(2) { transform: translateX(0); border-color: var(--accent-500); background: rgba(88,101,242,0.05); }
.fv-venn-circle:nth-child(3) { transform: translateX(32px); border-color: var(--accent-magenta); background: rgba(255,61,240,0.05); }
.fv-venn-label {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-0);
  background: var(--bg-1);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-brand);
}

/* Visual: polls */
.fv-poll { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.fv-poll-row {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--t-xs); font-family: var(--font-mono);
  color: var(--ink-1);
}
.fv-poll-bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.fv-poll-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
}
.fv-poll-count { color: var(--ink-2); width: 24px; text-align: right; }

/* Visual: gameinfo */
.fv-gameinfo {
  display: flex; gap: 12px; align-items: stretch;
  width: 100%;
}
.fv-gameinfo-cover {
  width: 56px; height: 80px; border-radius: 4px;
  background: #0a0e1a url("assets/bg3-poster.png") center/cover no-repeat;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.fv-gameinfo-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
  pointer-events: none;
}
.fv-gameinfo-meta { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.fv-gameinfo-title { font-weight: 700; font-size: var(--t-sm); color: var(--ink-0); }
.fv-gameinfo-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fv-gameinfo-tag {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.fv-gameinfo-meter {
  height: 4px; border-radius: 2px;
  background: var(--bg-2); overflow: hidden;
  margin-top: 4px;
}
.fv-gameinfo-meter-fill {
  height: 100%; width: 78%;
  background: linear-gradient(90deg, var(--good), var(--brand-500));
}

/* ---------- Platforms ---------- */
.platforms {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.platform {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.platform:hover { border-color: var(--line-brand); transform: translateY(-2px); }
.platform-logo { width: 32px; height: 32px; }
.platform-name { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; color: var(--ink-0); }
.platform-status {
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--good);
  display: flex; align-items: center; gap: 6px;
}
.platform-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.platform-status.beta { color: var(--warn); }
.platform-detail { font-size: var(--t-sm); color: var(--ink-2); margin-top: 4px; line-height: 1.5; }

/* ---------- Commands ---------- */
.commands {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.command {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.command:last-child { border-bottom: none; }
.command:hover { background: var(--bg-2); }
.command-cmd {
  font-family: var(--font-mono);
  font-size: var(--t-base);
  color: var(--brand-500);
  font-weight: 500;
}
.command-cmd .arg { color: var(--ink-2); }
.command-desc { color: var(--ink-1); font-size: var(--t-sm); line-height: 1.5; }
.command-tag {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.roadmap-col {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
}
  background: var(--bg-1);
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
}
.roadmap-col:last-child { border-right: none; }
.roadmap-col.current { background: linear-gradient(180deg, rgba(41,214,255,0.06), transparent 60%), var(--bg-1); }
.roadmap-quarter {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.roadmap-quarter strong { color: var(--ink-0); font-family: var(--font-display); font-size: var(--t-md); letter-spacing: -0.01em; text-transform: none; font-weight: 700; }
.roadmap-status {
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 10px;
}
.roadmap-status.live { color: var(--good); border-color: rgba(56,232,156,0.3); }
.roadmap-status.now { color: var(--brand-500); border-color: var(--line-brand); background: rgba(41,214,255,0.08); }
.roadmap-status.next { color: var(--ink-1); }
.roadmap-status.later { color: var(--ink-3); }
.roadmap-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--t-sm); color: var(--ink-1); line-height: 1.45;
}
.roadmap-item-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  margin-top: 7px; flex-shrink: 0;
}
.roadmap-item.done .roadmap-item-dot { background: var(--good); box-shadow: 0 0 8px rgba(56,232,156,0.4); }
.roadmap-item.now .roadmap-item-dot { background: var(--brand-500); box-shadow: 0 0 8px var(--brand-glow); }
.roadmap-item-text strong { color: var(--ink-0); font-weight: 600; display: block; }
.roadmap-item-text span { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border-top: none;
}
.faq-item {
  padding: 22px 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.25s;
}
.faq-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.faq-item.open {
  border-color: var(--line-brand);
  background: linear-gradient(180deg, rgba(41,214,255,0.04), transparent 60%), var(--bg-1);
  box-shadow: 0 0 0 1px rgba(41,214,255,0.12), 0 4px 24px rgba(41,214,255,0.05);
}
.faq-num {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-3); letter-spacing: 0.1em;
  padding-top: 6px;
}
.faq-item.open .faq-num { color: var(--brand-500); }
.faq-q {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  line-height: 1.3;
}
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--ink-2);
  transition: transform 0.25s, color 0.2s, background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--brand-500); border-color: var(--line-brand); background: rgba(41,214,255,0.08); }
.faq-a {
  grid-column: 2;
  max-height: 0; overflow: hidden;
  font-size: var(--t-base); color: var(--ink-1); line-height: 1.6;
  transition: max-height 0.35s var(--ease-out), margin-top 0.3s, opacity 0.25s;
  margin-top: 0;
  opacity: 0;
}
.faq-item.open .faq-a { max-height: 320px; margin-top: 14px; opacity: 1; }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 48px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 320px;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand-row img { width: 32px; height: 32px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); }
.footer-tagline { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-col a {
  text-decoration: none; color: var(--ink-1);
  font-size: var(--t-sm);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-500); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-3);
  letter-spacing: 0.05em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-bottom-end { display: flex; gap: 24px; }

/* ---------- Konami ---------- */
.konami-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  animation: konami-in 0.4s var(--ease-out);
  cursor: pointer;
}
@keyframes konami-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.konami-content {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--accent-acid);
  text-shadow: 0 0 20px rgba(196,255,61,0.5);
  animation: konami-glitch 0.15s steps(2) infinite;
}
.konami-title {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 20px;
}
.konami-sub { font-size: 18px; letter-spacing: 0.2em; color: var(--brand-500); }
@keyframes konami-glitch {
  0% { transform: translate(0, 0); }
  50% { transform: translate(2px, -1px); }
  100% { transform: translate(-1px, 1px); }
}

/* Hero embedded in page (drop the artboard chrome) */
.page-hero { display: flex; padding-bottom: 32px; }
.page-hero .heroM3 { padding-top: 32px; flex: 1; }

/* ---------- Section divider ---------- */
.divider {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 56px;
  height: 120px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(41,214,255,0.04), transparent),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 11px,
      rgba(41,214,255,0.06) 11px,
      rgba(41,214,255,0.06) 12px);
  overflow: hidden;
}
.divider::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--brand-500) 20%,
    var(--brand-500) 80%,
    transparent 100%);
  opacity: 0.5;
  box-shadow: 0 0 12px var(--brand-glow);
}
.divider-mark {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px;
  background: var(--bg-0);
  border: 1px solid var(--line-brand);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-500);
  box-shadow: 0 0 24px rgba(41,214,255,0.18), inset 0 0 0 1px rgba(41,214,255,0.08);
}
.divider-mark::before,
.divider-mark::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand-500);
  box-shadow: 0 0 8px var(--brand-glow);
  transform: rotate(45deg);
}
.divider-tick { display: none; }
