/* ── MahWins – Global Styles ──────────────────────────────────────────────── */

:root {
  --hot-pink:   #E84F7A;
  --coral:      #FF6E5C;
  --tropical:   #5AAD91;
  --lemon:      #F8C843;
  --lavender:   #9C7DD4;
  --turquoise:  #3ABFBF;
  --peach:      #FFB88D;
  --navy:       #212651;
  --cream:      #FFFAF0;
  --card-bg:    #FFFFFF;
  --soft-gray:  #F5F3F8;
  --text-pri:   #212651;
  --text-sec:   #787888;
  --radius-lg:  24px;
  --radius-md:  16px;
  --radius-sm:  10px;
  --shadow:     0 8px 32px rgba(33,38,81,0.10);
  --shadow-sm:  0 4px 16px rgba(33,38,81,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, 'SF Pro Rounded', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--text-pri);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ── Utilities ────────────────────────────────────────────────────────────── */

.gradient-text {
  background: linear-gradient(90deg, var(--hot-pink), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--hot-pink), var(--coral));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(232,79,122,0.35);
  cursor: pointer;
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,79,122,0.45); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 40px;
  border: 2px solid var(--hot-pink);
  color: var(--hot-pink);
  font-weight: 700;
  font-size: 16px;
  transition: background .2s, color .2s, transform .2s;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover { background: var(--hot-pink); color: #fff; transform: translateY(-2px); }

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(232,79,122,0.1);
  color: var(--hot-pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--text-pri);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 540px;
}

section { padding: 96px 24px; }

.container { max-width: 1120px; margin: 0 auto; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255,250,240,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(33,38,81,0.07);
  transition: box-shadow .3s;
}

nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-pri);
}

.nav-logo .tile { font-size: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sec);
  transition: color .2s;
}
.nav-links a:hover { color: var(--hot-pink); }

.nav-cta { margin-left: 8px; }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

#hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.blob-1 { width: 600px; height: 600px; background: var(--hot-pink); top: -200px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--turquoise); bottom: -100px; left: -80px; }
.blob-3 { width: 300px; height: 300px; background: var(--lavender); top: 100px; left: 30%; }

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--soft-gray);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 24px;
}
.hero-badge span { color: var(--hot-pink); }

.hero-title {
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-pri);
}
.hero-stat span { font-size: 13px; color: var(--text-sec); font-weight: 500; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-wrap {
  position: relative;
  width: 300px;
}

.phone {
  width: 300px;
  height: 620px;
  border-radius: 48px;
  background: var(--navy);
  box-shadow: 0 40px 100px rgba(33,38,81,0.35), 0 0 0 1.5px rgba(255,255,255,0.12) inset;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-screen {
  flex: 1;
  background: var(--cream);
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-appbar {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--hot-pink);
  padding-bottom: 8px;
}

.phone-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.phone-card-header {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.phone-card-header.win  { background: linear-gradient(90deg, var(--hot-pink), var(--coral)); }
.phone-card-header.loss { background: linear-gradient(90deg, var(--navy), #3A3D6B); }

.phone-card-body {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(232,79,122,0.12);
  color: var(--hot-pink);
}

.phone-pill.purple {
  background: rgba(156,125,212,0.12);
  color: var(--lavender);
}

.phone-avatars { display: flex; gap: -6px; }
.phone-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin-right: -6px;
}

.phone-stat-row {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-around;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.phone-stat { text-align: center; }
.phone-stat strong { display: block; font-size: 16px; font-weight: 800; color: var(--text-pri); }
.phone-stat small { font-size: 9px; color: var(--text-sec); }

.phone-float {
  position: absolute;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.float-1 {
  background: var(--card-bg);
  color: var(--text-pri);
  top: 80px;
  right: -60px;
}
.float-2 {
  background: linear-gradient(90deg, var(--hot-pink), var(--coral));
  color: #fff;
  bottom: 120px;
  left: -50px;
}

/* ── Features ─────────────────────────────────────────────────────────────── */

#features { background: var(--soft-gray); }

.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-sub { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-pri);
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sec);
}

/* ── How It Works ─────────────────────────────────────────────────────────── */

#how {
  background: var(--cream);
}

.how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.steps { display: flex; flex-direction: column; gap: 32px; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hot-pink), var(--coral));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(232,79,122,0.3);
}

.step-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-pri);
}
.step-text p { font-size: 14px; color: var(--text-sec); line-height: 1.65; }

/* Scrolling card stack for the how section */
.how-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.how-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform .3s;
}
.how-card:hover { transform: translateX(6px); }

.how-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.how-card-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 4px;
}
.how-card-text span { font-size: 13px; color: var(--text-sec); }

/* ── Group Play ───────────────────────────────────────────────────────────── */

#groups {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

#groups::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--hot-pink);
  opacity: .08;
  top: -200px;
  right: -100px;
  pointer-events: none;
}
#groups::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--turquoise);
  opacity: .06;
  bottom: -150px;
  left: -80px;
  pointer-events: none;
}

.groups-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.groups-text .section-label {
  background: rgba(255,255,255,0.1);
  color: var(--peach);
}

.groups-text .section-title { color: #fff; }
.groups-text .section-sub   { color: rgba(255,255,255,0.65); }

.groups-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.perk-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Leaderboard mockup */
.leaderboard {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.leaderboard-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.lb-row {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .2s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,0.04); }

.lb-rank {
  font-size: 15px;
  font-weight: 800;
  width: 24px;
  text-align: center;
}
.lb-rank.gold   { color: var(--lemon); }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: var(--peach); }

.lb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.lb-name { flex: 1; font-size: 14px; font-weight: 600; color: #fff; }

.lb-wins {
  font-size: 14px;
  font-weight: 700;
  color: var(--hot-pink);
}

/* ── Photos ───────────────────────────────────────────────────────────────── */

#photos { background: var(--soft-gray); }

.photos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.photo-tile-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  overflow: hidden;
}

.photo-tile-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s;
  background: linear-gradient(135deg, var(--hot-pink), var(--coral));
}

.photo-tile:hover .photo-tile-inner::after { opacity: 0.2; }

/* ── Download CTA ─────────────────────────────────────────────────────────── */

#download {
  background: linear-gradient(135deg, var(--hot-pink) 0%, var(--coral) 50%, var(--lavender) 100%);
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

#download::before {
  content: '🀄';
  position: absolute;
  font-size: 300px;
  opacity: .05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

.download-inner { position: relative; z-index: 1; }

#download .section-title { color: #fff; margin-bottom: 16px; }
#download .section-sub   { color: rgba(255,255,255,0.8); margin: 0 auto 40px; }

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.store-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.store-btn svg  { width: 22px; height: 22px; fill: #fff; }
.store-btn-text small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 24px 36px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-brand .nav-logo { color: #fff; font-size: 20px; }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .3px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color .2s;
}
.footer-col a:hover { color: var(--hot-pink); }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--hot-pink); }

/* ── Animations ───────────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner,
  .how-inner,
  .groups-inner,
  .photos-inner { grid-template-columns: 1fr; gap: 48px; }

  .hero-visual { order: -1; }
  .hero-title  { font-size: 42px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: block; }
}

@media (max-width: 580px) {
  section { padding: 72px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .phone-wrap { width: 260px; }
  .phone { width: 260px; height: 540px; }
  .float-1, .float-2 { display: none; }
}
