* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050505;
  --panel: #0b0b0c;
  --gold: #f5c542;
  --gold-soft: #d9ad36;
  --text: #fff;
  --muted: rgba(255,255,255,.68);
  --line: rgba(245,197,66,.22);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(245,197,66,.08), transparent 25%),
    radial-gradient(circle at 10% 50%, rgba(0,75,120,.10), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 74px;
  padding: 10px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(245,197,66,.18);
  background: rgba(4,4,5,.90);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.brand-crown {
  color: var(--gold);
  font-size: 24px;
  transform: translateY(-8px) rotate(-4deg);
}

.brand-main,
.footer-brand,
.modal-brand {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -1.5px;
  font-style: italic;
}

.brand-main span,
.footer-brand span,
.modal-brand span { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.main-nav a:hover,
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(245,197,66,.8);
}

.login-button,
.secondary-button,
.primary-button,
.card-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .5px;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.login-button {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-transform: uppercase;
}

.login-button:hover,
.secondary-button:hover,
.card-button:hover { filter: brightness(1.15); transform: translateY(-1px); }

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: #030303;
}

.hero-visual {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 22%;
  background-image: url("assets/jpbet-hero-luxo-clean.png");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.12) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, #030303 0%, rgba(3,3,3,.96) 20%, rgba(3,3,3,.60) 42%, rgba(3,3,3,.05) 76%),
    linear-gradient(0deg, rgba(3,3,3,.90) 0%, transparent 28%, rgba(0,0,0,.05) 70%, rgba(0,0,0,.35) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 28px rgba(245,197,66,.8);
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
  pointer-events: none;
}

.hero-glow-left { left: -160px; top: 100px; background: #f5c542; }
.hero-glow-right { right: -180px; bottom: -120px; background: #0057ff; }

.hero-content {
  width: min(570px, 90vw);
  margin-left: clamp(5vw, 8vw, 130px);
  padding: 80px 0;
}

.badge,
.eyebrow,
.card-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  margin-bottom: 22px;
  border: 1px solid rgba(245,197,66,.35);
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  box-shadow: inset 0 0 20px rgba(245,197,66,.04);
}

.hero h1 {
  font-size: clamp(52px, 7vw, 92px);
  line-height: .90;
  letter-spacing: -4px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(245,197,66,.18);
}

.hero-lead {
  max-width: 520px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
}

.primary-button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe67c, #f2b700);
  color: #080808;
  box-shadow: 0 12px 30px rgba(245,197,66,.18);
}

.primary-button span { margin-left: 12px; font-size: 18px; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.05); }

.secondary-button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #fff;
}

.hero-points {
  display: flex;
  gap: 28px;
  margin-top: 38px;
}

.hero-points div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-points strong {
  color: var(--gold);
  font-size: 24px;
}

.experience {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading h2,
.luxury-copy h2 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -1.8px;
}

.section-heading p {
  max-width: 470px;
  color: rgba(255,255,255,.54);
  font-size: 14px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: rgba(245,197,66,.08);
  filter: blur(8px);
}

.feature-card.featured {
  border-color: rgba(245,197,66,.35);
  background: linear-gradient(145deg, rgba(245,197,66,.09), rgba(255,255,255,.02));
}

.feature-icon { font-size: 34px; margin-bottom: 12px; }
.card-kicker { font-size: 9px; letter-spacing: 1.5px; }
.feature-card h3 { margin-top: 7px; font-size: 24px; }
.feature-card p { margin-top: 9px; max-width: 580px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.6; }

.card-button {
  align-self: flex-start;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
}

.luxury-strip {
  width: min(1180px, 92vw);
  margin: 0 auto 84px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid rgba(245,197,66,.24);
  border-radius: 24px;
  background:
    linear-gradient(100deg, rgba(245,197,66,.08), rgba(255,255,255,.025)),
    #080808;
  box-shadow: inset 0 0 50px rgba(245,197,66,.025);
}

.luxury-copy { max-width: 680px; }
.luxury-copy p { margin-top: 14px; color: rgba(255,255,255,.55); line-height: 1.6; font-size: 14px; }

