/* ==============================
   Astravión · arcade neon UI
   ============================== */

:root {
  --bg: #0b0a16;
  --bg-2: #110f22;
  --surface: #161434;
  --surface-2: #1d1a45;
  --line: rgba(150, 130, 255, 0.14);
  --line-strong: rgba(150, 130, 255, 0.28);
  --text: #e8e6ff;
  --text-mute: #9b97c4;
  --text-dim: #6f6b9a;
  --accent: #ff3d8a;
  --accent-2: #45e7ff;
  --accent-3: #b87bff;
  --glow-pink: 0 0 0 1px rgba(255,61,138,0.5), 0 8px 32px rgba(255,61,138,0.25);
  --glow-cyan: 0 0 0 1px rgba(69,231,255,0.45), 0 8px 32px rgba(69,231,255,0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.65);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(255,61,138,0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(69,231,255,0.14), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(184,123,255,0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { color: var(--text-mute); }

a { color: var(--accent-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 50;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text);
  background: rgba(15, 13, 32, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  backdrop-filter: blur(14px);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.cookie-text { flex: 1 1 320px; margin: 0; color: var(--text-mute); font-size: 13px; line-height: 1.55; }
.cookie-text a { margin-left: 4px; color: var(--accent-2); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-cookie {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-cookie-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-cookie-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-cookie-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,61,138,0.32);
}
.btn-cookie-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,61,138,0.45); }

/* ============ A11y helpers ============ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  background: rgba(11, 10, 22, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--text); }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 60%, var(--accent-2));
  color: #0b0a16;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(255,61,138,0.35);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}
.primary-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.primary-nav .nav-cta {
  margin-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 6px 24px rgba(255,61,138,0.3);
}
.primary-nav .nav-cta:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,61,138,0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 36px rgba(255,61,138,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.btn-block { width: 100%; }

/* ============ Sections base ============ */
.section { padding: 100px 0; position: relative; }
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-head h2 { margin-bottom: 16px; }
.section-lead { color: var(--text-mute); font-size: 1.05rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150,130,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,130,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-container { position: relative; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}
.hero-title {
  max-width: 920px;
  margin: 0 auto 22px;
}
.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-3) 50%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--text-mute);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
}
.hero-pills li span {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ============ How it works ============ */
.how-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 0;
  counter-reset: how;
}
.how-step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.how-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(69,231,255,0.08);
  color: var(--accent-2);
  border: 1px solid rgba(69,231,255,0.25);
  margin-bottom: 14px;
}
.how-step h3 { margin-bottom: 8px; }
.how-step p { font-size: 0.95rem; }

/* ============ Catalog disclosure ============ */
.catalog-disclosure {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(69,231,255,0.05);
  border: 1px solid rgba(69,231,255,0.2);
  color: var(--text-mute);
  font-size: 0.92rem;
  text-align: center;
}
.catalog-disclosure strong { color: var(--text); font-weight: 600; }

/* ============ Outbound icon ============ */
.ext-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.95em;
  opacity: 0.85;
}

/* ============ Push notification card ============ */
.push-card { display: flex; flex-direction: column; gap: 18px; }
.push-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.push-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,61,138,0.18), rgba(69,231,255,0.18));
  border: 1px solid var(--line-strong);
  font-size: 22px;
}
.push-card-head h3 { margin-bottom: 4px; }
.push-meta { color: var(--text-dim); font-size: 12px; margin: 0; }
.push-state {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}
.push-state[data-kind="ok"] {
  background: rgba(69,231,255,0.08);
  border: 1px solid rgba(69,231,255,0.3);
  color: var(--accent-2);
}
.push-state[data-kind="warn"] {
  background: rgba(255,61,138,0.08);
  border: 1px solid rgba(255,61,138,0.3);
  color: var(--accent);
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.about-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,61,138,0.2);
}
.about-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,61,138,0.18), rgba(69,231,255,0.18));
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  margin-bottom: 18px;
}
.about-card h3 { margin-bottom: 10px; }
.about-card p { font-size: 0.95rem; }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 3 / 4;
  transition: transform .3s ease, border-color .3s ease;
}
.gallery-item:hover { transform: translateY(-6px); border-color: var(--accent); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .3s ease;
  filter: saturate(0.95);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery-num {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11,10,22,0.7);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(11,10,22,0.95));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gallery-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gallery-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text);
}

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, border-color .25s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,61,138,0.5), rgba(69,231,255,0.5), transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); }
.feature:hover::before { opacity: 1; }
.feature-mark {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,61,138,0.1);
  border: 1px solid rgba(255,61,138,0.25);
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.95rem; }

