/* XVG8 bonus landing pages
   Style: vibrant & block-based, light mode. Palette: white / light purple / purple.
   Mobile first; breakpoints 600 / 960 / 1200. */

:root {
  /* palette */
  --white: #ffffff;
  --lilac-50: #f8f4ff;
  --lilac-100: #f1e9ff;
  --lilac-200: #e4d6ff;
  --lilac-300: #cdb4fe;
  --purple-500: #7a35f5;   /* xvg8.com brand purple */
  --purple-600: #6626de;
  --purple-700: #5419bd;
  --purple-900: #2a0d63;

  /* semantic tokens */
  --bg: var(--white);
  --surface: var(--white);
  --surface-soft: var(--lilac-50);
  --surface-tint: var(--lilac-100);
  --border: var(--lilac-200);
  --primary: var(--purple-500);
  --primary-hover: var(--purple-600);
  --primary-strong: var(--purple-700);
  --on-primary: var(--white);
  --ink: #1c1233;          /* headings */
  --text: #3a2e57;         /* body, 10.9:1 on white */
  --muted: #5f5380;        /* secondary, 6.6:1 on white */
  --success: #15803d;

  --font-display: "Russo One", "Arial Black", system-ui, sans-serif;
  --font-body: "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(42 13 99 / .06), 0 2px 8px rgb(42 13 99 / .06);
  --shadow: 0 4px 12px rgb(42 13 99 / .08), 0 16px 40px rgb(84 25 189 / .12);
  --shadow-lg: 0 24px 60px rgb(84 25 189 / .22);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: 200ms;

  --topbar-h: 64px;
  --z-sticky: 40;
  --z-topbar: 50;
}

*, *::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: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-strong); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 16px/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 14px 28px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: var(--on-primary);
  box-shadow: 0 6px 18px rgb(122 53 245 / .35);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgb(122 53 245 / .45); background: linear-gradient(135deg, var(--purple-600), var(--purple-700)); }
.btn--ghost { background: var(--white); color: var(--primary-strong); border-color: var(--lilac-300); }
.btn--ghost:hover { background: var(--lilac-50); border-color: var(--primary); }
.btn--soft { background: var(--lilac-100); color: var(--primary-strong); }
.btn--soft:hover { background: var(--lilac-200); }
.btn--white { background: var(--white); color: var(--primary-strong); box-shadow: 0 8px 24px rgb(20 0 60 / .25); }
.btn--white:hover { background: var(--lilac-50); }
.btn--lg .ic:last-child { transition: transform var(--dur) var(--ease-out); }
.btn--lg:hover .ic:last-child { transform: translateX(3px); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 36px; width: auto; }
.topbar__act { display: flex; gap: 8px; }
@media (max-width: 379px) { .topbar__act .btn--ghost span { display: none; } .topbar__act .btn--ghost { padding: 8px 12px; } }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
.chip--tag { background: var(--white); color: var(--primary-strong); border: 1px solid var(--lilac-300); box-shadow: var(--shadow-sm); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.chip--tag .ic { color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip--game { background: var(--white); color: var(--ink); border: 1px solid var(--border); padding: 10px 14px; font-size: 15px; }
.chip--game .ic { color: var(--primary); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 28px 0 36px;
  background:
    radial-gradient(60% 50% at 100% 0%, var(--lilac-200) 0%, transparent 70%),
    radial-gradient(50% 40% at 0% 100%, var(--lilac-100) 0%, transparent 70%),
    linear-gradient(180deg, var(--lilac-50) 0%, var(--white) 100%);
}
/* block-based decoration: soft geometric tiles */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 28px; pointer-events: none;
  background: linear-gradient(135deg, var(--lilac-200), transparent);
  opacity: .7;
}
.hero::before { width: 220px; height: 220px; right: -70px; top: 90px; transform: rotate(18deg); }
.hero::after { width: 140px; height: 140px; left: -50px; bottom: 40px; transform: rotate(-14deg); }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: 24px;
  grid-template-areas: "copy" "poster" "details";
}
.hero__copy { grid-area: copy; display: grid; gap: 14px; justify-items: start; }
.hero__poster { grid-area: poster; margin: 0; }
.hero__details { grid-area: details; display: grid; gap: 16px; align-content: start; }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 8.6vw, 60px); line-height: 1.05; letter-spacing: -.005em;
  color: var(--ink);
}
.hero__sub { font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero__cta { display: grid; gap: 10px; justify-items: start; margin-top: 4px; width: 100%; }
.hero__cta .btn { width: 100%; }
.hero__note { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.hero__note .ic { color: var(--success); }

.hero__poster img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--lilac-100);
  aspect-ratio: 860 / 1262;
  object-fit: cover;
}

