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

:root {
  /* DARK THEME: Deep jewel palette extracted from candy colors */
  --bg-deep: #1a0b2e; /* Deep purple/black */
  --bg-section: #2d134d; /* Slightly lighter deep purple */
  --bg-alt: #240e3d;
  --text: #ffffff;
  --text-muted: #d1c4e9;
  --accent: #ff4081; /* Sweet pink/candy accent */
  --accent-secondary: #00e5ff; /* Cyan pop */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Abril Fatface', serif;
  --font-body: 'Lato', sans-serif;
  --nav-height: 80px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg-deep);
}

h1, h2, h3, .candy-title {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: 60px 0;
  position: relative;
}

/* === NAVIGATION === */
.sugar-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(26, 11, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links-left, .nav-links-right {
  display: none;
  flex: 1;
  gap: 2rem;
}

.nav-links-left { justify-content: flex-end; margin-right: 3rem; }
.nav-links-right { justify-content: flex-start; margin-left: 3rem; }

.nav-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-logo-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-logo-center img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.mobile-toggle {
  display: flex;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO SECTION === */
.candy-hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--bg-section) 0%, var(--bg-deep) 100%);
}

.glass-hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 800px;
  width: 90%;
  box-shadow: var(--shadow-glass);
  animation: float 6s ease-in-out infinite;
}

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

.hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom, #fff, #ffc1e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 2rem;
}

.rating-badge i { color: #ffc107; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-download {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
}

.btn-download i { font-size: 1.4rem; transition: transform 0.3s ease; }
.btn-download:hover i { transform: translateX(5px); }
.btn-download:hover { transform: translateY(-3px); filter: brightness(1.1); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
}

/* === SCREENSHOT GALLERY === */
.sweet-gallery {
  background: var(--bg-alt);
}

.gallery-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-container::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: auto;
}

.gallery-img {
  height: 350px;
  width: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: var(--shadow-glass);
}

@media (min-width: 768px) {
  .gallery-img { height: 500px; }
}

/* === FEATURES GRID === */
.candy-features {
  background: var(--bg-section);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}

.feature-icon {
  font-size: 48px;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* === REVIEWS (CHAT BUBBLES) === */
.player-voices {
  background: var(--bg-alt);
}

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

.chat-bubble {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 20px;
  max-width: 90%;
}

.chat-bubble.left {
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble.right {
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  background: rgba(0, 229, 255, 0.05);
}

.review-stars {
  color: #ffc107;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-secondary);
}

/* === DOWNLOAD CTA === */
.final-crush {
  background: radial-gradient(circle at center, var(--accent) -100%, var(--bg-deep) 100%);
  text-align: center;
}

.cta-glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-glass-card img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
}

/* === FOOTER === */
.sugar-footer {
  background: #0d0517;
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 4px;
}

.footer-brand h4 {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.footer-links h5 {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent-secondary);
}

.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.footer-newsletter input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  color: white;
  width: 100%;
  margin-bottom: 1rem;
}

.footer-map {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === STICKY BANNER === */
.floating-action {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(255, 64, 129, 0.5);
  z-index: 999;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 10px;
}

.floating-action.visible { display: flex; animation: slideIn 0.3s ease-out; }

@keyframes slideIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* === RESPONSIVE MEDIA QUERIES === */
@media (min-width: 768px) {
  .nav-links-left, .nav-links-right { display: flex; }
  .mobile-toggle { display: none; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }

  section { padding: 80px 0; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 5rem; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
