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

:root {
  --dew-drop: #7cb88a;
  --dew-drop-light: #e8f3eb;
  --lilac-eve: #9b7fc4;
  --lilac-eve-light: #ede6f6;
  --soft-noon: #FDFD96;
  --soft-noon-light: #fefee8;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --bg: #faf9f7;
  --bg-warm: #f4f1ec;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* ===== Glow Orbs ===== */
.glow-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: orbFloat 20s ease-in-out infinite;
}

.glow-green {
  width: 500px;
  height: 500px;
  background: var(--dew-drop);
  top: 5%;
  left: -5%;
  animation-delay: 0s;
}

.glow-purple {
  width: 450px;
  height: 450px;
  background: var(--lilac-eve);
  top: 40%;
  right: -8%;
  animation-delay: -7s;
}

.glow-yellow {
  width: 400px;
  height: 400px;
  background: var(--soft-noon);
  bottom: 10%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.08); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.05); }
}

/* ===== Particle Canvas ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above glow/particles */
.nav, .hero, .products, .features, .waitlist, .footer {
  position: relative;
  z-index: 1;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--text);
  color: var(--white);
  transition: opacity var(--transition);
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--text);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lilac-eve);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #a8d5b8 0%, #FDFD96 50%, #c4b0e0 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-image img[src$=".jpg"]:not([src=""]) {
  min-height: 400px;
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lilac-eve);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

/* ===== Products ===== */
.products {
  padding: 100px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.products-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-featured:nth-child(even) {
  direction: rtl;
}

.product-card-featured:nth-child(even) > * {
  direction: ltr;
}

.product-card-featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.10);
}

/* Per-shade card glow on hover */
[data-shade="dew-drop"].product-card-featured:hover {
  box-shadow: 0 24px 80px rgba(124, 184, 138, 0.20);
}

[data-shade="lilac-eve"].product-card-featured:hover {
  box-shadow: 0 24px 80px rgba(155, 127, 196, 0.20);
}

[data-shade="soft-noon"].product-card-featured:hover {
  box-shadow: 0 24px 80px rgba(253, 253, 150, 0.30);
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  min-height: 420px;
}

[data-shade="dew-drop"] .product-img-wrap {
  background: linear-gradient(160deg, #a8d5b8 0%, #7cb88a 100%);
}

[data-shade="lilac-eve"] .product-img-wrap {
  background: linear-gradient(160deg, #c4b0e0 0%, #9b7fc4 100%);
}

[data-shade="soft-noon"] .product-img-wrap {
  background: linear-gradient(160deg, #fefec8 0%, #FDFD96 100%);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide broken image icon gracefully */
.product-img-wrap img:not([complete])::after,
.hero-image img:not([complete])::after {
  content: '';
}

img {
  color: transparent;
  font-size: 0;
}

.product-card-featured:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}

[data-shade="dew-drop"] .product-badge {
  background: var(--dew-drop-light);
  color: var(--dew-drop);
}

[data-shade="lilac-eve"] .product-badge {
  background: var(--lilac-eve-light);
  color: var(--lilac-eve);
}

[data-shade="soft-noon"] .product-badge {
  background: var(--soft-noon-light);
  color: #a89e2e;
}

.product-name {
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.product-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 400px;
}

/* Ingredients (always visible) */
.product-ingredients {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.ingredient {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ingredient-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
}

[data-shade="dew-drop"] .ingredient-icon {
  color: var(--dew-drop);
}

[data-shade="lilac-eve"] .ingredient-icon {
  color: var(--lilac-eve);
}

[data-shade="soft-noon"] .ingredient-icon {
  color: var(--soft-noon);
}

.ingredient strong {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.ingredient p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[data-shade="dew-drop"] .product-price {
  color: var(--dew-drop);
}

[data-shade="lilac-eve"] .product-price {
  color: var(--lilac-eve);
}

[data-shade="soft-noon"] .product-price {
  color: #b8b440;
}

.btn-reserve {
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

[data-shade="dew-drop"] .btn-reserve {
  background: var(--dew-drop);
}

[data-shade="lilac-eve"] .btn-reserve {
  background: var(--lilac-eve);
}

[data-shade="soft-noon"] .btn-reserve {
  background: var(--soft-noon);
  color: var(--text);
}

.btn-reserve:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Glow orb lock state (single color) */
.glow-orbs.locked .glow-orb {
  opacity: 0 !important;
  transition: opacity 1.2s ease, background 1.2s ease;
}

.glow-orbs.locked .glow-orb.active {
  opacity: 0.35 !important;
  width: 600px;
  height: 600px;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 1.2s ease;
}

/* ===== Features ===== */
.features {
  padding: 100px 24px;
  background: var(--bg-warm);
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--lilac-eve);
}

.feature h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ===== Waitlist ===== */
.waitlist {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.waitlist-inner {
  background: var(--white);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
}

.waitlist-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

/* Form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border: 1.5px solid #e0ddd8;
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input[type="text"]:focus {
  border-color: var(--lilac-eve);
}

.shade-selector {
  display: flex;
  gap: 12px;
}

.shade-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1.5px solid #e0ddd8;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.shade-option:has(input:checked) {
  border-color: var(--text);
  background: var(--bg);
}

.shade-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shade-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
}

.shade-dew-drop {
  background: var(--dew-drop);
}

.shade-lilac-eve {
  background: var(--lilac-eve);
}

.shade-soft-noon {
  background: var(--soft-noon);
}

.shade-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Share */
.share-row {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 4px;
}

.share-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid #e0ddd8;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-share:hover {
  border-color: var(--lilac-eve);
  color: var(--lilac-eve);
  background: var(--lilac-eve-light);
}

.btn-share.copied {
  border-color: var(--dew-drop);
  color: var(--dew-drop);
  background: var(--dew-drop-light);
}

/* Success */
.waitlist-inner.success-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.waitlist-success {
  text-align: center;
  padding: 60px 40px;
  color: var(--dew-drop);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  width: 100%;
  max-width: 500px;
}

.waitlist-success.show {
  opacity: 1;
  transform: translateY(0);
}

.waitlist-success h3 {
  font-size: 2rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.waitlist-success p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.success-icon {
  color: var(--dew-drop);
}

.success-share {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.success-share .share-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.success-share .share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Confetti canvas */
#confetti {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
    gap: 40px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    max-height: 500px;
  }

  .product-card-featured {
    grid-template-columns: 1fr;
  }

  .product-card-featured:nth-child(even) {
    direction: ltr;
  }

  .product-img-wrap {
    min-height: 300px;
  }

  .product-info {
    padding: 32px 24px;
  }

  .product-name {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 36px;
  }

  .waitlist-inner {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 36px;
  }

  .shade-selector {
    flex-direction: column;
  }

  .shade-option {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 18px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .waitlist-inner {
    padding: 32px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hidden {
  opacity: 0;
}

.animate-hidden.fade-in {
  animation: fadeUp 0.7s ease-out both;
}

.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }
