:root {
  --cream: #fbf7f0;
  --cream-2: #f3ebdd;
  --paper: #fffdf8;
  --ink: #2b2622;
  --ink-soft: #6b625a;
  --gold: #b8924a;
  --gold-2: #d9b877;
  --sage: #8a9a7b;
  --rose: #d9a5a0;
  --line: rgba(43, 38, 34, .1);
  --radius: 22px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; }
.muted { color: var(--ink-soft); }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}

/* ---------- progress & cursor ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  transform-origin: 0 50%; transform: scaleX(0);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; z-index: 0;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(217, 184, 119, .22), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity .4s;
}
@media (hover: hover) { body:hover .cursor-glow { opacity: 1; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--ink); color: var(--cream);
  box-shadow: 0 10px 30px -10px rgba(43, 38, 34, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(43, 38, 34, .6); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(251, 247, 240, .72); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; font-size: 1.1rem;
}
.nav-links { display: flex; gap: 28px; font-size: .92rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px;
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0 40px;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -30% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(circle, rgba(217, 165, 160, .28), transparent 60%);
}
.hero-title { font-size: clamp(2.7rem, 5.6vw, 4.9rem); margin-bottom: 22px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word { display: inline-block; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 470px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: .9rem; color: var(--ink-soft); }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cream); margin-left: -10px;
  background: linear-gradient(135deg, var(--rose), var(--gold-2));
}
.avatars span:nth-child(2) { background: linear-gradient(135deg, var(--sage), #c9d3bd); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, var(--gold), #e9d6ad); }
.avatars span:first-child { margin-left: 0; }

.hero-stage { position: relative; height: min(640px, 78svh); }
#hero-canvas { width: 100%; height: 100%; display: block; }
.scroll-hint {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* fallback 2D */
.hero-fallback { display: none; position: absolute; inset: 0; place-items: center; }
.no-webgl #hero-canvas { display: none; }
.no-webgl .hero-fallback { display: grid; }
.fb-envelope {
  position: relative; width: min(360px, 80%); aspect-ratio: 3 / 2; margin-top: 120px;
  background: var(--cream-2); border-radius: 10px; box-shadow: 0 40px 60px -30px rgba(43, 38, 34, .45);
  animation: floaty 5s ease-in-out infinite;
}
.fb-card {
  position: absolute; left: 7%; right: 7%; top: -58%; height: 100%;
  background: var(--paper); border: 1px solid var(--gold-2); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--serif); color: var(--ink);
}
.fb-card b { font-size: 1.9rem; font-weight: 600; }
.fb-card small { font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
.fb-pocket {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(160deg, #efe4d0, #e7d9c0);
  clip-path: polygon(0 32%, 50% 62%, 100% 32%, 100% 100%, 0 100%);
}
@keyframes floaty { 50% { transform: translateY(-12px) rotate(-1deg); } }

/* ---------- stats ---------- */
.stats {
  width: min(1180px, calc(100% - 32px)); margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--paper); padding: 30px 20px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .muted { margin-top: 14px; }
.split .w { display: inline-block; }

/* features + tilt */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1000px; }
.card-feature {
  position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s;
  will-change: transform;
}
.card-feature:hover { box-shadow: 0 30px 60px -30px rgba(43, 38, 34, .35); }
.card-feature .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--cream-2); margin-bottom: 20px; transform: translateZ(30px);
}
.card-feature h3 { margin-bottom: 8px; transform: translateZ(20px); }
.card-feature p { color: var(--ink-soft); font-size: .95rem; }
.glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .8), transparent 45%);
  mix-blend-mode: soft-light;
}
.card-feature:hover .glare { opacity: 1; }

