/* Font fallback standar, digunakan oleh Tailwind */
body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  background:
    radial-gradient(
      circle at 75% 8%,
      rgba(255, 111, 0, 0.14),
      transparent 32rem
    ),
    radial-gradient(
      circle at 12% 35%,
      rgba(255, 183, 0, 0.08),
      transparent 28rem
    ),
    #070707;
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
}

/* Tambahkan wrapper di header agar kontennya terpusat di desktop */
header > * {
  /* target the direct children of the header, which is the flex container */
  max-width: 90rem; /* Misalnya 1440px / max-w-7xl */
  margin-left: auto;
  margin-right: auto;
}

/* Responsive improvement for images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus style for accessibility */
a:focus,
button:focus {
  outline: 2px solid #ffae00;
  outline-offset: 2px;
}

/* Full-viewport modal navigation, outside ancestor stacking constraints. */
#mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 5rem 1rem 2rem;
  border: 0;
  background: #070707;
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#mobile-menu:not([open]) {
  display: none;
}

#mobile-menu::backdrop {
  background: #070707;
}

/* Footer improvement */
footer {
  position: relative;
  z-index: 20;
  background: #111; /* agar kontras dengan partikel */
  color: #ccc;
  padding: 2rem 0 1rem 0;
  border-top: 1px solid #222;
  text-align: center;
  width: 100%;
}

/* Section spacing improvement */
section {
  scroll-margin-top: 80px;
}

/* Card hover effect for bonus/promosi */
.bg-gray-900:hover,
.bg-gray-900:focus-within {
  box-shadow: 0 0 16px 2px #ffae0080;
  border-color: #ffae00;
}

/* Responsive padding for section */
@media (max-width: 640px) {
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Utility for visually hidden (SEO accessibility) */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

html,
body {
  overflow-x: hidden; /* Mencegah scroll horizontal pada body */
  max-width: 100%; /* Memastikan elemen root tidak melebihi lebar viewport */
}

body,
main {
  min-height: 100vh;
}

section:last-of-type {
  padding-bottom: 80px;
}

/* Premium homepage system */
:root {
  --gold: #fbbf24;
  --gold-light: #ffe28a;
  --ember: #f97316;
  --surface: rgba(18, 18, 18, 0.82);
  --line: rgba(255, 255, 255, 0.1);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
  backdrop-filter: blur(18px);
}

#site-header header {
  background: transparent !important;
  border: 0 !important;
}

.hero-section {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 5rem 3rem 4rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  z-index: -1;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 2.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.008)
  );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 40px 100px rgba(0, 0, 0, 0.3);
}

.hero-copy {
  max-width: 680px;
  padding-left: clamp(0rem, 3vw, 2.5rem);
}

.hero-kicker {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.55rem 0.9rem;
  color: #f7d875;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.07);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow:
    0 0 0 5px rgba(74, 222, 128, 0.12),
    0 0 16px #4ade80;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.65rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 0.12em;
  color: transparent;
  background: linear-gradient(100deg, #fff1b2 0%, #fbbf24 48%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy > p {
  max-width: 620px;
  margin: 1.6rem 0 2rem;
  color: #b9b9b9;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.hero-copy > p strong {
  color: #fff2bc;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.35rem;
  border-radius: 0.9rem;
  font-weight: 850;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-cta {
  color: #14100a;
  background: linear-gradient(120deg, #ffe16f, #fbbf24 55%, #fb923c);
  box-shadow:
    0 14px 38px rgba(249, 115, 22, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.7);
}

.primary-cta span {
  font-size: 1.35rem;
}
.secondary-cta {
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-3px);
}
.primary-cta:hover {
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.34);
}
.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.09);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
  color: #858585;
  font-size: 0.8rem;
}

.hero-proof span {
  display: flex;
  gap: 0.3rem;
}
.hero-proof b {
  color: #e9e9e9;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.28),
    rgba(251, 191, 36, 0.05) 52%,
    transparent 70%
  );
  filter: blur(8px);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  width: min(30vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 80px rgba(249, 115, 22, 0.13),
    inset 0 0 70px rgba(251, 191, 36, 0.06);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

.hero-orbit::after {
  inset: 30%;
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.15);
}

.hero-visual img {
  width: min(100%, 520px);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.72));
  transform: translateY(0.75rem);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  min-width: 150px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(12, 12, 12, 0.72);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.hero-badge span {
  display: block;
  color: #8b8b8b;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-badge strong {
  color: #fff4c2;
  font-size: 0.9rem;
}
.hero-badge-top {
  top: 18%;
  right: 2%;
}
.hero-badge-bottom {
  bottom: 17%;
  left: -2%;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.trust-grid > div {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 1.35rem !important;
  text-align: left;
  border-color: var(--line) !important;
  background: var(--surface) !important;
}

.trust-grid > div::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.22rem;
  margin-bottom: 1.15rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
}

#games,
#bonus,
#about,
#faq,
#trust-signals,
#money-intent {
  border-radius: 1.75rem;
}

