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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --accent: #ff2d2d;
  --accent-glow: rgba(255, 45, 45, 0.3);
  --accent-alt: #ff6b35;
  --discord: #5865F2;
  --discord-hover: #4752c4;
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

#grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--accent);
}

.lang-flag {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-label {
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

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

.glitch-wrapper {
  margin-bottom: 1.5rem;
}

.glitch {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  position: relative;
  color: var(--text-primary);
  text-shadow:
    0 0 20px var(--accent-glow),
    0 0 60px rgba(255, 45, 45, 0.15);
  animation: flicker 4s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch::before {
  color: #ff6b35;
  z-index: -1;
  animation: glitch-shift 3s infinite;
  clip-path: inset(0 0 60% 0);
}

.glitch::after {
  color: var(--accent);
  z-index: -2;
  animation: glitch-shift-alt 2.5s infinite;
  clip-path: inset(60% 0 0 0);
}

@keyframes glitch-shift {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-1px, 2px); }
}

@keyframes glitch-shift-alt {
  0%, 88%, 100% { transform: translate(0); }
  90% { transform: translate(2px, -1px); }
  93% { transform: translate(-2px, 1px); }
  95% { transform: translate(1px, -2px); }
}

@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  98% { opacity: 0.85; }
  99% { opacity: 0.95; }
}

.hero-divider {
  width: 80px;
  height: 3px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  border-radius: 2px;
  box-shadow: 0 0 15px var(--accent-glow);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

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

/* ── Buttons ── */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-discord {
  background: var(--discord);
  color: white;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
  background: var(--discord-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(88, 101, 242, 0.6);
}

.btn-discord:active {
  transform: translateY(0);
}

.discord-icon {
  width: 22px;
  height: 22px;
}

.member-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* ── Highlights ── */
.highlights {
  position: relative;
  z-index: 1;
  padding: 2rem 2rem 4rem;
}

.highlights-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.highlight-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.highlight-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.highlight-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Teaser ── */
.teaser {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  text-align: center;
}

.teaser-content {
  max-width: 700px;
  margin: 0 auto;
}

.teaser h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.teaser-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 45, 45, 0.05);
  border: 1px solid rgba(255, 45, 45, 0.2);
  border-radius: 100px;
  padding: 0.6rem 1.5rem;
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 45, 45, 0.1); }
  50% { box-shadow: 0 0 25px rgba(255, 45, 45, 0.2); }
}

.badge-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.badge-value {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Responsive ── */
@media (max-width: 640px) {
  .navbar {
    padding: 0.8rem 1.2rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .highlights-strip {
    flex-direction: column;
    gap: 1rem;
  }

  .highlight-sep {
    width: 40px;
    height: 1px;
  }

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