/* ==========================================================================
   NOVA — style.css
   1. Tokens   2. Base   3. Components   4. Sections   5. Popup   6. Motion
   Breakpoints (mobile-first): 480 · 768 · 1024 · 1280 · 1440
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Color */
  --bg: #07070b;
  --bg-2: #0b0b12;
  --surface: #11111a;
  --surface-2: #171722;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4efe6;
  --text-2: #c8c2b6;
  --muted: #8e8998;
  --gold: #e3bd74;
  --gold-hi: #f6dea9;
  --gold-lo: #a67836;
  --violet: #7566ff;
  --gold-a10: rgba(227, 189, 116, .10);
  --gold-a20: rgba(227, 189, 116, .22);

  /* Type */
  --font-display: "Noto Serif Thai", "Noto Serif", Georgia, serif;
  --font-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.3rem, 1.25rem + 3.6vw, 4.3rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.3vw, 3.2rem);
  --fs-h3: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  --fs-lg: clamp(1.02rem, .97rem + .25vw, 1.16rem);

  /* Space & shape */
  --container: 1240px;
  --gutter: clamp(20px, 4.2vw, 48px);
  --section-y: clamp(84px, 10vw, 152px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 72px;

  /* Logo (di-override dari config.js) */
  --logo-w: 148px;
  --logo-w-m: 118px;
  --logo-h: 36px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;          /* tidak ada layout shift saat scroll dikunci */
  background: var(--bg);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;                 /* Thai butuh line-height lega (tone marks) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;                  /* pengaman overflow horizontal (sticky tetap jalan) */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: #1a1308; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-l)) max(var(--gutter), var(--safe-r));
}
.section { padding-block: var(--section-y); position: relative; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1a1308; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: calc(12px + var(--safe-t)); }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.22;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display em {
  display: block;
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 45%, #c99a52 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.3;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.5; }
.body-lg { font-size: var(--fs-lg); color: var(--text-2); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-size: .85rem; font-weight: 500; letter-spacing: .02em; /* Thai: jangan pakai tracking lebar */
  color: var(--gold);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* 3. COMPONENTS ------------------------------------------------------------ */
/* Buttons */
.btn {
  --h: 48px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .92rem; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 1.02rem; }

.btn-primary {
  color: #1b1408;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, #c4924a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 8px 24px -10px rgba(227, 189, 116, .55);
}
.btn-primary::after { /* kilau halus saat hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 14px 34px -12px rgba(227, 189, 116, .75); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(227, 189, 116, .55); background: rgba(227, 189, 116, .07); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background-color .3s, transform .2s;
}
.icon-btn:hover { border-color: rgba(227, 189, 116, .55); background: var(--gold-a10); }
.icon-btn:active { transform: scale(.95); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--gold);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 1px; }
.text-link svg { transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px -20px rgba(0, 0, 0, .7);
}
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 500; letter-spacing: .02em;
  color: var(--gold-hi); background: rgba(10, 10, 15, .55); border: 1px solid rgba(227, 189, 116, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.ticks svg { flex: none; color: var(--gold); }

/* Brand / logo — ukuran dari config, gambar di-contain (tanpa distorsi) */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo {
  position: relative; display: block;
  width: var(--logo-w-m); height: var(--logo-h);
}
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: left center;
  opacity: 0; transition: opacity .3s;
}
.brand-logo.is-loaded img { opacity: 1; }
.brand-wordmark {
  position: absolute; inset: 0; display: none; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: .14em;
  color: var(--gold-hi); white-space: nowrap;
}
.brand-logo.is-fallback img { display: none; }
.brand-logo.is-fallback .brand-wordmark,
html:not(.js) .brand-wordmark { display: flex; }
html:not(.js) .brand-logo img { display: none; }
@media (min-width: 768px) { .brand-logo { width: var(--logo-w); } }

/* Image tiles — semua gambar konten adalah <img> biasa dari assets/images/.
   Ganti file-nya, bukan CSS-nya. object-fit: cover = mengisi kotak tanpa distorsi. */
.tile-img,
.fv-tile,
.fv-phone-screen,
.panel-art img,
.game-art { display: block; width: 100%; height: 100%; object-fit: cover; background-color: var(--surface-2); }

/* Scrim: gradasi gelap HANYA di bawah teks yang menumpuk di atas gambar
   (kartu hero depan, kartu game, nomor tab) agar teks tetap terbaca. */
.has-scrim::after,
.game::after,
.panel-art::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 9, .72) 100%);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: var(--safe-t);
  transition: background-color .35s, border-color .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 11, .72);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.primary-nav { display: none; margin-left: auto; }
