:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text: #0b1220;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --border: rgba(11, 18, 32, 0.06);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle farthest-corner at center, #56B8FE 0%, #065ED9 90%, #00317C 100%);
  background-attachment: fixed;
  color: #ffffff;
}

/* topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  z-index: 1200;
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  display: block;
  object-fit: cover;
  vertical-align: middle;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.store-button-wrap {
  position: relative;
  display: inline-flex;
}

.store-button-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: -4px;
  background: #adb7c4;
  border-radius: 10px;
  z-index: 0;
}

.store-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(11,18,32,0.08);
  z-index: 1;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.store-button:hover {
  transform: none;
}

.store-button.pressed {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

/* Mobile / small screens: compact topbar */
@media (max-width: 600px) {
  .topbar {
    height: 56px;
    padding: 0 0.5rem;
  }

  .brand {
    gap: 8px;
  }

  .logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .store-button {
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
  }

  .store-button-wrap::before {
    bottom: -2px;
    border-radius: 8px;
  }

  .container {
    padding: 0 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ensure page content isn't hidden under the fixed topbar */
body { padding-top: 72px; }

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

.container {
  width: 100%;
  max-width: 100%;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.site-footer {
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  background: rgba(4, 8, 24, 0.44);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.site-footer a,
.footer-links a,
.footer-socials a {
  color: #ffffff;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Make all textual links white by default for readability */
a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
}

.footer-socials span {
  font-size: 0.95rem;
  color: #ffffff;
  opacity: 0.9;
}

.social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
}

.social-link img.social-icon {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  display: inline-block;
}

.discord-wrap {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5865F2;
  border-radius: 6px;
}

.discord-wrap img {
  width: 0.85rem;
  height: 0.85rem;
  object-fit: contain;
  display: block;
}

/* Ensure the Discord image is smaller than its background box without changing the box size */
.footer-socials .social-link .discord-wrap img.social-icon {
  width: 0.6rem;
  height: 0.6rem;
}

.footer-copy {
  padding-top: 1rem;
  text-align: center;
}

.footer-copy p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
}

.hero {
  padding: 2.5rem 0 5rem;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 1.5rem 0 0;
  max-width: 560px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* tall scroll runway: gives .hero-phone (sticky) room to stay pinned
   while the user scrolls through the screenshots, then release once
   this track ends */
.phone-track {
  position: relative;
  height: 500vh;
  padding-top: 3rem;
}

.hero-phone {
  position: sticky;
  /* center the 85vh phone within the space actually visible below the
     fixed 72px header, not the full 100vh viewport */
  top: calc(7.5vh + 36px);
  height: 85vh;
  width: auto;
  max-width: 92vw;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  height: 100%;
  width: auto;
  aspect-ratio: 1350 / 2760;
  max-width: 100%;
  border-radius: clamp(28px, 8vw, 56px);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 15, 60, 0.4);
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-screen .screenshot,
.phone-screen .phone-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-screen .screenshot {
  opacity: 0;
  transition: opacity 320ms ease;
}

.phone-screen .screenshot.active {
  opacity: 1;
}

.phone-screen .phone-mockup {
  pointer-events: none;
}

.app-badge img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

.hero .app-badge {
  margin-top: 2.5rem;
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }
}

.section-title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

.feature {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.games {
  padding: 2rem 0 5rem;
}

.games-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.game {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.game:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.game-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}

.game-name {
  font-size: 1.1rem;
  font-weight: 600;
}


