/* ============================================================
   1JJ GAME PK — Homepage
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero-rich);
  color: #fff; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 70px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(78,128,238,0.42), transparent 42%),
    radial-gradient(circle at 88% 30%, rgba(232,176,32,0.20), transparent 45%),
    radial-gradient(circle at 60% 100%, rgba(30,77,183,0.5), transparent 55%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(30px, 5vw, 72px); min-height: min(78vh, 720px);
}
.hero-copy { animation: fadeUp 0.9s var(--ease-smooth) 0.15s both; }
.hero-badge { margin-bottom: var(--space-6); }
.hero h1 {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(38px, 5.6vw, 70px); line-height: 1.06; margin-bottom: var(--space-5);
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.hero h1 .hl {
  background: var(--gradient-gold-text); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: goldTextShine 5s linear infinite;
}
.hero-sub { font-family: var(--font-heading); font-size: clamp(16px, 1.7vw, 21px); font-weight: 500; color: var(--color-blue-100); max-width: 560px; margin-bottom: var(--space-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-8); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.hero-trust span svg { width: 18px; height: 18px; color: var(--color-gold-300); }

/* Phone mockup in hero */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; animation: fadeIn 1.2s ease 0.4s both; }
.phone {
  position: relative; width: clamp(230px, 25vw, 320px); aspect-ratio: 527 / 950;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #10203f, #060c18);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.06);
  animation: float 6s ease-in-out infinite;
}
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: #060c18; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; display: block; }
.phone-glow {
  position: absolute; inset: -30px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,176,32,0.35), transparent 62%);
  filter: blur(18px);
}
.float-badge {
  position: absolute; z-index: 4; background: #fff; color: var(--color-blue-900);
  border-radius: var(--radius-md); padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 10px;
}
.float-badge .fb-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; }
.float-badge small { display: block; font-weight: 500; color: var(--color-text-muted); font-size: 11px; }
.float-badge.one { top: 12%; left: -6%; animation: floatSlow 6s ease-in-out infinite; }
.float-badge.two { bottom: 14%; right: -8%; animation: floatSlow 7s ease-in-out infinite reverse; }
.float-badge.one .fb-ico { background: var(--color-success); }
.float-badge.two .fb-ico { background: var(--gradient-gold-btn); color: var(--color-blue-900); }

