/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #FF6B35;
  --primary-dark: #E5501A;
  --secondary: #FFD700;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --bg-dark: #0D0B1F;
  --bg-card: #1A1535;
  --bg-card2: #231D45;
  --text-light: #F0EDFF;
  --text-muted: #A89FCC;
  --gradient-hero: linear-gradient(135deg, #0D0B1F 0%, #1A0A3C 50%, #0D0B1F 100%);
  --gradient-btn: linear-gradient(135deg, #FF6B35, #FF9A00);
  --gradient-card: linear-gradient(135deg, #1A1535, #231D45);
  --font-main: 'Nunito', 'Segoe UI', sans-serif;
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ===== STARS BACKGROUND ===== */
.stars-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--op, 0.8); }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 11, 31, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 11, 31, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
}

.nav-logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  -webkit-text-fill-color: var(--text-muted);
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
  background: rgba(124, 58, 237, 0.2);
}

.nav-links a.active {
  color: var(--secondary);
}

.nav-cta {
  background: var(--gradient-btn) !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== PAGE WRAPPER ===== */
.page {
  position: relative;
  z-index: 1;
  display: none;
}
.page.active {
  display: block;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle var(--dur, 6s) ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-40px) rotate(180deg); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FF6B35, #FFD700, #FF6B35);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating game icons */
.hero-float {
  position: absolute;
  pointer-events: none;
  animation: floatIcon var(--dur, 4s) ease-in-out infinite var(--delay, 0s);
  opacity: 0.15;
  font-size: 4rem;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 10deg)); }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 5%;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== DIVIDER ===== */
.divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-btn);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== HOME - FEATURED GAMES STRIP ===== */
.games-strip {
  padding: 60px 5%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(255,107,53,0.05) 100%);
  border-top: 1px solid rgba(124,58,237,0.15);
  border-bottom: 1px solid rgba(124,58,237,0.15);
}

.games-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-strip-card {
  background: var(--gradient-card);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-strip-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(124,58,237,0.3);
}

.game-strip-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-strip-info {
  padding: 20px;
}

.game-strip-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--secondary);
}

.game-strip-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== HOME - FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-btn);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-light);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  background: linear-gradient(135deg, #0D0B1F 0%, #1A0A3C 100%);
  text-align: center;
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
}

.about-text-block {
  max-width: 1100px;
  margin: 0 auto;
}

.about-intro {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.about-grid.reverse {
  direction: rtl;
}

.about-grid.reverse > * {
  direction: ltr;
}

.about-visual {
  background: var(--gradient-card);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-visual-emoji {
  font-size: 6rem;
  display: block;
  margin-bottom: 16px;
}

.about-visual-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--secondary);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.philosophy-box {
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.philosophy-quote {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.philosophy-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.team-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background: var(--gradient-card);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,53,0.4);
  box-shadow: 0 12px 30px rgba(255,107,53,0.15);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PRODUCTS PAGE ===== */
.products-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  background: linear-gradient(135deg, #0D0B1F 0%, #1A0A3C 100%);
  text-align: center;
}

.product-card {
  max-width: 1100px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--gradient-card);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 20px 60px rgba(124,58,237,0.2);
}

.product-card.reverse {
  direction: rtl;
}

.product-card.reverse > * {
  direction: ltr;
}

.product-img-wrap {
  overflow: hidden;
  height: 320px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-info {
  padding: 40px 48px 40px 20px;
}

.product-card.reverse .product-info {
  padding: 40px 20px 40px 48px;
}

.product-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--secondary);
  line-height: 1.2;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tag {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===== PRIVACY PAGE ===== */
.privacy-hero {
  min-height: 35vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  background: linear-gradient(135deg, #0D0B1F 0%, #1A0A3C 100%);
  text-align: center;
}

.privacy-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5% 100px;
}

.privacy-intro {
  background: var(--gradient-card);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.privacy-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.privacy-body p {
  margin-bottom: 12px;
}

.privacy-body ul {
  padding-left: 20px;
  margin: 12px 0;
}

.privacy-body ul li {
  margin-bottom: 6px;
}

.privacy-highlight {
  background: rgba(255,107,53,0.08);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.privacy-last {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(124,58,237,0.15);
}

/* ===== FOOTER ===== */
footer {
  background: #08071A;
  border-top: 1px solid rgba(124,58,237,0.15);
  padding: 60px 5% 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand .nav-logo-text {
  font-size: 1.4rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 32px;
  border-top: 1px solid rgba(124,58,237,0.1);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid.reverse {
    direction: ltr;
  }
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-card.reverse {
    direction: ltr;
  }
  .product-img-wrap {
    height: 240px;
  }
  .product-info {
    padding: 32px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(13,11,31,0.97);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(124,58,237,0.2);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }
  .hamburger {
    display: flex;
  }
  .games-strip-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-card {
    margin-bottom: 40px;
  }
  .about-grid {
    gap: 24px;
  }
}

/* ===== LOGO SVG ===== */
.logo-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
