/* ===========================
   DEEP TREASURE COMMAND
   Design System v1.0
   =========================== */

/* --- VARIABLES --- */
:root {
  --bg-primary: #020617;
  --bg-secondary: #0a1628;
  --bg-tertiary: #0f1f38;

  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.1);
  --glass-overlay: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);

  --accent-blue: linear-gradient(135deg, #0ea5e9, #2563eb);
  --accent-gold: linear-gradient(135deg, #facc15, #d97706);
  --accent-red: linear-gradient(135deg, #b91c1c, #7f1d1d);
  --accent-blend: linear-gradient(135deg, #0ea5e9, #facc15, #b91c1c);

  --blue: #0ea5e9;
  --gold: #facc15;
  --red: #b91c1c;
  --gold-dark: #d97706;

  --glow-blue: rgba(14,165,233,0.35);
  --glow-gold: rgba(250,204,21,0.35);
  --glow-red: rgba(185,28,28,0.35);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  --container: 1280px;
  --spacing-section: 120px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-primary); border: none; }
input, textarea { font-family: var(--font-primary); }
ul { list-style: none; }

/* --- LAYOUT --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.content-narrow {
  max-width: 800px;
}

/* --- CURSOR GLOW --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: left, top;
}

/* --- FOG LAYERS --- */
.fog-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.fog-layer-1 {
  background: radial-gradient(ellipse at 20% 50%, rgba(14,165,233,0.06) 0%, transparent 50%);
  animation: fogDrift1 20s ease-in-out infinite;
}

.fog-layer-2 {
  background: radial-gradient(ellipse at 80% 30%, rgba(250,204,21,0.04) 0%, transparent 50%);
  animation: fogDrift2 25s ease-in-out infinite;
}

@keyframes fogDrift1 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(50px) translateY(-30px); }
}

@keyframes fogDrift2 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-40px) translateY(20px); }
}

/* --- PARTICLES --- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(250,204,21,0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(10px) scale(1);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-10vh) translateX(-20px) scale(0.5);
    opacity: 0;
  }
}

/* --- FLOATING NAV --- */
.floating-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.nav-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 30px rgba(14,165,233,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.nav-icon:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.nav-icon:hover {
  color: var(--blue);
  background: rgba(14,165,233,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--glow-blue);
}

.nav-icon.active {
  color: var(--gold);
  background: rgba(250,204,21,0.1);
  box-shadow: 0 0 20px var(--glow-gold);
}

/* --- TOP HEADER --- */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px 0;
  background: rgba(2,6,23,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.top-header.scrolled {
  background: rgba(2,6,23,0.9);
  padding: 12px 0;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-compass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px var(--glow-blue));
  animation: compassPulse 4s ease-in-out infinite;
}

@keyframes compassPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--glow-blue)); }
  50% { filter: drop-shadow(0 0 15px var(--glow-gold)); }
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.header-link:hover {
  color: var(--text-primary);
}

.header-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: var(--transition);
}

.header-link:hover::after {
  width: 100%;
}

/* --- BUTTONS --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
}

.cta-play {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 20px var(--glow-gold);
  animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 20px var(--glow-gold); }
  50% { box-shadow: 0 0 35px var(--glow-gold), 0 0 60px rgba(250,204,21,0.15); }
}

.cta-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-gold);
}

.cta-play:active {
  transform: translateY(0) scale(0.98);
}

.cta-gold {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 20px var(--glow-gold);
}

.cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-gold);
}

.cta-gold:active {
  transform: translateY(0) scale(0.98);
}

.cta-glass {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.cta-glass:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.cta-glass:active {
  transform: translateY(0) scale(0.98);
}

.cta-large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0;
}

.hero-ocean-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(14,165,233,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 20%, rgba(250,204,21,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 80%, rgba(14,165,233,0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.ocean-wave {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 200px;
  border-radius: 50% 50% 0 0;
  opacity: 0.06;
}

.wave-1 {
  background: var(--blue);
  animation: waveMotion 8s ease-in-out infinite;
  bottom: -50px;
}

.wave-2 {
  background: var(--blue);
  animation: waveMotion 10s ease-in-out infinite reverse;
  bottom: -80px;
  opacity: 0.04;
}

.wave-3 {
  background: var(--gold);
  animation: waveMotion 12s ease-in-out infinite;
  bottom: -100px;
  opacity: 0.03;
}

@keyframes waveMotion {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-20px) translateY(-10px); }
  50% { transform: translateX(15px) translateY(-5px); }
  75% { transform: translateX(-10px) translateY(-8px); }
}

.hero-light-flicker {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(250,204,21,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: lanternFlicker 4s ease-in-out infinite;
}

@keyframes lanternFlicker {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  25% { opacity: 0.8; transform: scale(1.05); }
  50% { opacity: 0.5; transform: scale(0.98); }
  75% { opacity: 0.9; transform: scale(1.02); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.3) 0%, rgba(2,6,23,0.1) 50%, rgba(2,6,23,0.8) 100%);
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--glow-gold);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gold-text {
  background: var(--accent-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--glow-gold));
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-legal {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.hero-water-reflection {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 100%);
  z-index: 5;
}

/* --- SECTION STYLES --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- GAME SECTION --- */
.game-section {
  position: relative;
  z-index: 10;
  padding: var(--spacing-section) 0;
}

