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

:root {
  --bg-deep: #050508;
  --bg-surface: #0e121b;
  --bg-surface-2: #161b28;
  
  --primary: #60f7c6;   /* Neon Cyan */
  --secondary: #ff6ad5; /* Neon Pink */
  --tertiary: #fde047;  /* Neon Yellow */
  --accent-blue: #5aa7ff;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.15);
  
  --glass: rgba(20, 25, 40, 0.6);
  --glass-strong: rgba(20, 25, 40, 0.85);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(96, 247, 198, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(90, 167, 255, 0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 106, 213, 0.08), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(96, 247, 198, 0.05), transparent 60%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .badge, .nav-links a {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-blue);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(96, 247, 198, 0.3);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 99px;
  background: var(--text-main);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  color: #000;
}

.cta.secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.cta.secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

/* Main Layout */
main {
  padding-top: 140px;
}

.section {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(96, 247, 198, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(96, 247, 198, 0.2);
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  margin: 0 0 24px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 99px;
  width: fit-content;
  border: 1px solid var(--border-light);
}

.trust-stars {
  color: var(--tertiary);
  letter-spacing: 2px;
}

/* Device Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.device {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9/19;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  border: 4px solid #2a3040;
  box-shadow: 
    0 0 0 2px #000,
    var(--shadow-lg),
    var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, #1a2235, #050508);
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Grid & Game UI */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: auto;
  margin-bottom: 24px;
}

.cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cell.glow {
  background: var(--primary);
  box-shadow: 0 0 15px rgba(96, 247, 198, 0.5);
  border-color: transparent;
}

.hud {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.hud-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hud-value {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

/* Features Section */
.section-header {
  margin-bottom: 48px;
  max-width: 600px;
}

.section-header h2 {
  font-size: 36px;
  margin: 0 0 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-surface-2));
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text-main);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Split Section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.tile-stack {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.tile {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.neon-cyan { background: var(--primary); box-shadow: 0 0 20px rgba(96, 247, 198, 0.3); }
.neon-pink { background: var(--secondary); box-shadow: 0 0 20px rgba(255, 106, 213, 0.3); }
.neon-green { background: #86efac; box-shadow: 0 0 20px rgba(134, 239, 172, 0.3); }
.neon-yellow { background: var(--tertiary); box-shadow: 0 0 20px rgba(253, 224, 71, 0.3); }

.mode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.mode-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.mode-goal {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  width: 70%;
  height: 100%;
  background: var(--primary);
}

/* Scores Section */
.score-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.score-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.score-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.04);
}

.score-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.score-value {
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0;
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
}

.score-sub {
  font-size: 13px;
  color: var(--primary);
}

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, rgba(96, 247, 198, 0.05), rgba(90, 167, 255, 0.05));
  border: 1px solid var(--border-light);
  padding: 60px 24px;
  border-radius: 32px;
  text-align: center;
}

.cta-box h2 {
  font-size: 32px;
  margin: 0 0 16px;
}

.centered {
  justify-content: center;
}

/* Footer */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer a {
  color: var(--text-muted);
  margin-left: 20px;
}

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

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .list {
    text-align: left;
    display: inline-block;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 48px;
  }
  
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer a {
    margin: 0 10px;
  }
}