﻿/* ==========================================================================
   CARROM MASTER - ULTRA-MODERN GAME SHOWCASE STYLING (V3)
   ========================================================================== */
:root {
  --bg: #060914;
  --bg-deep: #03050c;
  --bg-card: rgba(14, 21, 48, 0.7);
  --bg-card-hover: rgba(22, 34, 76, 0.9);
  --panel: #0f1738;
  --gold: #f7c948;
  --gold-glow: rgba(247, 201, 72, 0.45);
  --gold-gradient: linear-gradient(135deg, #fff5d1 0%, #f7c948 45%, #e09e19 100%);
  --cyan: #38bdf8;
  --green: #10b981;
  --purple: #a855f7;
  --text: #ffffff;
  --text-dim: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(247, 201, 72, 0.35);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.18) 0px, transparent 55%),
    radial-gradient(at 50% 25%, rgba(247, 201, 72, 0.09) 0px, transparent 65%),
    radial-gradient(circle 900px at 50% 100%, #111a40 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: #ffe68a; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }

/* ---------- Floating Header ---------- */
header.top {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: -72px;
  pointer-events: none;
}

header.top .wrap {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 26px;
  background: rgba(9, 14, 34, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(247, 201, 72, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

nav.links { display: flex; align-items: center; gap: 24px; }
nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: var(--transition);
  position: relative;
}
nav.links a:hover { color: #ffffff; }
nav.links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
  border-radius: 2px;
}
nav.links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(247, 201, 72, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold) !important;
  font-size: 13.5px;
  font-weight: 700;
}
.nav-cta:hover {
  background: var(--gold);
  color: #0b1433 !important;
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  header.top { top: 10px; }
  header.top .wrap { padding: 10px 18px; }
  nav.links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons & CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
  background: var(--gold-gradient);
  color: #3b2100;
  box-shadow: 0 10px 30px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 42px rgba(247, 201, 72, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #1a0f00;
}
.btn:hover::before { left: 100%; }

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.google-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
  transition: var(--transition);
}
.google-play-btn:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 16px 38px rgba(247, 201, 72, 0.28);
}
.google-play-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.gp-texts { text-align: left; line-height: 1.2; }
.gp-top { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #a1a1aa; }
.gp-bottom { font-size: 17px; font-weight: 700; color: #ffffff; }

/* ---------- Hero Section ---------- */
.hero {
  padding: 144px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 18px var(--green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}
.hero h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(247, 201, 72, 0.35);
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 580px;
  line-height: 1.7;
}

.hero .cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.stars-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
}
.stars { color: #fbbf24; letter-spacing: 2px; }

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

/* Hero Phone Mockup with Device Glare */
.hero .art {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-frame {
  position: relative;
  width: min(225px, 65vw);
  margin: 0 auto;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(165deg, #3f475a 0%, #151b2d 50%, #060914 100%);
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 30px 80px -15px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(247, 201, 72, 0.28);
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}
.mockup-frame:hover { transform: rotate(0deg) scale(1.02); }

.mockup-screen {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.mockup-screen img {
  width: 100%;
  display: block;
}
.mockup-screen::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 40%);
  pointer-events: none;
}

.float-chip {
  position: absolute;
  padding: 12px 18px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(14, 21, 48, 0.94);
  border: 1px solid var(--border-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 22px rgba(247, 201, 72, 0.18);
  backdrop-filter: blur(14px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.float-chip.a {
  top: 15%;
  left: -26%;
  animation: floatSlow 4s ease-in-out infinite;
}
.float-chip.b {
  bottom: 18%;
  right: -26%;
  animation: floatReverse 4.5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatReverse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto 30px; }
  .hero .cta { justify-content: center; }
  .trust-row { justify-content: center; }
  .badges { justify-content: center; }
  .float-chip { display: none; }
  .mockup-frame { transform: none; }
}

/* ---------- Stat Strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  transition: var(--transition);
}
.stat:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
.stat b {
  display: block;
  font-size: 34px;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section Headings ---------- */
section { padding: 68px 0; position: relative; }
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: -0.5px;
}
p.sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 52px;
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---------- Features Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.three { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(247, 201, 72, 0.45);
  box-shadow: 0 20px 48px rgba(0,0,0,0.55), 0 0 26px rgba(247, 201, 72, 0.16);
}
.card .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(247, 201, 72, 0.12);
  border: 1px solid rgba(247, 201, 72, 0.3);
  font-size: 26px;
  margin-bottom: 20px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Game Mode Cards with dynamic accents */
.mode { padding-top: 32px; }
.mode::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--gold));
  box-shadow: 0 2px 14px var(--accent, var(--gold));
}
.mode .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent, var(--gold));
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ==========================================================================
   IN-GAME VISUALS SHOWCASE (High-End Device Mockups Gallery)
   ========================================================================== */
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 38px;
}
.gallery-tab {
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-tab.active, .gallery-tab:hover {
  background: var(--gold-gradient);
  color: #0b1433;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--gold-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
}

.visual-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px;
  backdrop-filter: blur(16px);
  text-align: center;
  transition: var(--transition);
}
.visual-item:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(247, 201, 72, 0.15);
}

