/* ============================================================
   CashBallPool — Game Landing Page Styles
   Philosophy: BLACK base. Green = pool TABLE only (hero spotlight).
               Gold = money. Neon = energy. Everything pops.
   ============================================================ */

:root {
  --black:      #08090b;
  --gold:       #f59e0b;
  --gold-vivid: #fbbf24;
  --neon:       #22c55e;
  --neon-glow:  rgba(34, 197, 94, 0.6);
  --table-green:#1e7a3c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--black);
}

::selection { background: rgba(251, 191, 36, 0.35); color: #fff; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #050507; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ============================================================
   HERO — the only place green lives
   Pool hall: black room, green felt lit from above, pocket holes
   ============================================================ */
.hero-section { background: #05060a; }

.felt-bg {
  /* The lamp: vivid green oval in the center, black everywhere else */
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%,
      #22863a 0%,
      #1a6630 20%,
      #0f401c 42%,
      #070c09 68%,
      #05060a 100%
    );
}

/* Four corner dark vignettes — the dark pool hall beyond the table */
.felt-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at  0%   0%, rgba(0,0,0,0.85) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 100%  0%, rgba(0,0,0,0.85) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at  0% 100%, rgba(0,0,0,0.9)  0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(0,0,0,0.9) 0%, transparent 55%);
  pointer-events: none;
}

/* Pool table centre spot + D line suggestion */
.pool-lines-overlay {
  background-image:
    radial-gradient(circle 3px at 50% 50%, rgba(255,255,255,0.12) 100%, transparent),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 90px 90px, 90px 90px;
}

/* 6 pocket holes — 4 corners + 2 mid-rail */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle 26px at  2.5%  3.5%, #000 65%, transparent 75%),
    radial-gradient(circle 26px at 97.5%  3.5%, #000 65%, transparent 75%),
    radial-gradient(circle 26px at  2.5% 96.5%, #000 65%, transparent 75%),
    radial-gradient(circle 26px at 97.5% 96.5%, #000 65%, transparent 75%),
    radial-gradient(circle 18px at 50%    2%,   #000 65%, transparent 75%),
    radial-gradient(circle 18px at 50%   98%,   #000 65%, transparent 75%);
}

/* Scanlines overlay — subtle game-screen feel */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* ── LIVE HUD BADGE ───────────────────────────────────────── */
.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 18px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(34,197,94,0.15), inset 0 0 12px rgba(34,197,94,0.05);
}

.hud-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80, 0 0 14px #4ade80;
  animation: blinkDot 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #4ade80, 0 0 14px #4ade80; }
  50%       { opacity: 0.3; box-shadow: none; }
}

/* ── HEADLINE ─────────────────────────────────────────────── */
.game-headline {
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-shadow:
    0 0 120px rgba(34, 134, 58, 0.5),
    0 4px 24px rgba(0, 0, 0, 0.9);
}

.game-headline .dot-sep {
  color: var(--gold-vivid);
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.9), 0 0 80px rgba(251, 191, 36, 0.4);
}

.section-headline {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.04em;
}

/* ── MOTTO PILL ───────────────────────────────────────────── */
.motto-pill {
  display: inline-block;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fcd34d;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  padding: 10px 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1rem;
  box-shadow: 0 0 30px rgba(251,191,36,0.1);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(5, 6, 10, 0.97);
  border-color: rgba(251, 191, 36, 0.12);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.8);
}

/* ── POOL BALLS ───────────────────────────────────────────── */
.floating-ball {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 17px;
  color: #fff;
  animation: floatBall 8s ease-in-out infinite;
  position: relative;
}

.floating-ball::before {
  content: '';
  position: absolute;
  top: 12%; left: 18%;
  width: 28%; height: 22%;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  filter: blur(2px);
}

@media (max-width: 640px) {
  .floating-ball { width: 32px; height: 32px; font-size: 10px; }
}

