:root {
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
  --content-width: 1200px;
  --bg: #07101f;
  --bg-strong: #040914;
  --surface: rgba(10, 18, 34, 0.82);
  --surface-strong: rgba(10, 18, 34, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #a4b2c8;
  --accent: #f55796;
  --accent-rgb: 245, 87, 150;
  --accent-strong: #ff9b63;
  --accent-strong-rgb: 255, 155, 99;
  --accent-cool: #5d76ff;
  --accent-cool-rgb: 93, 118, 255;
  --accent-violet: #9156ff;
  --accent-violet-rgb: 145, 86, 255;
  --accent-soft: rgba(var(--accent-rgb), 0.16);
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-cool) 0%,
    var(--accent-violet) 30%,
    var(--accent) 66%,
    var(--accent-strong) 100%
  );
  --accent-gradient-soft: linear-gradient(
    135deg,
    rgba(var(--accent-cool-rgb), 0.22) 0%,
    rgba(var(--accent-violet-rgb), 0.2) 30%,
    rgba(var(--accent-rgb), 0.18) 66%,
    rgba(var(--accent-strong-rgb), 0.18) 100%
  );
  --success: #31d197;
  --success-rgb: 49, 209, 151;
  --success-text: #8df5c8;
  --warning: #ffd36f;
  --warning-rgb: 255, 211, 111;
  --warning-text: #ffe4a0;
  --danger: #ff7b7b;
  --danger-rgb: 255, 123, 123;
  --danger-text: #ffc3c3;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --header-height: 5rem;
  --header-height-scrolled: 4.35rem;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.35);
  --page-background:
    radial-gradient(circle at top, rgba(var(--accent-cool-rgb), 0.18), transparent 32%),
    linear-gradient(180deg, #07101f 0%, #040914 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 0.35rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

iframe {
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 1.5rem));
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: transform 160ms ease, opacity 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(var(--accent-cool-rgb), 0.28);
  border-radius: 999px;
  background:
    linear-gradient(rgba(9, 16, 29, 0.88), rgba(9, 16, 29, 0.88)) padding-box,
    var(--accent-gradient-soft) border-box;
  border: 1px solid transparent;
  color: var(--text);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(var(--accent-cool-rgb), 0.08);
  backdrop-filter: blur(18px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background:
    linear-gradient(rgba(13, 21, 36, 0.94), rgba(13, 21, 36, 0.94)) padding-box,
    var(--accent-gradient) border-box;
  transform: translateY(-2px);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top span {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(18px);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  transition: min-height 220ms ease, gap 220ms ease;
}

body.has-scrolled .site-header {
  border-bottom-color: rgba(var(--accent-cool-rgb), 0.14);
  background: rgba(3, 8, 18, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body.has-scrolled .site-header__inner {
  min-height: var(--header-height-scrolled);
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  transition: gap 220ms ease;
}

body.has-scrolled .brand {
  gap: 0.75rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: visible;
  transition: transform 220ms ease;
}

body.has-scrolled .brand__mark {
  transform: scale(0.92);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__copy {
  display: grid;
  gap: 0.1rem;
  transition: transform 220ms ease;
}

body.has-scrolled .brand__copy {
  transform: translateY(-1px);
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand__subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.nav-toggle__line {
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.96rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-nav__link[aria-current="page"],
.site-nav__link.is-active {
  background: var(--accent-gradient-soft);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

  .site-header,
  .site-header__inner,
  .brand,
  .brand__mark,
  .brand__copy,
  .site-nav__link,
  .scroll-top {
    transition: none;
  }

  .js .site-header__inner,
  .js .hero--cover::before,
  .js .hero--cover::after,
  .js .brand__mark,
  .js .brand__copy,
  .js .site-nav__list > li,
  .js .nav-toggle {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js [data-reveal].will-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.hero {
  position: relative;
  min-height: max(100svh, 48rem);
  padding:
    calc(var(--header-height) + clamp(2rem, 5vw, 4rem))
    0
    clamp(6rem, 10vw, 8.5rem);
}

.hero--cover {
  overflow: clip;
}

.hero--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(4, 9, 20, 0.92), rgba(4, 9, 20, 0.55)),
    var(--hero-image, none) center / cover no-repeat;
  opacity: 0.9;
}

.hero--cover::after {
  content: "";
  position: absolute;
  inset: auto 0 -2rem;
  height: 6rem;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 70%);
  filter: blur(14px);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__layout {
  display: grid;
  gap: 1.75rem;
  min-height: clamp(32rem, calc(100svh - var(--header-height) - 7rem), 42rem);
}

.hero--split .hero__layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

.hero__title,
.section__title,
.card__title {
  font-family: var(--font-display);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    0 10px 28px rgba(var(--accent-rgb), 0.18);
}

.button--secondary {
  border-color: transparent;
  background:
    linear-gradient(rgba(14, 21, 36, 0.92), rgba(14, 21, 36, 0.92)) padding-box,
    var(--accent-gradient-soft) border-box;
  color: var(--text);
}

.button--subtle {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.hero__panel,
.card,
.embed-shell,
.faq details,
.widget-card,
.stat,
.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-lg);
}

.hero__panel,
.card,
.widget-card,
.notice {
  padding: 1.4rem;
}

.hero__panel {
  display: grid;
  gap: 1rem;
}

.hero__panel .card__title {
  margin: 0;
  font-size: 1.25rem;
}

.logo-showcase {
  display: grid;
  place-items: center;
  min-height: 22rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-showcase img {
  max-height: 18rem;
  object-fit: contain;
}

.section {
  padding: 1.25rem 0 4rem;
}

.section__header {
  position: relative;
}

.section--muted {
  padding-top: 0;
}

.section__header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.9rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
}

.section__description {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

.cards,
.widget-grid,
.stats-grid,
.footer__grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.widget-grid,
.stats-grid,
.footer__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  display: grid;
  gap: 1rem;
}

.card__media {
  overflow: clip;
  border-radius: calc(var(--radius-md) - 8px);
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  margin: 0;
  font-size: 1.2rem;
}

.card__description,
.card__meta,
.list {
  color: var(--muted);
}

.card__description,
.card__meta {
  margin: 0;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.inline-list,
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 2rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.status-pill[data-status="open"] {
  background: rgba(var(--success-rgb), 0.14);
  color: var(--success-text);
}

.status-pill[data-status="closed"] {
  background: rgba(var(--danger-rgb), 0.14);
  color: var(--danger-text);
}

.status-pill[data-status="info"] {
  background: rgba(var(--warning-rgb), 0.14);
  color: var(--warning-text);
}

.stat {
  padding: 1.1rem 1.15rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.widget-card img,
.discord-banner {
  width: 100%;
  border-radius: calc(var(--radius-md) - 8px);
}

.notice {
  display: grid;
  gap: 0.65rem;
}

.notice h2,
.notice h3 {
  margin: 0;
  font-family: var(--font-display);
}

.embed-shell {
  padding: 1.25rem;
}

.embed-shell iframe {
  width: 100%;
  min-height: 34rem;
  border-radius: calc(var(--radius-md) - 8px);
  background: #fff;
}

.video-card {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(4, 9, 20, 0.15), rgba(4, 9, 20, 0.55));
}

.video-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  padding: 1.15rem 1.2rem;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-strong);
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  margin-bottom: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.footer__grid > :nth-child(1) {
  justify-self: start;
  text-align: left;
}

.footer__grid > :nth-child(2) {
  justify-self: end;
  text-align: left;
}

.footer__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer__lead {
  max-width: 34ch;
}

.discord-shield {
  display: block;
  width: auto;
  max-width: 18rem;
  height: auto;
}

.footer__shield {
  margin-top: 1rem;
}

.footer p,
.footer li + li {
  margin-top: 0.55rem;
}

.footer a {
  color: var(--muted);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
}

.footer__bottom {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.footer__bottom p {
  margin: 0;
}

.footer__credit {
  margin-top: 0;
}

.footer__credit a {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
    column-gap: 1rem;
  }

  .footer__grid > :nth-child(1),
  .footer__grid > :nth-child(2) {
    justify-self: start;
  }
}

[data-reveal] {
  --reveal-delay: 0ms;
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .site-header__inner {
  opacity: 0;
  transform: translateY(-10px);
  animation: header-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
}

.js .brand__mark {
  opacity: 0;
  transform: translateY(-10px) scale(0.92);
  animation: header-item-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

.js .brand__copy {
  opacity: 0;
  transform: translateY(-8px);
  animation: header-item-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) 240ms forwards;
}

.js .nav-toggle {
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
  animation: header-item-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) 220ms forwards;
}

.js .site-nav__list > li {
  opacity: 0;
  transform: translateY(-8px);
  animation: header-item-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js .site-nav__list > li:nth-child(1) {
  animation-delay: 240ms;
}

.js .site-nav__list > li:nth-child(2) {
  animation-delay: 300ms;
}

.js .site-nav__list > li:nth-child(3) {
  animation-delay: 360ms;
}

.js .hero--cover::before {
  animation: hero-backdrop-enter 1400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .hero--cover::after {
  animation: hero-glow-enter 1400ms ease both;
}

.js [data-reveal].will-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 620ms ease;
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform, filter;
}

.js [data-reveal].will-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-item-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-backdrop-enter {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 0.9;
    transform: scale(1);
  }
}

@keyframes hero-glow-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  :root {
    --header-height: 4.75rem;
    --header-height-scrolled: 4.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 0.75rem) 1rem auto;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__link {
    width: 100%;
  }

  .hero--split .hero__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 1rem);
  }

  .hero__layout {
    min-height: auto;
  }

  .scroll-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--content-width));
  }

  .hero__title {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .section__title {
    font-size: clamp(1.6rem, 8vw, 2.3rem);
  }

  .button {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .logo-showcase {
    min-height: 16rem;
  }

  .embed-shell iframe {
    min-height: 28rem;
  }
}