.primary-nav ul { display: flex; gap: 6px; }
.primary-nav a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-size: .95rem; color: var(--text-2); transition: color .25s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-login { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
}
.menu-toggle-bars { display: grid; gap: 6px; width: 18px; }
.menu-toggle-bars span { height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-toggle-bars span:last-child { width: 12px; justify-self: end; }
.menu-toggle:hover .menu-toggle-bars span:last-child { transform: scaleX(1.5); transform-origin: right; }

@media (max-width: 479px) {
  .header-actions .btn-primary { padding: 0 14px; font-size: .88rem; }
}
@media (min-width: 768px) {
  .header-login { display: inline-flex; }
}
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .header-actions { margin-left: 8px; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t)) max(var(--gutter), var(--safe-r)) calc(24px + var(--safe-b)) max(var(--gutter), var(--safe-l));
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(227, 189, 116, .14), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(117, 102, 255, .12), transparent 60%),
    var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.mobile-nav { flex: 1; display: flex; align-items: center; padding-block: 24px; }
.mobile-nav ol { width: 100%; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 600; line-height: 1.4;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .25s;
}
.mobile-nav a span { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--gold); letter-spacing: .1em; }
.mobile-nav a:hover { color: var(--gold-hi); }
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu-cta { display: grid; gap: 12px; flex: none; }
.lite-link { justify-self: center; padding: 10px; font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* 4. SECTIONS -------------------------------------------------------------- */
/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: min(100svh, 980px);
  overflow-x: clip;                  /* ring yang berputar tidak boleh memicu scroll horizontal */
  padding-top: calc(var(--header-h) + var(--safe-t) + clamp(28px, 6vw, 72px));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 52% at 76% 38%, rgba(227, 189, 116, .20), transparent 70%),
    radial-gradient(40% 50% at 8% 92%, rgba(117, 102, 255, .14), transparent 70%),
    radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, .04), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%); mask: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%);
  opacity: .55;
}
.hero-banner { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner.is-loaded { opacity: var(--hero-banner-opacity, .32); }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 10%, rgba(7, 7, 11, .4) 60%, var(--bg)), linear-gradient(180deg, transparent 50%, var(--bg)); }

.hero-inner { flex: 1; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-copy { max-width: 700px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: .85rem; color: var(--text-2);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.4s var(--ease) infinite; }
.lede { margin-top: 22px; max-width: 34em; font-size: var(--fs-lg); color: var(--text-2); }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .9rem; color: var(--muted); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { color: var(--gold); }

@media (max-width: 479px) {
  .hero .cta-group .btn { flex: 1 1 100%; }
}

/* Hero stage composition */
.hero-stage {
  --px: 0; --py: 0;
  position: relative; width: 100%; max-width: 520px; margin-inline: auto;
  aspect-ratio: 1 / 1;
}
.stage-ring {
  position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(227, 189, 116, .5), transparent 30%, transparent 60%, rgba(117, 102, 255, .4), transparent 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 28s linear infinite;
}
.stage-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .08); }
.stage-tile {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .6s var(--ease-out);
}
.stage-tile--main {
  width: 50%; aspect-ratio: 3 / 4; left: 26%; top: 13%; z-index: 3;
  transform: translate(calc(var(--px) * 10px), calc(var(--py) * 10px)) rotate(-2deg);
}
.stage-tile--back {
  width: 38%; aspect-ratio: 3 / 4; left: 6%; top: 24%; z-index: 1; opacity: .85;
  transform: translate(calc(var(--px) * -6px), calc(var(--py) * -6px)) rotate(-12deg);
}
.stage-tile--side {
  width: 36%; aspect-ratio: 3 / 4; right: 5%; top: 30%; z-index: 2; opacity: .9;
  transform: translate(calc(var(--px) * 16px), calc(var(--py) * 16px)) rotate(9deg);
}
.stage-tile-meta { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 6px; justify-items: start; }
.stage-tile-meta strong { font-family: var(--font-display); font-size: clamp(1.05rem, .9rem + .6vw, 1.4rem); line-height: 1.3; }
.stage-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: .82rem; white-space: nowrap; color: var(--text);
  animation: float 6s ease-in-out infinite;
}
.stage-chip svg { color: var(--gold); }
.stage-chip--a { left: 0; bottom: 14%; }
.stage-chip--b { right: 0; top: 10%; animation-delay: -3s; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee4a0; box-shadow: 0 0 0 4px rgba(94, 228, 160, .15); }

