/* ===================================================================
   Ball Sort World — Main Stylesheet
   File: css/index.css
   To change colours / gradients / layout width, edit :root below.
   =================================================================== */

/* === VARIABLES === */
:root {
  /* --- Brand candy palette (the "balls") --- */
  --ball-purple: #6E5BFF;
  --ball-pink:   #FF6BCB;
  --ball-cyan:   #1FD1F9;
  --ball-yellow: #FFC93C;
  --ball-green:  #43E97B;
  --ball-orange: #FF8A5B;
  --ball-red:    #FF4D6D;

  /* --- Brand primary (purple→pink) --- */
  --primary:        #6E5BFF;
  --primary-dark:   #4B36D8;
  --primary-light:  #A597FF;
  --primary-pale:   #EFEBFF;

  /* --- Accent (sunset orange) --- */
  --accent:         #FF8A5B;
  --accent-light:   #FFB347;
  --accent-pale:    #FFE8DC;

  /* --- Neutral backgrounds --- */
  --cream:    #FFFCF8;
  --soft-bg:  #F5F1FF;
  --white:    #FFFFFF;

  /* --- Text --- */
  --text-dark:  #231656;
  --text-mid:   #5A4E8A;
  --text-soft:  #8B82B5;
  --text-light: #FFFFFF;

  /* --- Dark surfaces (footer) --- */
  --ink-deep:   #1A0F4D;
  --ink-mid:    #2C1F6E;

  /* --- Shadows --- */
  --shadow-purple: rgba(110, 91, 255, 0.22);
  --shadow-soft:   rgba(35, 22, 86, 0.10);
  --shadow-glow:   rgba(255, 107, 203, 0.28);

  /* --- Gradients --- */
  --gradient-hero: linear-gradient(135deg, #6E5BFF 0%, #FF6BCB 55%, #FFB347 100%);
  --gradient-cta:  linear-gradient(135deg, #4B36D8 0%, #6E5BFF 45%, #FF6BCB 100%);
  --gradient-pill: linear-gradient(135deg, #6E5BFF, #FF6BCB);
  --gradient-warm: linear-gradient(135deg, #FF8A5B, #FFC93C);

  /* --- Layout --- */
  --max-width: 1200px;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* === FLOATING DECORATIONS (candy balls) === */
.float-deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.32;
  filter: blur(1px);
  animation: floatDeco 18s infinite ease-in-out;
}
.float-deco::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 18%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(2px);
}
.float-deco:nth-child(1) { top: 8%;  left: 4%;
  background: radial-gradient(circle at 30% 30%, #A597FF, #6E5BFF 70%);
  animation-delay: 0s; width: 130px; height: 130px;
}
.float-deco:nth-child(2) { top: 22%; right: 6%;
  background: radial-gradient(circle at 30% 30%, #FFA8DD, #FF6BCB 70%);
  animation-delay: -4s; width: 90px; height: 90px;
}
.float-deco:nth-child(3) { top: 58%; left: 3%;
  background: radial-gradient(circle at 30% 30%, #6FE5FF, #1FD1F9 70%);
  animation-delay: -8s; width: 120px; height: 120px;
}
.float-deco:nth-child(4) { top: 78%; right: 5%;
  background: radial-gradient(circle at 30% 30%, #FFE08A, #FFC93C 70%);
  animation-delay: -12s; width: 100px; height: 100px;
}
.float-deco:nth-child(5) { top: 45%; right: 38%;
  background: radial-gradient(circle at 30% 30%, #80F2A4, #43E97B 70%);
  animation-delay: -6s; width: 80px; height: 80px;
}

@keyframes floatDeco {
  0%, 100% { transform: translateY(0)    rotate(0deg);  }
  33%      { transform: translateY(-30px) rotate(8deg);  }
  66%      { transform: translateY(15px)  rotate(-6deg); }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.9rem 2rem;
  transition: all 0.35s ease;
}
.navbar.scrolled {
  background: rgba(255, 252, 248, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px var(--shadow-soft);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 44px; height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px var(--shadow-purple);
}
.nav-logo-text {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  background: var(--gradient-pill);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2.5px;
  background: var(--gradient-pill);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Nav links colour when hero (dark gradient bg) is visible */
.navbar:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.92); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--ball-yellow); }
.navbar:not(.scrolled) .nav-links a::after { background: var(--ball-yellow); }

/* Recharge pill badge in nav */
.nav-recharge-link {
  background: var(--gradient-warm);
  color: #4A1500 !important;
  padding: 0.32rem 0.95rem;
  border-radius: 50px;
  font-weight: 800 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(255, 138, 91, 0.35);
}
.nav-recharge-link::after { display: none !important; }
.nav-recharge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 138, 91, 0.5) !important;
  color: #4A1500 !important;
}

.nav-download-btn {
  background: var(--gradient-pill);
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px var(--shadow-purple);
}
.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--shadow-purple);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar.scrolled .mobile-menu-btn span { background: var(--text-dark); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(255, 252, 248, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px var(--shadow-soft);
  padding: 1.2rem 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(110, 91, 255, 0.1);
}
.mobile-menu a:last-child { border-bottom: none; }

/* Coloured links inside mobile menu */
.mobile-menu-recharge  { color: var(--accent) !important; }
.mobile-menu-download  { color: var(--primary) !important; }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
}

/* Decorative glow circles */
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}
.hero-bg-circle:nth-child(1) { width: 500px; height: 500px; top: -180px; right: -80px;  }
.hero-bg-circle:nth-child(2) { width: 350px; height: 350px; bottom: -100px; left: -80px; }
.hero-bg-circle:nth-child(3) { width: 220px; height: 220px; top: 38%; left: 32%;        }

/* Floating colourful balls inside hero */
.hero-balls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-ball {
  position: absolute;
  border-radius: 50%;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
  animation: heroBallFloat 7s ease-in-out infinite;
}
.hero-ball::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 18%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(2px);
}
.hero-ball:nth-child(1) { top: 12%; left: 6%;  width: 60px; height: 60px;
  background: radial-gradient(circle at 30% 30%, #FFE08A, #FFC93C 70%); animation-delay: 0s;    }
.hero-ball:nth-child(2) { top: 70%; left: 12%; width: 48px; height: 48px;
  background: radial-gradient(circle at 30% 30%, #80F2A4, #43E97B 70%); animation-delay: -1.4s; }
.hero-ball:nth-child(3) { top: 22%; right: 8%; width: 70px; height: 70px;
  background: radial-gradient(circle at 30% 30%, #6FE5FF, #1FD1F9 70%); animation-delay: -2.8s; }
.hero-ball:nth-child(4) { top: 78%; right: 14%; width: 54px; height: 54px;
  background: radial-gradient(circle at 30% 30%, #FFA8DD, #FF6BCB 70%); animation-delay: -4.2s; }
.hero-ball:nth-child(5) { top: 50%; left: 4%;  width: 40px; height: 40px;
  background: radial-gradient(circle at 30% 30%, #FFB58F, #FF8A5B 70%); animation-delay: -3s;   }
.hero-ball:nth-child(6) { top: 45%; right: 4%; width: 36px; height: 36px;
  background: radial-gradient(circle at 30% 30%, #FF8FA5, #FF4D6D 70%); animation-delay: -5s;   }

@keyframes heroBallFloat {
  0%, 100% { transform: translateY(0)    scale(1);    }
  50%      { transform: translateY(-22px) scale(1.06); }
}

/* Hero layout */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.5rem 1.15rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-badge span { font-size: 1.1rem; }
.hero-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 2px 6px 18px rgba(0, 0, 0, 0.25);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Google Play button */
.hero-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 18px;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}
.hero-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}
.hero-store-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.hero-store-info  { display: flex; flex-direction: column; line-height: 1.2; }
.hero-store-label { font-size: 0.72rem; font-weight: 600; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-store-name  { font-size: 1.1rem; font-weight: 900; }

/* Recharge button (hero area) */
.hero-recharge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.22), rgba(255, 138, 91, 0.18));
  backdrop-filter: blur(10px);
  color: var(--white);
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 18px;
  font-weight: 800;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255, 201, 60, 0.6);
  box-shadow: 0 6px 22px rgba(255, 138, 91, 0.28);
}
.hero-recharge-btn:hover {
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.45), rgba(255, 138, 91, 0.4));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 138, 91, 0.42);
  border-color: rgba(255, 201, 60, 0.9);
}
.hero-recharge-btn .hero-store-info .hero-store-label { opacity: 0.78; }

/* Hero tags */
.hero-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.hero-tag {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.32rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* Phone mockups */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.6rem;
}
.hero-phone-wrap {
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}
.hero-phone-wrap.main-phone {
  z-index: 3;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  animation: heroFloat 4s ease-in-out infinite;
  --phone-base-transform: translateY(0);
  --phone-float-transform: translateY(-14px);
}
.hero-phone-wrap.side-phone-left {
  z-index: 2;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  animation: heroFloat 4s ease-in-out infinite;
  animation-delay: -1.5s;
  --phone-base-transform: rotate(-6deg) translateY(24px) scale(0.84);
  --phone-float-transform: rotate(-6deg) translateY(10px) scale(0.84);
}
.hero-phone-wrap.side-phone-right {
  z-index: 2;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  animation: heroFloat 4s ease-in-out infinite;
  animation-delay: -3s;
  --phone-base-transform: rotate(6deg) translateY(24px) scale(0.84);
  --phone-float-transform: rotate(6deg) translateY(10px) scale(0.84);
}
@keyframes heroFloat {
  0%, 100% { transform: var(--phone-base-transform,  translateY(0));     }
  50%      { transform: var(--phone-float-transform, translateY(-14px)); }
}
.hero-phone-frame {
  width: 200px;
  border-radius: 36px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.95);
  background: #000;
}
.hero-phone-frame img { width: 100%; display: block; }

/* === SECTION COMMONS === */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary-dark);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  background: var(--gradient-pill);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FEATURES === */
.features {
  padding: 6rem 2rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ball-purple), var(--ball-pink), var(--ball-cyan), var(--ball-yellow), var(--ball-green), var(--ball-orange));
}
.features-inner { max-width: var(--max-width); margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--soft-bg);
  border-radius: 28px;
  padding: 2.2rem 1.7rem;
  text-align: center;
  transition: all 0.35s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--primary-pale), var(--accent-pale));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: 0 20px 50px var(--shadow-purple);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon  {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px; height: 78px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 22px var(--shadow-purple);
  position: relative;
  z-index: 1;
}
.feature-title { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 0.6rem; position: relative; z-index: 1; }
.feature-desc  { font-size: 0.92rem; color: var(--text-mid); line-height: 1.65; position: relative; z-index: 1; }

