/* ===== POPMYBUBBL.COM — Production Stylesheet ===== */

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

:root {
  --purple: #a855f7;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --mint: #10b981;
  --gold: #fbbf24;
  --coral: #f472b6;
  --dark: #0a0a0a;
  --dark-card: #1a1025;
  --dark-border: #2a1f3d;
  --dark-surface: #120d1e;
  --text: #ededed;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --gradient-brand: linear-gradient(135deg, var(--purple), var(--pink));
  --gradient-hero: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px rgba(168,85,247,0.15), 0 0 80px rgba(236,72,153,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }
p { color: var(--text-muted); }

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid rgba(168,85,247,0.4);
}
.btn-secondary:hover { background: rgba(168,85,247,0.1); border-color: var(--purple); }

.btn-large { padding: 18px 40px; font-size: 1.125rem; }

/* --- Glass Cards --- */
.glass-card {
  background: rgba(26, 16, 37, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.glass-card:hover { border-color: rgba(168, 85, 247, 0.3); transform: translateY(-4px); }

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(168,85,247,0.1); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
}
.nav-logo .logo-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  animation: breathe 3s ease-in-out infinite;
}
.nav-logo span { background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: white; }
.nav-links a.active { color: white; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); transition: var(--transition); }
.mobile-menu a:hover { color: white; }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-bubble {
  width: 180px;
  height: 180px;
  margin: 0 auto 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(168,85,247,0.6), rgba(236,72,153,0.4));
  box-shadow: 0 0 60px rgba(168,85,247,0.4), 0 0 120px rgba(236,72,153,0.2);
  animation: breathe 3s ease-in-out infinite, iridescent 6s ease-in-out infinite;
  position: relative;
}
.hero-bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.25rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Floating bubbles */
.floating-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-up linear infinite;
}

/* Sparkle dots on hero bubble */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  animation: float 3s ease-in-out infinite;
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { margin-top: 16px; font-size: 1.125rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- How It Works --- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { padding: 40px 32px; text-align: center; }
.step-icon { font-size: 3rem; margin-bottom: 20px; }
.step-number {
  display: inline-block;
  background: var(--gradient-brand);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 28px;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 12px; }

/* --- Features Grid --- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.feature-card { padding: 36px; display: flex; gap: 20px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-card h4 { margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 0.95rem; }

/* --- Safety Section --- */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.safety-card { padding: 36px; text-align: center; }
.safety-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.safety-icon.green { background: rgba(16, 185, 129, 0.15); }
.safety-icon.purple { background: rgba(168, 85, 247, 0.15); }
.safety-icon.pink { background: rgba(236, 72, 153, 0.15); }
.safety-card h4 { margin-bottom: 8px; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card { padding: 32px; }
.testimonial-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.testimonial-card .stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.testimonial-card blockquote { font-style: italic; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.testimonial-card .author { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.testimonial-card .author span { color: var(--text-dim); font-weight: 400; }

/* --- Stats Bar --- */
.stats-bar {
  padding: 60px 0;
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168,85,247,0.1) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 20px; }
.cta-section p { margin-bottom: 40px; font-size: 1.125rem; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--dark-border);
  padding: 24px 0;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover { color: var(--purple); }
.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(168,85,247,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--purple);
  transition: var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: 16px; }
.faq-answer p { font-size: 0.95rem; line-height: 1.8; }

/* --- Contact Form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(168,85,247,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.contact-item h4 { margin-bottom: 4px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--purple); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
}
.form-success.show { display: block; }
.form-success .icon { font-size: 3rem; margin-bottom: 12px; }

/* --- Footer --- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--dark-border);
  background: var(--dark-surface);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { margin-bottom: 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.95rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168,85,247,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover { background: var(--purple); color: white; }

/* --- Page Headers (inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.125rem; }

/* --- Legal Pages --- */
.legal-content { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.legal-content h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--text); }
.legal-content h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--text); }
.legal-content p { margin-bottom: 16px; line-height: 1.8; }
.legal-content ul { margin: 12px 0 20px 24px; list-style: disc; }
.legal-content ul li { color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; }
.legal-content .last-updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 32px; }

/* --- About Page --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 30%, rgba(168,85,247,0.3), rgba(236,72,153,0.2), var(--dark-card));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-bubble {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(168,85,247,0.6), rgba(236,72,153,0.4));
  animation: breathe 3s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.value-card { text-align: center; padding: 32px 24px; }
.value-icon { font-size: 2.5rem; margin-bottom: 16px; }

/* --- Team / Timeline --- */
.timeline { max-width: 600px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-brand);
}
.timeline-item { padding-left: 56px; padding-bottom: 40px; position: relative; }
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid var(--dark);
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item .date { font-size: 0.85rem; color: var(--purple); font-weight: 700; margin-bottom: 8px; }

/* --- Download Badges --- */
.download-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.badge-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: white;
  color: #000;
  font-weight: 700;
  transition: var(--transition);
}
.badge-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.badge-btn .badge-icon { font-size: 1.75rem; }
.badge-btn .badge-text { text-align: left; line-height: 1.2; }
.badge-btn .badge-text small { font-size: 0.65rem; font-weight: 400; display: block; }
.badge-btn .badge-text span { font-size: 1rem; }

/* --- Animations --- */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

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

@keyframes iridescent {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(25deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .safety-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-bubble { width: 140px; height: 140px; }

  .section { padding: 64px 0; }
  .page-header { padding: 120px 0 40px; }
}
