/* =========================================================
   99DEWA — Style.css
   Dark theme · Gold accent · Responsive
   ========================================================= */

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

:root {
  --bg:         #0a0a0a;
  --bg-alt:     #111111;
  --surface:    #1a1a1a;
  --surface-2:  #222222;
  --border:     #2a2a2a;
  --gold:       #d4af37;
  --gold-2:     #f2c94c;
  --text:       #e8e8e8;
  --text-dim:   #9a9a9a;
  --green:      #22c55e;
  --blue:       #3b82f6;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 12px 30px rgba(0,0,0,.4);
  --container:  1200px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.logo .site-name {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .5px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
}
.breadcrumb a:hover { color: var(--gold); }

.header-right {
  display: flex;
  gap: 10px;
}

.btn-login,
.btn-register {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: .25s;
  white-space: nowrap;
}
.btn-login {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-login:hover { border-color: var(--gold); color: var(--gold); }

.btn-register {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0a0a0a;
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,55,.35);
}

/* ============ BANNER ============ */
.banner-section {
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
  min-height: 480px;
}

.banner-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.banner-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.35) blur(2px);
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(212,175,55,.15), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,.6), rgba(10,10,10,.9));
}

.banner-main {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.banner-content { max-width: 620px; }

.banner-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 26px;
  line-height: 1.7;
}

.banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: .25s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0a0a0a;
  box-shadow: 0 8px 22px rgba(212,175,55,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212,175,55,.5);
}
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.banner-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

/* ============ SECTION TITLE (global) ============ */
.section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 40px;
}

/* ============ INFO CARD ============ */
.info-card {
  max-width: 900px;
  margin: -30px auto 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.info-card__head {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.info-card__head h2,
.info-card__head h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}
.info-card__head p {
  font-size: 13px;
  color: var(--text-dim);
}

.info-card table {
  width: 100%;
  border-collapse: collapse;
}
.info-card tr { border-bottom: 1px solid var(--border); }
.info-card tr:last-child { border-bottom: none; }
.info-card th {
  text-align: left;
  padding: 14px 12px 14px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dim);
  width: 40%;
  vertical-align: middle;
}
.info-card td {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text);
  vertical-align: middle;
}
.info-card td.site-name { color: var(--gold); font-weight: 700; }
.info-card td.money { color: var(--green); font-weight: 700; }

.tag {
  display: inline-block;
  padding: 4px 12px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(212,175,55,.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,.3);
}
.tag--blue {
  background: rgba(59,130,246,.12);
  color: var(--blue);
  border-color: rgba(59,130,246,.3);
}
.tag--green {
  background: rgba(34,197,94,.12);
  color: var(--green);
  border-color: rgba(34,197,94,.3);
}

/* ============ GAME SECTION (4 kolom 1 baris) ============ */
.game-section {
  padding: 70px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(212,175,55,.15);
}
.game-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.game-card h3 {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

/* ============ TENTANG KAMI ============ */
.tentang-kami {
  padding: 70px 20px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.tentang-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.tentang-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.tentang-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin: 20px 0 10px;
}
.tentang-subtitle:first-child { margin-top: 0; }

.tentang-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.75;
}

.tentang-misi {
  padding-left: 0;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.tentang-misi li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.tentang-misi li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(212,175,55,.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.tentang-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-number {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}

/* ============ REVIEW ============ */
.review-section {
  padding: 70px 20px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s, border-color .25s;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--surface-2);
}

.review-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.review-rating {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-style: italic;
}

/* ============ FAQ ============ */
.faq-section {
  padding: 70px 20px;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item.active { border-color: var(--gold); }

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color .25s;
}
.faq-question:hover { color: var(--gold); }

.faq-icon {
  color: var(--gold);
  font-size: 22px;
  font-weight: 400;
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  padding: 0 22px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-top { padding: 56px 20px 40px; }
.footer-container {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-col { min-width: 0; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.footer-logo .site-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 42ch;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
  transition: .25s;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
  transform: translateY(-3px);
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-menu {
  display: grid;
  gap: 10px;
}
.footer-menu a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s, padding-left .2s;
}
.footer-menu a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 20px;
}
.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-copy strong { color: var(--gold); }

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--gold); }

.back-to-top {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0a0a0a;
  font-size: 15px;
  transition: transform .25s, box-shadow .25s;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212,175,55,.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .banner-main { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .banner-content { margin: 0 auto; }
  .banner-actions { justify-content: center; }
  .banner-image img { max-width: 500px; }

  .tentang-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .tentang-image img { position: static; max-width: 500px; margin: 0 auto; }

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

@media (max-width: 900px) {
  .game-grid { gap: 12px; }
  .game-card img { height: 130px; }
  .game-card h3 { font-size: 14px; padding: 10px 6px; }
}

@media (max-width: 768px) {
  .breadcrumb { display: none; }
  .header-bar { padding: 12px 16px; }
  .logo img { width: 34px; height: 34px; }
  .logo .site-name { font-size: 18px; }
  .btn-login, .btn-register { padding: 8px 16px; font-size: 13px; }

  .banner-section { padding: 40px 16px; min-height: auto; }
  .banner-title { font-size: 22px; }
  .banner-subtitle { font-size: 14px; }

  .info-card { margin-top: 20px; padding: 24px 18px; }
  .info-card th { font-size: 13px; width: 42%; padding: 12px 8px 12px 0; }
  .info-card td { font-size: 13px; padding: 12px 0; }

  .game-section,
  .tentang-kami,
  .review-section,
  .faq-section { padding: 50px 16px; }

  .tentang-stats { grid-template-columns: 1fr; }

  .footer-top { padding: 40px 16px 30px; }
  .footer-top .footer-container { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal { justify-content: center; }
}

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .game-card img { height: 110px; }
  .game-card h3 { font-size: 13px; padding: 8px; }

  .review-list { grid-template-columns: 1fr; }

  .tentang-stats { grid-template-columns: 1fr 1fr; }
  .stat-item:last-child { grid-column: 1 / -1; }

  .banner-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
}

@media (max-width: 380px) {
  .logo .site-name { display: none; }
}