/* ============================================================
   PixelPeak Studios — global stylesheet
   Dark gaming theme · mobile-first · dependency-free
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --bg:          #0A0E1A;
  --bg-2:        #0C1122;
  --surface:     #141B2E;
  --surface-2:   #1A2238;
  --border:      rgba(255, 255, 255, 0.08);
  --border-str:  rgba(255, 255, 255, 0.14);

  --text:        #E8ECF6;
  --text-muted:  #9AA6C0;
  --text-dim:    #6B7794;

  --accent:      #FFB020;   /* gold */
  --accent-2:    #FFC658;
  --accent-ink:  #1A1200;
  --glow:        #3B82F6;   /* electric blue secondary */
  --glow-2:      #8B5CF6;   /* violet */

  --live:        #34D399;
  --testing:     #FBBF24;

  /* Scale */
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--border), 0 18px 50px -20px rgba(59, 130, 246, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vw at 15% -5%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(55vw 55vw at 100% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(80vw 50vw at 50% 120%, rgba(255, 176, 32, 0.07), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
p  { color: var(--text-muted); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 9vw, 96px); }
.section--tight { padding-block: clamp(32px, 6vw, 60px); }
.eyebrow {
  color: var(--accent);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 12px;
}
.lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; letter-spacing: -0.03em; font-size: 1.15rem;
}
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative; box-shadow: 0 0 18px -4px var(--accent);
}
.brand__mark::after {
  content: ""; position: absolute; inset: 7px 7px auto auto;
  width: 10px; height: 10px; border-radius: 3px; background: var(--bg);
}
.brand__name { color: var(--text); }
.brand__name b { color: var(--accent); }

.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 10px; cursor: pointer;
}
.nav__toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: fixed; inset: 66px 0 auto 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  display: grid; gap: 2px; padding: 12px 20px 20px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: 0.25s var(--ease);
}
.nav__menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav__menu a {
  padding: 12px 12px; border-radius: 10px; color: var(--text-muted); font-weight: 600;
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav__menu a[aria-current="page"] { color: var(--accent); }
.nav__menu .btn { margin-top: 8px; justify-content: center; }

@media (min-width: 860px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; inset: auto; background: none; border: 0; padding: 0;
    display: flex; align-items: center; gap: 4px;
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav__menu a { padding: 8px 14px; }
  .nav__menu .btn { margin: 0 0 0 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 12px 30px -10px var(--accent); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-str); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }

/* Google Play button */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid #3a3a3a;
  padding: 10px 20px 10px 16px; border-radius: 12px; transition: 0.2s var(--ease);
}
.btn-play:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-play svg { width: 26px; height: 28px; flex: none; }
.btn-play span { display: block; }
.btn-play .small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c9c9c9; }
.btn-play .big { font-size: 1.18rem; font-weight: 700; line-height: 1.1; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.03em; border: 1px solid var(--border-str);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.badge--live { color: var(--live); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.badge--live::before { background: var(--live); box-shadow: 0 0 8px var(--live); }
.badge--testing { color: var(--testing); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.badge--testing::before { background: var(--testing); box-shadow: 0 0 8px var(--testing); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 12vw, 120px); text-align: center; }
.hero h1 { margin-bottom: 18px; }
.hero .gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 40%, var(--glow) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin: 0 auto 30px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: 0.25s var(--ease);
}
.card:hover { border-color: var(--border-str); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }

/* App card (Apps & Games) */
.app-card { display: flex; flex-direction: column; gap: 16px; }
.app-card__head { display: flex; align-items: center; gap: 14px; }
.app-card__icon {
  width: 62px; height: 62px; border-radius: 16px; flex: none;
  border: 1px solid var(--border-str); background: var(--surface-2);
}
.app-card__icon--placeholder {
  display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
}
.app-card__body { flex: 1; }
.app-card__title { font-size: 1.2rem; font-weight: 800; }
.app-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* Feature tiles */
.feature { padding: 22px; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.25);
  margin-bottom: 14px; font-size: 1.3rem;
}
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: 0.96rem; margin-top: 6px; }

/* ---------- Screenshot gallery ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 66%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; margin-inline: -20px; padding-inline: 20px;
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
}
.shots img {
  scroll-snap-align: center; border-radius: 16px; border: 1px solid var(--border);
  width: 100%; background: var(--surface);
}
@media (min-width: 640px) { .shots { grid-auto-columns: 40%; } }
@media (min-width: 960px) { .shots { grid-auto-columns: 25%; } }

/* ---------- Feature list (checks) ---------- */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; color: var(--accent); font-weight: 900; flex: none;
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px;
  background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.25);
  font-size: 0.85rem; margin-top: 2px;
}
.checklist li b { color: var(--text); font-weight: 700; }

/* ---------- Update notes ---------- */
.updates { display: grid; gap: 14px; }
.update {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 18px 20px;
}
.update__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.update__ver { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.update__ver .v { color: var(--accent); }
.update__date { color: var(--text-dim); font-size: 0.85rem; }
.update p { font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 4px 20px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; }

/* ---------- Callouts ---------- */
.note {
  border: 1px solid var(--border-str); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 10px; padding: 14px 18px; font-size: 0.92rem;
}
.note--info { border-left-color: var(--glow); }
.placeholder {
  display: inline-block; background: rgba(255, 176, 32, 0.14); color: var(--accent-2);
  border: 1px dashed rgba(255, 176, 32, 0.45); border-radius: 6px;
  padding: 1px 8px; font-size: 0.9em; font-weight: 600;
}

/* ---------- Split / spotlight ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split--rev > :first-child { order: 2; } }

.prose p + p { margin-top: 14px; }
.prose h2 { margin-top: 34px; margin-bottom: 12px; }
.prose h3 { margin-top: 22px; margin-bottom: 8px; color: var(--text); }
.prose ul { margin: 10px 0 10px 22px; }
.prose li { color: var(--text-muted); margin-bottom: 6px; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 40px;
  background: var(--bg-2); padding-block: 44px 30px;
}
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.footer nav { display: grid; gap: 8px; }
.footer nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer nav a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border); margin-top: 30px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 0.85rem;
}
.footer__disclaimer { max-width: 60ch; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin-block: 8px; }
.stack-sm > * + * { margin-top: 10px; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
