/* CSS Variables */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --text: #f0f0f5;
  --text-muted: #888899;
  --text-subtle: #555566;
  --border: #2a2a3a;
  --primary: #00ffff;
  --primary-dark: #00cccc;
  --secondary: #a855f7;
  --accent: #22c55e;
  --discord: #5865F2;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-left {
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
}

.btn-icon {
  padding: 0.625rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-btn {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-secondary {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.2);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 50%;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-disclaimer {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 0.6s ease 0.1s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.6s ease 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 0.6s ease 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-delay-4 {
  animation: fadeIn 0.6s ease 0.8s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features */
.features {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-card);
}

.features-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(0, 255, 255, 0.1);
}

.feature-icon-primary { color: var(--primary); }
.feature-icon-secondary { color: var(--secondary); }
.feature-icon-accent { color: var(--accent); }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.feature-card:hover .feature-title {
  color: var(--primary);
}

.feature-desc {
  color: var(--text-muted);
  line-height: 1.7;
}

/* How It Works */
.how-it-works {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.how-glow {
  position: absolute;
  top: 50%;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.how-content .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.how-content .section-subtitle {
  text-align: left;
  margin: 0 0 3rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
}

.step:hover .step-number {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 255, 255, 0.1);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.step:hover .step-title {
  color: var(--primary);
}

.step-desc {
  color: var(--text-muted);
}

.how-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  z-index: 10;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.5rem;
}

.visual-inner {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s;
}

.visual-frame:hover .visual-image {
  transform: scale(1.05);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.overlay-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.status-badge, .fps-badge {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-family: monospace;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22c55e;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.fps-badge {
  color: var(--primary);
}

.crosshair {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(0, 255, 255, 0.5);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.crosshair-dot {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.visual-border-1, .visual-border-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid;
  border-radius: 1rem;
  z-index: -1;
}

.visual-border-1 {
  top: -40px;
  right: -40px;
  border-color: rgba(0, 255, 255, 0.2);
}

.visual-border-2 {
  bottom: -40px;
  left: -40px;
  border-color: rgba(168, 85, 247, 0.2);
}

/* Community */
.community {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.community-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.community-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.community-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.community-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Download */
.download {
  padding: 6rem 0;
}

.download-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 1rem;
  overflow: hidden;
}

.download-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.download-content {
  padding: 4rem;
  text-align: center;
}

.download-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.download-subtitle {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.requirement {
  display: flex;
  gap: 0.75rem;
}

.requirement-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.25rem;
}

.requirement-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.requirement-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.download-version {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .how-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-content {
    padding: 2rem;
  }
  
  .requirements {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
