:root {
  --blue-950: #061225;
  --blue-900: #071a35;
  --blue-800: #0a2d64;
  --blue-700: #0748a6;
  --blue-600: #0a62d0;
  --blue-500: #1681ff;
  --blue-200: #b9dbff;
  --white: #ffffff;
  --mist: rgba(255, 255, 255, 0.82);
  --glass: rgba(5, 18, 37, 0.66);
  --glass-strong: rgba(5, 18, 37, 0.86);
  --line: rgba(255, 255, 255, 0.24);
  --header-height: 70px;
  --footer-height: 44px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--white);
}

button,
iframe {
  font: inherit;
}

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

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

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 460ms ease, visibility 460ms ease;
}

.page-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 4.25rem;
  height: 4.25rem;
  border: 0.3rem solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--blue-500);
  border-right-color: var(--white);
  border-radius: 999px;
  animation: loaderSpin 850ms linear infinite;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--header-height);
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(185, 219, 255, 0.18);
  background: rgba(5, 18, 37, 0.9);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.site-nav a {
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(10, 98, 208, 0.48);
  color: var(--white);
}

.site,
.hero,
.media-stage,
.media-layer,
.hero-shade,
.diamond-overlay,
.slide-curtain {
  position: fixed;
  inset: 0;
}

.site {
  isolation: isolate;
}

.hero {
  overflow: hidden;
  padding:
    calc(var(--header-height) + clamp(1rem, 3vh, 2rem))
    clamp(1rem, 4vw, 4rem)
    calc(var(--footer-height) + clamp(1rem, 3vh, 2rem));
}

.media-stage {
  z-index: 0;
  background: var(--blue-950);
}

.media-layer {
  opacity: 0;
}

.media-layer.is-current {
  opacity: 1;
}

.media-layer img,
.media-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-position, center center);
}

.media-layer img {
  transform: scale(1.012);
  filter: blur(0.9px) saturate(1.08) contrast(1.03);
}

.media-layer video {
  background: #000;
}

.hero-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.02) 0, rgba(0, 0, 0, 0.1) 34%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(90deg, rgba(5, 18, 37, 0.78), rgba(5, 18, 37, 0.12) 46%, rgba(5, 18, 37, 0.78));
  pointer-events: none;
}

.diamond-overlay {
  z-index: 2;
  opacity: 0.06;
  mix-blend-mode: screen;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(255, 255, 255, 0.82) 24% 34%, transparent 34% 58%, rgba(22, 129, 255, 0.82) 58% 68%, transparent 68%) 0 0 / 330px 330px;
  animation: diamondsDrift 38s linear infinite;
}

.slide-curtain {
  position: absolute;
  z-index: 3;
  visibility: hidden;
  opacity: 0;
  background: #000;
  pointer-events: none;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.slide-curtain.is-active {
  visibility: visible;
  opacity: 1;
}

.hero-layout {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.1vw, 1.1rem);
  width: min(100%, 1280px);
  min-height: calc(100svh - var(--header-height) - var(--footer-height) - clamp(2rem, 6vh, 4rem));
  margin: 0 auto;
}

.hero-layout[data-layout="text-right-widget-left"] {
  flex-direction: row-reverse;
}

.hero-layout[data-layout="text-center-widget-right"],
.hero-layout[data-layout="text-left-widget-right"] {
  flex-direction: row;
}

.hero-layout[data-layout="text-center-widget-left"] {
  flex-direction: row-reverse;
}

.hero-layout[data-vertical="top"] {
  align-items: flex-start;
}

.hero-layout[data-vertical="middle"] {
  align-items: center;
}

.hero-layout[data-vertical="bottom"] {
  align-items: flex-end;
}

.copy-panel,
.discord-panel {
  min-width: 0;
  transition: opacity 300ms ease, transform 300ms ease;
}

.copy-panel {
  width: min(100%, var(--copy-width, 800px));
  flex: 0 0 var(--copy-width, 800px);
}

.copy-panel[data-width="compact"] {
  --copy-width: 660px;
}

.copy-panel[data-width="medium"] {
  --copy-width: 720px;
}

.copy-panel[data-width="large"] {
  --copy-width: 780px;
}

.copy-panel[data-width="wide"] {
  --copy-width: 840px;
}

