@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Unica+One&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css');

:root {
  --primary-color: #8B5CF6;
  --secondary-color: #0B1120;
  --third-color: #1E1B4B;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5F5;
  --accent-primary: #FFCF4A;
  --accent-secondary: #00F5C4;
  --card-glow: rgba(139, 92, 246, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.35), transparent 40%),
              radial-gradient(circle at bottom right, rgba(0, 245, 196, 0.25), transparent 35%),
              #050714;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}


a {
  text-decoration: none;
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  width: auto;
}

.btn {
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  letter-spacing: 0.5px;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.navbar {
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .logo img {
  height: 50px;
  align-items: center;
}

.navbar-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.navbar-menu li a {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar-menu li a:hover {
  color: var(--primary-color);
}

.navbar .auth-buttons {
  display: flex;
  gap: 10px;
}

.btn-login {
  background: var(--text-primary);
  color: var(--secondary-color);
  border: 2px solid transparent;
}

.btn-register {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-login:hover,
.btn-register:hover,
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  position: relative;
  margin-top: 30px;
  padding: 70px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(76, 29, 149, 0.95));
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/lines.svg') repeat;
  opacity: 0.08;
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-content h1 {
  font-size: 2.6rem;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.hero-content p {
  margin-bottom: 35px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.final-thoughts {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 40px;
}

.final-thoughts-banner {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
}

.final-thoughts-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
}

.final-thoughts-intro {
  flex: 1;
  max-width: 50%;
  padding: 30px;
  background-color: var(--secondary-color);
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.final-thoughts-intro h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.final-thoughts-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.why-choose {
  display: block;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.why-choose-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
}

.why-choose-intro h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.why-choose-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-choose-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.why-choose-card {
  flex: 1;
  min-width: 200px;
  background-color: var(--third-color);
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  transition: transform 0.3s ease;
}

.why-choose-card:hover {
  transform: translateY(-5px);
}

.why-choose-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.why-choose-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-choose-card i {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.games {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.games-intro h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.game-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 18px;
  padding: 20px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 207, 74, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
}

.game-card:hover::after {
  opacity: 1;
}

.game-card h4 {
  margin: 15px 0 8px;
  font-size: 1.1rem;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: var(--accent-primary);
  color: var(--secondary-color);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-play:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #050714;
}

.interactive-games {
  margin-top: 60px;
  padding: 40px;
  background: rgba(6, 10, 25, 0.85);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.interactive-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 30px;
}

.game-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.play-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border 0.3s ease, transform 0.3s ease;
}

.play-card.active,
.play-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 10px;
}

.game-playground {
  background: rgba(10, 15, 35, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.game-area {
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.placeholder {
  text-align: center;
  color: var(--text-secondary);
}

.placeholder span {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.slot-machine .slot-reels {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.slot-machine .slot-reels span {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-result,
.result-text {
  margin-top: 15px;
  text-align: center;
  color: var(--text-secondary);
}

.blackjack-sandbox .cards,
.baccarat-sandbox .cards {
  display: flex;
  gap: 10px;
  font-size: 2rem;
}

.roulette-sandbox .wheel {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 3rem;
}

.wheel.spinning {
  animation: spin 1.2s ease-in-out;
}

.game-log {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 200px;
  overflow-y: auto;
}

.game-log h5 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--accent-secondary);
}

.game-log ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* new sections */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.game-spectrum {
  margin-top: 40px;
  background: rgba(17, 24, 39, 0.85);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spectrum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.spectrum-card {
  padding: 24px;
  border-radius: 18px;
  color: var(--text-primary);
  min-height: 200px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.spectrum-card .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
}

.spectrum-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.spectrum-card.violet {
  background: linear-gradient(135deg, #5B21B6, #9333EA);
}

.spectrum-card.cyan {
  background: linear-gradient(135deg, #0F766E, #2DD4BF);
}

.spectrum-card.gold {
  background: linear-gradient(135deg, #B45309, #FBBF24);
  color: #1A1205;
}

.spectrum-card.magenta {
  background: linear-gradient(135deg, #BE185D, #F472B6);
}

.live-events {
  margin-top: 40px;
  padding: 40px;
  background: rgba(9, 12, 24, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.events-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.event-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.event-time {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.demo-lab {
  margin-top: 40px;
}

.demo-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px;
  background: rgba(22, 16, 33, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.panel-content ul {
  margin: 20px 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  animation: pulse 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.radar span {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: ripple 4s ease-out infinite;
}

.radar span:nth-child(2) {
  animation-delay: 1s;
}

.radar span:nth-child(3) {
  animation-delay: 2s;
}

.xp-journey {
  margin-top: 40px;
  padding: 40px;
  background: rgba(9, 12, 24, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.journey-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.journey-step {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 170px;
}

.step-number {
  font-family: 'Unica One', cursive;
  font-size: 2rem;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 10px;
}

.support-hub {
  margin-top: 40px;
  padding: 40px;
  background: rgba(17, 24, 39, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.support-grid article {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 170px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.support-grid article h4 {
  margin-bottom: 10px;
}

@keyframes ripple {
  0% { transform: scale(0.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0; }
}

.faq {
  margin-top: 20px;
  padding: 30px;
  border-radius: 10px;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-item {
  background-color: var(--third-color);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-item h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.faq-item.active p {
  max-height: 500px;
  opacity: 1;
}

.footer {
  background-color: var(--secondary-color);
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  height: 50px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-copy p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 1024px) {
  .navbar {
    padding: 20px 40px;
    flex-wrap: wrap;
  }

  .final-thoughts {
    flex-direction: column;
  }

  .final-thoughts-banner,
  .final-thoughts-intro {
    max-width: 100%;
    border-radius: 10px;
  }

  .final-thoughts-intro {
    padding: 20px;
  }

  .why-choose-grid {
    flex-direction: column;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games {
    padding: 20px;
  }

  .faq {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .navbar .auth-buttons {
    margin-top: 10px;
    width: 100%;
    gap: 20px;
    justify-content: center;
  }

  .navbar-menu {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .hero {
    padding: 30px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .final-thoughts-intro h3,
  .why-choose-intro h2,
  .games-intro h3,
  .faq h3 {
    font-size: 1.3rem;
  }

  .footer-container {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar-menu {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
  }

  .navbar .auth-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .final-thoughts-intro {
    padding: 15px;
  }

  .why-choose-details {
    padding: 20px;
  }

  .games {
    padding: 15px;
  }

  .faq {
    padding: 15px;
  }

  .footer {
    padding: 30px 15px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
