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

:root {
  --primary: #ed1c24;
  --primary-dim: rgba(237, 28, 36, 0.12);
  --primary-glow: rgba(237, 28, 36, 0.35);
  --bg: #09090b;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --text: #f0f0f0;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1;
  overflow-x: hidden;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  will-change: auto;
  contain: strict;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 9, 11, 0.6);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.92);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.btn-discord {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-discord svg {
  flex-shrink: 0;
}

.btn-discord:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 2rem;
  font-size: 0.85rem;
  border-radius: 8px;
  box-shadow:
    0 0 40px var(--primary-dim),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  box-shadow:
    0 0 60px var(--primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 5rem 2rem 4rem;
}

.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-dim) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 110px;
  height: auto;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.tagline {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.45s;
}

.subtitle {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.hero .btn-primary {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.75s;
}

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

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.8);
  border-top: 1px solid var(--border);
  padding: 0.65rem 2rem;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .nav-logo {
    height: 34px;
  }

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

  .hero-logo {
    width: 80px;
  }

  .hero-glow {
    width: 350px;
    height: 350px;
  }

  footer {
    padding: 0.5rem 1rem;
  }

  .disclaimer {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.65rem 1rem;
  }

  .nav-logo {
    height: 30px;
  }

  .btn-discord {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
