/* Jayatop77 WAP — Varian D + Gaming UI | palet dari banner (royal blue + gold + cyan) */

:root {
  --bg: #030818;
  --bg-panel: #0a1640;
  --bg-hud: #0f2555;
  --cyan: #00e5ff;
  --cyan-dim: #0891b2;
  --cyan-glow: rgba(0, 229, 255, 0.38);
  --blue-deep: #001a4d;
  --gold: #ffd700;
  --gold-dim: #c9a800;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --text: #eef6ff;
  --muted: #8eb8d8;
  --border: rgba(0, 229, 255, 0.35);
  --border-gold: rgba(255, 215, 0, 0.5);
  --sidebar-w: 220px;
  --font: "Segoe UI", system-ui, sans-serif;
  --hud-corner: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(30, 64, 175, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(0, 229, 255, 0.07) 0%, transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(255, 215, 0, 0.04) 0%, transparent 30%),
    linear-gradient(180deg, #030818 0%, #051030 50%, #030818 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; text-shadow: 0 0 12px var(--cyan-glow); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--gold); color: var(--blue-deep); font-weight: 700;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 100%);
  border-right: 2px solid var(--gold);
  box-shadow: 4px 0 28px var(--cyan-glow), inset -1px 0 0 var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  z-index: 200;
}

.sidebar-brand { margin-bottom: 1.5rem; }
.sidebar-brand img {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.sidebar-nav {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  clip-path: var(--hud-corner);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--blue-deep);
  background: linear-gradient(135deg, var(--gold) 0%, #ffe566 100%);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.sidebar-cta { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 1rem; }

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.container { width: min(100% - 2rem, 920px); margin-inline: auto; }

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 250;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(3, 8, 24, 0.96);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.mobile-bar img { height: 28px; width: auto; filter: drop-shadow(0 0 6px var(--gold-glow)); }

.menu-toggle {
  background: var(--bg-hud);
  border: 1px solid var(--border-gold);
  color: var(--cyan);
  font-size: 1.15rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 0.6rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-drawer .drawer-cta { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.mobile-drawer .drawer-cta .btn { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  clip-path: var(--hud-corner);
  transition: filter 0.2s, transform 0.12s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.97); }

/* CTA utama — meniru tombol gold + gradient biru di banner */
.btn-play {
  background: linear-gradient(180deg, #f8fafc 0%, #bae6fd 45%, #7dd3fc 100%);
  color: var(--blue-deep);
  border: 2px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 0 18px var(--gold-glow);
}
.btn-play:hover {
  filter: brightness(1.06);
  color: var(--blue-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 0 24px var(--cyan-glow);
}

.btn-hud {
  background: var(--bg-hud);
  color: var(--cyan);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.1);
}
.btn-hud:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  color: #fff;
}

.hero-split { padding: 2rem 0 2.5rem; }

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-visual {
  position: relative;
  clip-path: var(--hud-corner);
  border: 2px solid var(--gold);
  outline: 1px solid var(--border);
  outline-offset: 3px;
  background: var(--bg-hud);
  overflow: hidden;
  box-shadow: 0 0 32px var(--cyan-glow), 0 0 12px var(--gold-glow);
}

.hero-visual::before {
  content: "MEGA WIN";
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  padding: 0.22rem 0.6rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--gold) 0%, #ffe566 100%);
  color: var(--blue-deep);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 10px var(--gold-glow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 8, 24, 0.35) 0%, transparent 40%);
  pointer-events: none;
}

.hero-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.hero-copy h1 a {
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--cyan-glow);
}

.hud-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: linear-gradient(90deg, var(--cyan) 0%, #67e8f9 100%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.hero-lead { margin: 0 0 1.1rem; color: var(--muted); max-width: 28rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; }

.xp-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-hud);
  border: 1px solid var(--border-gold);
  clip-path: var(--hud-corner);
  max-width: 320px;
  box-shadow: inset 0 0 16px rgba(0, 229, 255, 0.08);
}

.xp-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.xp-track {
  flex: 1;
  height: 8px;
  background: var(--blue-deep);
  border: 1px solid var(--border);
  overflow: hidden;
}

.xp-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan), var(--gold));
  box-shadow: 0 0 10px var(--cyan-glow);
}

.section { padding: 2.5rem 0; }

.section-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.45rem;
  display: block;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.15);
}

.prose p { margin: 0 0 0.9rem; color: var(--muted); max-width: 38rem; }

.article-panel {
  background: linear-gradient(145deg, var(--bg-panel) 0%, var(--bg-hud) 100%);
  border: 1px solid var(--border-gold);
  padding: 1.4rem;
  clip-path: var(--hud-corner);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.article-panel h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.article-panel p { margin: 0 0 0.8rem; font-size: 0.9rem; color: var(--muted); }
.meta { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.75rem; }

.feature-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border: 2px solid var(--border-gold);
  background: linear-gradient(180deg, var(--bg-hud) 0%, var(--bg-panel) 100%);
  clip-path: var(--hud-corner);
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.feature-item {
  flex: 1;
  min-width: 160px;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.feature-item:last-child { border-right: none; }

.feature-item::before {
  content: attr(data-icon);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.feature-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.feature-item p { margin: 0; font-size: 0.78rem; color: var(--muted); }

.faq-list { max-width: 34rem; }

.faq-item {
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
  background: var(--bg-hud);
  clip-path: var(--hud-corner);
}

.faq-item.open { border-color: var(--border-gold); box-shadow: 0 0 14px var(--cyan-glow); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-q span { color: var(--cyan); font-size: 1rem; }
.faq-item.open .faq-q span { transform: rotate(45deg); display: inline-block; }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 1rem 0.85rem; font-size: 0.82rem; color: var(--muted); }

.site-footer {
  border-top: 2px solid var(--gold);
  background: var(--bg-panel);
  padding: 1.75rem 0 1rem;
  margin-top: 1rem;
  box-shadow: inset 0 1px 0 var(--border);
}

.footer-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand img { height: 100px; margin-bottom: 0.45rem; filter: drop-shadow(0 0 6px var(--gold-glow)); }
.footer-brand p { margin: 0; font-size: 0.8rem; color: var(--muted); max-width: 16rem; }

.footer-nav h4 {
  margin: 0 0 0.4rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 0.8rem; color: var(--muted); }

.footer-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .footer-row { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 767px) {
  .sidebar { display: none; }
  .main-wrap { margin-left: 0; }
  .mobile-bar { display: flex; }
}
