/*
  CUSTOM THEME SETTINGS START
  Ubah variabel di :root untuk mengganti warna, radius, shadow, dan lebar kontainer.
*/
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #07111f;
  --color-accent: #f5c451;
  --color-background: #08111f;
  --color-surface: #101b2d;
  --color-surface-strong: #15243a;
  --color-text: #f8fafc;
  --color-muted: #9fb3cc;
  --color-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 48px rgba(1, 8, 22, 0.32);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-width: 1180px;
  --section-padding: clamp(4rem, 8vw, 7rem);
  --font-stack: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
/* CUSTOM THEME SETTINGS END */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.14), transparent 30rem),
    var(--color-background);
  color: var(--color-text);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 2rem), var(--container-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #101826;
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  background: rgba(8, 17, 31, 0.92);
  box-shadow: var(--shadow-sm);
}

.navbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand img {
  width: 160px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.45rem);
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding-inline: 0.35rem;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}

.nav-login,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-login {
  border: 1px solid rgba(245, 196, 81, 0.44);
  padding: 0.72rem 1.05rem;
  color: var(--color-accent);
  background: rgba(245, 196, 81, 0.08);
}

.nav-login:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-login:active,
.btn:active {
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.section {
  padding-block: var(--section-padding);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.badge,
.section-kicker {
  width: fit-content;
  border: 1px solid rgba(245, 196, 81, 0.3);
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.08);
  color: var(--color-accent);
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.cta-panel h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-copy h1 {
  max-width: 11ch;
  margin-top: 1rem;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  font-weight: 950;
}

.hero-copy h1 span {
  color: var(--color-accent);
}

.hero-text {
  max-width: 54ch;
  margin: 1.2rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn {
  padding: 0.92rem 1.3rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #ffe29a);
  color: #111827;
  box-shadow: 0 18px 42px rgba(245, 196, 81, 0.2);
}

.btn-secondary {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.stats-grid div {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  padding: 0.9rem;
}

.stats-grid strong {
  display: block;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.1;
}

.stats-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(245, 196, 81, 0.18));
  filter: blur(28px);
  opacity: 0.72;
}

.visual-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.visual-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head.compact {
  margin-bottom: 0;
}

.section-head h2,
.cta-panel h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 950;
}

.section-head p:not(.section-kicker),
.cta-panel p {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.value-item,
.step-card,
.testimonial-card,
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow-sm);
}

.service-card {
  min-height: 224px;
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:nth-child(2),
.service-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(255, 255, 255, 0.04));
}

.service-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(245, 196, 81, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.service-card:hover,
.value-item:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 81, 0.36);
}

.css-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.28);
}

.css-icon::before,
.css-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.icon-arcade::before {
  width: 22px;
  height: 14px;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
}

.icon-arcade::after {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  transform: translate(9px, -7px);
}

.icon-reward::before {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-accent);
}

.icon-reward::after {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
}

.icon-board::before {
  width: 23px;
  height: 23px;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
}

.icon-board::after {
  width: 16px;
  height: 2px;
  background: var(--color-primary);
  box-shadow: 0 7px 0 var(--color-primary), 0 -7px 0 var(--color-primary);
}

.icon-tourney::before {
  width: 19px;
  height: 24px;
  border: 2px solid var(--color-accent);
  border-radius: 4px 4px 10px 10px;
}

.icon-tourney::after {
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  transform: translateY(12px);
}

.icon-mobile::before {
  width: 18px;
  height: 26px;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
}

.icon-mobile::after {
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  transform: translateY(8px);
}

.icon-support::before {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-accent);
}

.icon-support::after {
  width: 9px;
  height: 2px;
  background: var(--color-primary);
  box-shadow: 0 6px 0 var(--color-primary);
}

.service-card h3,
.value-item h3,
.step-card h3,
.testimonial-card strong {
  margin: 0;
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.25;
}

.service-card p,
.value-item p,
.step-card p,
.testimonial-card p,
.faq-panel p {
  margin: 0.65rem 0 0;
  color: var(--color-muted);
}

.advantage-layout {
  display: grid;
  grid-template-columns: 0.9fr 0.7fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.advantage-panel {
  min-height: 360px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.advantage-panel::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(245, 196, 81, 0.28);
  border-radius: 38px;
  transform: rotate(-10deg);
}

.advantage-panel span {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.advantage-panel span:nth-child(1) {
  top: 28%;
}

.advantage-panel span:nth-child(2) {
  top: 47%;
  right: 30%;
}

.advantage-panel span:nth-child(3) {
  top: 66%;
  left: 32%;
}

.advantage-list {
  display: grid;
  gap: 0.9rem;
}

.value-item {
  padding: 1.1rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.steps {
  position: relative;
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 81, 0.5), transparent);
}

.step-card {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
}

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #111827;
  font-weight: 950;
  font-size: 1.25rem;
  box-shadow: 0 12px 32px rgba(245, 196, 81, 0.2);
}

.step-card .btn {
  margin-top: 1rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.stars {
  color: var(--color-accent);
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #08111f;
  font-weight: 950;
}

.person span:not(.avatar) {
  display: block;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: var(--color-text);
  padding: 1rem 1.15rem;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.12);
  color: var(--color-accent);
  font-weight: 900;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-panel {
  padding: 0 1.15rem 1rem;
}

.js .faq-panel[hidden] {
  display: none;
}

.closing-cta {
  padding-top: 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 196, 81, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.72), rgba(8, 17, 31, 0.94) 55%, rgba(245, 196, 81, 0.36));
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 45%;
  height: 16rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transform: rotate(-12deg);
}

.cta-panel .btn {
  margin-top: 1.4rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #07101d;
  padding-block: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 0.7fr));
  gap: 2rem;
}

.footer-brand p {
  max-width: 34ch;
  color: var(--color-muted);
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a,
.footer-bottom {
  color: var(--color-muted);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

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

@media (min-width: 1281px) {
  .hero-copy h1 {
    font-size: 5.2rem;
  }
}

@media (max-width: 1024px) {
  .navbar {
    gap: 0.9rem;
  }

  .site-nav {
    gap: 0.7rem;
    font-size: 0.88rem;
  }

  .hero-grid,
  .advantage-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .advantage-panel {
    min-height: 260px;
  }

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

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container-width));
  }

  .navbar {
    min-height: 68px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand img {
    width: 138px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-login {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0.35rem;
    width: 100%;
    padding: 0 0 1rem;
  }

  .site-nav a {
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.055);
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

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

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

  .steps-grid::before {
    display: none;
  }

  .service-card {
    min-height: auto;
  }

  .section-head.compact {
    margin-bottom: 2rem;
  }

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: clamp(3rem, 14vw, 4.25rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 13vw, 3rem);
  }

  .stats-grid {
    gap: 0.6rem;
  }

  .stats-grid div,
  .service-card,
  .value-item,
  .step-card,
  .testimonial-card {
    padding: 1rem;
  }

  .faq-item button {
    align-items: flex-start;
  }
}