@media (max-width: 479px) {
  .hero-stage { max-width: 340px; }
  .stage-chip { font-size: .74rem; padding: 8px 11px; }
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.08fr .92fr; }
  .hero-stage { max-width: 560px; margin-right: 0; }
}

/* Ribbon */
.ribbon {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 18px 0; animation: marquee 40s linear infinite; }
.ribbon span { font-size: .95rem; color: var(--text-2); white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--gold); font-size: .75rem; }

/* Value — editorial ruled list (bukan card) */
.value-layout { display: grid; gap: clamp(36px, 5vw, 56px); }
.value-head .h2 { max-width: 14em; }
.value-list { display: grid; }
.value-list li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.value-num { font-family: var(--font-display); font-size: 1rem; color: var(--gold); letter-spacing: .06em; }
.value-list p { color: var(--text-2); max-width: 30em; }
@media (min-width: 768px) {
  .value-list { grid-template-columns: repeat(3, 1fr); }
  .value-list li { padding: 32px 28px 8px; border-top: 0; border-left: 1px solid var(--line); }
  .value-list li:first-child { padding-left: 0; border-left: 0; }
  .value-list { border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .value-layout { grid-template-columns: 1fr; }
  .value-head { display: grid; grid-template-columns: 1fr 1.6fr; align-items: end; }
  .value-head .kicker { align-self: start; }
}

/* Features — sticky split */
.features { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.features-layout { display: grid; gap: 48px; }
.features-intro .body-lg { margin-block: 18px 26px; max-width: 26em; }
.features-body { display: grid; gap: 40px; }
/* Tinggi window mengikuti isinya (tile persegi = rasio aset 1:1), bukan dikunci 16:11.
   Sebelumnya rasio terkunci memaksa tile pertama jadi strip vertikal (hanya ~58% gambar terlihat). */
.feature-visual { position: relative; padding: 0 14% 8% 0; }
.fv-window { position: relative; border-radius: var(--radius-lg); padding: 14px; }
.fv-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.fv-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.fv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fv-tile { border-radius: 12px; aspect-ratio: 1 / 1; height: auto; }
.fv-phone {
  position: absolute; right: 0; bottom: 0; width: 28%; aspect-ratio: 9 / 18;
  border-radius: 22px; padding: 7px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.fv-phone-screen { border-radius: 16px; }
.fv-phone-btn { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; width: 54%; height: 12%; border-radius: 999px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 6px 20px -6px rgba(227, 189, 116, .8); }

.feature-rows li {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--line);
  transition: border-color .3s;
}
.feature-rows li:last-child { border-bottom: 1px solid var(--line); }
.feature-rows li:hover { border-top-color: rgba(227, 189, 116, .4); }
.feature-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: var(--gold); background: var(--gold-a10); border: 1px solid rgba(227, 189, 116, .2);
  transition: transform .4s var(--ease), background-color .3s;
}
.feature-rows li:hover .feature-icon { transform: rotate(-6deg) scale(1.05); background: var(--gold-a20); }
.feature-rows p { margin-top: 4px; color: var(--text-2); }
@media (min-width: 1024px) {
  .features-layout { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); }
  .features-intro { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
}

/* Styles — tabs */
.styles { border-block: 1px solid var(--line); background: radial-gradient(60% 60% at 100% 50%, rgba(117, 102, 255, .07), transparent 70%), var(--bg); }
.styles-head { display: grid; gap: 16px; margin-bottom: 40px; }
.styles-head .body-lg { max-width: 26em; }
@media (min-width: 1024px) { .styles-head { grid-template-columns: 1fr 1fr; align-items: end; } .styles-head .body-lg { justify-self: end; } }

.tablist {
  display: flex; gap: 8px; margin-bottom: 32px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  padding: 4px; margin-inline: -4px;
}
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] {
  flex: none; scroll-snap-align: start;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500;
  transition: color .25s, background-color .3s, border-color .3s;
}
.tablist [role="tab"]:hover { color: var(--text); border-color: rgba(227, 189, 116, .45); }
.tablist [role="tab"][aria-selected="true"] { color: #1b1408; background: var(--gold); border-color: var(--gold); }

.tabpanel { display: grid; gap: 32px; align-items: center; }
.tabpanel[hidden] { display: none; }
.js .tabpanel:not([hidden]) { animation: panelIn .55s var(--ease-out); }
.panel-art { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--surface-2); }
.panel-index {
  position: absolute; z-index: 2; left: 24px; bottom: 12px;
  font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; color: rgba(255, 255, 255, .9);
  mix-blend-mode: overlay;
}
.panel-copy { display: grid; gap: 18px; justify-items: start; }
.panel-copy h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; }
.panel-copy > p { color: var(--text-2); max-width: 30em; }
.panel-copy .btn { margin-top: 8px; }
@media (min-width: 768px) { .tabpanel { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); } }

