/* ===================================================================
   BUBBLE BLAST SAGA - OFFICIAL STYLING & DESIGN SYSTEM
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Fredoka', cursive, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Vibrant Candy & Jewel Palette */
  --color-primary: #ff3b80;
  --color-primary-glow: rgba(255, 59, 128, 0.45);
  --color-secondary: #8b5cf6;
  --color-secondary-glow: rgba(139, 92, 246, 0.4);
  --color-accent-gold: #f59e0b;
  --color-accent-cyan: #06b6d4;
  --color-accent-emerald: #10b981;
  
  /* Background gradients */
  --bg-deep-space: #0b0d1e;
  --bg-card: rgba(24, 27, 56, 0.72);
  --bg-card-hover: rgba(35, 39, 78, 0.85);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-glow: rgba(255, 59, 128, 0.35);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-candy: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px var(--color-primary-glow);
}

/* Base Reset & Core */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep-space);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 59, 128, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #090a18 0%, #101227 50%, #0d0f22 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Floating Bubble Background Elements */
.bubble-ambient-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.35;
  animation: floatUp infinite ease-in-out;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.45;
  }
  85% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(-15vh) scale(1.1) rotate(360deg);
    opacity: 0;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 13, 30, 0.82);
  border-bottom: 1px solid var(--border-card);
  transition: all 0.3s ease;
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px var(--color-primary-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff71a2 0%, #ffc048 50%, #4bcffa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-primary-glow);
  filter: brightness(1.1);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffb8d0;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ff4d8d 0%, #ffbe3d 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.btn-primary-play {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, #ff3b80 0%, #9333ea 100%);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 30px rgba(255, 59, 128, 0.45);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary-play::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary-play:hover::before {
  left: 100%;
}

.btn-primary-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 59, 128, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Showcase Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 59, 128, 0.35) 0%, rgba(139, 92, 246, 0.25) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  animation: pulseGlow 6s infinite ease-in-out alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.hero-mascot-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  text-align: center;
  backdrop-filter: blur(20px);
  max-width: 360px;
  width: 100%;
}

.mascot-image {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  animation: gentleBob 3.5s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.floating-bubble-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 20, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.tag-1 {
  top: -15px;
  left: -20px;
  animation: floatTag1 4s ease-in-out infinite;
}

.tag-2 {
  bottom: 25px;
  right: -25px;
  animation: floatTag2 4.5s ease-in-out infinite;
}

@keyframes floatTag1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatTag2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Feature Grid Section */
.features-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-7px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-glow);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrapper img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Boosters Showcase */
.boosters-section {
  padding: 4.5rem 0;
  background: rgba(14, 17, 40, 0.5);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.boosters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}

.booster-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.booster-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 59, 128, 0.4);
  transform: translateY(-4px);
}

.booster-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.booster-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.booster-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-card-hover);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
}

/* Legal & Policy Page Styles */
.policy-page {
  padding: 3.5rem 0 5rem;
}

.policy-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.policy-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-meta {
  display: inline-flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.policy-body {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3.2rem 3rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.policy-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-body h2:first-of-type {
  margin-top: 0;
}

.policy-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.policy-body p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.policy-body ul, .policy-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.4rem;
  color: #cbd5e1;
}

.policy-body li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.policy-card-callout {
  background: rgba(255, 59, 128, 0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}

.policy-card-callout.family {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: #10b981;
}

.policy-card-callout p {
  margin: 0;
  color: #f1f5f9;
}

/* Support Page Form / Action Cards */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.support-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 59, 128, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
}

.copy-badge-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 1rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--color-primary);
}

/* Footer */
.footer {
  background: rgba(7, 8, 20, 0.95);
  border-top: 1px solid var(--border-card);
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.8rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.2rem;
}

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-badge, .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group, .hero-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .navbar .nav-links {
    display: none;
  }

  .navbar .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 13, 30, 0.98);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-card);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .policy-body {
    padding: 2rem 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
