/* =========================================================
   Superaid Games — static marketing site
   Design: "Homepage Directions" option 2b — Bright & Joyful.
   Baloo 2 headings + Nunito body, lavender page, gradient
   hero card w/ floating game icons, pastel stat tiles.
   No build step — plain CSS.
   ========================================================= */

:root {
  --bg:        #f5f2ff;   /* soft lavender page (from brand ref image) */
  --ink:       #1a1533;   /* deep navy-plum */
  --muted:     #5b5470;
  --muted-2:   #7b7490;
  --muted-3:   #8a86a8;
  --pink:      #ff5db1;
  --orange:    #ff8a3d;
  --yellow:    #ffd23d;
  --gold:      #e0a800;
  --violet:    #8b5cf6;
  --maxw:      1160px;
  --font-head: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 242, 255, .85);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; font: 600 15px var(--font-body); color: var(--muted); }
.nav-links a { transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 700;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s;
  box-shadow: 0 8px 20px -10px rgba(26, 21, 51, .5);
}
.nav-cta:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 24px -10px rgba(26, 21, 51, .6); }

/* ===================== Hero (gradient card) ===================== */
.hero-wrap { padding: 14px 24px 0; max-width: calc(var(--maxw) + 48px); margin-inline: auto; }
.hero {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(130deg, var(--pink) 0%, var(--orange) 55%, var(--yellow) 100%);
  padding: 66px 56px 76px;
}
.eyebrow {
  margin: 0;
  font: 700 14px var(--font-body);
  color: rgba(255, 255, 255, .9);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 14px 0 0;
  font: 800 clamp(2.5rem, 6.4vw, 4.9rem)/1 var(--font-head);
  color: #fff;
  max-width: 760px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
.hero-sub {
  margin: 22px 0 0;
  max-width: 430px;
  font: 600 18px/1.5 var(--font-body);
  color: rgba(255, 255, 255, .92);
}

/* floating tilted game icons */
.float {
  position: absolute;
  border: 4px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
  object-fit: cover;
  animation: bob 6s ease-in-out infinite alternate;
}
.float-a { top: 44px; right: 60px; width: 118px; height: 118px; border-radius: 28px; transform: rotate(-8deg); }
.float-b { bottom: 40px; right: 200px; width: 88px; height: 88px; border-radius: 22px; transform: rotate(10deg); animation-delay: 1.2s; }
.float-c { top: 150px; right: 240px; width: 72px; height: 72px; border-radius: 18px; transform: rotate(-14deg); animation-delay: 2.4s; }
@keyframes bob {
  from { translate: 0 -6px; }
  to   { translate: 0 8px; }
}

/* ===================== Stats row ===================== */
.stats { display: flex; gap: 14px; padding: 34px 0 10px; flex-wrap: wrap; }
.stat {
  flex: 1 1 180px;
  border-radius: 20px;
  padding: 22px 26px;
  background: #fff;
}
.stat-num { display: block; font: 800 38px/1.2 var(--font-head); }
.stat-label { display: block; font: 600 14px var(--font-body); color: var(--muted); }
.stat:nth-child(1) { background: #fff5fb; } .stat:nth-child(1) .stat-num { color: var(--pink); }
.stat:nth-child(2) { background: #fff6ee; } .stat:nth-child(2) .stat-num { color: var(--orange); }
.stat:nth-child(3) { background: #fffbe9; } .stat:nth-child(3) .stat-num { color: var(--gold); }
.stat:nth-child(4) { background: #f2f0ff; } .stat:nth-child(4) .stat-num { color: var(--violet); }

/* ===================== Games grid ===================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 24px 0 52px;
  scroll-margin-top: 90px;
}
.game-card {
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(26, 21, 51, .25); }
.card-a { background: #f7f5ff; }
.card-b { background: #fff5fb; }
.card-c { background: #eafcfa; }

.game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}
.game-card h3 { margin: 0; font: 800 21px var(--font-head); color: var(--ink); }
.game-meta { margin: -6px 0 0; font: 600 13px var(--font-body); color: var(--muted-2); }

/* ---- Official store badges (Apple SVG + Google Play PNG) ----
   Google's PNG (646x250) has 42px transparent padding baked in around the
   562x166 badge; sizes/negative margins below make both render at the same
   visual height (~40px). Ratio if resizing:
   google img height = apple height * 250/166; google margin = -(42 * height/250). */
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.store-badge { display: inline-flex; align-items: center; transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.store-badge:hover { transform: translateY(-2px) scale(1.05); }
.store-badge img { display: block; }
.store-badge.apple img { height: 40px; width: auto; }
.store-badge.google img { height: 60px; width: auto; margin: -10px; }

/* ===================== Page hero (inner pages) ===================== */
.page-hero {
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(130deg, var(--pink) 0%, var(--orange) 55%, var(--yellow) 100%);
  padding: 48px 56px 54px;
  text-align: center;
}
.page-hero h1 { margin: 0; font: 800 clamp(2rem, 4.6vw, 3rem)/1.1 var(--font-head); color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
.page-hero-sub { margin: 10px 0 0; font: 600 16px var(--font-body); color: rgba(255, 255, 255, .92); }

/* ===================== Prose (About / Legal) ===================== */
.section { padding: 48px 0 64px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font: 800 22px var(--font-head); color: var(--ink); margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); font-weight: 600; font-size: 1.02rem; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.prose strong { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  padding: 12px 26px;
  font: 700 15px var(--font-body);
  text-decoration: none !important;
  box-shadow: 0 10px 22px -10px rgba(26, 21, 51, .5);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); }

/* ===================== Footer ===================== */
.site-footer { background: #faf9ff; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
  font: 600 13px var(--font-body);
  color: var(--muted-3);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { transition: color .15s; }
.footer-links a:hover { color: var(--ink); }

/* ===================== Responsive ===================== */
@media (max-width: 760px) {
  .hero { padding: 48px 28px 150px; }
  .float-a { top: auto; bottom: 24px; right: 24px; width: 96px; height: 96px; }
  .float-b { bottom: 40px; right: 136px; width: 72px; height: 72px; }
  .float-c { display: none; }
  .nav-links { gap: 16px; font-size: .9rem; }
  .brand-logo { height: 34px; }
  .footer-inner { justify-content: center; text-align: center; }
}
