/* ================================================
   BITEFOUR GAMES — Design System
   Colors: #0F172A (bg) | #1E293B (cards) | #38BDF8 (primary) | #FFFFFF (text) | #94A3B8 (secondary)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:          #0F172A;
  --bg-card:     #1E293B;
  --bg-card-2:   #162032;
  --primary:     #38BDF8;
  --primary-glow:#38BDF840;
  --primary-dark:#0EA5E9;
  --text:        #FFFFFF;
  --secondary:   #94A3B8;
  --border:      #334155;
  --success:     #4ADE80;
  --font-head:   'Outfit', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(56,189,248,0.25);
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { color: var(--secondary); }

/* ── Utility Classes ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-center    { text-align: center; }
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(56,189,248,0.3);
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(56,189,248,0.12);
  color: var(--primary);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #0F172A;
  box-shadow: 0 0 24px rgba(56,189,248,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(56,189,248,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51,65,85,0.5);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(15,23,42,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.nav-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: rgba(255,255,255,0.06);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.nav-logo:hover img {
  background: rgba(56,189,248,0.08);
  border-color: rgba(56,189,248,0.25);
}
.nav-logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-links a.nav-cta {
  background: var(--primary);
  color: #0F172A;
  font-weight: 600;
}
.nav-links a.nav-cta:hover {
  background: var(--primary-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(129,140,248,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { }
.hero-badge { margin-bottom: 24px; }
.hero-title { margin-bottom: 20px; }
.hero-desc {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-mockup {
  position: relative;
  width: 280px;
  height: 500px;
  background: var(--bg-card);
  border-radius: 36px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(56,189,248,0.15), var(--shadow-card);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: var(--transition);
}
.hero-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 0 100px rgba(56,189,248,0.25), var(--shadow-card);
}
.hero-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-mockup-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, #1E293B 0%, #162032 100%);
}
.hero-mockup-placeholder .game-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-glow);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 1px solid rgba(56,189,248,0.3);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.hero-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--secondary);
  margin-top: 2px;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 300px; height: 300px;
  background: var(--primary);
  top: 10%; right: -5%;
  animation-delay: 0s;
}
.orb-2 {
  width: 200px; height: 200px;
  background: #818cf8;
  bottom: 15%; left: -5%;
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ══════════════════════════════
   SECTION HEADER
══════════════════════════════ */
.section-header {
  margin-bottom: 56px;
}
.section-header.text-center { text-align: center; }
.section-header h2 { margin: 12px 0 16px; }
.section-header p  { font-size: 1.05rem; max-width: 560px; }
.section-header.text-center p { margin: 0 auto; }

/* ══════════════════════════════
   GAMES SECTION
══════════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.game-card:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.game-card-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #162032, #1E293B);
  overflow: hidden;
}
.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.game-card:hover .game-card-image img {
  transform: scale(1.06);
}
.game-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.game-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-live {
  background: rgba(74,222,128,0.2);
  color: var(--success);
  border: 1px solid rgba(74,222,128,0.3);
}
.status-soon {
  background: rgba(251,191,36,0.15);
  color: #FCD34D;
  border: 1px solid rgba(251,191,36,0.25);
}
.game-card-body {
  padding: 24px;
}
.game-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.game-card-body h3 { color: var(--text); margin-bottom: 8px; }
.game-card-body p  { font-size: 0.9rem; margin-bottom: 20px; }
.game-card-actions { display: flex; gap: 10px; align-items: center; }

/* Coming Soon Card */
.game-card-coming {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 340px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  gap: 12px;
  padding: 32px;
  transition: var(--transition);
}
.game-card-coming:hover {
  border-color: rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.03);
}
.coming-icon {
  font-size: 3rem;
  opacity: 0.5;
}

/* ══════════════════════════════
   ABOUT / STUDIO
══════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.about-feature:hover { border-color: rgba(56,189,248,0.3); }
.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(56,189,248,0.2);
}
.about-feature h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }
.about-feature p  { font-size: 0.85rem; }

/* ══════════════════════════════
   TEAM SECTION (Preview)
══════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.team-card:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.82rem; color: var(--primary); font-weight: 500; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.footer-logo span { color: var(--primary); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--secondary);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--secondary);
}
.social-link:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ══════════════════════════════
   GAME DETAIL PAGE
══════════════════════════════ */
.game-hero {
  padding-top: 76px;
  position: relative;
  overflow: hidden;
}
.game-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(56,189,248,0.1) 0%, transparent 70%);
}
.game-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.game-app-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.game-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-hero-content h1 { margin-bottom: 16px; }
.game-hero-content .desc { font-size: 1.05rem; margin-bottom: 32px; max-width: 460px; }
.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--text);
  color: #0F172A;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.store-btn.store-dark {
  background: #1a1a2e;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.store-btn.store-dark:hover { border-color: var(--primary); }
