/*
 * DESIGN INTENT
 * Tone: playful & bright — toy-like, bouncy, candy-colored
 * Fonts: Fredoka 700 (display) + Quicksand 400/600 (body)
 * Palette: #FFF9E6 (warm white) #FCD34D (lemon) #38BDF8 (sky blue) #FB7185 (coral) #1E293B (text)
 * Layout signature: single scroll with bold hero, two-card product showcase, interactive bounce selector
 * Memorable element: the "Ice or No Ice?" bouncing selector buttons
 */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw + 0.25rem, 1.15rem);
  color: #1E293B;
  background: #FFF9E6;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 1.2rem;
  color: #1E293B;
}
.section-title--white { color: #fff; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FEF9C3 0%, #FDE68A 30%, #FCD34D 70%, #FBBF24 100%);
  padding: 2rem 1.5rem;
}

.hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-lemon {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}
.deco-lemon--1 { top: 10%; left: 8%; animation-delay: 0s; width: 100px; height: 100px; }
.deco-lemon--2 { bottom: 15%; right: 10%; animation-delay: 2s; width: 70px; height: 70px; }
.deco-lemon--3 { top: 50%; right: 20%; animation-delay: 4s; width: 60px; height: 60px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

.deco-dot {
  position: absolute;
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}
.deco-dot--1 { width: 20px; height: 20px; background: #FB7185; top: 20%; left: 60%; animation-delay: 0s; }
.deco-dot--2 { width: 14px; height: 14px; background: #38BDF8; top: 70%; left: 15%; animation-delay: 1s; }
.deco-dot--3 { width: 18px; height: 18px; background: #A78BFA; top: 15%; right: 30%; animation-delay: 2s; }
.deco-dot--4 { width: 12px; height: 12px; background: #FB7185; bottom: 25%; right: 40%; animation-delay: 3s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; }
}

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

.hero-lemon-icon {
  margin: 0 auto 1rem;
  width: 120px;
  height: 120px;
  position: relative;
  animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, gentleWobble 4s ease-in-out 1.5s infinite;
}

@keyframes bounceIn {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes gentleWobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.hero-lemon-svg { width: 100%; height: 100%; }

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #1E293B;
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.06);
  margin-bottom: 0.3rem;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-tagline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #4B5563;
  margin-bottom: 0.3rem;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #6B7280;
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-sub-highlight {
  color: #2563EB;
  font-weight: 700;
  background: rgba(255,255,255,0.6);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.2s ease;
  border: none;
}
.btn--primary {
  background: #38BDF8;
  color: #fff;
  box-shadow: 0 6px 0 #0EA5E9, 0 8px 20px rgba(56, 189, 248, 0.35);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 0 #0EA5E9, 0 12px 28px rgba(56, 189, 248, 0.4); }
.btn--primary:active { transform: translateY(4px) scale(0.97); box-shadow: 0 2px 0 #0EA5E9; }
.btn--bounce { animation: slideUp 0.8s ease-out 0.8s both; }

/* ===== ABOUT SECTION ===== */
.about {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: #FFF9E6;
}

.about-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #4B5563;
  line-height: 1.7;
}

.about-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-card {
  flex: 1 1 260px;
  max-width: 320px;
  background: #fff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s ease;
  position: relative;
}
.about-card:hover { transform: translateY(-8px) rotate(-1deg); }

.about-card--ice {
  box-shadow: 0 8px 0 #38BDF8, 0 12px 30px rgba(56, 189, 248, 0.2);
  border: 3px solid #38BDF8;
}
.about-card--ice:hover { box-shadow: 0 12px 0 #38BDF8, 0 18px 40px rgba(56, 189, 248, 0.3); }

.about-card--no-ice {
  box-shadow: 0 8px 0 #FCD34D, 0 12px 30px rgba(252, 211, 77, 0.3);
  border: 3px solid #FCD34D;
}
.about-card--no-ice:hover { box-shadow: 0 12px 0 #FCD34D, 0 18px 40px rgba(252, 211, 77, 0.4); }

.about-card-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.about-card-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1E293B;
}

.about-card-text {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SELECTOR SECTION ===== */
.selector {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(160deg, #1E293B 0%, #334155 100%);
  position: relative;
  overflow: hidden;
}
.selector::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFF9E6;
  border-radius: 0 0 50% 50%;
}

.selector-prompt {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #CBD5E1;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.selector-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.selector-btn {
  font-family: 'Fredoka', sans-serif;
  border: none;
  border-radius: 24px;
  padding: 1.8rem 2.5rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 180px;
  min-height: 44px;
}
.selector-btn:hover { transform: translateY(-6px) scale(1.04); }
.selector-btn:active { transform: translateY(4px) scale(0.96); }

.selector-btn--ice {
  background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 100%);
  box-shadow: 0 8px 0 #38BDF8, 0 10px 25px rgba(56, 189, 248, 0.3);
  color: #0369A1;
}
.selector-btn--ice:hover { box-shadow: 0 12px 0 #38BDF8, 0 16px 35px rgba(56, 189, 248, 0.4); }

.selector-btn--no-ice {
  background: linear-gradient(180deg, #FEF9C3 0%, #FDE68A 100%);
  box-shadow: 0 8px 0 #F59E0B, 0 10px 25px rgba(245, 158, 11, 0.3);
  color: #92400E;
}
.selector-btn--no-ice:hover { box-shadow: 0 12px 0 #F59E0B, 0 16px 35px rgba(245, 158, 11, 0.4); }

.selector-btn-icon { font-size: 3rem; line-height: 1; }
.selector-btn-label { font-size: 1.6rem; font-weight: 700; }
.selector-btn-desc { font-family: 'Quicksand', sans-serif; font-size: 0.9rem; font-weight: 500; opacity: 0.8; }

.selector-btn.selected {
  outline: 4px solid #FB7185;
  outline-offset: 4px;
}

/* ===== RESULT ===== */
.selector-result {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  min-height: 100px;
}

.result-bubble {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.8rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 2px solid rgba(255,255,255,0.15);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  transform: scale(0.8);
}
.result-bubble.visible {
  opacity: 1;
  transform: scale(1);
}
.result-bubble.pop {
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.result-emoji { font-size: 2.2rem; line-height: 1; }
.result-text { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; color: #fff; font-weight: 600; }

/* ===== CTA SECTION ===== */
.cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: #FFF9E6;
}

.cta-box {
  background: linear-gradient(160deg, #FCD34D 0%, #FBBF24 50%, #F59E0B 100%);
  border-radius: 32px;
  padding: clamp(2.5rem, 6vw, 4rem) 2rem;
  text-align: center;
  box-shadow: 0 12px 0 #D97706, 0 16px 40px rgba(217, 119, 6, 0.2);
}

.cta-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #1E293B;
  margin-bottom: 0.5rem;
}

.cta-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #4B5563;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cta-lemons {
  font-size: 2.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.cta-lemons span:nth-child(2) { animation-delay: 0.3s; }
.cta-lemons span:nth-child(3) { animation-delay: 0.6s; }

/* ===== FOOTER ===== */
.footer {
  background: #1E293B;
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem 1.5rem;
}

.footer-brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FCD34D;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #94A3B8;
  font-weight: 500;
}

/* ===== SELECTION & SCROLLBAR ===== */
::selection {
  background: #FCD34D;
  color: #1E293B;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFF9E6; }
::-webkit-scrollbar-thumb { background: #FCD34D; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #F59E0B; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.2rem; }
  .hero-lemon-icon { width: 90px; height: 90px; }
  
  .about-cards { flex-direction: column; align-items: center; }
  .about-card { max-width: 100%; width: 100%; }
  
  .selector-buttons { flex-direction: column; align-items: center; }
  .selector-btn { width: 100%; max-width: 280px; }
  
  .result-bubble { padding: 0.7rem 1.2rem; flex-wrap: wrap; justify-content: center; }
  .result-text { font-size: 1rem; }
  
  .footer-content { flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.2rem, 12vw, 3rem); }
  .hero-tagline { font-size: clamp(1rem, 5vw, 1.3rem); }
  .selector-btn { padding: 1.3rem 1.5rem; min-width: 140px; }
  .selector-btn-icon { font-size: 2.5rem; }
  .selector-btn-label { font-size: 1.3rem; }
}