/* ---------- STATS BAR ---------- */
.stats-bar { background: var(--color-blue-600); background-image: linear-gradient(120deg, #1A3575, #1E4DB7 60%, #2860D4); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); padding: var(--space-12) 0; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 50px); color: var(--color-gold-300); line-height: 1; }
.stat .lbl { display: block; margin-top: var(--space-3); color: #fff; font-family: var(--font-heading); font-weight: 500; font-size: 14px; letter-spacing: 0.03em; }
.stat { position: relative; }
.stat:not(:last-child)::after { content:""; position:absolute; right:calc(var(--space-6)/-2); top:15%; bottom:15%; width:1px; background:rgba(255,255,255,0.18); }
@media (max-width:640px){ .stats-grid{ grid-template-columns:1fr 1fr; gap:var(--space-8);} .stat:nth-child(2)::after{display:none;} .stat::after{display:none;} }

/* ---------- FEATURED GAMES ---------- */
.games-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); }
@media (max-width:1100px){ .games-rail{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:680px){ .games-rail{ grid-template-columns:repeat(2,1fr); gap:var(--space-3);} }

.game-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--color-blue-900);
  box-shadow: var(--shadow-sm); transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  display: block;
}
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.game-card .cat-badge { position: absolute; top: 10px; left: 10px; z-index: 3; }
.game-card .overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.15) 45%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-4);
}
.game-card .g-name { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.game-card .play-pop {
  position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center;
  background: rgba(10,22,40,0.55); opacity: 0; transition: opacity var(--transition-fast);
}
.game-card .play-pop .btn-primary { transform: scale(0.8); transition: transform var(--transition-fast); padding: 12px 24px; }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.game-card:hover img { transform: scale(1.08); }
.game-card:hover .play-pop { opacity: 1; }
.game-card:hover .play-pop .btn-primary { transform: scale(1); }

/* ---------- OG PROMO BANNER ---------- */
.og-banner { position: relative; overflow: hidden; }
.og-frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 3px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, var(--gradient-gold-btn) border-box;
}
.og-frame img { width: 100%; height: auto; display: block; }
.og-frame .og-cta {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: clamp(14px, 3vw, 32px); gap: 12px;
  background: linear-gradient(to top, rgba(10,22,40,0.55), transparent 42%);
}
.og-frame .og-cta .btn-primary { box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
@media (max-width: 640px){ .og-frame .og-cta{ display:none; } }

/* ---------- BONUS BANNER ---------- */
.bonus-banner {
  position: relative; border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #FDF3D0 0%, #FBE9B0 100%);
  border: 2px solid var(--color-gold-400); animation: borderGlow 3.5s ease-in-out infinite;
  padding: clamp(30px, 5vw, 56px); overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: var(--space-8);
}
.bonus-banner::after {
  content: "₹"; position: absolute; right: -10px; top: -30px; font-family: var(--font-display);
  font-size: 260px; color: rgba(201,149,10,0.1); font-weight: 800; line-height: 1; pointer-events: none;
}
.bonus-banner .b-eyebrow { color: var(--color-gold-600); font-family: var(--font-accent); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.bonus-banner h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); color: var(--color-blue-900); margin: 8px 0; position: relative; z-index: 1; }
.bonus-banner h2 b { color: var(--color-gold-600); }
.bonus-banner p { color: var(--color-blue-800); max-width: 520px; position: relative; z-index: 1; }
.bonus-banner .b-actions { position: relative; z-index: 1; }
@media (max-width:820px){ .bonus-banner{ grid-template-columns:1fr; text-align:center;} .bonus-banner p{margin-left:auto;margin-right:auto;} }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); position: relative; }
.steps::before {
  content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px;
  background-image: linear-gradient(90deg, var(--color-blue-400) 50%, transparent 50%);
  background-size: 14px 2px; z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step .num {
  width: 88px; height: 88px; margin: 0 auto var(--space-5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-gold-btn); color: var(--color-blue-900);
  font-family: var(--font-display); font-weight: 800; font-size: 34px;
  box-shadow: var(--shadow-gold); border: 4px solid #fff;
}
.step h3 { font-size: 20px; color: var(--color-blue-700); margin-bottom: var(--space-2); }
.step p { color: var(--color-text-muted); font-size: 15.5px; max-width: 320px; margin: 0 auto; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; gap:var(--space-10);} .steps::before{ display:none;} }

/* ---------- WHY GRID handled by .feature-card ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
@media (max-width:960px){ .why-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .why-grid{ grid-template-columns:1fr;} }

/* ---------- DOWNLOAD PROMO ---------- */
.dl-promo { position: relative; overflow: hidden; }
.dl-grid { display: grid; grid-template-columns: 1fr 0.85fr; align-items: center; gap: clamp(30px,5vw,72px); }
.dl-copy h2 { color: #fff; font-family: var(--font-display); font-size: clamp(28px,4vw,46px); margin-bottom: var(--space-4); }
.dl-copy p { color: var(--color-blue-100); max-width: 520px; }
.dl-features { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0 var(--space-8); }
.dl-visual { display: flex; justify-content: center; }
.dl-visual .phone { animation: floatSlow 7s ease-in-out infinite; }
.store-badges { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: var(--radius-md); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; transition: all var(--transition-fast);
}
.store-badge:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 10px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; }
.store-badge b { font-family: var(--font-heading); font-size: 15px; }
@media (max-width:820px){ .dl-grid{ grid-template-columns:1fr;} .dl-visual{ margin-top:var(--space-8);} }