/* Games — horizontal rail */
.games-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.rail-controls { display: none; gap: 10px; }
@media (min-width: 768px) { .rail-controls { display: flex; } }
.rail {
  --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 280px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad);
  padding: 4px var(--rail-pad) 20px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.game {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  transition: transform .5s var(--ease-out), border-color .3s;
}
.game--feature { grid-column: span 1; }
@media (min-width: 768px) {
  .rail { grid-auto-columns: 260px; gap: 20px; }
  .game--feature { grid-column: span 2; aspect-ratio: auto; }
}
.game-art { position: absolute; inset: 0; transition: transform .8s var(--ease-out); }
.game { background: var(--surface-2); }
.game:hover { border-color: rgba(227, 189, 116, .45); transform: translateY(-4px); }
.game:hover .game-art { transform: scale(1.05); }
.game { display: flex; align-items: flex-end; }
.game-meta { z-index: 2; flex: 1; margin: 18px; display: grid; gap: 6px; justify-items: start; } /* flex item: z-index tanpa position → stretched link ke .game */
.game-meta h3 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.game--feature .game-meta h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.game-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  font-size: .9rem; font-weight: 600; color: var(--gold-hi);
}
.game-link::after { content: ""; position: absolute; inset: 0; z-index: -1; } /* seluruh tile bisa diklik */
.game-link svg { transition: transform .3s var(--ease); }
.game:hover .game-link svg { transform: translateX(4px); }

/* Why — comparison */
.why-layout { display: grid; gap: 48px; }
.why-quote {
  margin-top: 32px; padding-left: 22px; border-left: 2px solid var(--gold);
  font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.6; color: var(--text-2);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); padding-top: 0; }
.compare thead th:last-child { color: var(--gold); }
.compare tbody th { font-weight: 600; width: 30%; }
.compare tbody td { color: var(--muted); }
.compare tbody td:last-child { color: var(--text); background: linear-gradient(90deg, var(--gold-a10), transparent); }
.compare tbody td:last-child::before { content: "✓"; color: var(--gold); margin-right: 10px; font-weight: 700; }
.compare th:first-child, .compare td:first-child { padding-left: 0; }
@media (max-width: 767px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { display: block; padding: 0; border: 0; width: auto; }
  .compare tbody th { width: auto; font-size: 1.05rem; }
  .compare tbody td::before { content: attr(data-label) " — "; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
  .compare tbody td:last-child { padding: 10px 12px; border-radius: 10px; }
  .compare tbody td:last-child::before { content: attr(data-label) " — "; color: var(--gold); margin: 0; font-weight: 500; }
}
@media (min-width: 1024px) { .why-layout { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); align-items: start; } }

