:root {
  color-scheme: dark;
  --bg: #07030d;
  --bg-soft: #11081e;
  --panel: rgba(20, 9, 34, 0.72);
  --panel-strong: rgba(31, 12, 50, 0.86);
  --line: rgba(212, 171, 255, 0.16);
  --line-strong: rgba(212, 171, 255, 0.32);
  --text: #fbf4ff;
  --muted: #cbb7dd;
  --accent: #cf7dff;
  --accent-2: #8f3bff;
  --accent-3: #ffd3ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Bahnschrift", "Aptos", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(207, 125, 255, 0.24), transparent 26%),
    radial-gradient(circle at top right, rgba(143, 59, 255, 0.2), transparent 24%),
    radial-gradient(circle at 20% 80%, rgba(255, 211, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #020106 0%, var(--bg) 48%, #0b0514 100%);
  overflow-x: hidden;
}

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

.shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(34px);
  pointer-events: none;
  opacity: 0.56;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-one {
  width: 340px;
  height: 340px;
  top: -80px;
  right: -80px;
  background: rgba(207, 125, 255, 0.32);
}

.glow-two {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: 140px;
  background: rgba(255, 211, 255, 0.16);
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.4px, transparent 0.4px);
  background-size: 5px 5px;
}

.hero {
  padding: 26px 0 34px;
}

.topbar,
.hero-grid,
.event-layout,
.footer-hero {
  display: grid;
  gap: 22px;
}

.topbar {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  margin-bottom: 26px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon,
.banner-mini-icon {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-copy h1,
.hero-copy h2,
.section-head h3,
.dragon-caption strong,
.footer-hero h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-copy h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.eyebrow,
.section-kicker,
.banner-tag span,
.dragon-caption span {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: #d9b3ff;
}

.nav-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-link {
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

.button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(207, 125, 255, 0.12);
  box-shadow: 0 12px 28px rgba(72, 14, 117, 0.18);
}

.button.primary {
  color: #14071f;
  background: linear-gradient(135deg, #ffe4ff, #c56aff 52%, #8f3bff);
  border-color: transparent;
  font-weight: 700;
}

.button.secondary {
  background: rgba(207, 125, 255, 0.08);
}

.button.small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.95rem;
}

.nav-link:hover,
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.discord-link {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(143, 59, 255, 0.2));
  border-color: rgba(168, 145, 255, 0.38);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
}

.hero-copy,
.hero-banner,
.panel,
.footer-hero {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 28px;
  border-radius: 30px;
  overflow: hidden;
}

.hero-copy::before,
.panel::before,
.footer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at top right, rgba(255, 211, 255, 0.14), transparent 34%);
  opacity: 0.6;
}

.hero-copy h2 {
  font-size: clamp(3rem, 6vw, 5.3rem);
}

.lead,
.section-text,
.mod-card p,
.feature-list,
.footer-hero span {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.pill {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 168, 255, 0.22);
  background: rgba(184, 92, 255, 0.12);
  color: #fff6ff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(10, 6, 16, 0.42)),
    rgba(7, 5, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: #cfb8e2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.stat-card strong {
  font-size: 1.05rem;
}

.stat-card a {
  color: inherit;
  text-decoration: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 171, 255, 0.28);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-banner {
  padding: 16px;
  border-radius: 30px;
  animation: floatCard 12s ease-in-out infinite;
}

.banner-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-frame img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 600ms ease, filter 600ms ease;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 10, 38, 0.2), rgba(10, 5, 20, 0.68)),
    radial-gradient(circle at 50% 0%, rgba(184, 92, 255, 0.32), transparent 34%);
}

