:root {
  /* Palette */
  --bg-dark: #0f0c29;
  --bg-darker: #0b091e;
  --primary: #7c5cff;
  --primary-hover: #6c4eff;
  --secondary: #302b63;
  --accent: #ff4b8b;
  --accent-teal: #00d2ff;
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(15, 12, 41, 0.7);
  
  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  
  /* Fonts */
  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
  --glow: 0 0 20px rgba(124, 92, 255, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Decoration */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(124, 92, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 75, 139, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-item {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-item:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.hero-content {
  max-width: 540px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-full);
  color: #a08cff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.trust-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(255, 75, 139, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 75, 139, 0.5);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Quiz Card */
.quiz-card {
  background: rgba(20, 18, 45, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.quiz-header {
  margin-bottom: 24px;
}

.quiz-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.quiz-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.select-wrapper {
  position: relative;
}

select {
  width: 100%;
  appearance: none;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Results Area */
.results-area {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge-soft {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-teal);
  border-radius: var(--radius-full);
  font-weight: 700;
}

.games-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s;
}

.game-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.game-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.game-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-link {
  font-size: 0.75rem;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.2s;
}

.store-link:hover {
  background: var(--primary);
  color: white;
}

.results-footer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Features Section */
.features-section {
  margin-bottom: 100px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--surface-hover);
  border-color: rgba(124, 92, 255, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(255, 75, 139, 0.05));
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 80px;
  border: 1px solid var(--border);
}

.newsletter-content {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.newsletter-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-family: var(--font-body);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.micro-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .cta-group {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none; /* Simple hide for mobile for now, or could be hamburger */
  }
}