@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Base Colors */
  --bg-primary: #0b0f1a;
  --bg-secondary: #111827;
  --glass-surface: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(96, 165, 250, 0.15);
  
  /* Diamond Accents */
  --accent-primary: #60a5fa;
  --accent-secondary: #38bdf8;
  --accent-highlight: #fde68a;
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-muted: #94a3b8;
  
  /* Layout & Spacing */
  --max-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --font-base: 'Inter', sans-serif;
}

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

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

/* Background Effects */
.site-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, #172642 0%, var(--bg-primary) 60%);
}

.site-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/subtle-diamond-dust-overlay.webp');
  background-size: cover;
  opacity: 0.03;
}

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

.section {
  padding: 120px 0;
}

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

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Crystal Navbar */
.crystal-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
  transition: all 0.3s ease;
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-primary);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: var(--font-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
  filter: brightness(1.1);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--glass-surface);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* Hero Section */
.hero-diamond {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-content .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(253, 230, 138, 0.05);
  border: 1px solid rgba(253, 230, 138, 0.2);
  padding: 10px 16px;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-disclaimer span {
  font-size: 0.85rem;
  color: var(--accent-highlight);
  font-weight: 500;
}

.hero-disclaimer .badge-18 {
  background: var(--accent-highlight);
  color: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.3));
  animation: float 6s ease-in-out infinite;
}

/* Game Core Section */
.game-section {
  padding: 80px 0 120px;
  position: relative;
}

.game-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.game-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glass-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), transparent, rgba(56, 189, 248, 0.4));
  border-radius: 26px;
  z-index: -1;
  opacity: 0.5;
}

.game-container:hover {
  transform: scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(96, 165, 250, 0.15);
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  height: 800px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.game-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Feature Sections */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px 32px;
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* Page Headers (Internal Pages) */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.8), transparent);
  border-bottom: 1px solid var(--glass-border);
}

.page-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

/* Text Formatting (Legal Pages) */
.legal-text h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.legal-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.legal-text ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
  color: var(--text-secondary);
}

.legal-text li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-base);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  margin-top: 60px;
}

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

.footer-brand .nav-brand {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-disclaimer span {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }