:root {
  --cream: #f6efe4;
  --paper: rgba(255, 250, 244, 0.82);
  --ink: #2a1612;
  --muted: #7a5c52;
  --line: rgba(122, 26, 26, 0.12);
  --maroon: #8b1a1a;
  --maroon-dark: #6a1010;
  --leaf: #6f8f63;
  --gold: #c9a36a;
  --shadow: 0 22px 48px rgba(12, 7, 6, 0.32);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #140908;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(255, 180, 120, 0.12), transparent 55%),
    radial-gradient(900px 520px at 50% 110%, rgba(255, 220, 170, 0.18), transparent 50%),
    linear-gradient(
      180deg,
      #0c0706 0%,
      #2a0e0c 22%,
      #7a1f18 52%,
      #b44a28 78%,
      #d4a06a 100%
    );
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  pointer-events: none;
}

.bg::before {
  background-image:
    linear-gradient(rgba(255, 244, 230, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 230, 0.2) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 72%);
}

.bg::after {
  background-image:
    linear-gradient(rgba(42, 12, 10, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 12, 10, 0.22) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.7) 100%);
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(12, 7, 6, 0.72), rgba(12, 7, 6, 0.18));
  border-bottom: 1px solid rgba(255, 244, 230, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.28rem;
  color: #f6e4cf;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-tetuti {
  font-style: italic;
  font-weight: 600;
  font-size: 1.32rem;
  color: #f6e4cf;
  margin-right: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 22px;
  color: rgba(246, 228, 207, 0.82);
  font-weight: 600;
}

.nav-text {
  position: relative;
  padding: 6px 0;
  color: rgba(246, 228, 207, 0.78);
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-label-short {
  display: none;
}

.nav-text:hover,
.nav-text.is-active {
  color: #fff6ea;
}

.nav-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #f3d2b0;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-text:hover::after,
.nav-text.is-active::after {
  transform: scaleX(1);
}

.nav-chat {
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease, padding 0.25s ease;
}

.nav-chat.is-hidden {
  opacity: 0;
  pointer-events: none;
  max-width: 0;
  padding-inline: 0;
  transform: scale(0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: white;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.7);
}

.hero {
  padding: 24px 16px 8px;
  min-height: min(70vh, 620px);
  display: grid;
  place-items: center;
}

.video-frame {
  width: min(420px, 100%);
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a0c0a;
  box-shadow: var(--shadow);
}

.intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(70vh, 640px);
  object-fit: cover;
  background: #1a0c0a;
}

.kicker {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon-dark);
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-stack {
  position: relative;
  width: min(460px, 92vw);
  height: min(500px, 70vh);
}

.hero-shot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 70%;
  margin: 0 0 0 -35%;
  will-change: transform, opacity;
}

.shot-1 {
  z-index: 4;
  transform: translateY(14px) scale(1);
}

.shot-2 {
  z-index: 3;
  transform: translateY(44px) scale(0.94);
}

.shot-3 {
  z-index: 2;
  transform: translateY(74px) scale(0.88);
}

.shot-4 {
  z-index: 1;
  transform: translateY(104px) scale(0.82);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 250, 244, 0.9);
}

.section {
  padding: 64px 0;
  scroll-margin-top: 88px;
}

.section-head {
  margin-bottom: 28px;
  background: rgba(255, 248, 240, 0.94);
  border: 1px solid rgba(42, 22, 18, 0.08);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(12, 7, 6, 0.1);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
}

.section-head p:last-child {
  color: #4a332c;
  margin-top: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 250, 244, 0.94);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
  background: #ead9c8;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.45s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--maroon);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hook {
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body h3 {
  font-size: 1.7rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.highlights {
  margin: 6px 0 4px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.92rem;
}

.price {
  font-weight: 700;
  color: var(--maroon-dark);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 26, 26, 0.06);
  border-radius: 999px;
  padding: 4px;
}

.qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  font-weight: 700;
}

.qty button:disabled {
  opacity: 0.4;
  cursor: default;
}

.checkout {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 240, 0.96);
  border-top: 1px solid rgba(42, 22, 18, 0.1);
  box-shadow: 0 -12px 32px rgba(12, 7, 6, 0.16);
  backdrop-filter: blur(16px);
}

.checkout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

body.has-checkout .footer {
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

body.has-checkout #menu {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

body.has-checkout #product-grid .card:last-child {
  margin-bottom: 72px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: rgba(255, 250, 244, 0.86);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--maroon);
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
}

.footer {
  padding: 28px 0 calc(88px + env(safe-area-inset-bottom));
  color: #3d2a24;
  border-top: 1px solid rgba(42, 22, 18, 0.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wa-dock {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(18, 10, 8, 0.86);
  color: #f6e4cf;
  border: 1px solid rgba(255, 244, 230, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(12, 7, 6, 0.28);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.wa-dock.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.wa-dock.is-visible:hover {
  color: #fff6ea;
  transform: translateY(-2px);
}

.wa-dock-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: white;
  flex-shrink: 0;
}

.wa-dock-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 1100px) {
  .hero-stack {
    height: min(470px, 66vh);
  }
}

@media (max-width: 980px) {
  .nav-text[href="#beranda"] {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-text {
    font-size: 0.85rem;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(1160px, calc(100% - 20px));
  }

  .hero {
    min-height: min(62vh, 480px);
    padding: 12px 8px 0;
  }

  .intro-video {
    max-height: min(64vh, 540px);
  }

  .hero-stack {
    width: min(360px, 94vw);
    height: 440px;
  }

  .hero-shot {
    width: 82%;
    margin-left: -41%;
  }

  .shot-1 {
    transform: translateY(6px) scale(1);
  }

  .shot-2 {
    transform: translateY(24px) scale(0.95);
  }

  .shot-3 {
    transform: translateY(42px) scale(0.9);
  }

  .shot-4 {
    transform: translateY(60px) scale(0.85);
  }

  .section {
    padding: 40px 0;
  }

  .nav-inner {
    height: 58px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name,
  .brand-tetuti {
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-text {
    font-size: 0.78rem;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .nav-chat {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .bg::before,
  .bg::after {
    background-size: 32px 32px;
  }

  .bg::before {
    background-image:
      linear-gradient(rgba(255, 244, 230, 0.28) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 244, 230, 0.28) 1px, transparent 1px);
  }

  .bg::after {
    background-image:
      linear-gradient(rgba(32, 8, 6, 0.28) 1px, transparent 1px),
      linear-gradient(90deg, rgba(32, 8, 6, 0.28) 1px, transparent 1px);
  }
}

.js-motion #menu .section-head,
.js-motion #product-grid .card,
.js-motion #cuplikan .section-head,
.js-motion #cuplikan .video-frame,
.js-motion #cara-pesan .section-head,
.js-motion #cara-pesan .step {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-shot {
    animation: none;
    transition: none;
  }

  .js-motion #menu .section-head,
  .js-motion #product-grid .card,
  .js-motion #cuplikan .section-head,
  .js-motion #cuplikan .video-frame,
  .js-motion #cara-pesan .section-head,
  .js-motion #cara-pesan .step {
    opacity: 1;
  }
}