/* === IPHONE SCREENSHOTS === */
.iphone-screenshots {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--soft-bg) 0%, var(--accent-pale) 100%);
  overflow: hidden;
  position: relative;
}
.iphone-screenshots .section-header { padding: 0 2rem; }
.screenshots-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 1rem 0 2rem;
}
.screenshots-track-wrap::before,
.screenshots-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.screenshots-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--soft-bg), transparent);
}
.screenshots-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--accent-pale), transparent);
}
.screenshots-track {
  display: flex;
  gap: 1.2rem;
  animation: scrollTrack 26s linear infinite;
  width: max-content;
  padding: 0 1rem;
}
.screenshots-track:hover { animation-play-state: paused; }
@keyframes scrollTrack {
  0%   { transform: translateX(0);    }
  100% { transform: translateX(-50%); }
}
.screenshot-phone {
  flex-shrink: 0;
  width: 175px;
  border-radius: 30px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 40px var(--shadow-purple);
  transition: transform 0.3s ease;
  background: #000;
}
.screenshot-phone:hover { transform: translateY(-8px) scale(1.04); }
.screenshot-phone img { width: 100%; display: block; }

/* === TABLET / BIG SCREEN === */
.tablet-screenshots {
  padding: 6rem 2rem;
  background: var(--white);
  position: relative;
}
.tablet-screenshots-inner { max-width: var(--max-width); margin: 0 auto; }
.tablet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.tablet-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 18px 50px var(--shadow-purple);
  background: #111;
  transition: all 0.35s ease;
  aspect-ratio: 16/10;
  position: relative;
}
.tablet-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  padding: 6px;
  background: var(--gradient-pill);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.tablet-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px var(--shadow-glow);
}
.tablet-frame:hover::before { opacity: 1; }
.tablet-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* === DOWNLOAD CTA === */
.download-cta {
  padding: 6rem 2rem;
  background: var(--gradient-cta);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-cta::before,
.download-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
}
.download-cta::before {
  width: 220px; height: 220px;
  top: -60px; left: -40px;
  background: radial-gradient(circle at 30% 30%, #FFE08A, #FFC93C 70%);
}
.download-cta::after {
  width: 260px; height: 260px;
  bottom: -80px; right: -60px;
  background: radial-gradient(circle at 30% 30%, #6FE5FF, #1FD1F9 70%);
}
.download-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.download-cta-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: wiggle 3s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg) scale(1);   }
  50%      { transform: rotate(6deg)  scale(1.12); }
}
.download-cta-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 6px 18px rgba(0, 0, 0, 0.28);
}
.download-cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.download-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Store buttons (shared by hero area & CTA section) */
.store-btn-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: var(--text-dark);
  text-decoration: none;
  padding: 1.05rem 2.3rem;
  border-radius: 20px;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
