:root {
  /* Main Background */
  --bg-primary: #F6F8FC;
  --bg-secondary: #EEF2FF;
  --bg-surface: #FFFFFF;

  /* Primary Accents */
  --accent-royal: #4F46E5;
  --accent-bright: #6366F1;
  --accent-sky: #60A5FA;

  /* Secondary Accents */
  --accent-mint: #34D399;
  --accent-golden: #FBBF24;
  --accent-lavender: #A78BFA;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  /* Utility */
  --radius-btn: 14px;
  --radius-card: 20px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(79, 70, 229, 0.1), 0 4px 6px -2px rgba(79, 70, 229, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(79, 70, 229, 0.15), 0 10px 10px -5px rgba(79, 70, 229, 0.04);
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.1rem; }

/* Container */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container { width: 95%; }
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-royal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-hex {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-royal), var(--accent-sky));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-royal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-royal), var(--accent-bright));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-sky));
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--accent-royal);
  border: 2px solid var(--accent-royal);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: radial-gradient(circle at top right, var(--bg-secondary), var(--bg-primary));
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-subtitle {
  color: var(--accent-royal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2.5rem; }

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Hero Artwork / Hexagons */
.hero-artwork {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

/* Floating Elements */
.floating-item {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.hex-tile {
  width: 80px;
  height: 80px;
  background: var(--bg-surface);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-royal);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--bg-secondary);
}

.hex-1 { top: 10%; left: 10%; animation-delay: 0s; background: var(--accent-golden); color: white; }
.hex-2 { top: 70%; left: -5%; animation-delay: 1.5s; background: var(--accent-mint); color: white; }
.hex-3 { top: 20%; right: 5%; animation-delay: 3s; background: var(--accent-lavender); color: white; }
.hex-4 { bottom: 15%; right: 15%; animation-delay: 4.5s; background: var(--accent-sky); color: white; }

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

/* Game Section */
.game-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
  text-align: center;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.game-container {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: linear-gradient(135deg, var(--accent-royal), var(--accent-mint));
  z-index: -1;
  border-radius: calc(var(--radius-card) + 10px);
  opacity: 0.1;
}

.game-iframe {
  width: 100%;
  height: 700px;
  border: none;
  border-radius: calc(var(--radius-card) - 5px);
  background-color: #000; /* Pre-load background */
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--bg-surface);
  position: relative;
}

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

.feature-card {
  background: var(--bg-primary);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bg-secondary);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-royal);
}

/* Discovery Section */
.discovery {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.discovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.discovery-image {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}

.discovery-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.discovery-list .check {
  background: var(--accent-mint);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 5px;
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--accent-royal), var(--accent-bright));
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h4 {
  font-size: 3rem;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--bg-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

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

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.legal-notice {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.legal-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-notice strong {
  color: white;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-royal);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Page Headers (Internal Pages) */
.page-header {
  padding: 6rem 0 3rem;
  background: radial-gradient(circle at center, var(--bg-secondary), var(--bg-primary));
  text-align: center;
  border-bottom: 1px solid var(--bg-secondary);
}

.content-section {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container, .discovery-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-artwork {
    height: 400px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .game-iframe {
    height: 500px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 1.5rem;
  }
}