/* ---------- showcase phone ---------- */
.showcase { margin-top: 130px; background: var(--ink); color: var(--cream); }
.showcase-inner {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
}
.step { padding: 22px 0 22px 24px; border-left: 2px solid rgba(251, 247, 240, .15); opacity: .35; transition: opacity .4s, border-color .4s; }
.step.is-active { opacity: 1; border-color: var(--gold-2); }
.step span { font-size: .8rem; color: var(--gold-2); font-weight: 600; letter-spacing: .1em; }
.step h3 { font-size: 2rem; margin: 4px 0 6px; }
.step p { color: rgba(251, 247, 240, .7); max-width: 420px; }
.phone-wrap { perspective: 1400px; display: grid; place-items: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #3d3631, #1b1714); transform-style: preserve-3d;
  box-shadow: inset 0 0 0 2px #5a5048, 0 50px 90px -30px rgba(0, 0, 0, .8);
}
.phone-notch { position: absolute; top: 22px; left: 50%; width: 90px; height: 24px; border-radius: 20px; background: #111; transform: translateX(-50%); z-index: 3; }
.screen { position: absolute; inset: 12px; border-radius: 36px; overflow: hidden; opacity: 0; transition: opacity .6s; color: var(--ink); background: var(--paper); }
.screen.is-active { opacity: 1; }
.phone-shadow { width: 220px; height: 30px; margin-top: 40px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .6), transparent 70%); }

