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

:root {
  --bg: #0a0d12;
  --bg2: #0f1318;
  --bg3: #131920;
  --border: #1a2230;
  --text: #e2e8f0;
  --muted: #64748b;
  --accent: #22d3ee;
  --accent2: #6366f1;
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --purple: #a855f7;
  --teal: #14b8a6;
  --sky: #38bdf8;
  --indigo: #818cf8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}

nav.scrolled {
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-mark.sm { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  transition: color .2s, background .2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}

.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border); }

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}

.btn-primary-sm:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: background .2s;
}

.nav-mobile-btn:hover span { background: var(--text); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.96);
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.mobile-menu .btn-primary-sm {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.1) 0%, rgba(99, 102, 241, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.btn-outline:hover { border-color: #334155; background: var(--bg2); }

/* ── TERMINAL ─────────────────────────────────────────────── */
.hero-terminal, .steps-terminal, .cta-terminal {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

.terminal-window, .hero-terminal, .cta-terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }

.t-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

.t-copy {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color .2s, background .2s;
}

.t-copy:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.terminal-body {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
}

.terminal-body.multi {
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
}

.t-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.terminal-body > code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #86efac;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.7;
}

.t-comment { color: #4d6280; }
.t-cmd { color: #86efac; }
.t-out { color: var(--muted); padding-left: 4px; }
.t-success { color: var(--green); padding-left: 4px; }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 72px;
  overflow-x: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  flex-shrink: 0;
}

.stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section {
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--bg2); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feat-card {
  background: var(--bg);
  padding: 32px;
  transition: background .2s;
}

.feat-card:hover { background: rgba(15, 19, 24, 0.95); }

.feat-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.feat-large h3 { font-size: 20px; margin-bottom: 10px; }
.feat-large p { font-size: 15px; }

.feat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feat-icon-wrap.cyan   { background: rgba(34, 211, 238, 0.1); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.2); }
.feat-icon-wrap.indigo { background: rgba(129, 140, 248, 0.1); color: var(--indigo); border: 1px solid rgba(129, 140, 248, 0.2); }
.feat-icon-wrap.green  { background: rgba(16, 185, 129, 0.1); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.2); }
.feat-icon-wrap.amber  { background: rgba(245, 158, 11, 0.1); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.2); }
.feat-icon-wrap.rose   { background: rgba(244, 63, 94, 0.1); color: var(--rose); border: 1px solid rgba(244, 63, 94, 0.2); }
.feat-icon-wrap.purple { background: rgba(168, 85, 247, 0.1); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.2); }
.feat-icon-wrap.teal   { background: rgba(20, 184, 166, 0.1); color: var(--teal); border: 1px solid rgba(20, 184, 166, 0.2); }
.feat-icon-wrap.sky    { background: rgba(56, 189, 248, 0.1); color: var(--sky); border: 1px solid rgba(56, 189, 248, 0.2); }

.feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feat-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.feat-demo.console-demo {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  display: flex;
  gap: 8px;
}

.cd-time { color: #4d6280; flex-shrink: 0; }
.cd-info { color: #5b7fa6; flex-shrink: 0; }
.cd-cmd  { color: #86efac; }

.cd-cmd .cd-prompt {
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.steps-list { display: flex; flex-direction: column; gap: 4px; }

.step-item {
  display: flex;
  gap: 20px;
  padding: 20px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}

.step-item:hover { background: rgba(255,255,255,0.03); }

.step-item.active {
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.step-item.active .step-num { background: rgba(34, 211, 238, 0.15); }

.step-body h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step-body p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

.steps-terminal { position: sticky; top: 80px; }

/* ── GAMES ────────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, background .2s;
}

.game-card:hover { border-color: #2d3a4a; background: var(--bg3); }

.game-card.coming { opacity: 0.6; }
.game-card.coming:hover { opacity: 0.8; }

.game-card.custom {
  border-style: dashed;
  background: transparent;
}

.game-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.game-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 2px 8px;
  border-radius: 4px;
}

.game-tags span.soon {
  color: var(--muted);
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.2);
}

/* ── COMMUNITY ────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.community-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.community-card:hover {
  border-color: #2d3a4a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.cc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-icon.discussions { background: rgba(34, 211, 238, 0.1); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.2); }
.cc-icon.issues      { background: rgba(244, 63, 94, 0.1); color: var(--rose); border: 1px solid rgba(244, 63, 94, 0.2); }
.cc-icon.contribute  { background: rgba(168, 85, 247, 0.1); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.2); }

.cc-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

.cc-arrow { color: var(--muted); transition: transform .2s, color .2s; }
.community-card:hover .cc-arrow { transform: translate(2px, -2px); color: var(--accent); }

.community-card > p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.cc-posts { display: flex; flex-direction: column; gap: 8px; }

.cc-post {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.cc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.cc-badge.help { background: rgba(34, 211, 238, 0.12); color: var(--accent); }
.cc-badge.idea { background: rgba(168, 85, 247, 0.12); color: var(--purple); }
.cc-badge.show { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.cc-badge.bug  { background: rgba(244, 63, 94, 0.12); color: var(--rose); }
.cc-badge.feat { background: rgba(99, 102, 241, 0.12); color: var(--accent2); }

.cc-contrib { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.contrib-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.contrib-stat svg { color: var(--accent); flex-shrink: 0; }

/* ── COMPARISON TABLE ─────────────────────────────────────── */
.compare-table {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.compare-header, .compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.compare-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.compare-row {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}

.compare-row:last-of-type { border-bottom: none; }
.compare-row:hover { background: rgba(255,255,255,0.015); }

.compare-feature {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.compare-col {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.compare-header .compare-col {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  gap: 10px;
}

.compare-col.kretase { color: var(--text); }

.col-logo-k {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.check { color: var(--green); font-weight: 600; }

.compare-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}

.compare-footer p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ── CTA ──────────────────────────────────────────────────── */
.section-cta { background: var(--bg); }

.cta-box {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  padding: 60px;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-content > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
}

.cta-terminal {
  margin: 0 auto 32px;
  max-width: 680px;
}

.cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 28px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}

.footer-social a:hover { color: var(--text); border-color: #334155; background: rgba(255,255,255,0.06); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-copy a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-copy a:hover { color: var(--text); }

.footer-made {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-made a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-large { grid-column: span 2; }
  .how-layout { grid-template-columns: 1fr; }
  .steps-terminal { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-btn { display: flex; }
  .hero { padding: 70px 0 60px; }
  .hero-title { letter-spacing: -1px; }
  .stats-inner { padding: 0 16px; }
  .stat-item { padding: 0 20px; }
  .container { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-large { grid-column: span 1; grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .compare-header, .compare-row { grid-template-columns: auto 1fr 1fr; }
  .compare-feature { font-size: 12px; }
  .cta-box { padding: 36px 24px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .stat-item { padding: 0 12px; }
  .stat-num { font-size: 15px; }
  .games-grid { grid-template-columns: 1fr; }
  .compare-table { overflow-x: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-links { flex-direction: column; width: 100%; }
  .cta-links a { width: 100%; justify-content: center; }
}
