/* Nova Rogues landing page. Self-contained: no external fonts or scripts. The subpages (privacy, support, get)
   keep their own style.css. */
:root {
  --bg: #08091a;
  --panel: #12142b;
  --text: #e4e5f2;
  --muted: #9a9cb8;
  --accent: #ff9646;       /* the ads' orange: player side */
  --violet: #8a5cff;       /* threat */
  --border: #262a4a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }

/* --- Hero: the store header (the logo is in the picture), the tagline and stores under it --- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { position: relative; background: var(--bg); }
.hero-art { width: 100%; }
.hero-cta {
  text-align: center;
  padding: 28px 24px 44px;
  margin-top: -6vw;                  /* tuck under the picture's dark lower edge */
  position: relative;
  background: linear-gradient(180deg, rgba(8, 9, 26, 0) 0%, var(--bg) 40%);
}
.tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 0 auto 22px; max-width: 640px; }
.free { color: var(--muted); margin: 14px 0 0; font-size: 0.95rem; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.store img { height: 54px; width: auto; }
.store:hover img { filter: brightness(1.15); }

/* --- The game running on a phone --- */
.play {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}
.play h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; line-height: 1.2; }
.play p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.phone {
  width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  padding: 10px;
  background: #05060f;
  border: 2px solid #2d3260;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(70, 210, 190, 0.16);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; display: block; background: #000; }

/* --- Numbers --- */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}
.facts b { display: block; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; color: var(--accent); }
.facts span { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Features: a screenshot beside its text, alternating sides --- */
.feature {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px;
}
.feature img { border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.feature.flip { grid-template-columns: minmax(0, 1fr) 280px; }
.feature.flip img { order: 2; }
.feature h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; line-height: 1.2; }
.feature p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* --- Screenshot strip --- */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 48px max(24px, calc((100vw - 1200px) / 2)) 56px;
  scrollbar-width: thin;
}
.gallery img {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 18px;
  border: 1px solid var(--border);
  scroll-snap-align: center;
}

/* --- Closing call to action --- */
.cta {
  text-align: center;
  padding: 64px 24px 72px;
  background: radial-gradient(ellipse at 50% 0%, rgba(138, 92, 255, 0.22), rgba(8, 9, 26, 0) 70%);
}
.cta .icon { width: 112px; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.cta h2 { font-size: 2rem; margin: 0 0 24px; }
.cta .stores { justify-content: center; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); text-align: center; padding: 40px 24px 48px; color: var(--muted); font-size: 0.9rem; }
.studio { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.studio-logo { width: 48px; }
.studio-wordmark { width: 130px; opacity: 0.85; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.links a { color: var(--text); text-decoration: none; }
.links a:hover { color: var(--accent); }
.footer p { margin: 0; }

/* --- Phones --- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-cta { margin-top: -10vw; padding: 20px 16px 32px; }
  .store img { height: 48px; }
  .play { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 8px; text-align: center; }
  .phone { width: min(240px, 66vw); margin: 0 auto; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 20px 8px; padding: 32px 16px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; padding: 40px 16px; text-align: center; }
  .feature img, .feature.flip img { order: 0; width: min(260px, 70vw); margin: 0 auto; }
  .gallery img { width: 180px; }
}