.inv { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px; font-family: var(--serif); }
.inv-sakura { background: radial-gradient(circle at 20% 10%, #f7d9df, transparent 40%), radial-gradient(circle at 90% 90%, #f1c9c3, transparent 45%), var(--paper); }
.inv small { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.inv b { font-size: 2.6rem; line-height: 1; font-weight: 600; }
.inv em { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); margin-top: 18px; }
.open-btn { font-style: normal; font-family: var(--sans); font-size: .78rem; padding: 8px 18px; border-radius: 99px; background: var(--ink); color: var(--cream); }
.inv-form, .inv-wa { padding: 60px 20px 20px; font-size: .8rem; }
.inv-form h4, .inv-wa h4 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 14px; }
.inv-form label { display: block; color: var(--ink-soft); font-size: .7rem; margin-bottom: 10px; }
.inv-form label span { display: block; margin-top: 3px; padding: 8px 12px; border-radius: 10px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-size: .82rem; }
.inv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.inv-gallery i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--rose), var(--gold-2)); }
.inv-gallery i:nth-child(2) { background: linear-gradient(135deg, var(--sage), #d9e0cf); }
.wa-row { display: flex; justify-content: space-between; padding: 12px; border-radius: 12px; background: var(--cream); margin-bottom: 8px; }
.wa-row .ok { color: #25a35a; font-weight: 600; }
.wa-row .wait { color: var(--gold); font-weight: 600; }
.wa-bar { height: 8px; border-radius: 9px; background: var(--cream-2); margin-top: 16px; overflow: hidden; }
.wa-bar i { display: block; height: 100%; width: 70%; background: linear-gradient(90deg, #25d366, var(--sage)); animation: fill 2.4s ease-in-out infinite alternate; }
@keyframes fill { from { width: 30%; } to { width: 92%; } }

/* ---------- carousel 3D ---------- */
.themes { padding-bottom: 40px; }
.carousel-scene { overflow: hidden; height: 460px; perspective: 1200px; display: grid; place-items: center; cursor: grab; touch-action: pan-y; }
.carousel-scene:active { cursor: grabbing; }
.carousel { position: relative; width: 220px; height: 380px; transform-style: preserve-3d; }
.theme-card {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 22px; text-align: center;
  box-shadow: 0 30px 50px -25px rgba(43, 38, 34, .45); border: 1px solid rgba(255, 255, 255, .5);
}
.theme-card .tc-names { font-family: var(--serif); font-size: 2rem; line-height: 1; margin-bottom: auto; margin-top: 70px; }
.theme-card b { font-size: .95rem; }
.theme-card small { font-size: .72rem; opacity: .75; }
.theme-card .tag { position: absolute; top: 14px; right: 14px; font-size: .64rem; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: var(--ink); font-weight: 600; }

/* ---------- WhatsApp ---------- */
.wa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.wa-grid .muted { margin: 18px 0 22px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--sage); color: #fff; font-size: .75rem; }
.chat { background: #efe7da; border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 70px -40px rgba(43, 38, 34, .5); }
.chat-head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head small { display: block; color: #25a35a; font-size: .72rem; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-family: var(--serif); font-weight: 700; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; background: #fff; }
.bubble.in { border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #d7f5c9; border-top-right-radius: 4px; }
.link-card { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: #2a7bd4; }
.link-card i { display: block; height: 90px; border-radius: 10px; background: radial-gradient(circle at 30% 30%, #f7d9df, transparent 50%), linear-gradient(135deg, var(--cream-2), var(--gold-2)); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 18px; align-items: stretch; }
.price-card {
  position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; transition: transform .3s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card h3 { font-size: 1.4rem; }
.price { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; line-height: 1; }
.price small { font-size: 1.1rem; color: var(--ink-soft); font-weight: 500; }
.price-card ul { list-style: none; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-soft); flex: 1; }
.price-card li::before { content: "•"; color: var(--gold); margin-right: 8px; }
.price-card.is-popular { border: 0; transform: translateY(-12px); isolation: isolate; box-shadow: 0 40px 70px -35px rgba(184, 146, 74, .6); }
.price-card.is-popular::before {
  content: ""; position: absolute; inset: -2px; border-radius: calc(var(--radius) + 2px); z-index: -2;
  background: conic-gradient(from var(--ang), var(--gold), var(--rose), var(--sage), var(--gold-2), var(--gold));
  animation: spin 4s linear infinite;
}
.price-card.is-popular::after { content: ""; position: absolute; inset: 1px; border-radius: calc(var(--radius) - 1px); background: var(--paper); z-index: -1; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 99px; background: var(--ink); color: var(--cream); white-space: nowrap; }

/* ---------- marquee ---------- */
.testi { padding: 130px 0 0; display: grid; gap: 16px; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marq 40s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.quote { width: 340px; padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; }
.quote p { color: var(--ink-soft); margin-bottom: 12px; }
.quote b { font-size: .88rem; }
.quote span { color: var(--gold); margin-left: 6px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  width: min(1180px, calc(100% - 32px)); margin: 130px auto 0; padding: 90px 24px;
  border-radius: 36px; background: linear-gradient(160deg, #f4e6d4, #efd9d2 60%, #e3e8da);
}
.cta h2 { max-width: 720px; margin: 0 auto 14px; }
.cta .muted { margin-bottom: 30px; }
.cta-petals { position: absolute; inset: 0; pointer-events: none; }
.cta-petals i {
  position: absolute; top: -20px; width: 14px; height: 10px; border-radius: 70% 0 70% 0;
  background: var(--rose); opacity: .7; animation: fall linear infinite;
}
@keyframes fall { to { transform: translate(var(--dx, 40px), 560px) rotate(540deg); } }

.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0; display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; text-align: center; gap: 0; }
  .hero-stage { order: -1; height: 46svh; min-height: 320px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .scroll-hint { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features, .pricing { grid-template-columns: 1fr 1fr; }
  .showcase-inner { grid-template-columns: 1fr; padding: 100px 0 60px; gap: 20px; }
  .step { padding: 12px 0 12px 18px; display: none; }
  .step.is-active { display: block; }
  .step h3 { font-size: 1.6rem; }
  .phone { width: 230px; height: 470px; }
  .wa-grid { grid-template-columns: 1fr; gap: 36px; }
  .price-card.is-popular { transform: none; }
}
@media (max-width: 560px) {
  .features, .pricing { grid-template-columns: 1fr; }
  .section { padding-top: 90px; }
  .carousel { width: 170px; height: 300px; }
  .carousel-scene { height: 380px; }
  .theme-card .tc-names { font-size: 1.6rem; }
  .footer { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- data dari admin ---------- */
.brand-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.chat-head .brand-mark, .chat-head .brand-logo { width: 38px; height: 38px; font-family: var(--serif); font-weight: 700; }
.card-feature .icon .icon-img { width: 30px; height: 30px; object-fit: contain; }
.theme-card.has-image::after {
  content: ""; position: absolute; inset: 45% 0 0; z-index: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}
.theme-card.has-image { color: #fff !important; }
.theme-card > * { position: relative; z-index: 1; }
.theme-card .tag { position: absolute; }
.carousel.is-flat { display: flex; gap: 20px; width: auto; }
.carousel.is-flat .theme-card { position: relative; width: 220px; height: 380px; }

/* kartu tema = link ke halaman contoh */
a.theme-card { text-decoration: none; -webkit-user-drag: none; user-select: none; }
.theme-card .tc-cta { margin-top: 12px; font-size: .7rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .88); color: #2b2622; transition: transform .2s; }
a.theme-card:hover .tc-cta { transform: translateY(-2px); }
