/* Reset sederhana */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #050608;
  color: #f3f4f6;
  line-height: 1.6;
}

/* Header & navigasi utama */
.site-header {
  display: flex;
  justify-content: center;        /* logo di tengah */
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(90deg, #020617, #111827);
  border-bottom: 1px solid #1f2933;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo di tengah */
.logo-center img {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
}

/* Tombol menu garis 3 (hamburger) */
.menu-toggle {
  position: absolute;
  left: 16px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #facc15;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Animasi saat menu aktif */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Navigasi (default: mobile) */
.main-nav {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: #020617;
  border-bottom: 1px solid #1f2933;
  display: none;
}

.main-nav.open {
  display: block;
}

.main-nav ul {
  list-style: none;
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-nav a {
  display: block;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: #facc15;
  color: #111827;
}

/* Versi desktop */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: block;
    background: transparent;
    border-bottom: none;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin-left: auto; /* menu ke kanan */
  }
}

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #facc15;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero-content p {
  margin-bottom: 16px;
  color: #d1d5db;
}

/* Tombol */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #facc15;
  color: #111827;
}

.btn-primary:hover {
  background: #eab308;
}

.btn-secondary {
  background: transparent;
  color: #facc15;
  border: 1px solid #facc15;
}

.btn-secondary:hover {
  background: #facc15;
  color: #111827;
}

/* Konten umum */
.content {
  padding: 24px;
}

.content h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.content h2 {
  font-size: 20px;
  margin: 18px 0 8px;
}

.content p {
  margin-bottom: 8px;
  color: #d1d5db;
}

.content ul,
.content ol {
  margin-left: 18px;
  margin-bottom: 12px;
}

/* Keunggulan & kartu */
.benefits {
  padding: 0 24px 24px;
}

.benefits h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.benefits ul li {
  margin-left: 18px;
  margin-bottom: 6px;
}

.games-highlight {
  padding: 0 24px 24px;
}

.game-card {
  background: #020617;
  border: 1px solid #1f2933;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 10px;
}

/* Tabel RTP */
.rtp-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.rtp-table th,
.rtp-table td {
  padding: 8px 10px;
  border: 1px solid #1f2933;
  text-align: justify;
}

.rtp-table th {
  background: #111827;
  color: #facc15;
}

.rtp-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
  font-style: italic;
}

/* FAQ */
.faq {
  padding: 0 24px 24px;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-item h3 {
  font-size: 16px;
}

/* Form kontak */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}

.contact-form label {
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #374151;
  background: #020617;
  color: #f9fafb;
}

/* Section daftar / CTA */
.cta-register {
  padding: 24px;
  text-align: center;
}

.cta-register .btn-primary {
  display: inline-block;
  margin: 12px auto 0;
}

/* Footer */
.site-footer {
  padding: 16px 24px;
  background: #020617;
  color: #9ca3af;
  margin-top: 24px;
  font-size: 13px;
  text-align: center;
}

/* Semua paragraf rata kiri-kanan */
p {
  text-align: justify;
}

/* Responsif tambahan untuk layar kecil */
@media (max-width: 640px) {
  .hero {
    padding-top: 16px;
  }
}