/* Halaman depan Bola Tangkas — gaya lobi kasino modern, aksen biru, emas untuk koin. */
:root {
  --bg: #040a1c;
  --panel: rgba(13, 24, 48, 0.94);
  --edge: rgba(148, 197, 255, 0.16);
  --blue: #2f7bff;
  --cyan: #38d6ff;
  --gold: #ffd84d;
  --text: #eef4ff;
  --muted: #9db3d9;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --logo: 'Bungee', 'Arial Black', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 123, 255, 0.22), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(56, 214, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #071027, #030814);
  background-attachment: fixed;
  color: var(--text);
  font: 500 16px/1.5 var(--font);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 900; letter-spacing: 0.02em; text-decoration: none;
  transition: filter 0.15s, transform 0.06s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn.primary { background: linear-gradient(180deg, #4d93ff, #1f5fe6); box-shadow: 0 4px 0 #0c2f80, 0 0 22px rgba(47, 123, 255, 0.45); color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--edge); color: var(--text); }
.btn.big { min-height: 56px; padding: 14px 24px; font-size: 1.05rem; }

/* ---- Navigasi ---- */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(4, 10, 28, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}
.logo {
  font: 400 1.15rem var(--logo); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
  text-shadow: 0 0 6px var(--blue), 0 0 16px rgba(47, 123, 255, 0.6);
}
.logo span:last-child { color: var(--gold); text-shadow: 0 0 6px #ff9a00, 0 0 16px rgba(255, 154, 0, 0.5); }
.nav-actions { display: flex; gap: 8px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---- Hero ---- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px;
  padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 48px);
}
.kicker {
  display: inline-block; padding: 6px 12px; border-radius: 99px;
  background: rgba(47, 123, 255, 0.18); border: 1px solid rgba(56, 214, 255, 0.35);
  color: var(--cyan); font-weight: 700; font-size: 0.85rem;
}
.hero h1 { margin: 14px 0 12px; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-text > p { margin: 0; color: #cfdcf7; font-size: 1.05rem; max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bonus { margin-top: 14px !important; color: var(--muted) !important; font-size: 0.95rem !important; }
.bonus b { color: var(--gold); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 255, 0.45), transparent 65%); filter: blur(10px); }
.fan { position: relative; width: 300px; height: 260px; z-index: 1; }
.pc {
  position: absolute; left: 50%; bottom: 0;
  width: 112px; aspect-ratio: 5 / 7; margin-left: -56px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(160deg, #fff, #e9eef9); color: #101a33;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 120%;
  animation: deal 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.pc b { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.pc i { align-self: flex-end; font-style: normal; font-size: 2.6rem; line-height: 1; }
.pc.red { color: #e0174f; }
.pc.joker { background: linear-gradient(160deg, #1d4ed8, #7c3aed); color: var(--gold); box-shadow: 0 0 28px rgba(255, 216, 77, 0.45), 0 14px 30px rgba(0, 0, 0, 0.5); }
.pc.joker b { font-size: 2.4rem; }
.pc.joker i { font-size: 0.9rem; font-weight: 900; color: #fff; letter-spacing: 0.08em; }
.c1 { --r: -28deg; animation-delay: 0.05s; }
.c2 { --r: -14deg; animation-delay: 0.15s; }
.c3 { --r: 0deg; animation-delay: 0.25s; z-index: 2; }
.c4 { --r: 14deg; animation-delay: 0.35s; }
.c5 { --r: 28deg; animation-delay: 0.45s; }
.pc { transform: rotate(var(--r)); }
@keyframes deal {
  from { transform: translateY(80px) rotate(0deg) scale(0.7); opacity: 0; }
  to { transform: rotate(var(--r)); opacity: 1; }
}

/* ---- Fitur ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 8px 0 24px; }
.features article { padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--edge); }
.features span { font-size: 2rem; }
.features h2 { margin: 8px 0 6px; font-size: 1.1rem; font-weight: 900; }
.features p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---- Cara main ---- */
.how {
  margin: 8px 0 32px; padding: clamp(18px, 4vw, 32px);
  border-radius: 20px;
  background: radial-gradient(circle at 90% 20%, rgba(56, 214, 255, 0.2), transparent 50%), linear-gradient(120deg, #0b2c6b, #164bb8);
  border: 1px solid var(--edge);
}
.how h2 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 900; }
.how ol { margin: 0 0 18px; padding-left: 1.3em; color: #e2ebff; }
.how li { margin-bottom: 8px; }

footer {
  padding: 18px 16px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--edge);
  text-align: center; color: var(--muted); font-size: 0.85rem;
}
footer p { margin: 4px 0; }

/* ---- HP tegak ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text > p { margin: 0 auto; }
  .cta { justify-content: center; flex-direction: column; }
  .cta .btn { width: 100%; }
  .hero-art { order: -1; min-height: 210px; }
  .fan { transform: scale(0.78); }
  .features { grid-template-columns: 1fr 1fr; }
  .how .btn { width: 100%; }
}
@media (max-width: 380px) {
  .logo { font-size: 0.95rem; }
  .nav .btn { padding: 8px 12px; min-height: 40px; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pc { animation: none; }
}
