:root {
  --ink: #ebefff;
  --ink-soft: #a7b4da;
  --sun: #ff0038;
  --mint: #0094ff;
  --paper: #040406;
  --card: #0b0d14;
  --card-soft: #111525;
  --edge: #2a3f78;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --topbar-offset: 11.5rem;
}

html {
  scroll-padding-top: var(--topbar-offset);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -8px;
  background: url("../../images/Background.png") center / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.015);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 0, 56, 0.25), transparent 42%),
    radial-gradient(circle at 84% 6%, rgba(0, 148, 255, 0.28), transparent 45%),
    rgba(2, 2, 4, 0.74);
  z-index: -1;
  pointer-events: none;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 12, 24, 0.82);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.2rem 4rem;
  background: linear-gradient(125deg, rgba(8, 8, 12, 0.9), rgba(16, 18, 30, 0.86) 42%, rgba(12, 16, 28, 0.9) 100%);
}

.hero__bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  z-index: 0;
}

.hero__bg-shape--left {
  width: 420px;
  height: 420px;
  left: -220px;
  top: -120px;
  background: rgba(255, 0, 56, 0.34);
}

.hero__bg-shape--right {
  width: 360px;
  height: 360px;
  right: -140px;
  bottom: -190px;
  background: rgba(0, 148, 255, 0.34);
}