.device-card {
  position: relative;
  width: 100%;
  max-width: 195px;
  margin: 0 auto 18px;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(165deg, #374151 0%, #171d2c 50%, #060914 100%);
  box-shadow: 
    0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 16px 36px rgba(0, 0, 0, 0.65);
}

.device-card .screen-wrap {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.device-card .screen-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.visual-item:hover .device-card .screen-wrap img {
  transform: scale(1.03);
}

.visual-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  background: rgba(247, 201, 72, 0.12);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.visual-item h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: #ffffff;
}
.visual-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Tablet Showcase Banner */
.tablet-showcase-box {
  margin: 50px auto 0;
  max-width: 720px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.tablet-frame {
  max-width: 320px;
  margin: 24px auto;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(165deg, #4b5563, #1f2937, #0b0f19);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2), 0 25px 60px rgba(0,0,0,0.7);
}
.tablet-screen {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.tablet-screen img {
  width: 100%;
  display: block;
}

/* ---------- FAQ Section ---------- */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: var(--transition);
  cursor: pointer;
}
details[open] {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.25s ease;
}
details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
details p {
  color: var(--text-dim);
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Download Banner (Footer CTA) ---------- */
.band {
  margin: 30px auto 0;
  padding: 56px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, #2e1065 0%, #1e1b4b 40%, #064e3b 100%);
  border: 1px solid rgba(247, 201, 72, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(247, 201, 72, 0.2), transparent 70%);
  pointer-events: none;
}
.band h2 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 44px); }
.band p { color: #e2e8f0; margin: 0 auto 30px; font-size: 1.15rem; max-width: 600px; }

/* ---------- Legal & Doc Pages ---------- */
.doc { padding: 80px 0 100px; }
.doc .wrap { max-width: 840px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; margin-bottom: 24px; }
.doc h2 { text-align: left; font-size: 1.45rem; margin-top: 36px; color: var(--gold); }
.doc p, .doc li { color: #cbd5e1; font-size: 1.02rem; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 24px; margin-bottom: 20px; }
.doc li { margin-bottom: 8px; }

/* ---------- Forms ---------- */
form.box {
  display: grid;
  gap: 18px;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}
form.box label {
  font-weight: 600;
  display: grid;
  gap: 8px;
  color: #f1f5f9;
  font-size: 0.95rem;
}
form.box input, form.box textarea, form.box select {
  font: inherit;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 12, 28, 0.85);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
form.box input:focus, form.box textarea:focus, form.box select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}
form.box button {
  justify-self: start;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
  background: rgba(4, 7, 17, 0.6);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); margin-right: 18px; }
footer a:hover { color: var(--gold); }

