:root {
  --brand: #1570EF;
  --brand-dark: #0A3A8F;
  --brand-navy: #071A4A;
  --brand-soft: #E7F1FF;
  --gold: #F5B400;
  --gold-dark: #E08900;
  --gold-soft: #FFF6D6;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --radius: 1.25rem;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #f5f8fc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn, .badge, .display-6 {
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.site-topbar { background: var(--brand-navy); color: #fff; font-size: .8rem; }
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav > .container { min-width: 0; }
.site-nav .navbar-toggler {
  display: inline-flex !important; align-items: center; justify-content: center;
  margin-left: auto; flex: 0 0 auto;
  width: 46px; height: 40px; padding: 0;
  border: 1px solid #cbd5e1; border-radius: .7rem; background: #fff;
}
.navbar-toggler-icon {
  display: block; width: 18px; height: 2px;
  background: #0f172a; background-image: none;
  box-shadow: 0 -6px 0 #0f172a, 0 6px 0 #0f172a;
}
@media (min-width: 992px) {
  .site-nav .navbar-toggler { display: none !important; }
}
.site-nav .navbar-brand {
  font-weight: 800; color: var(--brand-dark);
  display: inline-flex; align-items: center; gap: .5rem;
}
.site-nav .navbar-brand img { height: 28px; width: auto; display: block; }
.site-nav .nav-link { font-weight: 600; color: #334155; }
.site-nav .nav-link:hover { color: var(--brand); }
.site-nav .nav-link.active { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .feature-card, .benefit-card, .game-card, .step-card { transition: none; }
  .feature-card:hover, .benefit-card:hover { transform: none; }
}

.btn {
  border-radius: 999px; font-weight: 700;
  padding: .8rem 1.55rem; font-size: 1rem; line-height: 1.2;
  max-width: 100%; white-space: normal; text-align: center;
}
.text-secondary { color: #475569 !important; }
.btn-sm { padding: .65rem 1.25rem; font-size: .95rem; border-radius: 999px; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.15rem; border-radius: 999px; }
.btn-brand {
  background: linear-gradient(180deg, #ffc933 0%, var(--gold) 55%, var(--gold-dark) 100%);
  border-color: var(--gold-dark); color: #1a1200;
  box-shadow: 0 3px 0 rgba(224,137,0,.4);
}
.btn-brand:hover { background: linear-gradient(180deg, #ffd24d 0%, #f0a800 100%); border-color: #c67800; color: #1a1200; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.btn-outline-brand:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-light { color: var(--brand-navy) !important; font-weight: 800; border-radius: 999px; }

.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,180,0,.28), transparent 55%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-dark) 45%, #1570EF 100%);
  color: #fff;
}
.hero-home { text-align: center; padding: 3.5rem 1rem 2.5rem; }
.hero-home .lead-copy {
  max-width: 42rem; margin-left: auto; margin-right: auto;
  opacity: .96; font-size: 1.05rem; font-weight: 500;
}
.hero-home .cta-row {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem;
}
@media (max-width: 575.98px) {
  .hero-home .cta-row,
  .hero-inner .d-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-home .cta-row .btn,
  .hero-inner .d-flex .btn { width: 100%; }
}
.hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
.hero-inner .lead { opacity: .95; max-width: 40rem; }

.banner-gallery { max-width: 960px; margin: 0 auto; }
.banner-gallery img {
  width: 100%; height: auto; display: block; border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(7,26,74,.12);
  aspect-ratio: 16 / 9; object-fit: contain; background: transparent;
}
.banner-gallery .banner-slot { border-radius: 1rem; overflow: hidden; background: transparent; }

/* Skrin app 3:4, diletakkan di seksyen Fungsi aplikasi */
.app-shot {
  max-width: 360px;
  border-radius: 1.25rem;
  overflow: visible;
  background: transparent;
}
.app-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 36px rgba(7,26,74,.18));
}

.feature-card, .game-card, .step-card, .benefit-card {
  border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover, .benefit-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,26,74,.08); }
.feature-card .icon-wrap, .benefit-card .icon-wrap {
  width: 2.75rem; height: 2.75rem; border-radius: .9rem; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.step-card .badge.text-bg-dark { background: var(--brand-dark) !important; border-radius: 999px; }

.callout { border-radius: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); background: #f8fafc; }
.callout-trust { background: var(--brand-soft); border-color: #b6d4fe; }
.callout-warn { background: var(--gold-soft); border-color: #f5d56a; }
.callout-danger { background: #fef2f2; border-color: #fecaca; }

.table { border-radius: .75rem; overflow: hidden; font-size: .95rem; }
.table th { font-weight: 700; color: var(--ink); }
pre { max-width: 100%; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.cta-bar { background: var(--brand-soft); border: 1px solid #b6d4fe; border-radius: 1.25rem; }
.section-title { font-weight: 800; letter-spacing: -0.03em; }
.pill-badge {
  display: inline-block; max-width: 100%; background: var(--gold); color: #1a1200; font-weight: 800;
  border-radius: 999px; padding: .4rem .9rem; font-size: .8rem;
  white-space: normal; overflow-wrap: anywhere;
}
.prose p, .prose li { color: #334155; }
.prose strong { color: var(--ink); }

footer.site-footer { background: var(--brand-navy); color: #cbd5e1; }
footer.site-footer a { color: #93c5fd; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); text-decoration: underline; }

.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumb-bar .breadcrumb { background: transparent; margin: 0; padding: 0; }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--muted); }
.breadcrumb-bar a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.breadcrumb-bar a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1080;
  background: var(--gold); color: #1a1200; font-weight: 800;
  padding: .65rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: .6rem; color: #1a1200; }

.prose a:not(.btn):not(.feature-card) {
  color: var(--brand-dark); font-weight: 700;
  text-decoration: underline; text-underline-offset: .18em;
}
.prose a:not(.btn):not(.feature-card):hover { color: var(--brand); }
.prose a.feature-card { color: inherit; font-weight: inherit; text-decoration: none; }
.prose a.feature-card:hover { color: inherit; }

.game-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .game-grid { grid-template-columns: repeat(5, 1fr); }
}

.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: .9rem; padding: .9rem 1rem; margin-bottom: .65rem;
}
.faq-item summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.faq-item .faq-a { margin-top: .55rem; }

.noscript-nav { background: #fff; border-bottom: 1px solid var(--line); font-size: .95rem; }
.noscript-nav a { font-weight: 700; color: var(--brand-dark); text-decoration: none; margin-right: .9rem; }
.noscript-nav a:hover { color: var(--brand); }
@media (min-width: 992px) {
  .noscript-nav { display: none; }
}

.content-wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }
