:root {
  --bg-primary: #0B0B12;
  --bg-secondary: #121626;
  --card-bg: rgba(255, 255, 255, 0.04);
  --accent-primary: #2F5BFF;
  --accent-secondary: #4D79FF;
  --highlight-glow: rgba(47, 91, 255, 0.6);
  --text-primary: #F1F5F9;
  --text-secondary: #9AA4B2;
  --container-width: 1400px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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: var(--text-primary);
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-spacing {
  padding: 100px 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-secondary); }

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 91, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent-primary);
}

.nav-toggle {
  display: none;
}

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

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: 0.3s;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.main-nav a.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.main-nav a.nav-link:hover {
  color: var(--text-primary);
}

.main-nav a.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(47, 91, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--highlight-glow);
  color: #fff;
}

.btn-primary:hover::before {
  left: 200%;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background-color: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 11, 18, 0.4), var(--bg-primary));
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-legal-badge {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 40px;
  backdrop-filter: blur(5px);
}

/* Inner Hero */
.inner-hero {
  padding: 150px 0 80px;
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.inner-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
}

.inner-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Game Section */
.game-section {
  position: relative;
  background: var(--bg-secondary);
  background-image: radial-gradient(circle at 50% 50%, rgba(47, 91, 255, 0.05) 0%, transparent 50%);
}

.game-bg-abstract {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  mix-blend-mode: screen;
}

.game-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(47, 91, 255, 0.2), 0 0 40px rgba(47, 91, 255, 0.15);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* How It Works Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(47, 91, 255, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(47, 91, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-secondary);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Split Content (Legal/About) */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.split-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.split-text ul {
  margin-bottom: 20px;
}

.split-text li {
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.split-text li::before {
  content: '•';
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-right: 10px;
  line-height: 1;
}

.split-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.split-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  pointer-events: none;
}

/* Forms */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 50px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(47, 91, 255, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info-block {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Content Pages (Terms, Privacy) */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 50px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.content-wrapper h2 {
  margin: 40px 0 20px;
  color: var(--accent-secondary);
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  background: #050508;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 350px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-spacing { padding: 70px 0; }
  .split-content { grid-template-columns: 1fr; gap: 40px; }
  .split-image { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-container { width: 95%; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  .section-spacing { padding: 50px 0; }
  .header-container { position: relative; }
  .hamburger { display: flex; }
  
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(47, 91, 255, 0.3);
    padding: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-toggle:checked ~ .main-nav {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .header-cta { display: none; }
  .main-nav ul::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 0;
  }
  
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .contact-container, .content-wrapper { padding: 30px 20px; }
  .game-container { width: 100%; border-radius: 0; border-left: none; border-right: none; }
}