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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0f0f1a;
  color: #e8dcc8;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: #d4a574;
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(212, 165, 116, 0.35);
  border-radius: 50%;
  animation: float linear infinite;
  box-shadow: 0 0 6px rgba(212, 165, 116, 0.2);
}

.particle.large {
  width: 6px;
  height: 6px;
  background: rgba(139, 107, 176, 0.3);
  box-shadow: 0 0 10px rgba(139, 107, 176, 0.25);
}

@keyframes float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  5% { opacity: 0.9; }
  50% { opacity: 0.7; }
  85% { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(0.4); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(15, 15, 26, 0.95);
  border-bottom-color: rgba(212, 165, 116, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #d4a574;
  letter-spacing: 0.5px;
}

.nav-btn {
  padding: 8px 24px;
  background: #d4a574;
  color: #0f0f1a;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #e0b88a;
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a15 0%, #0f0f1a 40%, #151528 70%, #1a1a2e 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: 100px;
  color: #d4a574;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #e8dcc8;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #a89968;
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero cards */
.hero-cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-top: 56px;
  perspective: 800px;
}

.hero-card-img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(212, 165, 116, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

.hero-card-img:first-child {
  transform: rotate(-8deg) translateX(20px);
}

.hero-card-img.hero-card-center {
  width: 180px;
  height: 250px;
  z-index: 2;
  border-color: #d4a574;
  transform: translateY(-10px);
}

.hero-card-img:last-child {
  transform: rotate(8deg) translateX(-20px);
}

.hero-cards:hover .hero-card-img:first-child {
  transform: rotate(-12deg) translateX(10px) translateY(-5px);
}

.hero-cards:hover .hero-card-img.hero-card-center {
  transform: translateY(-18px) scale(1.03);
}

.hero-cards:hover .hero-card-img:last-child {
  transform: rotate(12deg) translateX(-10px) translateY(-5px);
}

/* ===== STORE BUTTONS ===== */
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 165, 116, 0.3);
  background: rgba(26, 26, 46, 0.8);
  transition: all 0.3s ease;
  cursor: pointer;
}

.store-btn:hover {
  border-color: #d4a574;
  background: rgba(212, 165, 116, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 165, 116, 0.12);
}

.store-icon {
  width: 28px;
  height: 28px;
  color: #d4a574;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-label {
  font-size: 11px;
  color: #a89968;
  line-height: 1.2;
}

.store-name {
  font-size: 17px;
  font-weight: 700;
  color: #e8dcc8;
  line-height: 1.3;
}

/* ===== SECTION COMMON ===== */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #e8dcc8;
}

.section-subtitle {
  font-size: 16px;
  color: #a89968;
  text-align: center;
  margin-bottom: 56px;
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #12122a 30%, #161630 60%, #0f0f22 100%);
}

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

.feature-card {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid #3a3a4e;
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: rgba(212, 165, 116, 0.35);
  background: rgba(42, 42, 62, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #d4a574;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  color: #a89968;
  line-height: 1.7;
}

.feature-previews {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.feature-preview {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.2);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.feature-preview:hover {
  opacity: 1;
}

.games-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-preview-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.feature-preview-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ===== GAMES GALLERY ===== */
.games-gallery {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: linear-gradient(180deg, #0f0f22 0%, #18142a 30%, #1f1530 50%, #18142a 70%, #0f0f22 100%);
}

.games-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #3a3a4e;
  aspect-ratio: 0.75;
  transition: all 0.3s ease;
  cursor: default;
}

.game-card:hover {
  border-color: #d4a574;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(15, 15, 26, 0.95));
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-overlay-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.game-label {
  font-size: 15px;
  font-weight: 700;
  color: #d4a574;
}

/* ===== SPREADS ===== */
.spreads {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, #0f0f22 0%, #0d0d1e 40%, #111125 70%, #14142c 100%);
}

.spreads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spread-card {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid #3a3a4e;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.spread-card:hover {
  border-color: rgba(212, 165, 116, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.spread-img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}

.spread-info {
  padding: 16px;
}

.spread-name {
  font-size: 16px;
  font-weight: 700;
  color: #e8dcc8;
  margin-bottom: 4px;
}

.spread-desc {
  font-size: 13px;
  color: #a89968;
}

/* ===== ADVANTAGES ===== */
.advantages {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: linear-gradient(180deg, #14142c 0%, #1a1835 30%, #1e1a38 50%, #1a1835 70%, #12122a 100%);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  margin-bottom: 56px;
}

.advantage-item {
  text-align: center;
  padding: 32px 16px;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid #3a3a4e;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateY(-2px);
}

.advantage-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.advantage-number {
  font-size: 48px;
  font-weight: 800;
  color: #d4a574;
  line-height: 1;
  margin-bottom: 8px;
}

.advantage-label {
  font-size: 14px;
  color: #a89968;
}

.perks-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #e8dcc8;
}

.perk-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, #12122a 0%, #0f0f1a 50%, #0a0a15 100%);
}

.cta-content {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 24px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 107, 176, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-text {
  font-size: 17px;
  color: #a89968;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid rgba(212, 165, 116, 0.25);
  background: linear-gradient(180deg, #0e0e1e 0%, #1a1530 100%);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: #d4a574;
  transition: color 0.3s ease;
}

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

.footer-copy {
  font-size: 13px;
  color: #8b7bb0;
}

.footer-developer {
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  padding-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-developer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-developer-link:hover {
  opacity: 0.8;
}

.footer-developer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-developer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-developer-name {
  font-size: 14px;
  font-weight: 600;
  color: #d4a574;
}

.footer-developer-desc {
  font-size: 12px;
  color: #7a7a8e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-scroll {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .spreads-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card-img {
    width: 120px;
    height: 170px;
  }

  .hero-card-img.hero-card-center {
    width: 140px;
    height: 195px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .perks-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .cta-content {
    padding: 48px 20px;
  }

  .games-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .spreads-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card-img {
    width: 100px;
    height: 140px;
  }

  .hero-card-img.hero-card-center {
    width: 120px;
    height: 168px;
  }
}

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .advantage-number {
    font-size: 36px;
  }

  .navbar {
    padding: 12px 0;
  }

  .games-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .spreads-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    margin-top: 40px;
  }

  .hero-card-img {
    width: 85px;
    height: 120px;
  }

  .hero-card-img.hero-card-center {
    width: 100px;
    height: 140px;
  }
}