#games {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  ) !important;
}

#games .group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #191919, #101010) !important;
}

#games .group img {
  transition:
    transform 350ms ease,
    opacity 350ms ease;
}
#games .group:hover img {
  transform: scale(1.055);
}

/* Sistem panel halaman agar hero dan section berikutnya memiliki ritme visual yang sama. */
main > .max-w-7xl > section:not(.hero-section) {
  width: calc(100% - 2rem);
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 1.25rem;
  background: #0b0f17;
  overflow: hidden;
}

.hero-section {
  width: calc(100% - 2rem);
  max-width: 1200px;
  min-height: 720px;
  margin: 1rem auto;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 1.25rem;
  overflow: hidden;
}

#trust-signals {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#money-intent,
#games,
#bonus,
#about,
#how-to-start,
#faq,
#internal-link-hub,
#freshness {
  background: #0b0f17 !important;
}

#money-intent,
#games,
#bonus,
#about,
#how-to-start,
#faq,
#internal-link-hub,
#freshness {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#money-intent > div,
#games,
#bonus,
#about,
#how-to-start,
#faq,
#internal-link-hub,
#freshness {
  position: relative;
}

#money-intent h2,
#games h2,
#bonus h2,
#about h2,
#how-to-start h2,
#faq h2,
#internal-link-hub h2,
#freshness h2 {
  letter-spacing: -0.02em;
}

main > .max-w-7xl > hr {
  display: none;
}

/* Spacing konsisten untuk kartu game di semua breakpoint. */
#games > .grid {
  gap: 1.25rem;
}

#games .group {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

#games .group > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    text-align: center;
  }
  .hero-copy {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
  }
  .hero-kicker,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .hero-proof {
    justify-content: center;
  }
  .hero-visual {
    min-height: 460px;
  }
  .hero-visual img {
    width: min(82vw, 470px);
  }
  .hero-orbit {
    width: min(72vw, 400px);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-section {
    width: calc(100% - 1rem);
    min-height: 0;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    padding: 1.35rem 0.75rem 1rem;
    border-radius: 1rem;
    text-align: left;
  }
  .hero-section::before {
    inset: 0.5rem;
    border-radius: 1.5rem;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 2.65rem);
    line-height: 0.98;
  }
  .hero-copy p {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.45;
  }
  .hero-kicker {
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem;
  }
  .primary-cta,
  .secondary-cta {
    width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  .hero-proof {
    display: none;
  }
  .hero-visual {
    min-height: 220px;
    margin-top: 0;
  }
  .hero-visual img {
    width: 100%;
  }
  .hero-orbit {
    width: 95%;
  }
  .hero-badge {
    display: none;
  }
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .trust-grid > div {
    min-height: 6.2rem;
    padding: 0.7rem !important;
    border-radius: 0.55rem;
  }
  .trust-grid h2 {
    font-size: 0.65rem;
    line-height: 1.15;
  }
  .trust-grid p {
    margin-top: 0.3rem;
    font-size: 0.54rem;
    line-height: 1.3;
  }
  #money-intent {
    padding: 1.1rem 0.75rem;
  }
  #money-intent h2,
  #games h2,
  #bonus h2,
  #about h2,
  #how-to-start h2,
  #faq h2 {
    font-size: 1rem;
  }
  #money-intent p,
  #games > p {
    font-size: 0.55rem;
    line-height: 1.45;
  }
  #games {
    padding: 1.1rem 0.45rem;
  }
  #games > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  #games .group {
    border-radius: 0.45rem;
  }
  #games .group img {
    height: 4.25rem;
  }
  #games .group > div:last-child {
    padding: 0.45rem;
  }
  #games .group h3 {
    min-height: 2rem;
    font-size: 0.52rem;
    line-height: 1.15;
  }
  #games .group a {
    padding: 0.25rem;
    font-size: 0.48rem;
  }
  #bonus {
    padding: 1.1rem 0.45rem;
  }
  #bonus > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  #bonus > div > div {
    padding: 0.65rem;
    border-radius: 0.55rem;
  }
  #bonus h3 {
    font-size: 0.62rem;
    line-height: 1.15;
  }
  #bonus p {
    font-size: 0.48rem;
    line-height: 1.3;
  }
  #bonus svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  #about,
  #how-to-start,
  #faq,
  #internal-link-hub,
  #freshness {
    padding: 1.15rem 0.75rem;
  }
  #about p,
  #how-to-start p,
  #faq p,
  #internal-link-hub p,
  #freshness p {
    font-size: 1rem;
    line-height: 1.45;
  }
  #how-to-start > div {
    gap: 0.35rem;
  }
  #how-to-start > div > div {
    padding: 0.6rem;
  }
  #how-to-start h3 {
    font-size: 0.6rem;
  }
  #games > .grid {
    gap: 0.35rem;
  }
  #games .group > div:last-child {
    padding: 0.45rem;
  }
  main > .max-w-7xl > section:not(.hero-section) {
    width: calc(100% - 1rem);
    border-radius: 1rem;
  }
}