.nav,
.hero__content {
  position: relative;
  z-index: 1;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-family: "Changa", sans-serif;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav__brand img {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 1rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav__links a:hover {
  color: var(--sun);
}

.hero__content {
  max-width: 1100px;
  margin: 2.8rem auto 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.77rem;
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Changa", sans-serif;
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  max-width: 11ch;
}

.hero__lead {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.hero__actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  text-decoration: none;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn--primary {
  background:
    radial-gradient(120% 180% at 10% 0%, rgba(255, 115, 146, 0.32), transparent 46%),
    radial-gradient(130% 190% at 90% 100%, rgba(80, 170, 255, 0.34), transparent 50%),
    linear-gradient(135deg, #d61345 0%, #9f1f74 48%, #1f66d8 100%);
  color: #f3fffb;
  border-color: rgba(220, 236, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 22px rgba(5, 10, 24, 0.5);
}

.btn--primary:hover {
  filter: saturate(1.08) brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 26px rgba(5, 10, 24, 0.58);
}

.btn--ghost {
  border-color: var(--edge);
  color: var(--ink);
  background: rgba(14, 18, 30, 0.58);
}

.showcase {
  overflow: hidden;
}

.site-discord {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1.2rem;
}

.site-discord__inner {
  display: grid;
  grid-template-columns: minmax(280px, 350px) 1fr;
  gap: 1.2rem;
  align-items: start;
}

.site-discord__widget {
  width: min(100%, 350px);
  height: 500px;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.site-discord__copy {
  max-width: 64ch;
}

.site-discord__copy h2 {
  margin-bottom: 0.7rem;
}

.site-discord__copy p {
  margin: 0 0 0.7rem;
}

.carousel-3d {
  height: 430px;
  display: grid;
  place-items: center;
  margin-top: 0.5rem;
}

.carousel-3d__track {
  position: relative;
  width: min(92vw, 940px);
  height: 390px;
}

.carousel-3d__track img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 308px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  transition: transform 500ms ease, opacity 500ms ease;
  will-change: transform, opacity;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.section {
  margin-top: 2.8rem;
}

.section__heading {
  margin-bottom: 0.8rem;
}

.section p {
  max-width: 72ch;
  color: var(--ink-soft);
}

.section--highlight {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  border: 1px solid var(--edge);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.pillar {
  background: linear-gradient(180deg, #12172a, #101424);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 0.9rem;
}

.pillar h3 {
  font-size: 1.2rem;
}

.gallery-controls {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
  margin: 1rem 0;
}

.gallery-controls label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.gallery-controls select,
.gallery-controls input {
  border: 1px solid var(--edge);
  background: #121829;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  color: #e8ecff;
}

.set-description {
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

.card-tile {
  margin: 0;
  border-radius: 14px;
  background: var(--card-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 180ms ease;
  border: 0;
  padding: 0;
}

.card-tile:hover,
.card-tile:focus-visible {
  transform: translateY(-4px);
}

.card-tile__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-tile figcaption {
  padding: 0.6rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--card-soft);
  text-align: left;
  display: grid;
  gap: 0.22rem;
}

.card-tile__number {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.card-tile__name {
  font-size: 0.95rem;
}

.card-tile__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.card-tile__icon {
  width: auto;
  height: 1.05rem;
  max-width: 1.8rem;
  object-fit: contain;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: start;
  justify-items: center;
  background: rgba(2, 6, 16, 0.84);
  padding: 5.25rem 1rem 1rem;
  z-index: 60;
}

.modal.is-open {
  display: grid;
}

.card-view {
  width: min(94vw, 1000px);
  max-height: 86vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 1rem;
  padding: 1rem;
}

.card-view__media {
  display: grid;
  place-items: center;
}

.card-view__media img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.card-view__details {
  color: var(--ink);
}

.card-view__details h3 {
  margin-top: 0;
}

.card-view__subtitle {
  color: var(--ink-soft);
  margin: 0.3rem 0 0.8rem;
}

.card-view__text {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.card-view__text p {
  margin: 0 0 0.65rem;
}

.card-view__text p:last-child {
  margin-bottom: 0;
}

.inline-icon {
  height: 1em;
  width: auto;
  vertical-align: middle;
}

.card-view__close {
  margin-top: 1rem;
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: rgba(14, 18, 30, 0.78);
  cursor: pointer;
}

.modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 700;
  background: #0f2742;
  color: #dff8ff;
  cursor: pointer;
}

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

.tutorial__topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.tutorial__counter {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.tutorial__progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(61, 83, 142, 0.32);
  overflow: hidden;
}

.tutorial__progress span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, #ff315f, #2e84ff);
  transition: width 240ms ease;
}

.tutorial-slide {
  display: grid;
  grid-template-columns: 1.25fr minmax(220px, 380px);
  gap: 1rem;
  align-items: center;
  background: linear-gradient(180deg, #131a30, #0f1528);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1rem;
  width: 100%;
  height: 32rem;
  overflow: auto;
}

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

.tutorial-slide__content p {
  margin-top: 0.6rem;
}

.tutorial-slide__content ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.tutorial-slide__card {
  margin: 0;
  display: grid;
  place-items: center;
}

.tutorial-slide__card img {
  width: min(100%, 320px);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.tutorial-slide__card--row {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.6rem;
}

.tutorial-slide__card--row img {
  width: 100%;
}

.tutorial__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.tutorial__button {
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: rgba(14, 22, 42, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.tutorial__button:hover {
  background: rgba(31, 42, 76, 0.95);
}

.tutorial__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.tutorial__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(188, 208, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.tutorial__dot.is-active {
  background: linear-gradient(90deg, #ff315f, #2e84ff);
  border-color: transparent;
}

.tutorial__actions {
  margin-top: 1rem;
}

@media (max-width: 740px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-controls {
    grid-template-columns: 1fr;
  }

  .card-view {
    grid-template-columns: 1fr;
  }

  .nav__brand img {
    width: 3rem;
    height: 3rem;
  }

  .carousel-3d {
    height: 300px;
  }

  .carousel-3d__track {
    height: 260px;
  }

  .carousel-3d__track img {
    width: 150px;
    height: 210px;
  }

  .site-discord {
    margin: 1.2rem auto 2.2rem;
  }

  .site-discord__inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-discord__copy {
    max-width: 72ch;
  }

  .site-discord__widget {
    width: 100%;
    max-width: 350px;
    height: min(72vh, 500px);
  }

  .tutorial__topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .tutorial-slide {
    grid-template-columns: 1fr;
    height: 44rem;
  }

  .tutorial-slide__card {
    order: -1;
  }

  .tutorial-slide__card img {
    width: min(100%, 260px);
  }

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

  .tutorial__button {
    width: 100%;
  }

}
