:root {
  --bg: #0d0d0d;
  --bg-2: #161616;
  --card: #1c1c1c;
  --line: #2c2c2c;
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --gold: #d4a359;
  --gold-2: #e5b869;
  --wa: #25d366;
  --wa-ink: #0d0d0d;
  --shopee: #ee4d2d;
  --warn-bg: #2a1f0e;
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--bg-2); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin-bottom: .5em; }
.lead { color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(13, 13, 13, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 150px; height: 40px; object-fit: contain; }
.lang { display: flex; gap: 4px; font-weight: 700; font-size: .9rem; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 8px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); background: var(--card); }
.lang [aria-current] { color: var(--bg); background: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .1s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
/* Dark ink on WhatsApp green = ~10:1 contrast (white would fail WCAG AA). */
.btn-wa { background: var(--wa); color: var(--wa-ink); }
/* Shopee orange used as outline + text-on-dark (passes AA as large bold text). */
.btn-shopee { background: transparent; color: #ff7a5c; border-color: var(--shopee); }
.btn-ghost { background: transparent; color: var(--gold-2); border-color: var(--gold); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 40px 0 48px; background: radial-gradient(120% 80% at 50% 0%, #2a2112 0%, var(--bg) 60%); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
.hero h1 .accent { color: var(--gold-2); }
.hero .sub { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.tagline { color: var(--gold); font-weight: 700; font-style: italic; }
.code-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .35)); border: 0; cursor: pointer; color: var(--bg);
}
.video-play span {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); transition: transform .15s ease;
}
.video-play:hover span { transform: scale(1.06); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }

.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.channels a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; font-size: .9rem;
}
.channels a:hover { border-color: var(--gold); }
.channels svg { width: 18px; height: 18px; flex: none; }

/* Trademark */
.tm-grid { display: grid; gap: 28px; align-items: center; }
.tm-number {
  display: inline-block; font: 700 clamp(1.4rem, 5vw, 2rem)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em; color: var(--gold-2); background: var(--card); border: 1px dashed var(--gold);
  padding: 10px 16px; border-radius: 10px; margin: 6px 0 14px; word-break: break-all;
}
.tm-figure { position: relative; margin: 0; max-width: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tm-figure figcaption { font-size: .8rem; color: var(--muted); padding: 8px 12px; background: var(--card); }
.steps-mini { color: var(--muted); font-size: .92rem; padding-left: 1.2em; }

/* Cards */
.grid-3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--bg); background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.spec { color: var(--muted); font-size: .93rem; margin: 0; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--gold-2); margin: 0; }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); display: block; }
.card .btn-row { margin-top: auto; }
.card .btn { flex: 1 1 auto; }
figure.card { margin: 0; }
.ship-label { padding: 12px 16px; font-weight: 700; }
.ship-label small { display: block; font-weight: 400; color: var(--muted); }

/* How to order */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 70px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--bg); font-weight: 800;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; min-height: 44px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.warn { margin-top: 32px; max-width: 820px; background: var(--warn-bg); border: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; }
.warn h3 { color: var(--gold-2); }
.warn ul { margin: 0; padding-left: 1.2em; }
.warn li { margin: 6px 0; overflow-wrap: anywhere; }
.warn .note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; background: #080808; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; gap: 22px; }
.footer-grid img { width: 120px; height: 32px; object-fit: contain; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); }
.copy { margin-top: 22px; font-size: .82rem; }

/* ---------- v2 UX additions ---------- */

/* Typography polish */
h1, h2 { letter-spacing: -0.02em; font-weight: 800; }
.section h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); flex: none; }

/* Hero: kite-string accent (decorative, CSS only) */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M-20 520 C 300 380, 520 470, 760 260 S 1100 40, 1240 -20' fill='none' stroke='%23D4A359' stroke-width='1.5'/%3E%3Cpath d='M-20 580 C 340 450, 600 540, 840 330 S 1150 120, 1240 60' fill='none' stroke='%23D4A359' stroke-width='.8' stroke-dasharray='4 8'/%3E%3C/svg%3E") center / cover no-repeat;
}
.hero > .wrap { position: relative; }

/* Trust badges in hero */
.trust { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(212, 163, 89, .1); border: 1px solid rgba(212, 163, 89, .35); color: var(--text); font-size: .85rem; font-weight: 600;
}
.trust svg { width: 16px; height: 16px; color: var(--gold-2); flex: none; }
.trust a { color: inherit; text-decoration: none; }

/* Product peek under hero video */
.hero-media { display: grid; gap: 12px; }
.peek {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.peek:hover { border-color: var(--gold); }
.peek-imgs { display: flex; flex: none; }
.peek-imgs img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 2px solid var(--card); }
.peek-imgs img + img { margin-left: -10px; }
.peek span { font-size: .92rem; font-weight: 600; }
.peek small { display: block; color: var(--muted); font-weight: 400; }

/* Product cards: compact horizontal layout on phones */
.product .card-actions { padding: 0 18px 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.product .card-actions .btn { flex: 1 1 140px; }
@media (max-width: 719px) {
  .product { display: grid; grid-template-columns: 112px 1fr; }
  .product > img { width: 112px; height: 112px; object-fit: cover; margin: 16px 0 0 16px; border-radius: 10px; }
  .product .card-body { padding: 14px 16px 12px 14px; gap: 6px; }
  .product .card-body h3 { font-size: 1.05rem; margin: 0; }
  .product .spec { font-size: .85rem; }
  .product .price { font-size: 1.15rem; }
  .product .card-actions { grid-column: 1 / -1; padding: 0 16px 16px; }
}

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: 72px; }

