/* ============================================================
   PINGPONG4D PLAY — Landing Page Stylesheet
   Dark premium gaming UI · Mobile-first · Vanilla CSS
   ============================================================ */

/* ---------- Self-hosted fonts (variable, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --purple: #8B5CF6;
  --purple-deep: #6D28D9;
  --accent: #C084FC;

  --bg: #08060D;
  --bg-2: #11101A;
  --card: #171421;
  --text: #FFFFFF;
  --muted: #A9A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(139, 92, 246, 0.35);

  --glow: 0 0 40px rgba(139, 92, 246, 0.35);
  --glow-strong: 0 10px 45px rgba(139, 92, 246, 0.45);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: 820px;
}

.section {
  position: relative;
  padding-block: 84px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-tag::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
}

.section-title-accent {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 6px;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin-top: 16px;
  font-size: 1.02rem;
}

.section-head {
  margin-bottom: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 48px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-icon {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(139, 92, 246, 0.06);
}

.btn-ghost:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: #1a1030;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(255, 255, 255, 0.22);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.12);
}

.btn-lg {
  padding: 17px 32px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
  min-height: 42px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 6, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.35));
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.06) rotate(-4deg);
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo {
    transition: none;
  }

  .brand:hover .brand-logo {
    transform: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
@media (max-width: 767px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 89;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-inline: 12px;
    padding: 18px 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(17, 16, 26, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav li + li {
    border-top: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 13px 10px;
    font-size: 0.95rem;
  }

  .nav-link::after {
    display: none;
  }

  .site-nav .btn {
    margin-top: 10px;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 48px) 72px;
  overflow: hidden;
}

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.45), transparent 65%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.9);
  animation: particle-float var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particle-float {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: var(--o, 0.35);
  }
  90% {
    opacity: var(--o, 0.35);
  }
  100% {
    transform: translate3d(var(--dx, 30px), -78vh, 0);
    opacity: 0;
  }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  display: flex;
  flex-direction: column;
}

.hero-title-seo {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-line {
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-line-accent {
  background: linear-gradient(90deg, var(--purple) 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 460px;
  margin-top: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.phone-float {
  position: relative;
  animation: phone-float 7s ease-in-out infinite;
}

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

.phone {
  position: relative;
  width: 250px;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(165deg, #2b2440 0%, #17131f 40%, #0d0a16 100%);
  border: 1px solid rgba(192, 132, 252, 0.28);
  box-shadow:
    var(--glow-strong),
    0 24px 60px -18px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone::after {
  /* side button presisi (kanan) */
  content: "";
  position: absolute;
  right: -2.5px;
  top: 22%;
  width: 2.5px;
  height: 56px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #3a3050, #17131f);
}

.phone::before {
  /* side button (kiri) */
  content: "";
  position: absolute;
  left: -2.5px;
  top: 17%;
  width: 2.5px;
  height: 34px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #3a3050, #17131f);
}

.phone-sm {
  width: 230px;
}

.phone-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  border-radius: 999px;
  background: #050409;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.phone-notch::after {
  /* lensa kamera mini */
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2f2a44, #0a0812 70%);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.phone-glow-sm {
  inset: 20%;
}

.phone-tilt {
  transform: rotate(6deg);
}

/* Floating chips on hero visual */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(23, 20, 33, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  animation: chip-float 5.5s ease-in-out infinite;
}

.hero-chip svg {
  color: var(--purple);
}

.hero-chip-1 {
  top: 16%;
  left: 4%;
}

.hero-chip-2 {
  bottom: 14%;
  right: 2%;
  animation-delay: 1.4s;
}

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

/* ============================================================
   INTRO (GAMEPLAY)
   ============================================================ */
