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

:root {
  /* Color System */
  --bg-navy: #020617;
  --bg-steel: #0f172a;
  --accent-cyan-1: #06b6d4;
  --accent-cyan-2: #22d3ee;
  --accent-green-1: #10b981;
  --accent-green-2: #4ade80;
  --accent-blue-1: #3b82f6;
  --accent-blue-2: #60a5fa;
  
  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5f5;
  --text-muted: #64748b;
  
  /* Glass Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  
  /* Glows */
  --glow-cyan: rgba(6, 182, 212, 0.45);
  --glow-green: rgba(16, 185, 129, 0.35);
  --glow-blue: rgba(59, 130, 246, 0.35);
  
  /* Gradients */
  --grad-cyan: linear-gradient(135deg, var(--accent-cyan-1), var(--accent-cyan-2));
  --grad-green: linear-gradient(135deg, var(--accent-green-1), var(--accent-green-2));
  --grad-blue: linear-gradient(135deg, var(--accent-blue-1), var(--accent-blue-2));
  
  /* Layout */
  --max-width: 1280px;
  --game-max-width: 1200px;
  --nav-width: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-navy);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at top right, var(--bg-steel) 0%, var(--bg-navy) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.text-gradient-cyan {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: var(--glass-highlight);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-cyan);
  color: #000;
  border: none;
  box-shadow: 0 0 20px var(--glow-cyan);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px var(--glow-cyan);
}

.btn-primary:hover::after {
  opacity: 1;
  animation: rotateLight 4s linear infinite;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--accent-cyan-1);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: inset 0 0 15px var(--glow-cyan);
}

/* Header & Nav */
.top-bar {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.brand-logo svg {
  width: 24px;
  height: 24px;
}

.side-nav {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: var(--nav-width);
  border-radius: 30px;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 90;
  transition: all 0.3s ease;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan-2);
  background: rgba(6, 182, 212, 0.1);
  transform: translateZ(20px) scale(1.1);
  box-shadow: 0 0 15px var(--glow-cyan);
}

.nav-link .tooltip {
  position: absolute;
  left: 100%;
  margin-left: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.nav-link:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-left: calc(var(--nav-width) + 4rem);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  background-image: url('images/photo-1530893609608-32a9af3aa95c.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--bg-navy) 0%, rgba(2,6,23,0.7) 50%, transparent 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  background-image: radial-gradient(var(--accent-cyan-1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
  animation: moveParticles 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
  margin-right: auto;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green-1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green-2);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green-2);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green-2);
  animation: pulseGreen 2s infinite;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-disclaimer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  text-align: center;
  width: 100%;
}

/* Floating 3D Element */
.hero-3d-element {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  z-index: 5;
  border-radius: 50%;
  border: 2px dashed var(--glass-border);
  animation: spinSlow 30s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-element::before {
  content: '';
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: inset 0 0 50px rgba(6, 182, 212, 0.1);
  animation: spinSlowReverse 20s linear infinite;
}

.hero-3d-element::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Game Section */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 10;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.game-container {
  max-width: var(--game-max-width);
  margin: 0 auto;
  border-radius: 26px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.1), transparent);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px var(--glass-border);
  position: relative;
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--accent-cyan-1), transparent, var(--accent-blue-1));
  border-radius: 28px;
  z-index: -1;
  opacity: 0.3;
  animation: borderRotate 4s linear infinite;
}

.iframe-wrapper {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

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

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan-2);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

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

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

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

/* Footer */
.footer {
  background: var(--bg-steel);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

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

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

.footer-col p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-links a:hover {
  color: var(--accent-cyan-2);
  text-shadow: 0 0 10px var(--glow-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Internal Pages Hero */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(6, 182, 212, 0.1), transparent 70%);
  border-bottom: 1px solid var(--glass-border);
}

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

.page-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--accent-cyan-2);
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.page-content ul {
  list-style: disc inside;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan-1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

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

/* Animations */
@keyframes rotateLight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 5px var(--accent-green-2); opacity: 0.8; }
  50% { box-shadow: 0 0 15px var(--accent-green-2); opacity: 1; }
}

@keyframes spinSlow {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes spinSlowReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-3d-element { display: none; }
}

@media (max-width: 768px) {
  :root {
    --nav-width: 0px;
  }
  
  body { padding-bottom: 70px; }
  
  .side-nav {
    left: 0; top: auto; bottom: 0; transform: none;
    width: 100%; height: 70px; border-radius: 0;
    flex-direction: row; justify-content: space-around;
    padding: 0; border-top: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
  }
  
  .nav-link .tooltip { display: none; }
  
  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-col p { margin: 0 auto 1rem; }
  
  .top-bar { top: 1rem; right: 1rem; left: 1rem; justify-content: space-between; }
}