/* Stats — full-bleed band */
.stats {
  position: relative; padding-block: clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(227, 189, 116, .09), transparent 70%),
    var(--bg-2);
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats-grid > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 22px 16px; border-left: 1px solid var(--line); }
.stats-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats-grid dd { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); line-height: 1.1; }
.stats-grid dd span { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); font-weight: 600; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.stats-grid dd small { font-family: var(--font-body); font-size: .95rem; color: var(--text-2); }
.stats-grid dt { font-size: .9rem; color: var(--muted); }
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid > div { padding: 8px 32px; border-top: 0 !important; border-left: 1px solid var(--line) !important; }
  .stats-grid > div:first-child { border-left: 0 !important; padding-left: 0; }
}

/* FAQ */
.faq-layout { display: grid; gap: 40px; }
.faq-intro .body-lg { margin-block: 18px 26px; max-width: 24em; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 22px 52px 22px 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.5;
  transition: color .25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; translate: 0 -50%;
  border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease), background-size .35s var(--ease), border-color .3s;
}
.faq-list summary:hover { color: var(--gold-hi); }
.faq-list details[open] summary::after { transform: rotate(90deg); background-size: 12px 1.5px, 1.5px 0; border-color: rgba(227, 189, 116, .5); }
.faq-a { padding: 0 52px 24px 0; color: var(--text-2); }
.faq-a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-list details[open] .faq-a { animation: fadeUp .4s var(--ease-out); }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
}

/* Final CTA */
.final-cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 176px); border-top: 1px solid var(--line); }
.final-cta-bg { position: absolute; inset: 0; z-index: -1; }
.final-cta-bg::before {
  content: ""; position: absolute; width: min(1100px, 140vw); aspect-ratio: 1; right: -30%; top: 50%; translate: 0 -50%;
  border-radius: 50%;
  border: 1px solid rgba(227, 189, 116, .25);
  box-shadow: inset 0 0 120px rgba(227, 189, 116, .08), 0 0 0 80px rgba(227, 189, 116, .02), 0 0 0 160px rgba(227, 189, 116, .015);
}
.final-cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 50%, rgba(227, 189, 116, .16), transparent 70%); }
.final-cta-layout { display: grid; gap: 36px; align-items: end; }
.final-cta-title { font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4.4rem); max-width: 12em; }
.final-cta-side .cta-group { margin-top: 24px; }
@media (min-width: 1024px) { .final-cta-layout { grid-template-columns: 1.5fr 1fr; gap: 64px; } }
@media (max-width: 479px) { .final-cta .cta-group .btn { flex: 1 1 100%; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 64px; padding-bottom: calc(24px + var(--safe-b)); }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 28em; color: var(--muted); font-size: .95rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-h { font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--gold); margin-bottom: 12px; }
.footer-nav a { display: inline-block; padding: 6px 0; color: var(--text-2); transition: color .25s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.age { display: inline-flex; align-items: center; gap: 10px; }
.age-badge { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 600; font-size: .75rem; color: var(--text); }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr; } }

/* 5. POPUP ----------------------------------------------------------------- */
/* Native <dialog>: fixed + margin:auto → selalu tepat di tengah viewport
   (horizontal & vertikal), juga di HP. Bukan bottom sheet. */
.promo {
  --promo-max-h: calc(100svh - 32px - var(--safe-t) - var(--safe-b));
  position: fixed; inset: 0; margin: auto;
  width: min(400px, calc(100vw - 32px - var(--safe-l) - var(--safe-r)));
  max-width: none; height: fit-content; max-height: var(--promo-max-h);
  padding: 0; border: 0; background: transparent; color: var(--text);
  overflow: visible;
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .3s var(--ease), transform .55s var(--ease-out);
}
@supports (height: 100dvh) { .promo { --promo-max-h: calc(100dvh - 32px - var(--safe-t) - var(--safe-b)); } }
.promo.is-open { opacity: 1; transform: none; }
.promo::backdrop {
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(227, 189, 116, .10), transparent 70%),
    rgba(3, 3, 6, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.promo.is-open::backdrop { opacity: 1; }

.promo-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  max-height: var(--promo-max-h);
  border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(227, 189, 116, .13), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(117, 102, 255, .10), transparent 60%),
    linear-gradient(180deg, #14141d, #0c0c12);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6);
}
.promo-card::before { /* hairline border gradasi emas → transparan → violet */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(246, 222, 169, .7), rgba(227, 189, 116, .12) 35%, rgba(255, 255, 255, .05) 65%, rgba(117, 102, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.promo-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }

.promo-close {
  position: absolute; z-index: 5; top: 18px; right: 18px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: #fff; background: rgba(7, 7, 11, .55); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .25s, transform .35s var(--ease), border-color .25s;
}
.promo-close::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; } /* area sentuh 48px */
.promo-close:hover { background: rgba(7, 7, 11, .85); border-color: var(--gold); transform: rotate(90deg); }
.promo-close:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 189, 116, .35); }