.store-btn-big:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
.store-btn-big svg { width: 32px; height: 32px; flex-shrink: 0; }
.store-btn-info  { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-btn-label { font-size: 0.72rem; font-weight: 600; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.06em; }
.store-btn-name  { font-size: 1.18rem; font-weight: 900; }

/* Recharge variant (inside CTA section) */
.recharge-btn-cta {
  background: var(--gradient-warm) !important;
  color: #4A1500 !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.recharge-btn-cta:hover {
  filter: brightness(1.05);
}

.download-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 2rem;
}
.star-icons { color: var(--ball-yellow); letter-spacing: 2px; }

/* === CONTACT === */
.contact { padding: 6rem 2rem; background: var(--cream); }
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact .section-header { margin-bottom: 2rem; }

.contact-card {
  background: var(--white);
  border-radius: 30px;
  padding: 2.6rem 2rem;
  box-shadow: 0 12px 44px var(--shadow-soft);
  border: 2px solid var(--primary-pale);
  margin-top: 1rem;
}
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-pale), var(--accent-pale));
  color: var(--primary-dark);
  text-decoration: none;
  padding: 1.15rem 2.1rem;
  border-radius: 18px;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-light);
}
.contact-email-link:hover {
  background: var(--gradient-pill);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px var(--shadow-purple);
}
.contact-email-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* === FOOTER === */
.footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.8rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.8rem;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.footer-brand-name {
  font-family: 'Pacifico', cursive;
  font-size: 1.25rem;
  color: var(--white);
}
.footer-company-info {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-top: 0.4rem;
}
.footer-links-group { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links-group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links-group a:hover { color: var(--ball-yellow); }

/* Specific footer link colours */
.footer-recharge-link { color: var(--ball-yellow) !important; font-weight: 800 !important; }
.footer-appstore-link { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-appstore-link:hover { color: var(--ball-yellow); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* === LEGAL PAGES (privacy / terms / refund) === */
.legal-hero {
  background: var(--gradient-hero);
  padding: 8.5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before,
.legal-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.4;
  pointer-events: none;
}
.legal-hero::before {
  width: 200px; height: 200px;
  top: -50px; left: -40px;
  background: radial-gradient(circle at 30% 30%, #FFE08A, #FFC93C 70%);
}
.legal-hero::after {
  width: 260px; height: 260px;
  bottom: -90px; right: -60px;
  background: radial-gradient(circle at 30% 30%, #6FE5FF, #1FD1F9 70%);
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.legal-hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  text-shadow: 2px 6px 18px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.6rem;
}
.legal-hero .legal-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.legal-content {
  background: var(--white);
  border-radius: 28px;
  padding: 3rem 2.6rem;
  box-shadow: 0 18px 60px var(--shadow-soft);
  border: 1px solid var(--primary-pale);
  font-size: 0.96rem;
  color: var(--text-dark);
  line-height: 1.8;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-pale);
}
.legal-content h2:first-of-type { margin-top: 0.5rem; }
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1.4rem 0 0.5rem;
}
.legal-content p { margin-bottom: 0.85rem; }
.legal-content ul,
.legal-content ol { padding-left: 1.5rem; margin-bottom: 0.85rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--primary); font-weight: 700; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--primary-dark); }

/* Back-to-home link inside legal pages */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}
.legal-back:hover { color: var(--primary-dark); }

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .nav-links, .nav-download-btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-tags { justify-content: center; }
  .hero-phone-frame { width: 155px; }
  .hero-phone-wrap.side-phone-left,
  .hero-phone-wrap.side-phone-right { transform: rotate(0deg) translateY(0) scale(0.82); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tablet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 5.5rem 1.5rem 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-phone-frame { width: 120px; }
  .hero-phone-wrap.side-phone-left { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .download-btns { flex-direction: column; align-items: center; }
  .legal-page { padding: 2.5rem 1.2rem 3rem; }
  .legal-content { padding: 2rem 1.4rem; border-radius: 20px; }
}