.copy-panel__inner {
  padding: clamp(1.25rem, 2.2vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    opacity 340ms var(--ease),
    transform 340ms var(--ease),
    filter 340ms var(--ease);
}

.copy-panel.is-swapping .copy-panel__inner {
  opacity: 0;
  transform: translateX(-18px) scale(0.98);
  filter: blur(10px);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--blue-200);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  font-weight: 950;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.copy-panel h1 {
  display: block;
  max-width: none;
  margin: 0;
  font-size: clamp(2.7rem, 4.45vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.title-kicker {
  display: block;
  color: var(--white);
}

.title-highlight {
  color: var(--blue-500);
  text-shadow: 0 0 26px rgba(22, 129, 255, 0.36);
}

.copy-panel #slideDescription {
  max-width: 65ch;
  margin: 1rem 0 0;
  color: var(--mist);
  font-size: clamp(1rem, 1.08vw, 1.15rem);
  line-height: 1.55;
}

.slide-buttons-title {
  margin: 1.25rem 0 0.65rem;
  color: var(--blue-200);
  font-size: clamp(0.72rem, 0.86vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.slide-buttons-title[hidden] {
  display: none;
}

.slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.slide-buttons[hidden] {
  display: none;
}

.slide-button {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 3.6rem;
  padding: 0.55rem 0.92rem;
  border: 1px solid rgba(185, 219, 255, 0.34);
  border-radius: 0.95rem;
  appearance: none;
  background: rgba(5, 18, 37, 0.72);
  color: var(--white);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

a.slide-button,
button.slide-button {
  cursor: pointer;
}

a.slide-button:hover,
button.slide-button:hover,
button.slide-button.is-copied {
  transform: translateY(-2px);
  border-color: rgba(22, 129, 255, 0.82);
  background: rgba(10, 98, 208, 0.52);
}

button.slide-button.is-copied {
  border-color: rgba(134, 239, 172, 0.82);
}

.slide-button img {
  width: 3.05rem;
  height: 3.05rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.38));
}

.discord-panel {
  width: 350px;
  flex: 0 0 350px;
}

.discord-panel__frame {
  overflow: hidden;
  border: 1px solid rgba(185, 219, 255, 0.34);
  border-radius: 1.1rem;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.discord-panel__header {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(10, 98, 208, 0.94), rgba(255, 255, 255, 0.1)),
    var(--blue-800);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.discord-panel iframe {
  display: block;
  width: 350px;
  max-width: 100%;
  height: min(500px, 54vh);
  border: 0;
  border-radius: inherit;
}

.site-footer {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  min-height: var(--footer-height);
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #3d4148;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-align: center;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes diamondsDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 660px -330px;
  }
}

@media (max-width: 1240px) {
  .hero-layout {
    width: min(100%, 1180px);
  }
  .copy-panel[data-width="wide"],
  .copy-panel[data-width="large"] {
    --copy-width: 760px;
  }
}

@media (max-width: 1050px) {
  body {
    overflow-y: auto;
  }

  .site,
  .hero,
  .media-stage,
  .media-layer,
  .hero-shade,
  .diamond-overlay,
  .slide-curtain {
    position: fixed;
  }

  .hero {
    overflow-y: auto;
    padding:
      calc(var(--header-height) + 1rem)
      1rem
      calc(var(--footer-height) + 1rem);
  }

  .hero-layout,
  .hero-layout[data-layout] {
    display: flex;
    min-height: calc(100svh - var(--header-height) - var(--footer-height) - 2rem);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .copy-panel,
  .discord-panel {
    width: min(100%, 740px);
    flex: 0 1 auto;
    align-self: center;
  }

  .copy-panel h1 {
    font-size: clamp(2.35rem, 9vw, 4.65rem);
  }

  .discord-panel iframe {
    width: 100%;
    height: min(430px, 45vh);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
    --footer-height: 52px;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.58rem 0.8rem;
    font-size: 0.84rem;
  }

  .copy-panel__inner {
    border-radius: 1.1rem;
  }

  .copy-panel h1 {
    font-size: clamp(2.15rem, 12vw, 4.1rem);
  }

  .slide-button {
    width: 100%;
    justify-content: center;
  }

  .discord-panel iframe {
    height: min(390px, 42vh);
  }
}

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

.loader-error {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(160, 20, 20, 0.82);
  color: #fff;
  text-align: center;
}