/* ---------- SCREENSHOTS SLIDER ---------- */
.shots { overflow: hidden; }
.shots-viewport { overflow: hidden; margin: 0 auto; }
.shots-track {
  display: flex; gap: clamp(16px, 2.4vw, 30px);
  transition: transform 0.6s var(--ease-smooth); will-change: transform;
  padding: 20px 0;
}
.shot {
  flex: 0 0 auto; width: clamp(210px, 22vw, 268px); aspect-ratio: 527/945;
  border-radius: 30px; padding: 10px; background: linear-gradient(160deg,#10203f,#060c18);
  box-shadow: var(--shadow-lg); transition: transform var(--transition-mid), opacity var(--transition-mid);
  opacity: 0.55; transform: scale(0.9);
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.shot.is-active { opacity: 1; transform: scale(1.02); box-shadow: 0 30px 70px rgba(10,22,40,0.35), 0 0 0 3px var(--color-gold-400); }
.shots-nav { display: flex; justify-content: center; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.shots-arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--color-border);
  background: #fff; color: var(--color-blue-600); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.shots-arrow:hover { background: var(--color-blue-600); color: #fff; border-color: var(--color-blue-600); transform: scale(1.08); }
.shots-arrow svg { width: 22px; height: 22px; }
.shots-dots { display: flex; gap: 8px; }
.shots-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--color-border); transition: all var(--transition-fast); }
.shots-dots button.active { background: var(--gradient-gold-btn); width: 28px; border-radius: 6px; }

/* ---------- TESTIMONIALS ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
@media (max-width:900px){ .testi-grid{ grid-template-columns:1fr;} }
.testi { position: relative; padding-top: var(--space-10); }
.testi .quote { position: absolute; top: -6px; left: 24px; font-family: var(--font-display); font-size: 90px; line-height: 1; color: var(--color-blue-100); }
.testi .stars { color: var(--color-gold-400); letter-spacing: 3px; margin-bottom: var(--space-3); }
.testi p { font-size: 16px; color: var(--color-text-secondary); font-style: italic; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: var(--space-5); }
.testi .avatar {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero); color: #fff; font-family: var(--font-heading); font-weight: 700;
}
.testi .who b { display: block; color: var(--color-blue-900); font-family: var(--font-heading); font-size: 15px; }
.testi .who small { color: var(--color-text-muted); }

/* ---------- PROMO / COMMUNITY DUO ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width:820px){ .duo{ grid-template-columns:1fr;} }
.duo-card { border: 2px solid var(--color-gold-400); border-radius: var(--radius-lg); padding: var(--space-8); background: #fff; }
.duo-card h3 { font-size: 24px; color: var(--color-blue-700); margin-bottom: var(--space-3); display: flex; align-items: center; gap: 10px; }
.duo-card ul { margin: var(--space-4) 0 var(--space-6); }
.duo-card ul li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--color-text-secondary); font-size: 15.5px; }
.duo-card ul li svg { width: 20px; height: 20px; color: var(--color-success); flex-shrink: 0; margin-top: 2px; }

/* ---------- SEO editorial block ---------- */
.seo-block { background: var(--color-bg-secondary); }
.seo-block .prose { max-width: 960px; margin: 0 auto; }
.seo-block .prose h2 { text-align: left; }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }
.kw-cloud a { background: #fff; border: 1px solid var(--color-border); color: var(--color-blue-700); padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; transition: all var(--transition-fast); }
.kw-cloud a:hover { background: var(--color-blue-600); color: #fff; border-color: var(--color-blue-600); transform: translateY(-2px); }

/* responsive hero — the phone mockup sits between the subheading and the
   CTA buttons on mobile, so it appears directly above "Claim Bonus Now".
   .hero-copy is unwrapped via display:contents so its children can be
   individually reordered alongside .hero-visual within the same grid. */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: auto; padding: 10px 0 20px; }
  .hero-copy { display: contents; }
  .hero-badge { order: 1; }
  .hero h1 { order: 2; }
  .hero-sub { order: 3; margin-left: auto; margin-right: auto; }
  .hero-visual { order: 4; margin: var(--space-2) 0 var(--space-6); }
  .hero-cta { order: 5; }
  .hero-trust { order: 6; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-badge, .hero h1, .hero-sub, .hero-cta, .hero-trust {
    animation: fadeUp 0.7s var(--ease-smooth) both;
  }
}
@media (max-width: 640px) {
  .float-badge { display: none; }
}