.banner-tag {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(10, 5, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.hero-banner:hover .banner-frame img,
.dragon-stage:hover img {
  transform: scale(1.05);
  filter: saturate(1.06) contrast(1.04);
}

.banner-tag strong,
.dragon-caption strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.main-grid {
  display: grid;
  gap: 24px;
  padding-bottom: 36px;
}

.panel,
.footer-hero {
  border-radius: 28px;
  padding: 24px;
  overflow: hidden;
}

.wide-panel {
  background:
    linear-gradient(135deg, rgba(184, 92, 255, 0.18), rgba(122, 44, 255, 0.08)),
    var(--panel);
}

.section-head {
  margin-bottom: 16px;
}

.section-head h3 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
}

.section-text {
  margin: 0;
  max-width: 70ch;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.rule-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(11, 6, 17, 0.46)),
    rgba(11, 6, 17, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rule-card h4,
.command-card code,
.footer-contact strong,
.footer-contact span,
.footer-note {
  margin: 0;
}

.rule-index {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(184, 92, 255, 0.14);
  border: 1px solid rgba(208, 164, 255, 0.18);
  color: #f2dcff;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.rule-card h4 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rule-card:hover,
.command-card:hover,
.mod-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 171, 255, 0.26);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.command-panel {
  background:
    radial-gradient(circle at top right, rgba(245, 168, 255, 0.12), transparent 40%),
    var(--panel-strong);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(9, 5, 14, 0.44)),
    rgba(9, 5, 14, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.command-card code {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(207, 125, 255, 0.14);
  border: 1px solid rgba(208, 164, 255, 0.18);
  color: #fff8ff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.96rem;
  white-space: nowrap;
}

.command-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.mods-grid {
  display: grid;
  gap: 14px;
}

.mod-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(11, 6, 17, 0.42)),
    rgba(11, 6, 17, 0.42);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mod-name {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}

.event-panel {
  background:
    linear-gradient(180deg, rgba(23, 8, 38, 0.76), rgba(9, 4, 15, 0.9)),
    radial-gradient(circle at center, rgba(184, 92, 255, 0.2), transparent 60%);
}

.event-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.feature-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.feature-list li + li {
  margin-top: 8px;
}

.dragon-stage {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(184, 92, 255, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(12, 6, 18, 0.92), rgba(7, 4, 12, 0.96));
}

.dragon-stage img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  opacity: 0.82;
  mix-blend-mode: screen;
  transform: scale(1.03);
  transition: transform 700ms ease, filter 700ms ease;
}

.dragon-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 92, 255, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(86, 19, 129, 0.08), rgba(11, 2, 19, 0.52));
}

.dragon-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(8, 4, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-banner,
.dragon-stage {
  will-change: transform;
}

.footer-hero {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 40px;
  background:
    linear-gradient(135deg, rgba(184, 92, 255, 0.18), rgba(122, 44, 255, 0.08)),
    var(--panel);
}

.footer-hero h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  max-width: 18ch;
}

.footer-note {
  margin-top: 10px;
}

.footer-note a,
.footer-contact {
  color: inherit;
  text-decoration: none;
}

.footer-note a:hover,
.footer-contact:hover {
  text-decoration: underline;
}

.footer-stack {
  display: grid;
  gap: 12px;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(12, 5, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease;
}

.footer-badge img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.footer-contact {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(12, 5, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.footer-contact span {
  color: #d9b3ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.footer-contact strong {
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(10px);
}

.reveal.is-visible {
  animation: rise 820ms cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.reveal-down {
  transform: translateY(-18px);
}

.reveal-left {
  transform: translateX(-22px);
}

.reveal-right {
  transform: translateX(22px);
}

.reveal-up {
  transform: translateY(26px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes floatCard {
  from {
    transform: translateY(0) rotate(-0.15deg);
  }
  to {
    transform: translateY(-8px) rotate(0.15deg);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, 16px, 0) scale(1.04);
  }
}

@media (max-width: 1024px) {
  .topbar,
  .hero-grid,
  .event-layout,
  .footer-hero {
    grid-template-columns: 1fr;
  }

  .topbar-links {
    justify-content: flex-start;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .rules-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 1180px);
  }

  .topbar {
    justify-items: start;
  }

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

  .mod-card,
  .cta-row,
  .footer-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-banner,
  .panel,
  .footer-hero {
    border-radius: 24px;
    padding: 20px;
  }

  .hero-copy h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }
}

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .nav-link,
  .button {
    transition: none;
  }

  .hero-banner {
    animation: none;
  }

  .bg-glow {
    animation: none;
  }
}
