* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: #050510;

  color: white;

  overflow-x: hidden;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Background */

body::before {
  content: "";

  position: fixed;

  inset: 0;

  background:
    radial-gradient(circle at 20% 20%, #7b45ff55, transparent 35%),
    radial-gradient(circle at 80% 80%, #00d4ff44, transparent 35%);

  z-index: -2;
}

/* Navigation */

nav {
  position: fixed;

  top: 20px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 25px;

  padding: 14px 28px;

  background: rgba(5, 5, 16, 0.96);

  border: 1px solid #ffffff18;

  border-radius: 50px;

  z-index: 100;
}

nav a {
  color: white;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  transition: 0.3s;
}

nav a:hover {
  color: #8b5cff;
}

/* Hero */

.hero {
  min-height: 85vh;

  display: flex;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 120px 20px 60px;

  background:
    linear-gradient(rgba(5, 5, 16, 0.7), rgba(5, 5, 16, 0.95)),
    url("https://cdn.discordapp.com/banners/1469866169635962884/33a27a7d8fdb4889c04b69faa7c41ee2.webp?size=1024");

  background-size: cover;

  background-position: center;
}

.container {
  max-width: 800px;

  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: translateY(35px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* Logo */

.logo {
  width: 140px;

  height: 140px;

  margin: auto;

  margin-bottom: 25px;

  border-radius: 50%;

  background-image: url("https://cdn.discordapp.com/icons/1469866169635962884/23469fef4141abeff453c99e545f0cc5.webp?size=4096");

  background-size: cover;

  background-position: center;

  box-shadow: 0 0 45px #8b5cff;

}

h1 {
  font-size: 38px;

  margin-bottom: 18px;
}

p {
  color: #b8b8c8;

  font-size: 17px;

  line-height: 1.6;
}

/* Buttons */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 13px 28px;

  margin: 10px;

  border-radius: 14px;

  text-decoration: none;

  color: white;

  font-weight: 600;

  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-5px);
}

.btn svg {
  width: 18px;

  height: 18px;
}

.discord {
  background: #5865f2;
}

.github {
  background: #202020;
}

.about-cta {
  background: linear-gradient(135deg, #8b5cff, #bd5cff);
  box-shadow: 0 8px 24px #8b5cff44;
}

.about-cta:hover {
  box-shadow: 0 12px 30px #8b5cff66;
}

/* Sections */

section {
  padding: 70px 12%;
}

.cards {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 25px;
}

.card {
  background: #ffffff0d;

  border: 1px solid #ffffff18;

  padding: 30px;

  border-radius: 22px;

  transition: 0.35s;
}

.card:hover {
  transform: translateY(-8px);

  border-color: #8b5cff;
}

.card h2 {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 15px;

  font-size: 22px;
}

.card svg {
  width: 22px;

  height: 22px;

  color: #8b5cff;
}

/* Smaller YouTube Player */

.video-container {
  position: relative;

  width: 75%;

  max-width: 750px;

  margin: 25px auto;

  padding-bottom: 42%;

  height: 0;

  overflow: hidden;

  border-radius: 18px;

  box-shadow: 0 0 30px #0008;
}

.video-container iframe {
  position: absolute;

  width: 100%;

  height: 100%;

  left: 0;

  top: 0;

  border-radius: 18px;
}

footer {
  text-align: center;

  padding: 40px;

  color: #777;
}

/* Mobile Optimization */

@media (max-width: 768px) {
  nav {
    top: 10px;

    width: 95%;

    padding: 12px;

    gap: 12px;

    justify-content: center;

    flex-wrap: wrap;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    min-height: 90vh;

    padding-top: 130px;
  }

  .logo {
    width: 110px;

    height: 110px;
  }

  h1 {
    font-size: 30px;
  }

  p {
    font-size: 16px;
  }

  .btn {
    width: 90%;

    max-width: 300px;

    justify-content: center;
  }

  section {
    padding: 50px 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .video-container {
    width: 100%;

    padding-bottom: 56.25%;
  }

}

@media (max-width: 420px) {
  nav {
    border-radius: 20px;
  }

  nav a {
    font-size: 11px;
  }

  h1 {
    font-size: 26px;
  }
}

/* Expandable FAQ cards, matched to the site's existing card style */
.cards.faq-cards {
  grid-template-columns: 1fr;
}

.about-intro {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: 18px;
}

.cards.about-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-map {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: 0 auto 28px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid #ffffff24;
  border-radius: 26px;
  box-shadow: 0 16px 40px #0008;
}

.about-cards .card p a {
  color: #b99cff;
  text-underline-offset: 3px;
}

.faq-item p a {
  color: #b99cff;
  text-underline-offset: 3px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid #8b5cff;
  outline-offset: -5px;
  border-radius: 14px;
}
.faq-item summary h2 {
  margin-bottom: 0;
}
.faq-item h2 .faq-chevron {
  margin-left: auto;
  transition: transform 0.25s ease;
}
.faq-item[open] h2 .faq-chevron {
  transform: rotate(180deg);
}
.faq-item.is-closing h2 .faq-chevron {
  transform: rotate(0deg);
}
.faq-item p {
  margin: 0;
}

.faq-answer {
  margin-top: 15px;
}

.btn .discord-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 18px;
}

.repo-button {
  margin: 0;
  padding: 11px 16px;
}

.repo-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: currentColor;
}

#tutorial-video {
  scroll-margin-top: 100px;
}

.reveal-item {
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 350ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready .reveal-item:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}

@media (max-width: 768px) {
  .cards.about-cards {
    grid-template-columns: 1fr;
  }

  .community-map {
    margin-bottom: 22px;
    border-radius: 18px;
  }
}

@media (min-width: 769px) and (max-width: 1092px) {
  #builds .cards > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 25px) / 2);
  }
}

.legal-note {
  max-width: 1400px;
  margin: 15px auto 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.7;
}

.legal-note span {
  display: block;
}

.video-fallback {
  margin-top: 12px;
  font-size: 14px;
}

.video-fallback a {
  color: #b99cff;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
