:root {
  --bg: #090909;
  --text: #ffffff;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --muted-3: #52525b;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --pink: #e879f9;
  --blue: #818cf8;
  --discord: #5865f2;
  --green: #22c55e;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.entering {
  overflow: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(167, 139, 250, 0.055), transparent 28%),
    radial-gradient(circle at center, rgba(232, 121, 249, 0.035), transparent 42%),
    #020202;
  cursor: pointer;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.enter-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 8px rgba(167, 139, 250, 0.75),
    0 0 22px rgba(232, 121, 249, 0.42);
  user-select: none;
}

.background-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -10;
}

.background-glow::before,
.background-glow::after,
.glow-third {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
}

.background-glow::before {
  top: 10%;
  left: -128px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.background-glow::after {
  top: 60%;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.05) 0%, transparent 70%);
}

.glow-third {
  bottom: 0;
  left: 33%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.nav-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.35));
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.65);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 101;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.button:active {
  transform: scale(0.98);
}

.button-purple {
  padding: 10px 14px;
  border-color: transparent;
  background: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.65);
}

.button-purple:hover {
  transform: translateY(-1px);
  box-shadow: none;
  color: var(--purple-light);
}

.button-discord {
  padding: 14px 28px;
  background: var(--discord);
  color: #ffffff;
  font-size: 1rem;
}

.button-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.45), 0 4px 16px rgba(88, 101, 242, 0.28);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 102;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
}

.mobile-menu-content a {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.mobile-menu-content a:hover {
  color: #ffffff;
}

.nav-spacer {
  height: 0;
}

section {
  position: relative;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  filter: brightness(1.28) contrast(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(9, 9, 9, 0.04) 0%,
      rgba(9, 9, 9, 0.10) 52%,
      rgba(9, 9, 9, 0.34) 100%),
    radial-gradient(circle at 50% 48%,
      rgba(139, 92, 246, 0.08),
      transparent 62%);
}

.hero-video-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(92px, 14vh, 150px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--muted-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-pad {
  padding: 96px 0;
}

.section-head {
  max-width: 800px;
  margin-bottom: 64px;
}

.section-head h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 600px;
  color: #a1a1aa;
  font-size: 1.125rem;
  line-height: 1.65;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  transition: transform 0.3s ease;
}

.card:hover .icon-box {
  transform: scale(1.08);
}

.card h3 {
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card p {
  flex-grow: 1;
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  list-style: none;
  color: #a1a1aa;
  font-size: 0.86rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list svg {
  flex-shrink: 0;
  color: var(--purple-light);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--purple-light);
  font-weight: 700;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 12px;
}

.mini-stats {
  display: flex;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stats div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.mini-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stats strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.mini-stats span {
  color: var(--muted-3);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.terminal-mini {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
}

.terminal-mini div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-3);
  min-width: 0;
}

.terminal-mini .new-url {
  color: #d4d4d8;
}

.accent {
  color: var(--purple-light);
  font-weight: 750;
}

.community {
  padding: 112px 0 144px;
  text-align: center;
}

.community h2 {
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.community p {
  max-width: 560px;
  margin: 0 auto 16px;
  color: #a1a1aa;
  font-size: 1.18rem;
  line-height: 1.62;
}

.community .used-by {
  color: var(--muted-3);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.community-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.08);
}

.dev-name {
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 9, 9, 0.5);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 750;
}

.footer-brand-title .brand-logo {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: var(--muted-2);
  font-size: 0.875rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.socials a {
  color: #a1a1aa;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: var(--purple-light);
  transform: translateY(-1px);
}

.fade-in,
.fade-in-right {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right {
  transform: translateX(26px);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .nav-links,
  .nav-actions .button-purple {
    display: none;
  }

  .mobile-menu-btn,
  .mobile-menu {
    display: flex;
  }

  .nav-inner {
    height: 56px;
  }

  .brand {
    font-size: 1rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
  }

  .hero-video-content {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 86px;
  }

  .section-pad {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .card {
    padding: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-video-content {
    padding-bottom: 72px;
  }

  .hero-actions,
  .community-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .community-actions .button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}