.game-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.game-card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(250,204,21,0.4), rgba(14,165,233,0.2), rgba(250,204,21,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShimmer 6s linear infinite;
  background-size: 200% 200%;
  pointer-events: none;
  z-index: 2;
}

@keyframes borderShimmer {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.game-card-inner {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.game-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,204,21,0.3), transparent);
}

.game-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}

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

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.3);
}

.game-info {
  flex: 1;
  min-width: 200px;
}

.game-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- FEATURES SECTION --- */
.features-section {
  position: relative;
  z-index: 10;
  padding: var(--spacing-section) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 40px 32px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-overlay);
  opacity: 0.5;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  background: var(--glass-hover);
}

.feature-large {
  grid-column: span 2;
}

.feature-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(250,204,21,0.04), transparent);
  transition: none;
  pointer-events: none;
}

.feature-card:hover .feature-shimmer {
  animation: lightSweep 0.8s ease-out;
}

@keyframes lightSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon.gold-glow {
  background: rgba(250,204,21,0.1);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(250,204,21,0.1);
}

.feature-card:hover .feature-icon.gold-glow {
  box-shadow: 0 0 30px var(--glow-gold);
}

.feature-icon.blue-glow {
  background: rgba(14,165,233,0.1);
  color: var(--blue);
  box-shadow: 0 0 20px rgba(14,165,233,0.1);
}

.feature-card:hover .feature-icon.blue-glow {
  box-shadow: 0 0 30px var(--glow-blue);
}

.feature-icon.red-glow {
  background: rgba(185,28,28,0.1);
  color: var(--red);
  box-shadow: 0 0 20px rgba(185,28,28,0.1);
}

.feature-card:hover .feature-icon.red-glow {
  box-shadow: 0 0 30px var(--glow-red);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CONTACT SECTION --- */
.contact-section {
  position: relative;
  z-index: 10;
  padding: var(--spacing-section) 0;
}

.contact-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.3), transparent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 20px var(--glow-blue);
  background: rgba(255,255,255,0.06);
}

/* --- LEGAL SECTION --- */
.legal-section {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}

.legal-banner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 40px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(185,28,28,0.2);
  border-radius: var(--radius-xl);
}

.legal-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(185,28,28,0.1);
  color: var(--red);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- FOOTER --- */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  background: rgba(0,0,0,0.3);
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-info-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 12px !important;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 24px;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 32px;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 14px;
}

.modal-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

/* --- PAGE HERO (INNER PAGES) --- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  z-index: 10;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(14,165,233,0.08) 0%, transparent 60%),
    transparent;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- PAGE CONTENT --- */
.page-content {
  position: relative;
  z-index: 10;
  padding: 0 0 var(--spacing-section);
}

.content-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.2), transparent);
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.content-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-card ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.content-card li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 4px 0 4px 24px;
  position: relative;
}

.content-card li::before {
  content: '⚓';
  position: absolute;
  left: 0;
  font-size: 12px;
}

.content-card a {
  color: var(--blue);
  border-bottom: 1px solid rgba(14,165,233,0.3);
  transition: var(--transition);
}

.content-card a:hover {
  border-bottom-color: var(--blue);
}

.legal-note {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(185,28,28,0.08);
  border: 1px solid rgba(185,28,28,0.15);
}

.legal-note p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- ANIMATIONS --- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- MOBILE NAV --- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-nav a.active {
  color: var(--gold);
}

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

/* --- 3D TILT --- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .floating-nav {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-large {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-section: 80px;
  }

  .floating-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-around;
  }

  .header-link {
    display: none;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .content-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .game-controls {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .game-actions {
    justify-content: center;
  }

  .legal-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .modal-card {
    padding: 32px 24px;
  }

  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-section: 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .cta-large {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* --- SELECTION --- */
::selection {
  background: rgba(14,165,233,0.3);
  color: var(--text-primary);
}

/* --- WATER RIPPLE (on game hover) --- */
@keyframes waterRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(14,165,233,0.2);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(14,165,233,0);
  }
}

.game-card:hover {
  animation: waterRipple 1.5s ease-out;
}