:root {
  --sky-1: #2F8CFF;
  --sky-2: #4FC3FF;
  --sea-1: #19A7E8;
  --sea-2: #0E5AC8;
  --navy: #0B2A5B;
  --ink: #12213F;
  --gold-1: #FFD23F;
  --gold-2: #FFA41B;
  --cream: #FFF8EC;
  --radius: 28px;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 56px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: rgba(11, 42, 91, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,.18); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 13px); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { width: 13px; height: 13px; border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.brand-mark span:nth-child(1) { background: #FFC531; }
.brand-mark span:nth-child(2) { background: #3BD16F; }
.brand-mark span:nth-child(3) { background: #2F7BFF; }
.brand-mark span:nth-child(4) { background: #FF5A5A; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .2px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.brand-name b { color: var(--gold-1); font-weight: 700; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 30px); align-items: center; font-weight: 800; color: #fff; }
.nav-links a { opacity: .92; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.5); padding: 7px 16px; border-radius: 999px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 19px;
  padding: 15px 28px; border-radius: 999px; transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:active { transform: translateY(2px) scale(.98); }
.btn-gold {
  color: #5A2A00;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 6px 0 #C46A00, 0 12px 26px rgba(196, 106, 0, .35), inset 0 2px 0 rgba(255,255,255,.6);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 3px solid rgba(255,255,255,.75); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 960px); min-height: min(100svh, 960px);
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sea-1) 76%, var(--sea-2) 100%);
  color: #fff; padding: 110px clamp(18px, 5vw, 56px) 150px;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 46%;
  background: url('assets/ocean.webp') center/cover; opacity: .35; mix-blend-mode: soft-light; pointer-events: none;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute; height: 70px; border-radius: 999px; background: rgba(255,255,255,.8);
  filter: blur(2px); box-shadow: 40px -22px 0 6px rgba(255,255,255,.8), 90px 2px 0 0 rgba(255,255,255,.8);
  animation: drift linear infinite;
}
.c1 { top: 14%; width: 150px; animation-duration: 70s; animation-delay: -20s; }
.c2 { top: 34%; width: 110px; opacity: .65; animation-duration: 95s; animation-delay: -60s; }
.c3 { top: 8%; width: 90px; opacity: .5; animation-duration: 120s; animation-delay: -5s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 260px)); } }

.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 70px); align-items: center;
}
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.4); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow.dark { color: var(--sea-2); background: rgba(14,90,200,.08); border-color: rgba(14,90,200,.18); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; }
h1 { font-size: clamp(42px, 6.4vw, 82px); font-weight: 700; text-shadow: 0 4px 0 rgba(8, 60, 140, .35); }
h1 .pop { color: var(--gold-1); display: inline-block; text-shadow: 0 4px 0 #C46A00, 0 10px 30px rgba(255, 170, 0, .45); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 540px; margin: 22px 0 34px; opacity: .95; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; justify-self: center; width: min(360px, 78vw); aspect-ratio: 9 / 16; }
.phone {
  position: absolute; inset: 0; border-radius: 44px; overflow: hidden; background: #000;
  border: 10px solid #0D1B35; box-shadow: 0 30px 70px rgba(5, 30, 80, .45), 0 0 0 3px rgba(255,255,255,.25);
  transform: rotate(4deg); animation: bob 6s ease-in-out infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-12px); } }

