/* ==========================================================
   UndanganWebku - Landing page
   Product by Ikhwan Gadget Solutions
   ========================================================== */

:root {
  --plum-900: #2a0e1c;
  --plum-800: #3d1428;
  --plum-700: #5a2140;
  --plum-600: #7a2e4f;
  --rose-100: #fbf4f0;
  --rose-200: #f4e6df;
  --rose-300: #e8d2c8;
  --gold-300: #f3dca8;
  --gold-400: #e0bd72;
  --gold-500: #c49a45;
  --ink: #2b1f26;
  --muted: #74636b;
  --white: #fff;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --radius: 20px;
  --shadow: 0 18px 40px rgba(61, 20, 40, .12);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-body); color: var(--ink); background: var(--rose-100); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--plum-600); margin-bottom: .8rem; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--plum-800); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 600; }
h1 em { font-style: italic; font-weight: 400; color: var(--plum-600); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--plum-700); color: #fff; box-shadow: 0 10px 24px rgba(90, 33, 64, .3); }
.btn--primary:hover { background: var(--plum-600); }
.btn--ghost { border-color: var(--plum-700); color: var(--plum-700); }
.btn--outline { border-color: var(--rose-300); color: var(--plum-700); background: #fff; }
.btn--outline:hover { border-color: var(--plum-600); }
.btn--gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--plum-900); box-shadow: 0 10px 24px rgba(196, 154, 69, .35); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 244, 240, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--rose-200); box-shadow: 0 6px 20px rgba(61, 20, 40, .06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--plum-800); line-height: 1.1; }
.brand__text small { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.brand--light .brand__text { color: #fff; }
.brand--light .brand__text small { color: var(--rose-300); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--gold-500); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--plum-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4rem 0 5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 189, 114, .22), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(122, 46, 79, .10), transparent 45%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero__badge { display: flex; width: fit-content; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .45rem; margin-bottom: 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--rose-300); font-size: .82rem; color: var(--muted); box-shadow: 0 6px 16px rgba(61, 20, 40, .06); }
.hero__badge img { width: 22px; height: 22px; }
.hero__badge strong { color: var(--plum-700); font-weight: 600; }
.hero__lead { font-size: 1.08rem; color: var(--muted); margin: 1.2rem 0 1.8rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; font-size: .9rem; color: var(--muted); }
.hero__points li { display: flex; align-items: center; gap: .45rem; }
.hero__points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--gold-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232a0e1c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.hero__visual { position: relative; height: 560px; }
.hero__blob { position: absolute; inset: 12% 8%; z-index: -1; border-radius: 45% 55% 50% 50%; background: linear-gradient(160deg, var(--rose-300), var(--gold-300)); filter: blur(4px); opacity: .7; }

.phone {
  position: absolute; width: 230px; aspect-ratio: 9 / 19.2;
  border-radius: 34px; padding: 9px;
  background: #1c1418;
  box-shadow: 0 30px 60px rgba(42, 14, 28, .35);
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #1c1418; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.phone--front { left: 50%; top: 20px; margin-left: -115px; z-index: 3; animation: float 6s ease-in-out infinite; }
.phone--back { width: 200px; top: 80px; opacity: .95; z-index: 1; }
.phone--left { left: 4%; transform: rotate(-9deg); animation: floatL 7s ease-in-out infinite; }
.phone--right { right: 4%; transform: rotate(9deg); animation: floatR 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes floatL { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(-9deg) translateY(10px); } }
@keyframes floatR { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(9deg) translateY(10px); } }