.hero--home { padding: 40px 0 28px; text-align: center; }
.hero__center { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; }
.hero--home .hero__sub { margin: 0 auto; }
.hero--home .hero__cta { justify-items: center; max-width: 420px; }

/* entrance: CSS only, content is never hidden without it */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero__center > * { animation: rise 420ms var(--ease-out) both; }
  .hero__copy > :nth-child(2), .hero__center > :nth-child(2) { animation-delay: 50ms; }
  .hero__copy > :nth-child(3), .hero__center > :nth-child(3) { animation-delay: 100ms; }
  .hero__copy > :nth-child(4), .hero__center > :nth-child(4) { animation-delay: 150ms; }
  .hero__poster { animation: pop 520ms 120ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- gift code ---------- */
.giftcode {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 14px 14px 18px;
  background: var(--white);
  border: 2px dashed var(--lilac-300);
  border-radius: var(--radius);
}
.giftcode__body { display: grid; gap: 2px; min-width: 0; }
.giftcode__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.giftcode__label .ic { color: var(--primary); width: 1.1em; height: 1.1em; }
.giftcode__code { font: 400 clamp(22px, 6vw, 28px)/1.2 var(--font-display); color: var(--primary-strong); letter-spacing: .06em; white-space: nowrap; }
.giftcode .btn.is-copied { background: #dcfce7; color: var(--success); }

/* ---------- stat tiles (the "blocks") ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  display: grid; gap: 4px; align-content: start;
  padding: 16px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
}
.stat__ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lilac-100); color: var(--primary); margin-bottom: 4px; }
.stat__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat__val { font: 400 22px/1.2 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat--1 { background: linear-gradient(140deg, var(--purple-500), var(--purple-700)); border-color: transparent; }
.stat--1 .stat__ic { background: rgb(255 255 255 / .18); color: var(--white); }
.stat--1 .stat__label { color: rgb(255 255 255 / .85); }
.stat--1 .stat__val { color: var(--white); }
.stat--2 { background: var(--lilac-100); border-color: transparent; }
.stat--2 .stat__ic { background: var(--white); }
.stat--4 { background: var(--lilac-50); }
.stats--compact .stat { padding: 12px; }
.stats--compact .stat__ic { width: 30px; height: 30px; }
.stats--compact .stat__val { font-size: 19px; }

/* ---------- trust strip ---------- */
.trust { background: var(--primary-strong); color: var(--white); }
.trust__list { display: flex; justify-content: space-between; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgb(255 255 255 / .9); }
.trust strong { color: var(--white); font-weight: 700; }
.trust .ic { color: var(--lilac-300); }
@media (max-width: 400px) { .trust li { flex-direction: column; gap: 2px; text-align: center; font-size: 13px; flex: 1; } }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section--tight { padding-top: 8px; }
.section--soft { background: var(--surface-soft); border-block: 1px solid var(--border); }
.section__head { display: grid; gap: 6px; margin-bottom: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.section__title { font: 400 clamp(26px, 6vw, 38px)/1.15 var(--font-display); }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: none; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(140deg, var(--purple-500), var(--purple-700));
  color: var(--white); font: 400 20px/1 var(--font-display);
}
.step__title { font-size: 18px; font-weight: 700; margin-top: 2px; }
.step__text { margin-top: 4px; color: var(--muted); }

/* panels */
.split { display: grid; gap: 16px; }
.panel { padding: 20px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.panel__title .ic { color: var(--primary); }

.example { margin: 0; display: grid; gap: 8px; }
.example__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--lilac-50); }
.example__row:last-child { background: var(--lilac-100); }
.example dt { color: var(--muted); }
.example dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* terms */
.terms { display: grid; gap: 10px; }
.terms li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.terms .ic { color: var(--primary); margin-top: 2px; }

/* ---------- home cards ---------- */
.cards { display: grid; gap: 24px; }
.card {
  display: grid; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card__poster { margin: 0; background: var(--lilac-100); }
.card__poster img { width: 100%; aspect-ratio: 860 / 1262; object-fit: cover; }
.card__body { display: grid; gap: 14px; padding: 20px; align-content: start; }
.card__body > .chip { justify-self: start; }
.card__title { font: 400 clamp(24px, 6vw, 32px)/1.15 var(--font-display); }
.card__sub { color: var(--muted); }

.more { border-top: 1px solid var(--border); padding-top: 4px; }
.more summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--primary-strong);
}
.more summary::-webkit-details-marker { display: none; }
.more summary .ic:first-child { color: var(--primary); }
.more__chev { margin-left: auto; transition: transform var(--dur) var(--ease-out); }
.more[open] .more__chev { transform: rotate(180deg); }
.more__body { display: grid; gap: 14px; padding-bottom: 6px; }