/* Testimonials (phones: horizontal snap carousel) */
.testi-grid, .scroll-row {
  display: grid; gap: 14px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; overscroll-behavior-x: contain;
}
.testi-grid > *, .scroll-row > * { scroll-snap-align: start; }
#shipping .card img, #pengiriman .card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.testi { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.testi img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.testi figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); }
.testi figcaption strong { color: var(--text); display: block; }
.placeholder-flag { border: 2px dashed #b05; }
.placeholder-flag::before { content: "PLACEHOLDER — ganti dengan testimoni asli sebelum go-live"; display: block; padding: 6px 12px; background: #b05; color: #fff; font: 700 .75rem/1.4 var(--font); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }
.stats b { display: block; font-size: 1.5rem; color: var(--gold-2); line-height: 1.2; }
.stats span { font-size: .85rem; color: var(--muted); }

/* Sticky WhatsApp bar (phones) / floating button (desktop) */
.sticky-wa {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55); transition: transform .2s ease, opacity .2s ease;
}
.sticky-wa svg { width: 24px; height: 24px; }
.sticky-wa.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
body.has-sticky { padding-bottom: 84px; }

@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .testi-grid, .scroll-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tm-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .sticky-wa { left: auto; right: 24px; bottom: 24px; padding: 0 22px; }
  body.has-sticky { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
  .section { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Language suggestion (shown by main.js based on browser language) */
.lang-hint { background: #1f1a10; border-bottom: 1px solid rgba(212, 163, 89, .35); font-size: .92rem; }
.lang-hint .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
.lang-hint span { flex: 1 1 200px; }
.lang-hint-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; border-radius: 8px; }
.lang-hint-close:hover { color: var(--text); background: var(--card); }

/* FAQ + anti-scam box: stacked on phones, side by side on desktop */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .faq-layout .warn { margin-top: 0; position: sticky; top: 88px; }
  .faq-layout .faq, .faq-layout .warn { max-width: none; }
}

/* Brand lockup (logo emblem + wordmark) */
.brand { gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { color: var(--gold-2); font-weight: 800; }
.footer-grid img { width: 56px; height: 56px; border-radius: 50%; }

/* Trademark facts */
.tm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.tm-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tm-facts div:nth-child(2) { grid-column: 1 / -1; order: -1; }
.tm-facts div:nth-child(3) { grid-column: 1 / -1; order: 1; }
.tm-facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tm-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.tm-facts .ok { color: #4ade80; }

/* Agent / reseller CTA */
.partner {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  background: var(--card); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 18px;
}
.partner h3 { margin-bottom: .25em; color: var(--gold-2); }
.partner p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 60ch; }

/* Legal pages */
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal h2::after { display: none; }
.legal p, .legal li { color: #d6d6d6; }
.legal li { margin: .5em 0; }

/* ---------- Catalog ---------- */
.see-all { margin: 20px 0 0; text-align: center; }
.catalog h1 .count { font-size: .55em; vertical-align: middle; color: var(--bg); background: var(--gold); border-radius: 999px; padding: 2px 12px; }
.shop-trust { color: var(--gold-2); font-weight: 600; margin: -4px 0 18px; }
.shop-trust small { color: var(--muted); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat-tools { position: sticky; top: 64px; z-index: 4; background: rgba(13, 13, 13, .96); padding: 12px 0; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.cat-search input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid #3a3a3a;
  background: var(--card); color: var(--text); font: inherit;
}
.cat-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 .88rem/1 var(--font); cursor: pointer;
}
.chip span { color: var(--muted); font-weight: 500; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.chip.on span { color: #3a2c12; }
.cat-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.cat-sort select { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid #3a3a3a; background: var(--card); color: var(--text); font: inherit; }
.cat-status { color: var(--muted); font-size: .85rem; margin: 10px 0; }
.pgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.pcard[hidden] { display: none; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; }
.pcard-body { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-cat { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { font-size: .92rem; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .spec { font-size: .78rem; margin: 0; color: var(--muted); }
.pcard-price { margin: 4px 0 0; font-weight: 800; color: var(--gold-2); font-size: 1rem; }
.pcard-price small { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); }
.pcard-meta { margin: 0; font-size: .75rem; color: var(--muted); }
.pcard-actions { padding: 8px 12px 12px; display: grid; gap: 4px; }
.pcard-actions .btn { width: 100%; min-height: 44px; padding: 8px 10px; font-size: .88rem; gap: 6px; }
.pcard-actions .btn svg { width: 18px; height: 18px; }
.pcard-shopee { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: .82rem; color: #ff7a5c; text-decoration: none; }
.pcard-shopee:hover { text-decoration: underline; }
.cat-empty { text-align: center; color: var(--muted); padding: 32px 0; }
.cat-ask { margin-top: 28px; }
@media (min-width: 720px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cat-tools { grid-template-columns: 1fr auto; align-items: center; }
  .cat-tools .chips-row { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