.ball-1 { background: radial-gradient(circle at 38% 35%, #f9e468, #dca800, #7a5c00); box-shadow: inset -6px -6px 14px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.7); }
.ball-2 { background: radial-gradient(circle at 38% 35%, #6fa8f8, #1b5ebe, #08276e); box-shadow: inset -6px -6px 14px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.7); }
.ball-3 { background: radial-gradient(circle at 38% 35%, #f07878, #c02222, #640808); box-shadow: inset -6px -6px 14px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.7); }
.ball-4 { background: radial-gradient(circle at 38% 35%, #c87de8, #7b2d8b, #3a0a50); box-shadow: inset -6px -6px 14px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.7); }
.ball-5 { background: radial-gradient(circle at 38% 35%, #f0ad6a, #d96a18, #7a3408); box-shadow: inset -6px -6px 14px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.7); }
.ball-6 { background: radial-gradient(circle at 38% 35%, #58d490, #1e8c3a, #094f1c); box-shadow: inset -6px -6px 14px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.7); }
.ball-7 { background: radial-gradient(circle at 38% 35%, #c07070, #8c2020, #440808); box-shadow: inset -6px -6px 14px rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.7); }
.ball-8 { background: radial-gradient(circle at 38% 35%, #666, #1a1a1a, #000);       box-shadow: inset -6px -6px 14px rgba(0,0,0,0.65), 0 8px 28px rgba(0,0,0,0.9); }

@keyframes floatBall {
  0%   { transform: translateY(0px)   rotate(0deg);   opacity: 0.5; }
  25%  { transform: translateY(-26px) rotate(90deg);  opacity: 0.8; }
  50%  { transform: translateY(-42px) rotate(180deg); opacity: 0.6; }
  75%  { transform: translateY(-18px) rotate(270deg); opacity: 0.85; }
  100% { transform: translateY(0px)   rotate(360deg); opacity: 0.5; }
}

.floating-ball:nth-child(1) { animation-delay: 0s;    animation-duration: 7s;   }
.floating-ball:nth-child(2) { animation-delay: 1.3s;  animation-duration: 9.5s; }
.floating-ball:nth-child(3) { animation-delay: 0.7s;  animation-duration: 8s;   }
.floating-ball:nth-child(4) { animation-delay: 2.1s;  animation-duration: 10s;  }
.floating-ball:nth-child(5) { animation-delay: 1.6s;  animation-duration: 6.8s; }
.floating-ball:nth-child(6) { animation-delay: 3.2s;  animation-duration: 11s;  }
.floating-ball:nth-child(7) { animation-delay: 2.6s;  animation-duration: 8.8s; }
.floating-ball:nth-child(8) { animation-delay: 0.4s;  animation-duration: 7.5s; }

/* ============================================================
   SECTION COMMON
   ============================================================ */

/* Section label — gold bar + text, game HUD feel */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-vivid);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold-vivid);
  box-shadow: 0 0 8px var(--gold);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  background: #08090b;
}

.step-number-badge {
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: #000;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hexagon */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.step-icon-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #0c0e0c;
  border: 1px solid rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.35s ease;
}

.step-icon-ring::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.08);
  transition: all 0.35s ease;
}

.step-card:hover .step-icon-ring {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.2), inset 0 0 20px rgba(251, 191, 36, 0.04);
}

.step-card:hover .step-icon-ring::before {
  border-color: rgba(251, 191, 36, 0.25);
  inset: -12px;
}

.step-connector {
  position: absolute;
  top: 56px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(251, 191, 36, 0.3) 20%,
    rgba(251, 191, 36, 0.5) 50%,
    rgba(251, 191, 36, 0.3) 80%,
    transparent 100%
  );
}

.step-connector::before,
.step-connector::after {
  content: '›';
  position: absolute;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(251, 191, 36, 0.6);
  font-size: 20px;
  line-height: 1;
}
.step-connector::before { left: 38%; }
.step-connector::after  { left: 54%; }

/* ============================================================
   CHOOSE YOUR TABLE — Game lobby cards
   ============================================================ */
#tables {
  background: #060708;
  position: relative;
}

/* Subtle gold radial so it's not flat black */
#tables::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(251,191,36,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.table-card {
  position: relative;
  background: #0a0b0d;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-top: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Gold accent bar across the top edge */
.table-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 18px; /* stops short of clipped corner */
  height: 2px;
  background: linear-gradient(90deg, var(--tier-color, var(--gold-vivid)) 0%, rgba(251,191,36,0.1) 100%);
  z-index: 2;
}

.table-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.8), 0 0 28px rgba(251,191,36,0.07);
  transform: translateY(-5px);
}

/* Featured (PRO) table — gold border glow */
.table-card--featured {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.15), 0 12px 40px rgba(0,0,0,0.8), 0 0 40px rgba(251,191,36,0.1);
}

.table-card--featured::before {
  background: linear-gradient(90deg, var(--gold-vivid) 0%, rgba(251,191,36,0.4) 100%);
  height: 3px;
}

.table-card--featured:hover {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.3), 0 20px 56px rgba(0,0,0,0.9), 0 0 60px rgba(251,191,36,0.15);
}

/* Felt texture strip at top of each card */
.table-card-felt {
  height: 56px;
  background:
    radial-gradient(ellipse 80% 120% at 50% -10%, #1a5c2a 0%, #0d3318 50%, transparent 100%);
  position: relative;
  flex-shrink: 0;
}

/* Pool table cushion line at bottom of felt strip */
.table-card-felt::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent);
}

.table-card-body {
  padding: 18px 20px 22px;
}

/* Pool ball container inside card */
.table-ball {
  margin-bottom: 14px;
}

/* Tier label — parallelogram chip styled with tier colour */
.table-tier-badge {
  display: inline-block;
  padding: 3px 14px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--tier-color, var(--gold-vivid));
  border: 1px solid var(--tier-color, var(--gold-vivid));
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  opacity: 0.9;
}

/* Stat rows */
.table-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-stat:last-of-type {
  border-bottom: none;
}

.table-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563; /* gray-600 */
}

