/* ==========================================================
   FROSÓ — DESIGN TOKENS
   Palet   : krem hangat + biru es + hijau tua (dari logo)
   Font    : Baloo 2 (display, bulat & ramah) + Inter (body)
   Signature: "Kabut Beku" — blob es yang bernapas pelan di
              belakang produk, ganti warna sesuai varian
   ========================================================== */
:root {
  --cream: #FBF6EC;
  --cream-2: #F3EEE1;
  --deep-teal: #163F38;
  --deep-teal-2: #1F5850;
  --sky: #5EA9C0;
  --sky-light: #BFE3ED;
  --ice-mist: #E7F2EF;
  --white: #FFFFFF;
  --ink: #23302D;
  --muted: #6B7A75;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px rgba(22, 63, 56, 0.10);
  --ease: cubic-bezier(.22,.9,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', sans-serif;
  color: var(--deep-teal);
  margin: 0;
  line-height: 1.08;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(251, 246, 236, 0.72);
  border-bottom: 1px solid rgba(22, 63, 56, 0.06);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo img { height: 34px; }

.nav-links {
  display: flex;
  gap: 6px;
  background: var(--white);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(22,63,56,0.06);
}
.nav-links a {
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.nav-links a.active,
.nav-links a:hover {
  background: var(--deep-teal);
  color: var(--white);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(22,63,56,0.06);
  border: none;
  position: relative;
}
.icon-btn svg { width: 19px; height: 19px; stroke: var(--deep-teal); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--sky); color: white;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 520px;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-teal-2);
  background: var(--ice-mist);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--sky); }
.hero-copy p.lead {
  margin-top: 20px;
  max-width: 430px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.btn {
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-solid {
  background: var(--deep-teal);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(22,63,56,0.22);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 30px rgba(22,63,56,0.28); }
.btn-outline {
  background: transparent;
  border-color: var(--deep-teal);
  color: var(--deep-teal);
}
.btn-outline:hover { background: var(--deep-teal); color: var(--white); }

.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--sky-light);
  margin-left: -12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--deep-teal);
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-text b { color: var(--deep-teal); display: block; font-size: 0.92rem; }
.trust-text span { color: var(--muted); font-size: 0.8rem; }

/* ---------- HERO PRODUCT STAGE (rotasi) ---------- */
.stage {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-blob {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  background: var(--ice-mist);
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.7s var(--ease);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%; }
  50% { border-radius: 58% 42% 45% 55% / 45% 55% 45% 55%; }
}
.stage-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mist-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
  opacity: 0;
  animation: rise 5s ease-in infinite;
}
.mist-puff:nth-child(1) { width: 60px; height: 60px; left: 58%; bottom: 30%; animation-delay: 0s; }
.mist-puff:nth-child(2) { width: 40px; height: 40px; left: 68%; bottom: 25%; animation-delay: 1.6s; }
.mist-puff:nth-child(3) { width: 50px; height: 50px; left: 62%; bottom: 35%; animation-delay: 3.2s; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  30% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-160px) scale(1.3); }
}

.tagline-vertical {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(22, 63, 56, 0.08);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.6s var(--ease);
}
.tagline-vertical .solid {
  position: absolute;
  inset: 0;
  color: var(--deep-teal-2);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent 100%);
  mask-image: linear-gradient(to top, black 55%, transparent 100%);
}

.product-frame {
  position: relative;
  width: 300px;
  z-index: 2;
}
.product-frame img {
  width: 100%;
  filter: drop-shadow(0 30px 30px rgba(22,63,56,0.25));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.stage-nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.stage-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(22,63,56,0.18);
  border: none;
  padding: 0;
  transition: all .3s var(--ease);
}
.stage-dot.active { background: var(--deep-teal); width: 26px; border-radius: 999px; }

.stage-arrow {
  position: absolute;
  bottom: 16px;
  right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--deep-teal);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 20px rgba(22,63,56,0.25);
  z-index: 3;
  transition: transform .2s var(--ease);
}
.stage-arrow:hover { transform: scale(1.08); }
.stage-arrow svg { width: 18px; height: 18px; }

/* ---------- SECTION: KENAPA FROSÓ ---------- */
.section { padding: 90px 0; }
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  color: var(--sky);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 10px;
}
.section-head p { color: var(--muted); margin-top: 14px; }

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
}
.perk-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--ice-mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.perk-icon svg { width: 24px; height: 24px; stroke: var(--deep-teal); }
.perk-card h3 { font-size: 1.08rem; }
.perk-card p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; line-height: 1.6; }

/* ---------- PRODUCT GRID (beranda) ---------- */
.product-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.p-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(22, 63, 56, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.p-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 60px rgba(22, 63, 56, 0.20);
}
.p-card .p-img {
  background: var(--ice-mist);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  height: 260px;
  padding: 20px;
}
.p-card .p-img img { max-height: 220px; width: auto; margin: 0 auto; }
.p-card h4 { margin-top: 16px; font-family: 'Baloo 2', sans-serif; font-size: 1.1rem; color: var(--deep-teal); }
.p-card .p-price { color: var(--sky); font-weight: 700; margin-top: 4px; }
.p-card .p-cta {
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--deep-teal);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--deep-teal);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer .logo-white { font-family: 'Baloo 2'; font-size: 1.6rem; color: white; }
.footer h5 { color: white; font-size: 0.9rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 380px; margin-top: 20px; }
  .stage-blob { width: 320px; height: 320px; right: 0; }
  .product-frame { width: 220px; }
  .tagline-vertical { font-size: 1.6rem; }
  .nav-links { display: none; }
  .perks { grid-template-columns: 1fr; }
  .product-teaser-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-blob, .product-frame img, .mist-puff { animation: none !important; }
}
