/* Modern CSS Reset & Design Tokens for Deluli Confeitaria */
:root {
  --bg-primary: #f7f9f4;
  --bg-secondary: #eef4e8;
  --brand-green: #cae0bb;
  --brand-green-dark: #a2c490;
  --brand-chocolate: #5a2c13;
  --brand-chocolate-light: #7b4221;
  --brand-caramel: #c88a4b;
  --brand-cream: #fffdf9;
  --text-dark: #3a1c0b;
  --text-muted: #6e5c51;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(90, 44, 19, 0.06);
  --shadow-md: 0 12px 32px rgba(90, 44, 19, 0.1);
  --shadow-lg: 0 20px 48px rgba(90, 44, 19, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Animated Gradient Overlay */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: radial-gradient(circle at 10% 20%, rgba(202, 224, 187, 0.45) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(200, 138, 75, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(255, 253, 249, 0.8) 0%, var(--bg-primary) 100%);
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Header & Nav */
.header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(90, 44, 19, 0.06);
  border: 1px solid rgba(90, 44, 19, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-chocolate);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #27ae60;
  border-radius: 50%;
  box-shadow: 0 0 8px #27ae60;
  animation: pulse-dot 2s infinite;
}

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

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

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-cream);
  border: 1px solid rgba(90, 44, 19, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-chocolate);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--brand-chocolate);
  color: var(--brand-cream);
  box-shadow: var(--shadow-md);
}

/* Main Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.logo-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-cream) 100%);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.logo-wrapper:hover {
  transform: scale(1.03) rotate(1deg);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--brand-cream);
}

.title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--brand-chocolate);
  line-height: 1.15;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Countdown Section */
.countdown-section {
  background: rgba(255, 253, 249, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

.countdown-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand-caramel);
  margin-bottom: 1.5rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}

.time-box {
  background: var(--brand-cream);
  padding: 1.25rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(90, 44, 19, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.time-box:hover {
  transform: translateY(-3px);
}

.time-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brand-chocolate);
  line-height: 1;
}

.time-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
}


/* Interactive Teaser Section */
.teaser-section {
  margin-top: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--brand-chocolate);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.teaser-card {
  background: var(--brand-cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(90, 44, 19, 0.08);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.teaser-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-green-dark);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--brand-chocolate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brand-chocolate);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-caramel);
  background: rgba(200, 138, 75, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Interactive Quiz / Taste Selector Widget */
.quiz-widget {
  background: var(--brand-cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  border: 1px dashed var(--brand-caramel);
  box-shadow: var(--shadow-sm);
}

.quiz-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brand-chocolate);
  margin-bottom: 1rem;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.quiz-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-chocolate);
  background: transparent;
  color: var(--brand-chocolate);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-btn:hover, .quiz-btn.active {
  background: var(--brand-chocolate);
  color: var(--brand-cream);
}

.quiz-result {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--brand-chocolate);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--brand-chocolate);
  color: var(--brand-cream);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
}

/* Footer */
.footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(90, 44, 19, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 1rem;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-group {
    flex-direction: column;
  }
  .btn-submit {
    justify-content: center;
  }
}