/* ---------- CTA band ---------- */
.ctaband {
  position: relative; overflow: hidden;
  background:
    radial-gradient(40% 80% at 100% 0%, rgb(255 255 255 / .16), transparent 70%),
    linear-gradient(135deg, var(--purple-500), var(--purple-900));
  color: var(--white); padding: 44px 0;
}
.ctaband__in { display: grid; gap: 20px; justify-items: start; }
.ctaband__title { color: var(--white); font: 400 clamp(26px, 6vw, 36px)/1.15 var(--font-display); }
.ctaband__sub { color: rgb(255 255 255 / .85); margin-top: 6px; }
.ctaband .btn { width: 100%; }

/* ---------- footer ---------- */
.footer { background: var(--lilac-50); border-top: 1px solid var(--border); padding: 36px 0 24px; font-size: 14px; color: var(--muted); }
.footer__in { display: grid; gap: 20px; }
.footer__brand { display: grid; gap: 12px; max-width: 520px; }
.footer__brand img { height: 38px; width: auto; }
.footer__side { display: grid; gap: 14px; align-content: start; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--border);
  color: var(--primary-strong); font-weight: 600; text-decoration: none;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.social a:hover { border-color: var(--primary); background: var(--lilac-100); }
.footer__rg { display: flex; align-items: center; gap: 8px; }
.badge18 { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary-strong); font-weight: 700; font-size: 12px; }
.footer__copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }

/* ---------- sticky mobile CTA ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgb(42 13 99 / .10);
  transition: transform 240ms var(--ease-out);
}
.stickybar__txt { display: grid; min-width: 0; line-height: 1.3; }
.stickybar__txt strong { color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stickybar__txt span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stickybar .btn { flex: none; }
/* without JS it simply stays visible; with JS it slides in once the hero CTA scrolls away */
.js .stickybar { transform: translateY(110%); }
.js .stickybar.is-on { transform: none; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .wrap { padding: 0 24px; }
  .hero__cta .btn, .ctaband .btn { width: auto; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stats > .stat:last-child:nth-child(odd) { grid-column: auto; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .step { grid-template-columns: 1fr; }
  .split { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .trust__list { justify-content: center; gap: 48px; }
  .ctaband__in { grid-template-columns: 1fr auto; align-items: center; }
  .footer__in { grid-template-columns: 1fr auto; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  .brand img { height: 40px; }
  .hero { padding: 56px 0 64px; }
  .hero::before { width: 360px; height: 360px; right: -120px; top: 40px; }
  .hero__grid {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    grid-template-areas: "poster copy" "poster details";
    grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 24px; align-items: start;
  }
  .hero__poster { position: sticky; top: calc(var(--topbar-h) + 24px); }
  .hero__copy { padding-top: 12px; }
  .hero__details { max-width: 600px; }
  .section { padding: 72px 0; }
  .cards { max-width: 1040px; margin-inline: auto; }
  .card { grid-template-columns: 340px 1fr; }
  .card__poster img { height: 100%; }
  .card__body { padding: 28px 32px; }
  .stickybar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