.table-stat-value {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #d1d5db; /* gray-300 */
}

/* Difficulty pips */
.table-difficulty {
  display: flex;
  gap: 5px;
}

.table-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
}

.table-pip.active {
  background: var(--tier-color, var(--gold-vivid));
  border-color: var(--tier-color, var(--gold-vivid));
  box-shadow: 0 0 6px var(--tier-color, var(--gold-vivid));
}

/* ============================================================
   FEATURES — Game panels on pure black
   ============================================================ */
#features {
  background: #060708;
  position: relative;
}

/* Subtle centre glow so it's not flat-black */
#features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(251,191,36,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.feature-card {
  /* Kill Tailwind rounding and bg */
  border-radius: 0 !important;
  background: #0a0b0d !important;
  border: 1px solid rgba(251, 191, 36, 0.12) !important;
  border-top: none !important;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

/* Gold accent bar along top */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 20px; /* short of the clipped corner */
  height: 2px;
  background: linear-gradient(90deg, var(--gold-vivid) 0%, rgba(251,191,36,0.15) 100%);
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 0 0 0 transparent,
              0 16px 48px rgba(0,0,0,0.8),
              0 0 32px rgba(251, 191, 36, 0.07) !important;
  transform: translateY(-5px) !important;
}

.feature-card:hover::before {
  background: linear-gradient(90deg, #fbbf24 0%, rgba(251,191,36,0.3) 100%);
}

/* Icon box — also angular */
.feature-card .w-14 {
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  background: rgba(251, 191, 36, 0.08) !important;
}

.feature-card:hover .w-14 {
  background: rgba(251, 191, 36, 0.16) !important;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.felt-bg-dark {
  background:
    radial-gradient(ellipse 65% 75% at 50% 50%,
      #16542a 0%,
      #0c3319 35%,
      #070909 70%,
      #05060a 100%
    );
}

/* Big 8-ball */
.ball-8-hero {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #666 0%, #1a1a1a 55%, #000 100%);
  box-shadow:
    inset -12px -12px 24px rgba(0,0,0,0.8),
    0 20px 60px rgba(0,0,0,0.95),
    0 0 70px rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 32px;
  color: #fff;
  position: relative;
}

.ball-8-hero::before {
  content: '';
  position: absolute;
  top: 14%; left: 20%;
  width: 24%; height: 19%;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  filter: blur(3px);
}

/* APK button — parallelogram, hard glow */
#apk-download-btn {
  clip-path: polygon(18px 0%, 100% 0%, calc(100% - 18px) 100%, 0% 100%);
  border-radius: 0 !important;
  animation: pulseGlow 2.4s ease-in-out infinite;
  position: relative;
}

#apk-download-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  clip-path: polygon(18px 0%, 100% 0%, calc(100% - 18px) 100%, 0% 100%);
  border: 1px solid rgba(251, 191, 36, 0.5);
  animation: pulseRing 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 24px rgba(251,191,36,0.45), 0 8px 40px rgba(0,0,0,0.6); }
  50%      { box-shadow: 0 0 70px rgba(251,191,36,0.75), 0 8px 40px rgba(0,0,0,0.6); }
}

@keyframes pulseRing {
  0%,100% { opacity: 0.8; inset: -4px; }
  50%      { opacity: 0.2; inset: -10px; }
}

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: #070809; }

.faq-item {
  background: #0a0b0e !important;
  border-radius: 0 !important;
  border-color: rgba(251, 191, 36, 0.1) !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.faq-item.open {
  background: #0d1009 !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}

.faq-chevron { transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-content { display: none; }
.faq-content.open { display: block; animation: slideDown 0.3s ease; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: #08090b; }

.contact-link {
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  background: #0a0b0d !important;
}

input, textarea, select {
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 0 !important;
  background: #0a0b0d !important;
}
select option { background: #0a0b0d; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #05060a !important;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MOBILE MENU TRANSITION
   ============================================================ */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(5, 6, 10, 0.98) !important;
}
#mobile-menu.open { max-height: 400px; }
#mobile-menu:not(.hidden) { display: block; }
