:root {
  --purple-deep: #0a001a;
  --purple-dark: #150035;
  --purple-mid: #3d0099;
  --purple-light: #6a1bbb;
  --accent-yellow: #ffd700;
  --accent-gold: #ffc107;
  --accent-green: #00e676;
  --text-white: #ffffff;
  --text-muted: #b0a0ca;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --container-width: 1200px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--purple-deep);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 900;
}

p {
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, #fff, var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 0, 26, 0.85);
  backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 24px;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px; /* Optional, makes it clean */
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-white);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent-yellow);
}

.nav-btn {
  background: var(--accent-yellow);
  color: #000 !important;
  padding: 10px 24px;
  border-radius: 12px;
  opacity: 1 !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-btn-alt {
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--glass-bg);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--purple-light);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-green);
  bottom: -50px;
  right: -50px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content .highlight {
  color: var(--accent-yellow);
}

.badge {
  display: inline-block;
  background: rgba(106, 27, 187, 0.2);
  border: 1px solid rgba(106, 27, 187, 0.5);
  color: #c993ff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-primary i {
  font-size: 28px;
}

.btn-primary span {
  font-size: 11px;
  line-height: 1.2;
}

.btn-primary strong {
  font-size: 18px;
  display: block;
}

.btn-primary:hover {
  transform: translateY(-5px);
  background: #222;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 24px;
  color: var(--accent-yellow);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
}

/* ── Phone Mockup ── */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  height: 600px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  border: 6px solid #222;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.game-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.floating-icons .icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: float 4s ease-in-out infinite;
}

.icon-1 { top: 20%; left: -30px; animation-delay: 0s; color: var(--accent-green); }
.icon-2 { top: 60%; right: -30px; animation-delay: 1s; color: var(--accent-yellow); }
.icon-3 { bottom: 10%; left: 0px; animation-delay: 2s; color: var(--purple-light); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ── Features ── */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.f-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
  transition: var(--transition);
}

.f-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  border-color: rgba(255, 215, 0, 0.4);
}

.f-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.f-icon.purple { background: rgba(106, 27, 187, 0.2); color: #c993ff; }
.f-icon.orange { background: rgba(255, 87, 34, 0.2); color: #ffab91; }
.f-icon.yellow { background: rgba(255, 215, 0, 0.2); color: var(--accent-yellow); }
.f-icon.blue { background: rgba(33, 150, 243, 0.2); color: #90caf9; }

.f-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* ── Modes ── */
.modes {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-dark) 100%);
}

.modes-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.modes-info h2 {
    margin-bottom: 30px;
}

.mode-item {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.mode-number {
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.mode-text h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--accent-yellow);
}

.grid-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--glass-bg);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
}

.grid-cell {
  background: rgba(255, 255, 255, 0.1);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border-radius: 8px;
  font-size: 20px;
}

.grid-cell.active {
  background: var(--accent-yellow);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* ── Showcase ── */
.showcase {
  padding: 100px 0;
}

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

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #111;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-yellow);
}

/* ── CTA ── */
.cta {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  padding: 80px 40px;
  border-radius: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 24px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ── Footer ── */
footer {
  padding: 80px 0 0;
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-info p {
  margin-top: 20px;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--accent-yellow);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-container, .modes-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btns, .hero-stats {
    justify-content: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-info p {
    margin: 20px auto 0;
  }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