/* ---------- Section umum ---------- */
.section { padding: 5.5rem 0; }
.section--tint { background: var(--rose-200); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p:not(.eyebrow) { color: var(--muted); margin-top: .8rem; }

/* ---------- Fitur ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; border: 1px solid var(--rose-200); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1rem; background: linear-gradient(135deg, var(--plum-600), var(--plum-800)); }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- Katalog tema ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter {
  padding: .55rem 1.2rem; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--rose-300);
  font-weight: 500; font-size: .9rem; color: var(--ink);
  transition: all .2s;
}
.filter:hover { border-color: var(--plum-600); }
.filter.is-active { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 980px; margin: 0 auto; }
.theme {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(61, 20, 40, .08);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, opacity .3s;
}
.theme:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.theme.is-hidden { display: none; }
.theme__preview { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--rose-200); display: block; }
.theme__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 4s ease; }
.theme:hover .theme__preview img { transform: scale(1.06); }
.theme__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.theme__tags span { font-size: .7rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--plum-700); }
.theme__tags .tag--klien { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--plum-900); }
.theme--klien { box-shadow: 0 0 0 2px var(--gold-400), 0 8px 24px rgba(61, 20, 40, .1); }
.theme__body { padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.theme__title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.theme__colors { display: flex; }
.theme__colors i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; box-shadow: 0 0 0 1px var(--rose-300); }
.theme__body p { font-size: .88rem; color: var(--muted); margin: .45rem 0 1rem; flex: 1; }
.theme__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.theme__actions .btn { padding: .65rem .5rem; font-size: .85rem; }
.themes__note { text-align: center; color: var(--muted); margin-top: 2.2rem; font-size: .95rem; }

/* ---------- Cara order ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-400) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; text-align: center; padding: 0 .4rem; }
.step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--plum-700); color: var(--gold-300); font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; box-shadow: 0 0 0 8px var(--rose-100); }
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--muted); }

/* ---------- Harga ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.pricing--two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.plan { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column; border: 1.5px solid var(--rose-200); }
.plan--featured { background: linear-gradient(170deg, var(--plum-700), var(--plum-900)); color: #fff; border-color: transparent; transform: scale(1.03); box-shadow: 0 24px 50px rgba(61, 20, 40, .3); }
.plan--featured h3, .plan--featured .plan__price strong { color: #fff; }
.plan--featured .plan__desc, .plan--featured .plan__price s { color: var(--rose-300); }
.plan--featured li::before { background-color: var(--gold-400); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: .3rem .9rem; border-radius: 999px; background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--plum-900); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: 1.4rem; }
.plan__desc { font-size: .9rem; color: var(--muted); margin: .3rem 0 1.2rem; }
.plan__price { display: flex; flex-direction: column; margin-bottom: 1.4rem; }
.plan__price s { font-size: .9rem; color: var(--muted); }
.plan__price strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--plum-800); line-height: 1.1; }
.plan ul { list-style: none; display: grid; align-content: start; gap: .6rem; margin-bottom: 1.8rem; flex: 1; }
.plan li { display: flex; gap: .55rem; font-size: .92rem; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--plum-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border-radius: 16px; border: 1px solid var(--rose-200); padding: 0 1.3rem; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--plum-600); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--muted); font-size: .95rem; }
.faq code { background: var(--rose-200); padding: .1rem .4rem; border-radius: 6px; font-size: .88em; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 5.5rem; }
.cta__inner {
  text-align: center; padding: 3.5rem 1.5rem; border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(243, 220, 168, .25), transparent 40%),
    linear-gradient(135deg, var(--plum-700), var(--plum-900));
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: var(--rose-300); margin: .7rem 0 1.6rem; }

/* ---------- Footer ---------- */
.footer { background: var(--plum-900); color: var(--rose-300); padding: 3.5rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer__brand p { margin-top: 1rem; max-width: 340px; font-size: .92rem; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: .3rem; }
.footer__col a { text-decoration: none; font-size: .92rem; }
.footer__col a:hover { color: var(--gold-300); }
.footer__copy { text-align: center; font-size: .82rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- WhatsApp melayang ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  animation: pulse 2.4s infinite;
}
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ==========================================================
   Responsif
   ========================================================== */
@media (max-width: 1024px) {
  .features, .themes { grid-template-columns: repeat(2, 1fr); }
  .pricing, .pricing--two { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan--featured { transform: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 20px 1.2rem;
    background: var(--rose-100);
    border-bottom: 1px solid var(--rose-200);
    box-shadow: 0 16px 30px rgba(61, 20, 40, .1);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--rose-200); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }

  .hero { padding: 2.5rem 0 3.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero__lead, .hero__badge { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__points { justify-content: center; }
  .hero__visual { height: 440px; }
  .phone { width: 190px; }
  .phone--front { margin-left: -95px; }
  .phone--back { width: 160px; top: 60px; }
  .phone--left { left: 0; }
  .phone--right { right: 0; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .section { padding: 4rem 0; }
  .features { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .feature { padding: 1.2rem 1rem; }
  .feature p { font-size: .84rem; }
  .themes { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .theme__body { padding: .8rem; }
  .theme__body p { display: none; }
  .theme__title h3 { font-size: 1rem; }
  .theme__actions { grid-template-columns: 1fr; margin-top: .6rem; }
  .theme__tags span:nth-child(n+2):not(.tag--klien) { display: none; }
  .theme--klien .theme__tags span:not(.tag--klien) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero__visual { height: 380px; }
  .phone { width: 170px; }
  .phone--front { margin-left: -85px; }
  .phone--back { width: 135px; }
  .brand__text { font-size: 1.1rem; }
}

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