/* Gambar: dibingkai, tampil UTUH (tidak di-crop, tidak digelapkan) */
.promo-media { padding: 10px 10px 0; }
.promo-frame {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite; /* skeleton saat gambar masih dimuat */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.promo-frame.is-ready { animation: none; background: var(--surface); }
.promo-frame img {
  display: block; width: 100%; height: auto;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s var(--ease), transform 1.2s var(--ease-out);
}
.promo-frame.is-ready img { opacity: 1; transform: none; }
.promo-frame.is-instant img { transition: none; }
.promo-frame::after { /* garis tipis di dalam frame — kesan "dicetak", bukan menggelapkan */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.promo-fallback {
  display: none; aspect-ratio: 4 / 3; place-items: center;
  background: radial-gradient(70% 70% at 50% 40%, rgba(227, 189, 116, .28), transparent 70%), var(--surface-2);
  font-family: var(--font-display); font-size: 2.2rem; letter-spacing: .2em; color: var(--gold-hi);
}
.promo-frame.is-fallback { animation: none; }
.promo-frame.is-fallback img { display: none; }
.promo-frame.is-fallback .promo-fallback { display: grid; }

.promo-body { padding: 22px 24px 22px; display: grid; gap: 10px; }
.promo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 500; color: var(--gold-hi);
  background: var(--gold-a10); border: 1px solid rgba(227, 189, 116, .28);
}
.promo-eyebrow svg { color: var(--gold); }
.promo-eyebrow[hidden] { display: none; }
.promo-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); line-height: 1.32; text-wrap: balance; }
.promo-desc { color: var(--text-2); font-size: .97rem; line-height: 1.7; }
.promo-desc:empty { display: none; }
.promo-actions { display: grid; gap: 10px; margin-top: 10px; }
.promo-actions .btn { width: 100%; --h: 52px; }
.promo-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}
.promo-note span { font-weight: 600; color: var(--text-2); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); font-size: .72rem; }

/* Konten masuk berurutan setelah kartu muncul */
.promo-body > * { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.promo.is-open .promo-body > * { opacity: 1; transform: none; }
.promo.is-open .promo-body > :nth-child(2) { transition-delay: .06s; }
.promo.is-open .promo-body > :nth-child(3) { transition-delay: .12s; }
.promo.is-open .promo-body > :nth-child(4) { transition-delay: .18s; }
.promo.is-open .promo-body > :nth-child(5) { transition-delay: .24s; }

@media (min-width: 400px) {
  .promo-actions { grid-template-columns: 1fr 1fr; }
}
/* Desktop: dua kolom — gambar kiri (utuh), konten kanan */
@media (min-width: 768px) and (min-height: 520px) {
  .promo { width: min(880px, calc(100vw - 64px)); }
  .promo-scroll { display: grid; grid-template-columns: 1.15fr 1fr; }
  .promo-media { display: grid; align-items: center; padding: 12px 0 12px 12px; }
  .promo-frame img { max-height: calc(var(--promo-max-h) - 24px); object-fit: contain; }
  .promo-body { align-content: center; padding: 48px 40px 36px; gap: 14px; }
  .promo-actions { margin-top: 14px; }
  .promo-note { justify-content: flex-start; }
  .promo-close { top: 16px; right: 16px; }
}

/* 6. MOTION ---------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.value-list li[data-reveal]:nth-child(2), .stats-grid > div:nth-child(2) { transition-delay: .08s; }
.value-list li[data-reveal]:nth-child(3), .stats-grid > div:nth-child(3) { transition-delay: .16s; }
.stats-grid > div:nth-child(4) { transition-delay: .24s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }
@keyframes shimmer { to { background-position: -300% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
  .promo, .promo-frame img, .promo-body > * { transform: none; }
  .promo-frame { animation: none; }
}
