/* ============================================================
   GamePod Emu — landing site stylesheet
   Retro 8-bit design system matching the app's pixel-art brand
   ============================================================ */

:root {
  --bg: #101014;
  --bg-2: #17171d;
  --card: #1d1d26;
  --card-2: #23232e;
  --border: #2e2e3a;
  --text: #f2f2f6;
  --muted: #a9a9bc;
  --dim: #7c7c90;
  --orange: #ff8a00;
  --orange-2: #ffb454;
  --blue: #3b82f6;
  --blue-deep: #1e5fd0;
  --yellow: #ffd60a;
  --purple: #8b7cf6;
  --green: #34d399;
  --red: #f87171;
  --radius: 14px;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- typography ---------- */

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }

.pixel-heading {
  font-family: var(--font-pixel);
  line-height: 1.5;
  letter-spacing: 0;
}

.kicker {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--yellow);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 42px;
}

.center { text-align: center; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--text);
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  background: var(--orange);
  color: #14100a !important;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 15px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-2); text-decoration: none; }

@media (max-width: 760px) {
  .nav-links li:not(.nav-cta-li) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(700px 420px at 12% 8%, rgba(255, 138, 0, 0.13), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(139, 124, 246, 0.35);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 850;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--orange); }

.hero-sub {
  color: var(--muted);
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }

.appstore-badge { display: inline-block; transition: transform 0.15s ease; }
.appstore-badge:hover { transform: scale(1.04); }
.appstore-badge svg, .appstore-badge img { height: 56px; width: auto; }

.rating-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
}
.rating-stars { color: var(--yellow); font-size: 17px; letter-spacing: 2px; }
.rating-chip strong { color: var(--text); font-size: 16px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.hero-meta li {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot img {
  width: min(340px, 78vw);
  border-radius: 34px;
  border: 6px solid #26262f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* console ticker */
.console-ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 16px 0;
  margin-top: 56px;
}
.console-ticker .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}
.console-ticker span {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--dim);
}
.console-ticker span b { color: var(--orange); font-weight: 400; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature-card .emoji { font-size: 28px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- screenshots ---------- */

.shots-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-rail::-webkit-scrollbar { height: 8px; }
.shots-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: min(280px, 72vw);
}
.shot img {
  border-radius: 24px;
  border: 4px solid #26262f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.shot figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step-num {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: #14100a;
  background: var(--orange);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step a { font-weight: 600; }

/* ---------- consoles grid ---------- */

.console-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .console-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .console-grid { grid-template-columns: repeat(3, 1fr); } }

.console-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 8px;
  text-align: center;
}
.console-cell:hover { border-color: var(--orange); text-decoration: none; }
.console-cell .abbr {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--yellow);
  display: block;
  margin-bottom: 8px;
}
.console-cell .full { font-size: 12.5px; color: var(--muted); display: block; line-height: 1.4; }

/* ---------- guides ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { border-color: var(--orange); transform: translateY(-3px); text-decoration: none; }
.guide-card .tag {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--blue);
  text-transform: uppercase;
}
.guide-card h3 { font-size: 17.5px; line-height: 1.4; }
.guide-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.guide-card .read-more { color: var(--orange-2); font-weight: 600; font-size: 14.5px; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 650;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--orange);
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "-"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq-item .faq-body a { font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(255, 138, 0, 0.22), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  text-align: center;
  padding: 64px 28px;
}
.cta-band .app-icon-sm { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 22px; }
.cta-band h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 52px 0 34px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-brand span { font-family: var(--font-pixel); font-size: 11px; color: var(--text); }

.site-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.7;
}

.footer-lang {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--dim);
}
.footer-lang a { color: var(--muted); }
.footer-lang a:hover { color: var(--text); }
.footer-lang span[aria-current] { color: var(--orange-2); font-weight: 600; }

/* ---------- guide article pages ---------- */

.article-hero {
  padding: 56px 0 36px;
  background:
    radial-gradient(700px 380px at 85% -20%, rgba(59, 130, 246, 0.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs { font-size: 13.5px; color: var(--dim); margin-bottom: 18px; }
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--text); }
.article-hero h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 820; max-width: 820px; margin-bottom: 16px; }
.article-hero .lede { color: var(--muted); font-size: 18.5px; max-width: 760px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 56px 0 72px;
}
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

.article-body { max-width: 760px; min-width: 0; }
.article-body h2 { font-size: 26px; margin: 44px 0 14px; font-weight: 750; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 20px; margin: 30px 0 10px; }
.article-body p { color: #c9c9d6; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #c9c9d6; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body img { border-radius: 18px; border: 3px solid #26262f; margin: 8px 0 20px; }

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 15.5px;
  color: var(--muted);
}
.callout.legal { border-left-color: var(--blue); }
.callout strong { color: var(--text); }

.inline-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 34px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.inline-cta img.icon { width: 58px; height: 58px; border-radius: 13px; }
.inline-cta .txt { flex: 1; min-width: 200px; }
.inline-cta .txt strong { display: block; font-size: 17px; margin-bottom: 4px; }
.inline-cta .txt span { color: var(--muted); font-size: 14.5px; }

/* sidebar */
.article-aside { position: relative; }
.aside-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 84px;
}
.aside-card img.icon { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 14px; }
.aside-card h3 { font-size: 17px; margin-bottom: 6px; }
.aside-card .stars { color: var(--yellow); font-size: 14px; margin-bottom: 4px; }
.aside-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.aside-card .aside-links { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.aside-card .aside-links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); margin-bottom: 10px; }
.aside-card .aside-links ul { list-style: none; }
.aside-card .aside-links li { margin-bottom: 8px; font-size: 14px; }

/* misc */
.pixel-divider {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 12px, var(--blue) 12px 24px, var(--yellow) 24px 36px, var(--purple) 36px 48px);
  border: 0;
  image-rendering: pixelated;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--orange);
  color: #14100a;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 12px; }