.store-btn-icon { font-size: 1.5rem; }
.store-btn-text { display: flex; flex-direction: column; }
.store-btn-sub  { font-size: 0.65rem; font-weight: 400; opacity: 0.8; }
.store-btn-name { font-size: 0.95rem; font-weight: 700; }

.game-meta-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.game-hero-visual { display: flex; justify-content: center; }
.game-screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.game-screen-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9/16;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.75rem;
  text-align: center;
  padding: 8px;
}
.game-screen-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Trailer */
.trailer-section { background: var(--bg-card-2); }
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  gap: 16px;
  cursor: pointer;
}
.video-play-btn {
  width: 70px; height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #0F172A;
  transition: var(--transition);
}
.video-play-btn:hover { transform: scale(1.1); }

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.screenshot-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9/16;
  background: var(--bg-card);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
}
.screenshot-item:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(56,189,248,0.35);
  transform: translateY(-3px);
}
.feature-card .f-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p  { font-size: 0.87rem; }

/* ══════════════════════════════
   SUPPORT PAGE
══════════════════════════════ */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56,189,248,0.1) 0%, transparent 70%);
}
.page-hero h1 { position: relative; z-index: 1; margin-bottom: 16px; }
.page-hero p  { position: relative; z-index: 1; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.support-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.support-form-card h2 { margin-bottom: 8px; font-size: 1.4rem; }
.support-form-card > p { margin-bottom: 28px; font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.form-control::placeholder { color: #475569; }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-card); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 12px; }
.form-success h3 { margin-bottom: 8px; }

.support-info { display: flex; flex-direction: column; gap: 20px; }
.support-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.support-info-card:hover { border-color: rgba(56,189,248,0.3); }
.support-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--primary-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(56,189,248,0.2);
}
.support-info-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.support-info-card p  { font-size: 0.85rem; }
.support-info-card a  { color: var(--primary); font-weight: 500; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.faq-q:hover { background: rgba(56,189,248,0.05); }
.faq-q .faq-arrow {
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  background: var(--bg);
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}
.faq-a.open {
  max-height: 200px;
  padding: 16px 20px;
}

/* ══════════════════════════════
   TEAM PAGE
══════════════════════════════ */
.team-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.team-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.team-page-card:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.team-img {
  height: 220px;
  background: linear-gradient(135deg, #162032, #1E293B);
  overflow: hidden;
  position: relative;
}
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.team-card-body { padding: 24px; }
.team-card-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card-body .role {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.team-card-body .bio { font-size: 0.85rem; margin-bottom: 16px; }
.team-socials { display: flex; justify-content: center; gap: 8px; }
.team-social-link {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  color: var(--secondary);
}
.team-social-link:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

/* ══════════════════════════════
   LEGAL / POLICY PAGES
══════════════════════════════ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
  color: var(--primary);
}
.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}
.legal-content p {
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 14px;
  color: var(--secondary);
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--secondary);
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}

/* ══════════════════════════════
   TOAST / NOTIFICATION
══════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   LIGHTBOX
══════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ══════════════════════════════
   SCROLL TO TOP
══════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #0F172A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 500;
  border: none;
  box-shadow: 0 0 20px rgba(56,189,248,0.4);
}
.scroll-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-2px) scale(1.05); }

/* ══════════════════════════════
   DIVIDER
══════════════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(16px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats  { justify-items: center; }
  .hero-mockup { transform: none; }

  .about-grid  { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .game-hero-inner { grid-template-columns: 1fr; }
  .game-screens { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
  .page-hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .store-buttons { flex-direction: column; }
  .store-btn { width: 100%; }
  .toast { right: 16px; bottom: 16px; left: 16px; }
  .scroll-top { right: 16px; bottom: 80px; }
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(56,189,248,0.2); }
  50%       { box-shadow: 0 0 40px rgba(56,189,248,0.45); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Intersection Observer triggered */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════
   MISC
══════════════════════════════ */
.no-select { user-select: none; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
