/* ═══════════════════════════════════════════════════════════
   Jai Club Guide — Premium Gaming Theme
   Matches jaiclub36.com: deep navy + purple + vibrant cards
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #0d0b1a;
  --bg-card: #1a1a2e;
  --bg-card-2: #252044;
  --bg-elevated: #2d2755;

  --purple: #7c3aed;
  --purple-soft: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --purple-border: rgba(124, 58, 237, 0.2);

  --green: #18b660;
  --red: #fb5b5b;
  --violet: #c86eff;
  --gold: #ffcc24;

  --text-1: #f0eef8;
  --text-2: #b0a8cc;
  --text-3: #6e6591;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-1);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

/* ═══ Shell ═══ */
.shell {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   Nav — Glassmorphism
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(13, 11, 26, 0.8);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-cta {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 20px;
  background: var(--purple);
  color: #fff;
  border-radius: 100px;
  transition: all .2s var(--ease);
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: #8b5cf6;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 44px 20px 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1) }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1) }
}

.hero-content { position: relative; z-index: 2 }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

.hero h1 {
  font-size: clamp(1.55rem, 5.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-soft) 0%, #818cf8 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 380px;
}

.hero-code {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--text-3);
}

.hero-code strong {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.76rem;
}

/* ═══════════════════════════════════════════════════════════
   Button — Primary
   ═══════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, #9333ea 50%, #7c3aed 100%);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100% }
  100% { left: 100% }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary svg { flex-shrink: 0; transition: transform .2s var(--ease) }
.btn-primary:hover svg { transform: translateX(3px) }

.btn-primary--full {
  width: 100%;
  justify-content: center;
  padding: 16px 30px;
}

/* ═══════════════════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════════════════ */

.section {
  padding: 32px 20px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-head p {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════
   Game Cards — Horizontal Scroll
   ═══════════════════════════════════════════════════════════ */

.game-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.game-scroll::-webkit-scrollbar { display: none }

.gc {
  flex: 0 0 140px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  transition: all .25s var(--ease);
  display: flex;
  flex-direction: column;
}

.gc:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.gc__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.gc__info {
  padding: 10px 12px 12px;
}

.gc__name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.gc__tag {
  font-size: 0.66rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   Steps
   ═══════════════════════════════════════════════════════════ */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  align-items: flex-start;
  transition: background .2s;
}

.step:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.step:hover {
  background: rgba(124, 58, 237, 0.04);
}

.step__num {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple), #9333ea);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-xs);
}

.step__body h3 {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.step__body p {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   Category Grid
   ═══════════════════════════════════════════════════════════ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}

.cat:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.35);
}

.cat__icon {
  width: 44px; height: 44px;
  object-fit: contain;
}

.cat__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
}

.provider-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prov {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */

.faq-section {
  padding-bottom: 8px;
}

.faq {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq__q {
  width: 100%;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color .2s;
}

.faq__q:hover { color: var(--purple-soft) }

.faq__q::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .25s var(--ease), border-color .25s;
}

.faq.open .faq__q::after {
  transform: rotate(-135deg);
  border-color: var(--purple-soft);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}

.faq.open .faq__a { grid-template-rows: 1fr }

.faq__inner { overflow: hidden }

.faq__a p {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-bottom: 16px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CTA Section
   ═══════════════════════════════════════════════════════════ */

.cta-section {
  padding-top: 8px;
  padding-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.foot {
  padding: 24px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.foot__disc {
  font-size: 0.68rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 14px;
}

.foot__links {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.foot__links a {
  font-size: 0.72rem;
  color: var(--text-3);
  transition: color .2s;
}

.foot__links a:hover { color: var(--text-2) }

.foot__copy {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   Entrance Animations
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: translateY(0) }
}

.hero-chip { animation: fadeUp .5s .0s var(--ease) backwards }
.hero h1 { animation: fadeUp .5s .08s var(--ease) backwards }
.hero-sub { animation: fadeUp .5s .14s var(--ease) backwards }
.hero .btn-primary { animation: fadeUp .5s .2s var(--ease) backwards }
.hero-code { animation: fadeUp .5s .24s var(--ease) backwards }

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 481px) {
  .shell {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
  }
}

@media (max-width: 360px) {
  .hero { padding: 36px 16px 32px }
  .section { padding: 28px 16px }
  .nav { padding: 12px 16px }
  .cat-grid { gap: 8px }
}

/* ═══════════════════════════════════════════════════════════
   Legal Pages (terms.html / privacy.html reuse)
   ═══════════════════════════════════════════════════════════ */

.page-header { padding: 48px 20px 28px }
.back-link { font-size: 0.82rem; color: var(--text-2); display: inline-block; margin-bottom: 16px }
.page-header h1 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px }
.page-meta { font-size: 0.76rem; color: var(--text-3) }
.legal { padding: 0 20px }
.legal section { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.04) }
.legal h2 { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px }
.legal p { font-size: 0.84rem; color: var(--text-2); line-height: 1.72 }