.luxury-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.luxury-stats div { display: flex; gap: 8px; align-items: center; }
.luxury-stats strong { color: var(--gold); font-size: 26px; }
.luxury-stats span { color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; font-weight: 800; line-height: 1.25; }

footer {
  padding: 38px 5vw 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.07);
  background: #030303;
}

.footer-brand { font-size: 25px; }
.footer-links { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.48); font-size: 12px; }
.footer-links a:hover { color: var(--gold); }
footer p { width: 100%; color: rgba(255,255,255,.30); font-size: 11px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
}

.modal.show { display: flex; }

.modal-box {
  width: min(420px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 24px;
  position: relative;
  border: 1px solid rgba(245,197,66,.25);
  border-radius: 22px;
  background: linear-gradient(145deg, #131313, #090909);
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}

.modal-brand { margin-bottom: 18px; font-size: 24px; }
.modal-box h2 { font-size: 30px; }
.modal-box > div > p { margin: 7px 0 20px; color: rgba(255,255,255,.55); }

.close-button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.modal-box input {
  width: 100%;
  height: 52px;
  margin-bottom: 12px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  outline: none;
  background: #050505;
  color: #fff;
}

.modal-box input:focus { border-color: rgba(245,197,66,.55); }
.modal-box .primary-button, .modal-box .secondary-button { width: 100%; }
.modal-secondary { margin-top: 10px; }
.login-message { min-height: 22px; margin: 12px 0; text-align: center; color: var(--gold); font-size: 13px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero { min-height: 700px; }
  .hero-visual { inset: 0; background-position: 62% center; }
  .hero::after { background: linear-gradient(90deg, rgba(3,3,3,.98) 0%, rgba(3,3,3,.82) 46%, rgba(3,3,3,.24) 100%), linear-gradient(0deg, rgba(3,3,3,.94), transparent 55%); }
  .hero-content { margin-left: 6vw; }
  .section-heading, .luxury-strip { align-items: flex-start; flex-direction: column; }
  .luxury-stats { width: 100%; justify-content: space-between; }
}

@media (max-width: 650px) {
  .topbar { min-height: 64px; padding: 9px 16px; }
  .brand-main { font-size: 25px; }
  .brand-crown { font-size: 20px; }
  .login-button { min-height: 40px; padding: 0 16px; font-size: 12px; }

  .hero { min-height: 690px; align-items: flex-end; }
  .hero-visual { inset: 0; background-position: 65% 25%; background-size: auto 62%; background-color: #050505; }
  .hero::after { background: linear-gradient(180deg, rgba(3,3,3,.18) 0%, rgba(3,3,3,.42) 26%, rgba(3,3,3,.96) 60%, #030303 100%); }
  .hero-content { width: 88vw; margin: 0 auto; padding: 0 0 45px; }
  .badge { margin-bottom: 15px; font-size: 9px; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); letter-spacing: -3px; }
  .hero-lead { margin: 18px 0 22px; font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; }
  .hero-points { gap: 14px; margin-top: 25px; justify-content: space-between; }
  .hero-points div { font-size: 8px; }
  .hero-points strong { font-size: 20px; }

  .experience { padding: 58px 0; }
  .section-heading { margin-bottom: 25px; gap: 16px; }
  .section-heading h2 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 195px; padding: 22px; }
  .feature-card h3 { font-size: 21px; }

  .luxury-strip { margin-bottom: 58px; padding: 28px 22px; gap: 28px; }
  .luxury-copy h2 { font-size: 32px; }
  .luxury-stats { gap: 10px; }
  .luxury-stats strong { font-size: 22px; }
  .luxury-stats span { font-size: 8px; }

  footer { padding: 30px 18px 38px; }
  .footer-links { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .hero { min-height: 670px; }
  .hero-points div:nth-child(3) { display: none; }
}

@supports (padding: max(0px)) {
  .topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  footer { padding-bottom: max(38px, env(safe-area-inset-bottom)); }
}