.float-icon { position: absolute; width: 30%; border-radius: 24%; box-shadow: 0 14px 30px rgba(5,30,80,.35); border: 4px solid #fff; animation: float 7s ease-in-out infinite; }
.fi-1 { left: -22%; top: 16%; transform: rotate(-10deg); }
.fi-2 { right: -20%; bottom: 14%; animation-delay: -3.5s; transform: rotate(9deg); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.float-coin { position: absolute; width: 13%; filter: drop-shadow(0 6px 10px rgba(150, 80, 0, .4)); animation: coin 4.5s ease-in-out infinite; }
.k1 { right: -8%; top: 6%; }
.k2 { left: -6%; bottom: 24%; width: 10%; animation-delay: -1.5s; }
.k3 { right: 12%; top: -6%; width: 8%; animation-delay: -3s; }
@keyframes coin { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
.glint { position: absolute; width: 9%; opacity: 0; animation: twinkle 3.2s ease-in-out infinite; }
.g1 { left: 8%; top: 4%; }
.g2 { right: -14%; top: 42%; animation-delay: -1.1s; }
.g3 { left: -14%; top: 58%; animation-delay: -2.2s; width: 7%; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 15% { opacity: 1; transform: scale(1) rotate(25deg); } 35% { opacity: 0; transform: scale(.5) rotate(45deg); } }

.waves { position: absolute; left: 0; bottom: -1px; width: 200%; height: 120px; z-index: 3; }
.wave { fill: var(--cream); }
.w1 { opacity: .55; animation: wave 14s linear infinite; }
.w2 { animation: wave 9s linear infinite reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Games ---------- */
.games { padding: 90px clamp(18px, 5vw, 56px) 110px; max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 54px; }
h2 { font-size: clamp(32px, 4.4vw, 54px); color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 0 rgba(11,42,91,.06), 0 18px 40px rgba(11, 42, 91, .12);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 26px 60px rgba(11, 42, 91, .2); }
.card-art {
  position: relative; height: 230px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.55), transparent 60%), linear-gradient(160deg, var(--accent), var(--accent-2));
}
.card-art::before {
  content: ''; position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.14) 0 10deg, transparent 10deg 20deg);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.card-logo { position: relative; width: auto; max-width: 82%; max-height: 190px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.25)); transition: transform .3s; }
.card-hero-icon { position: relative; width: 164px; height: 164px; border-radius: 24%; border: 5px solid #fff; box-shadow: 0 16px 30px rgba(0,0,0,.25); transition: transform .3s; }
.card:hover .card-logo, .card:hover .card-hero-icon { transform: scale(1.06) rotate(-2deg); }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-title { display: flex; gap: 14px; align-items: center; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
h3 { font-size: 25px; color: var(--navy); }
.tag { font-size: 13px; font-weight: 800; color: var(--accent-2); text-transform: uppercase; letter-spacing: 1px; }
.card p { line-height: 1.6; color: #44506A; flex: 1; }
.store {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: #0D1B35; color: #fff; font-weight: 800; padding: 11px 20px; border-radius: 14px; transition: transform .15s, background .15s;
}
.store svg { width: 20px; height: 20px; fill: currentColor; }
a.store:hover { transform: translateY(-2px); background: #1C2E55; }
.store.soon { background: #EEF1F7; color: #7A8499; }

/* ---------- Numbers ---------- */
.numbers {
  position: relative; color: #fff; padding: 80px clamp(18px, 5vw, 56px);
  background: linear-gradient(135deg, var(--sea-2), #2F8CFF 60%, #33C0FF);
  overflow: hidden;
}
.numbers::before {
  content: ''; position: absolute; inset: 0; background: url('assets/ocean.webp') center/cover; opacity: .18; mix-blend-mode: screen;
}
.numbers-inner { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; color: var(--gold-1); text-shadow: 0 4px 0 rgba(150, 70, 0, .45); }
.stat span { font-weight: 800; font-size: 17px; opacity: .95; }

/* ---------- Contact ---------- */
.contact { padding: 110px clamp(18px, 5vw, 56px); }
.contact-card {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center; padding: 64px 32px;
  background: #fff; border-radius: 36px; box-shadow: 0 20px 50px rgba(11, 42, 91, .12);
}
.contact-card p { margin: 14px 0 30px; font-size: 18px; color: #44506A; }
.contact-coin { position: absolute; width: 80px; top: -36px; left: 50%; translate: -50% 0; animation: coin 4.5s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(150, 80, 0, .35)); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 28px clamp(18px, 5vw, 56px); background: var(--navy); color: rgba(255,255,255,.8); font-weight: 700;
}
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(2) { transition-delay: .1s; }
.cards .card:nth-child(3) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { width: min(300px, 64vw); margin-top: 20px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .numbers-inner { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
