/* ==========================================================================
  FROM THE SIN — Stylesheet
   ========================================================================== */

:root {
  --bg: #0d0618;
  --bg-soft: #150b28;
  --surface: #1c0f33;
  --surface-2: #241543;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3ecff;
  --text-muted: #b8a6d6;
  --accent: #ff4fa3;
  --accent-2: #7ee8fa;
  --accent-3: #ffd166;
  --grad: linear-gradient(135deg, #ff4fa3 0%, #7ee8fa 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.section__title--left {
  text-align: left;
}

.section__lead {
  text-align: center;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

.btn--primary {
  background: var(--grad);
  color: #1a0b2e;
  box-shadow: 0 10px 30px rgba(255, 79, 163, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 38px rgba(255, 79, 163, 0.5);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 79, 163, 0.25), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(126, 232, 250, 0.2), transparent 55%),
    var(--bg);
}

.age-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.age-gate__card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.age-gate__logo {
  margin: 0 auto 1rem;
}

.age-gate__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.age-gate__text {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.age-gate__text--strong {
  color: var(--accent);
  font-weight: 700;
}

.age-gate__actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.age-gate__fine {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13, 6, 24, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.nav__brand-accent {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.nav__links .nav__cta {
  background: var(--grad);
  color: #1a0b2e;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 6, 24, 0.96) 0%, rgba(13, 6, 24, 0.75) 45%, rgba(13, 6, 24, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}

.hero__content {
  position: relative;
  max-width: 680px;
  padding: 5rem 0;
}

.hero__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(126, 232, 250, 0.35);
  background: rgba(126, 232, 250, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  list-style: none;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
}

.hero__stats strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
}

.hero__stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Error page */
.error-page {
  min-height: 100vh;
}

.error-page__main {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.error-page__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.error-page__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 6, 24, 0.98) 0%, rgba(13, 6, 24, 0.82) 50%, rgba(13, 6, 24, 0.58) 100%),
    linear-gradient(0deg, rgba(13, 6, 24, 0.94), transparent 55%);
}

.error-page__content {
  padding-block: 3rem;
}

.error-page__brand {
  width: fit-content;
  margin-bottom: 3rem;
}

.error-page__code {
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.error-page__title {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}

.error-page__text {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 163, 0.4);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: rgba(255, 79, 163, 0.1);
  border: 1px solid rgba(255, 79, 163, 0.22);
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Story */
.story {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.story__inner {
  max-width: 820px;
}

.story__copy p {
  color: var(--text-muted);
  margin: 1rem 0 1.75rem;
}

/* Characters */
.characters__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.character-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.character-card:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 232, 250, 0.4);
}

.character-card__media {
  aspect-ratio: 794 / 446;
  overflow: hidden;
}

.character-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.character-card:hover .character-card__media img {
  transform: scale(1.05);
}

.character-card__body {
  padding: 1.25rem;
}

.character-card__name {
  font-size: 1.3rem;
  font-weight: 800;
}

.character-card__role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.character-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Gallery */
.gallery__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}

.gallery__filter {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gallery__filter:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.gallery__filter.is-active {
  background: var(--grad);
  color: #1a0b2e;
  border-color: transparent;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  aspect-ratio: 794 / 446;
  display: block;
}

.gallery__item--animated {
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 6, 24, 0.7), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item.is-hidden {
  display: none;
}

/* Download */
.download {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 79, 163, 0.18), transparent 55%),
    var(--bg-soft);
  border-block: 1px solid var(--border);
}

.download__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 163, 0.45);
}

.download-card--primary {
  grid-column: 1 / -1;
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(255, 79, 163, 0.18), rgba(126, 232, 250, 0.08)),
    var(--surface);
  border-color: rgba(255, 79, 163, 0.45);
}

.download-card--primary .download-card__icon {
  color: var(--bg);
  background: var(--grad);
  border-color: transparent;
}

.download-card--primary .download-card__label {
  font-size: 1.3rem;
}

.download-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.download-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent-2);
  background: rgba(126, 232, 250, 0.08);
  border: 1px solid rgba(126, 232, 250, 0.2);
  border-radius: 12px;
}

.download-card__icon svg {
  width: 25px;
  height: 25px;
}

.download-card__label {
  font-weight: 800;
  font-size: 1.05rem;
}

.download-card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.download__note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* FAQ */
.faq__list {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 0.9rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer__brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 320px;
}

.footer__legal {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1.5rem !important;
}

.footer__col h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer__col a {
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.footer__col a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  background: rgba(5, 2, 10, 0.92);
  backdrop-filter: blur(8px);
  padding: 3rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  max-width: min(920px, 90vw);
  max-height: 82vh;
  text-align: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.lightbox__caption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 26px;
  height: 26px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__nav--prev {
  left: 1.5rem;
}

.lightbox__nav--next {
  right: 1.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .characters__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__links li:last-child {
    border-bottom: none;
  }

  .nav__toggle {
    display: flex;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .features__grid,
  .characters__grid,
  .download__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 1.5rem;
  }

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

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
