/* =========================================================
   X168 — Homepage
   Layout rail: 1200px. Desktop-first.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --blue: #006EFF;
  --blue-deep: #003B8F;
  --blue-bright: #3B93FF;
  --blue-mist: #EAF6FF;
  --blue-text: #003B8F;    /* blue used as text on the page ground */

  --ink: #08182E;          /* blue-biased near-black */
  --ink-2: #33496B;
  --muted: #6B82A6;
  --line: #DDE9F7;

  --surface: #FFFFFF;
  --surface-2: #F4F9FF;
  --bg: #FFFFFF;

  --green: #12B76A;        /* semantic: live / fast */
  --gold: #F7A600;         /* semantic: VIP / featured */

  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.9);

  --shadow-sm: 0 1px 2px rgba(8, 24, 46, .05), 0 4px 12px rgba(8, 24, 46, .05);
  --shadow-md: 0 8px 24px rgba(8, 24, 46, .07), 0 2px 6px rgba(8, 24, 46, .04);
  --shadow-lg: 0 24px 60px rgba(0, 59, 143, .14), 0 6px 16px rgba(8, 24, 46, .06);
  --shadow-blue: 0 10px 24px rgba(0, 110, 255, .28);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --font-display: "Saira", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", ui-monospace, monospace;

  --rail: 1200px;
  --pad: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF2FF;
    --ink-2: #B4C8E4;
    --muted: #8098BC;
    --line: #1D3050;
    --surface: #0E1E36;
    --surface-2: #0A1729;
    --bg: #071121;
    --blue-mist: #12294A;
    --blue-text: #7FB6FF;
    --glass: rgba(14, 30, 54, .72);
    --glass-line: rgba(120, 170, 240, .18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --ink: #EAF2FF;
  --ink-2: #B4C8E4;
  --muted: #8098BC;
  --line: #1D3050;
  --surface: #0E1E36;
  --surface-2: #0A1729;
  --bg: #071121;
  --blue-mist: #12294A;
  --blue-text: #7FB6FF;
  --glass: rgba(14, 30, 54, .72);
  --glass-line: rgba(120, 170, 240, .18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}

:root[data-theme="light"] {
  --ink: #08182E;
  --ink-2: #33496B;
  --muted: #6B82A6;
  --line: #DDE9F7;
  --surface: #FFFFFF;
  --surface-2: #F4F9FF;
  --bg: #FFFFFF;
  --blue-mist: #EAF6FF;
  --blue-text: #003B8F;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .9);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -.01em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 24px; }

.rail {
  width: var(--rail);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  flex: none;
}
.dot.green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .18);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; }
.btn-mini { height: 30px; padding: 0 14px; font-size: 12px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 45%, var(--blue-deep));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 110, 255, .38); }

.btn-mini {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 110, 255, .25);
}
.btn-mini:hover { background: var(--blue-deep); }

.btn-outline {
  border-color: rgba(0, 110, 255, .35);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover { background: var(--blue-mist); border-color: var(--blue); }

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--blue-mist); color: var(--blue-deep); }

.btn-white { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); }

.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }

.link-more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.link-more:hover span { transform: translateX(3px); }
.link-more span { transition: transform .18s ease; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-solid { background: rgba(255, 255, 255, .18); color: #fff; }
.badge-float { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--blue-deep); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pill-live { background: rgba(18, 183, 106, .1); color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 70px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(8, 24, 46, .06);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* The logo is a wordmark: the image already contains "X168", so no text sits beside it. */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 32px; width: auto; display: block; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition: color .16s ease, background .16s ease;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-mist); }
.main-nav a.is-active { color: var(--blue); background: var(--blue-mist); }
.main-nav .nav-vip { color: var(--gold); }
.main-nav .nav-vip:hover { background: rgba(247, 166, 0, .12); color: #C77F00; }

.header-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: 70px;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #EAF6FF 0%, #D3E9FF 55%, var(--bg) 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero {
    background: linear-gradient(180deg, #0B2140 0%, #10365F 55%, var(--bg) 100%);
  }
  :root:not([data-theme="light"]) .cloud { background: rgba(120, 180, 255, .16); }
  :root:not([data-theme="light"]) .hero-copy h1 { color: #DCEBFF; }
}

:root[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #0B2140 0%, #10365F 55%, var(--bg) 100%);
}
:root[data-theme="dark"] .cloud { background: rgba(120, 180, 255, .16); }
:root[data-theme="dark"] .hero-copy h1 { color: #DCEBFF; }

.hero-sky { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  background-image:
    linear-gradient(rgba(0, 110, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 110, 255, .09) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 620px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 154, 255, .30), transparent 72%);
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  filter: blur(22px);
}
.c1 { width: 320px; height: 90px; left: 4%;  top: 14%; }
.c2 { width: 240px; height: 70px; left: 30%; top: 62%; opacity: .8; }
.c3 { width: 380px; height: 100px; right: 2%; top: 20%; opacity: .85; }
.c4 { width: 200px; height: 60px; right: 26%; bottom: 8%; opacity: .7; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr 340px;
  gap: 38px;
  align-items: center;
  padding-block: 34px 86px; /* bottom room for the payment card overlap */
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.hero-copy h1 .grad {
  background: linear-gradient(100deg, var(--blue), #00C2FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 34ch;
}
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }

.bonus-chips {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}
.bonus-chips li {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.bonus-chips strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}
.bonus-chips span {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: .01em;
}

/* Ambassador */
.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 380px;
  align-self: stretch;
}
/* Ground glow: the figure bleeds off the bottom of the hero, and this stops the cut
   from reading as an accident. It sits behind her — hence the z-index pair. */
.hero-figure::before {
  content: "";
  position: absolute;
  bottom: -46px;
  left: 50%;
  width: 300px;
  height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 132, 255, .38), rgba(0, 132, 255, 0));
  z-index: 0;
}
.mascot {
  position: relative;
  z-index: 1;
  width: 300px;
  height: auto;
  margin-bottom: -46px; /* bleeds past the hero's bottom edge */
  filter: drop-shadow(0 22px 36px rgba(0, 59, 143, .3));
}