.intro {
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(109, 40, 217, 0.14), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.intro-visual {
  position: relative;
  display: flex;
  justify-content: center;
  order: 2;
}

.intro-copy {
  order: 1;
}

.intro-info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.info-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.info-card-icon {
  color: var(--purple);
  margin-bottom: 8px;
}

.info-card-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.info-card-value {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 44px rgba(139, 92, 246, 0.18);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  position: relative;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============================================================
   HOW TO PLAY
   ============================================================ */
.howto {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.step {
  position: relative;
  padding: 22px 0 22px 64px;
}

/* vertical connector (mobile) */
.step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 62px;
  bottom: -22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.06));
}

.step:last-child::before {
  display: none;
}

.step-num {
  position: absolute;
  left: 0;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.22);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.step-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
}

/* ============================================================
   SCREENSHOTS CAROUSEL
   ============================================================ */
.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  padding-block: 18px;
}

.carousel {
  display: flex;
  gap: 22px;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.carousel-item {
  flex: 0 0 var(--slide-w, 240px);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0.45;
  transform: scale(0.92);
}

.carousel-item.is-active {
  opacity: 1;
  transform: scale(1);
}

.shot-btn {
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.shot-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shot-btn:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.shot-btn img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

.carousel-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.14);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: transparent;
  position: relative;
}

.carousel-dot::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.25s var(--ease), width 0.25s var(--ease);
}

.carousel-dot.is-active::after {
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-radius: 999px;
}

/* ============================================================
   WHY PLAY
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.why-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.why .btn {
  margin-top: 32px;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  padding-bottom: 40px;
}

.download-card {
  position: relative;
  text-align: center;
  padding: clamp(52px, 8vw, 88px) 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--card);
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(139, 92, 246, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% -20%, rgba(192, 132, 252, 0.2), transparent 70%),
    linear-gradient(180deg, #08060d 0%, #1b0f38 100%);
}

.download-card > *:not(.download-bg) {
  position: relative;
}

.download-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.download-desc {
  color: var(--muted);
  max-width: 440px;
  margin: 16px auto 32px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 44px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 260px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-play .btn {
  width: 100%;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ============================================================
   STICKY CTA (mobile)
   ============================================================ */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(8, 6, 13, 0), rgba(8, 6, 13, 0.92) 40%);
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-sticky {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  box-shadow: var(--glow-strong), 0 12px 34px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(4, 3, 8, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(420px, 82vw);
}

.lightbox-img {
  max-width: 100%;
  max-height: 82svh;
  width: auto;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--glow-strong);
}

.lightbox-caption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(23, 20, 33, 0.85);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.18);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    position: absolute;
    bottom: 22px;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   LEGAL / SUB PAGES
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 56px;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(109, 40, 217, 0.22), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero .section-tag {
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
}

.page-updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 12px;
}

.legal-section {
  padding-block: 64px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 780px;
}

.legal-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-left: 4px;
}

.legal-block ul li {
  display: flex;
  gap: 10px;
}

.legal-block ul li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--purple);
}

.legal-note {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(139, 92, 246, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.legal-contact-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.legal-contact-list li::before {
  margin-top: 0;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  min-width: 110px;
}

/* Placeholder highlight — memudahkan pencarian teks yang harus diganti */
.placeholder {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 400px) {
  /* Cegah overflow tombol dengan teks panjang di layar 320px */
  .btn {
    white-space: normal;
    line-height: 1.25;
  }

  .btn-lg {
    padding: 15px 22px;
    font-size: 0.85rem;
  }

  .btn-sticky {
    padding: 12px 18px;
    font-size: 0.8rem;
  }
}

@media (min-width: 640px) {
  .container {
    padding-inline: 28px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 110px;
  }

  /* Steps: horizontal timeline */
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .step {
    padding: 0 0 8px;
  }

  .step::before {
    left: 54px;
    right: -22px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.06));
  }

  .step:last-child::before {
    display: none;
  }

  .step-num {
    position: static;
    margin-bottom: 18px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }

  .intro-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .intro-visual {
    order: 1;
  }

  .intro-copy {
    order: 2;
  }
}

/* Large screens: cap scale */
@media (min-width: 1600px) {
  :root {
    --container: 1280px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-float,
  .hero-chip {
    animation: none;
  }
}
