/* ─── VARIABLES ───────────────────────────── */
:root {
  --primary: #ff4d4d; /* red */
  --accent: #ff9900;  /* orange */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  --glow: 0 0 15px rgba(255, 77, 77, 0.6); /* red glow */
}

/* ─── BASE ────────────────────────────────── */
body {
  font-family: 'Clash Display', sans-serif;
  background: #000;
  color: var(--text);
  overflow-x: hidden;
}

/* GALAXY CANVAS BACKGROUND */
#galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at bottom, #290f0f, #632b2b, #3e2424);
}

/* ─── NAV ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: var(--shadow);
  z-index: 2;
}

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

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(255, 77, 77, 0.1);
}

/* ─── HERO ────────────────────────────────── */
.hero {
  text-align: center;
  padding: 150px 20px 100px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: linear-gradient(270deg, var(--primary), var(--accent), var(--primary));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease infinite;
}

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

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.btn-key,
.btn-paypal,
.btn-discord,
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.btn-key:hover,
.btn-paypal:hover,
.btn-discord:hover,
.btn-primary:hover {
  box-shadow: var(--glow);
}

/* ─── SECTIONS ────────────────────────────── */
.why-section,
.loader-section {
  padding: 100px 20px;
  text-align: center;
  z-index: 1;
  position: relative;
}

/* ─── CARDS & GRID ────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: perspective(600px) rotateY(5deg) translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 77, 77, 0.4);
}

.feature-card i {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

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

/* ─── CONTAINERS ──────────────────────────── */
.container {
  max-width: 1000px;
  margin: 0 auto;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ─── TEXT STYLES ─────────────────────────── */
.section-title {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ─── CODE BLOCK ──────────────────────────── */
.code-container {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.code-block {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ─── FOOTER ──────────────────────────────── */
.footer {
  padding: 40px 20px;
  text-align: center;
  background: rgba(41, 15, 15, 0.7);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .nav ul {
    gap: 16px;
  }
}