/* ============ Games ============ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.game-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, border-color .25s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.game-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.game-card-top img {
  width: 72px; height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.game-card-meta { flex: 1; min-width: 0; }
.game-title { font-size: 1.15rem; margin-bottom: 4px; }
.game-developer { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: rgba(69,231,255,0.08);
  border: 1px solid rgba(69,231,255,0.2);
  text-transform: uppercase;
}
.game-desc { font-size: 0.95rem; margin-bottom: 18px; flex: 1; }
.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.screenshots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

/* ============ Terminal (push CTA) ============ */
.section-terminal {
  background:
    radial-gradient(600px 360px at 50% 0%, rgba(255,61,138,0.08), transparent 70%),
    transparent;
}
.terminal-shell {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #07060f;
  box-shadow:
    0 0 0 1px rgba(255,61,138,0.12),
    0 40px 80px -30px rgba(0,0,0,0.9),
    0 0 60px -20px rgba(69,231,255,0.18);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: #110f22;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.terminal-dots { display: inline-flex; gap: 6px; }
.terminal-dots .dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.terminal-dots .dot-r { background: #ff5f57; }
.terminal-dots .dot-y { background: #febc2e; }
.terminal-dots .dot-g { background: #28c840; }
.terminal-path {
  flex: 1;
  text-align: center;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-status {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}
.terminal-status[data-state="working"] { color: var(--accent); }
.terminal-status[data-state="ok"] { color: var(--accent-2); }
.terminal-status[data-state="warn"] { color: var(--accent); }

.terminal-body {
  padding: 24px 28px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}
.terminal-line,
.terminal-out,
.terminal-foot {
  font-family: inherit;
  font-size: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.terminal-line { color: var(--text); margin-top: 14px; }
.terminal-line:first-of-type { margin-top: 0; }
.terminal-out { color: var(--text-mute); padding-left: 18px; }
.terminal-foot { padding-left: 18px; margin-top: 22px; font-size: 12px; }
.terminal-foot a { color: var(--accent-2); }

.t-prompt { color: var(--accent); font-weight: 700; margin-right: 8px; }
.t-comment { color: var(--text-dim); font-style: italic; }
.t-key { color: var(--accent-3); }
.t-ok { color: var(--accent-2); font-weight: 700; }

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: middle;
  animation: t-blink 1.05s steps(2) infinite;
}
@keyframes t-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .t-cursor { animation: none; } }

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 18px;
  margin-top: 18px;
}
.terminal-cta {
  font-family: 'JetBrains Mono', monospace !important;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 12px 22px !important;
  border-radius: 6px !important;
}
.t-bracket {
  color: rgba(255,255,255,0.5);
  margin: 0 4px;
}
.terminal-cta:hover .t-bracket { color: rgba(255,255,255,0.85); }
.terminal-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

/* ID-based shared state (reused from modal & inline) */
.push-state {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  text-align: left;
  margin: 16px 0 0 18px;
}
.push-state::before {
  content: "> ";
  color: var(--accent);
}
.push-state[data-kind="ok"] {
  background: rgba(69,231,255,0.06);
  border: 1px solid rgba(69,231,255,0.3);
  color: var(--accent-2);
}
.push-state[data-kind="warn"] {
  background: rgba(255,61,138,0.06);
  border: 1px solid rgba(255,61,138,0.3);
  color: var(--accent);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,61,138,0.1);
  border: 1px solid rgba(255,61,138,0.25);
  color: var(--accent);
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--text-mute); font-size: 0.95rem; }

/* ============ Trust ============ */
.section-trust { padding-top: 40px; padding-bottom: 100px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  text-align: left;
}
.trust-icon {
  font-size: 22px;
  color: var(--accent-2);
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(69,231,255,0.08);
  border: 1px solid rgba(69,231,255,0.2);
  margin-bottom: 14px;
}
.trust-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
}
.trust-item p { font-size: 0.9rem; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(11,10,22,0.6);
  padding: 64px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { margin-top: 14px; color: var(--text-dim); font-size: 0.95rem; max-width: 320px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a { color: var(--text-mute); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-col li { color: var(--text-mute); font-size: 14px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ============ Push modal ============ */
.push-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: push-modal-in .25s ease;
}
.push-modal[hidden] { display: none; }
.push-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.push-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 36px 30px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,61,138,0.18),
    0 0 80px -20px rgba(255,61,138,0.35);
  text-align: center;
  animation: push-modal-card-in .3s cubic-bezier(.2,.7,.3,1.1);
}
.push-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  color: var(--text-mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.push-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  transform: rotate(90deg);
}
.push-modal-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(255,61,138,0.22), rgba(69,231,255,0.22));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 30px -8px rgba(255,61,138,0.4);
}
.push-modal-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.push-modal-card p {
  font-size: 0.95rem;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.push-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.push-modal-state {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}
.push-modal-state[data-kind="ok"] {
  background: rgba(69,231,255,0.08);
  border: 1px solid rgba(69,231,255,0.3);
  color: var(--accent-2);
}
.push-modal-state[data-kind="warn"] {
  background: rgba(255,61,138,0.08);
  border: 1px solid rgba(255,61,138,0.3);
  color: var(--accent);
}

@keyframes push-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes push-modal-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .push-modal, .push-modal-card { animation: none; }
}

@media (max-width: 480px) {
  .push-modal { padding: 16px; }
  .push-modal-card { padding: 32px 22px 22px; }
  .push-modal-card h3 { font-size: 1.2rem; }
  .push-modal-icon { width: 56px; height: 56px; font-size: 24px; }
}

/* ============ 404 page ============ */
.error-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 24px;
}
.error-code {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 50%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 22px;
}
.error-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 0;
  font-size: 14px;
}

/* ============ Legal pages (kept for inner pages) ============ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
}
.legal-content h2 { margin-top: 24px; margin-bottom: 12px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 10px 0 14px 22px; color: var(--text-mute); }
.legal-content li { margin-bottom: 6px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 90px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .terminal-shell { max-width: 100%; }
  .terminal-body { padding: 20px 18px 22px; font-size: 12.5px; }
  .terminal-out, .terminal-foot, .push-state, .terminal-actions { padding-left: 10px; }
  .terminal-actions { margin-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { grid-template-columns: 1fr; padding: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .trust-grid { grid-template-columns: 1fr; }
  .primary-nav ul { gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
  .primary-nav a { padding: 6px 10px; font-size: 13px; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .game-card { padding: 22px; }
  .terminal-bar { font-size: 11px; padding: 9px 12px; gap: 10px; }
  .terminal-path { display: none; }
  .terminal-cta { font-size: 12.5px; padding: 10px 16px !important; }
  .cookie-banner button { display: block; margin: 10px auto 0; }
}