.hud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.hud strong { font-family: var(--font-mono); font-weight: 600; color: var(--blue-text); }
/* Kept clear of her face and cap — the chips frame the figure, they don't cover it. */
.hud { z-index: 2; }
.hud-1 { top: 46%;  left: -10%; animation: float 6s ease-in-out infinite; }
.hud-2 { top: 14%;  right: -12%; animation: float 8s ease-in-out .6s infinite; }
.hud-3 { bottom: 20%; right: -8%; animation: float 7s ease-in-out 1.2s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* Server panel */
.server-card {
  background: var(--surface);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.server-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.server-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.server-head h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.server-list { display: flex; flex-direction: column; gap: 6px; }
.server-list li {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  transition: background .18s ease, transform .18s ease;
}
.server-list li:hover { background: var(--blue-mist); transform: translateX(2px); }

/* The medal is an SVG behind the number; the number stays HTML so it keeps the page's
   type scale and remains selectable. Ranks 4+ get a quiet chip — a medal for fourth
   place would be a lie. */
.rank {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.rank svg {
  position: absolute;
  inset: 0;
  width: 28px;
  height: 28px;
}
.rank i {
  position: relative;
  font-style: normal;
  line-height: 1;
}
/* medal ranks: the SVG paints the surface, so the chip's own box gets out of the way */
.rank-1, .rank-2, .rank-3 {
  background: none;
  border-color: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(8, 24, 46, .22));
}
.rank-1 i { color: #5A3800; }
.rank-2 i { color: #46586F; }
.rank-3 i { color: #4E2B0B; }

.server-meta { display: flex; flex-direction: column; line-height: 1.25; }
.ping {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.ping i { font-style: normal; font-size: 10px; margin-left: 2px; opacity: .75; }
/* Colour follows the live value (set by JS), and eases instead of snapping. */
.ping { transition: color .5s ease; }
.ping.is-fast { color: var(--green); }
.ping.is-mid  { color: var(--blue-text); }
.ping.is-slow { color: var(--gold); }
/* fallback before JS runs, keyed to row order */
.server-list li:nth-child(n+3) .ping:not(.is-fast):not(.is-mid):not(.is-slow) { color: var(--blue-text); }
.server-list li:nth-child(n+5) .ping:not(.is-fast):not(.is-mid):not(.is-slow) { color: var(--gold); }
.server-name { font-size: 12px; color: var(--muted); font-weight: 600; }

/* A soft tick each time the value updates — just enough to read as "live". */
@keyframes pingPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}
.ping-pulse { display: inline-block; animation: pingPulse .5s ease; }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  transition: height .45s ease, opacity .45s ease, background-color .45s ease;
}
.bars i:nth-child(1) { height: 6px; }
.bars i:nth-child(2) { height: 10px; }
.bars i:nth-child(3) { height: 14px; }
.bars i:nth-child(4) { height: 18px; }
.bars i.is-dim { opacity: .26; }        /* dimmed by JS when the signal drops */
.bars.is-mid i { background: var(--blue); }
.bars.is-mid i:nth-child(4) { background: var(--line); }

/* LIVE badge breathes. */
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pill-live .dot { animation: liveBlink 1.4s ease-in-out infinite; }
.bars.is-low i { background: var(--gold); }
.bars.is-low i:nth-child(3),
.bars.is-low i:nth-child(4) { background: var(--line); }

.server-foot {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.server-foot strong { color: var(--green); font-family: var(--font-mono); }
.server-updated { font-size: 11px; }

/* ---------- Sections ---------- */
.section { padding-block: 84px; background: var(--bg); }
.section-alt { background: var(--surface-2); }
.section-payment { padding-block: 0; margin-top: -48px; position: relative; z-index: 5; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: 32px; font-weight: 700; }
.section-head-center { justify-content: center; text-align: center; margin-bottom: 44px; }
.section-head-center .section-lede { margin-inline: auto; }
.section-lede { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }

/* ---------- Payment ---------- */
.pay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 30px 34px;
}
.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.pay-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.pay-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pay-note strong { color: var(--green); }

.pay-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.pay-item {
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pay-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 110, 255, .4);
  box-shadow: var(--shadow-md);
}

.pay-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
}
.pay-logo.bca { color: #0060AF; letter-spacing: .02em; }
.pay-logo.mandiri { color: #003D79; font-weight: 700; text-transform: lowercase; font-size: 18px; letter-spacing: -.03em; }
.pay-logo.bni { color: #F15A22; }
.pay-logo.bni::after { content: "46"; color: #005E6A; margin-left: 3px; }
.pay-logo.bri { color: #00529C; }
.pay-logo.dana { color: #118EEA; font-size: 16px; letter-spacing: .01em; }
.pay-logo.ovo { color: #4C3494; font-style: italic; }
.pay-logo.gopay { color: #00AED6; text-transform: lowercase; font-size: 18px; }
.pay-logo.qris { color: #E62129; font-size: 16px; letter-spacing: .04em; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pay-item { background: #F7FAFF; border-color: transparent; }
}
:root[data-theme="dark"] .pay-item { background: #F7FAFF; border-color: transparent; }

.pay-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pay-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-text);
  font-variant-numeric: tabular-nums;
}
.pay-stats span { font-size: 12.5px; color: var(--muted); }

/* ---------- Promo ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
}
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.promo-card h3 { font-size: 22px; font-weight: 700; }
.promo-card p { color: var(--ink-2); font-size: 14px; }
.promo-card .btn { margin-top: auto; }

.promo-featured {
  background: linear-gradient(150deg, var(--blue-bright) 0%, var(--blue) 42%, var(--blue-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-blue);
  overflow: hidden;
}
.promo-featured::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .3), transparent);
}
.promo-featured h3 { color: #fff; font-size: 26px; position: relative; }
.promo-featured p { color: rgba(255, 255, 255, .88); position: relative; }

/* Wraps: the featured card carries three terms, and they must not squeeze off the edge. */
.promo-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-top: 4px;
  position: relative;
}
.promo-terms dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--muted);
}
.promo-terms dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.promo-featured .promo-terms dt { color: rgba(255, 255, 255, .7); }
.promo-featured .promo-terms dd { color: #fff; }

/* ---------- Articles ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 110, 255, .3);
}

/* 4:3, matching how the thumbnails are authored. The artwork carries headline text at the
   top and bottom ("DEPOSIT", "PENARIKAN"), so any crop eats the words — the image is shown
   whole, never covered. */
.article-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-item img,
.footer-pay-grid img { max-width: 74%; max-height: 58%; object-fit: contain; display: block; }
/* No width here on purpose: the width belongs to .mascot, which changes per breakpoint.
   `img.mascot { width }` would outrank it (a media query adds no specificity) and the
   figure would blow out to full width on tablets. */
img.mascot { height: auto; display: block; }
.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
}
.thumb-deposit  { background: linear-gradient(140deg, #3B93FF, #003B8F); }
.thumb-secure   { background: linear-gradient(140deg, #00C2FF, #0057C8); }
.thumb-withdraw { background: linear-gradient(140deg, #12B76A, #006EFF); }
.thumb-feature  { background: linear-gradient(140deg, #6E8CFF, #003B8F); }

.article-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}
.article-body h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.article-body h3 a:hover { color: var(--blue); }
.article-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

.article-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.feature-card p { font-size: 13.5px; color: var(--ink-2); }

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--blue-mist);
  color: var(--blue);
  margin-bottom: 4px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-icon {
  background: linear-gradient(140deg, var(--blue-bright), var(--blue-deep));
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq-rail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}
.faq-intro h2 { font-size: 30px; font-weight: 700; }
.faq-intro .btn { margin-top: 22px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: rgba(0, 110, 255, .3);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }

.faq-icon {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--blue-mist);
  transition: background .2s ease, transform .2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--blue);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, background .2s ease;
}
.faq-icon::before { width: 11px; height: 2px; }
.faq-icon::after  { width: 2px; height: 11px; }
.faq-item[open] .faq-icon { background: var(--blue); }
.faq-item[open] .faq-icon::before { background: #fff; }
.faq-item[open] .faq-icon::after { opacity: 0; }

.faq-answer {
  padding: 0 44px 18px 0;
  color: var(--ink-2);
  font-size: 14.5px;
}
.faq-item[open] .faq-answer { animation: fadeSlide .25s ease both; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, #0090FF);
  color: #fff;
  padding-block: 52px;
  position: relative;
  overflow: hidden;
}
.cta-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-inner h2 { color: #fff; font-size: 30px; font-weight: 700; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin-top: 6px; }
.cta-actions { display: flex; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-top: 56px;
  color: var(--ink-2);
}
/* Four columns since the "Produk" column was dropped — products live on the main site. */
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr .9fr .9fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; font-size: 13.5px; max-width: 34ch; }
.footer-brand .logo { margin-bottom: 2px; }

.trust-badges { display: flex; gap: 8px; margin-top: 16px; }
.trust-badges li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}

.footer-col h3,
.footer-pay h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--blue); }

.footer-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.footer-pay-grid li {
  height: 40px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.footer-pay-grid .pay-logo { font-size: 12.5px; }
.footer-pay-grid .pay-logo.mandiri,
.footer-pay-grid .pay-logo.gopay,
.footer-pay-grid .pay-logo.dana { font-size: 13px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.footer-legal { color: var(--muted); font-size: 12.5px; }

/* ---------- Article page ---------- */
.post { padding-top: 100px; }

.post-head { padding-bottom: 22px; }
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a { color: var(--blue); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.post-head h1 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  max-width: 20ch;
}
.post-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Authored at 4:3 and carries headline text — cropping it clips the words. */
.post-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  object-position: center;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}

.post-body { padding-block: 40px 64px; }

/* Reading column stays near 68 characters — wider than this and the eye loses the line. */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose > * + * { margin-top: 20px; }
.prose .lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
}
.prose h2 {
  margin-top: 40px;
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
}
.prose h3 {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--blue-mist);
  color: var(--ink);
}
.prose blockquote p { margin: 0; }

.post-cta {
  max-width: 68ch;
  margin-top: 48px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, #0090FF);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.post-cta h2 { color: #fff; font-size: 21px; font-weight: 700; }
.post-cta p { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .86); }
.post-cta .btn { flex: none; }

.article-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Mobile nav toggle (non-AMP only) ---------- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] { background: var(--blue-mist); color: var(--blue); }

/* =========================================================
   RESPONSIVE
   The AMP page is only served to visitors arriving from Google. Everyone else — typing the
   domain, tapping a link in WhatsApp — lands here. So this page must work at every width on
   its own; AMP is an alternative, never the mobile plan.
   ========================================================= */

@media (max-width: 1023px) {
  :root { --pad: 24px; }

  /* Nav collapses behind the toggle. */
  .nav-toggle { display: grid; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 70px 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px var(--pad) 16px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { height: 46px; padding: 0 14px; font-size: 15px; }
  .header-inner { gap: 12px; }

  /* Hero unstacks: copy, then the figure, then the live server panel. */
  .hero { min-height: 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 32px 72px;
  }
  .hero-copy { text-align: left; }
  .hero-copy h1 { font-size: 44px; }
  .hero-sub { max-width: 46ch; }
  .hero-figure { min-height: 0; align-self: center; }
  .hero-figure::before { display: none; }
  .mascot { width: 260px; margin-bottom: 0; }
  .hud { display: none; }          /* the floating chips need a wide canvas to sit clear of her */
  .server-card { max-width: 520px; margin-inline: auto; width: 100%; }

  .pay-grid { grid-template-columns: repeat(4, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .article-grid, .article-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }

  .faq-rail { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-pay { grid-column: 1 / -1; }

  /* Article page */
  .post { padding-top: 96px; }
  .post-head h1 { font-size: 32px; max-width: none; }
  .prose { max-width: none; }
  .post-cta { max-width: none; }
}

@media (max-width: 719px) {
  :root { --pad: 18px; }
  body { font-size: 14.5px; }

  .header-cta .btn-ghost { display: none; }
  .btn-lg { height: 46px; padding: 0 22px; font-size: 14px; }

  .hero-copy h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  /* Three across, like the AMP page — stacking them wastes half a screen. */
  .bonus-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bonus-chips strong { font-size: 17px; }
  .mascot { width: 210px; }

  .pay-card { padding: 22px 18px; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pay-stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  .section { padding-block: 52px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head h2 { font-size: 26px; }

  .article-grid, .article-grid-3 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }

  .cta-inner h2 { font-size: 24px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-pay-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Article page */
  .post { padding-top: 86px; }
  .post-head h1 { font-size: 26px; }
  .post-body { padding-block: 26px 40px; }
  .prose { font-size: 16px; }
  .prose .lead { font-size: 17px; }
  .prose h2 { font-size: 21px; margin-top: 32px; }
  .post-cta { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px; }
  .post-cta .btn { width: 100%; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .bonus-chips { gap: 6px; }
  .bonus-chips li { padding: 10px 8px; }
  .bonus-chips span { font-size: 10px; }
  .post-head h1 { font-size: 23px; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
