/* ===== Base ===== */
:root {
  --pink: #ff2d94;
  --purple: #7a1fff;
  --orange: #ff7a1a;
  --yellow: #ffd53d;
  --cyan: #29e7ff;
  --bg: #0a0410;
  --bg2: #140620;
  --text: #f5eaff;
  --muted: #b39ccc;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: #fff; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink), var(--purple));
  border-radius: 10px;
}

/* ===== Grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Custom cursor ===== */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 40px; height: 40px;
  border: 1.5px solid #fff;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor.hovered { width: 70px; height: 70px; background: rgba(255,255,255,0.1); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { text-align: center; width: min(80vw, 360px); }
.preloader__logo {
  font-family: "Anton", sans-serif;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.preloader__bar {
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}
.preloader__count {
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--muted);
}

/* ===== Navbar ===== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: background 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(10, 4, 16, 0.6);
  backdrop-filter: blur(14px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__brand {
  font-family: "Anton", sans-serif;
  letter-spacing: 3px;
  font-size: 1.1rem;
}
.nav__links {
  display: flex;
  gap: 34px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav__links a { position: relative; opacity: 0.85; transition: opacity 0.3s; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border: none;
  padding: 11px 22px;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,45,148,0.4); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 6px; }
.nav__burger span { width: 26px; height: 2px; background: #fff; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 15px 34px;
  border-radius: 44px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  box-shadow: 0 8px 30px rgba(255,45,148,0.35);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 44px rgba(255,122,26,0.5); }
.btn--ghost {
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

/* ===== Section shared ===== */
.section__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.section__title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 1px;
}
.section__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 6vw, 90px);
}
.hero__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2a0a3f 0%, #6a1550 35%, #c93a6b 60%, #ff7a3d 80%, #ffb84d 100%);
}
.hero__sun {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(52vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff2b0, #ff5ea8 70%, #ff2d94);
  box-shadow: 0 0 120px 40px rgba(255,120,60,0.6);
  filter: blur(0.4px);
}
.hero__sun::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(180deg, transparent 0 28px, rgba(10,4,16,0.55) 28px 40px);
  mask: linear-gradient(180deg, transparent 45%, #000 55%);
  -webkit-mask: linear-gradient(180deg, transparent 45%, #000 55%);
}
.hero__grid {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) perspective(400px) rotateX(70deg);
  transform-origin: bottom;
  width: 220%;
  height: 45%;
  background-image:
    linear-gradient(rgba(41,231,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,231,255,0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: linear-gradient(180deg, transparent, #000);
  -webkit-mask: linear-gradient(180deg, transparent, #000);
}
.hero__palms {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, transparent 60%, rgba(10,4,16,0.5)),
    linear-gradient(180deg, transparent 55%, rgba(10,4,16,0.85));
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; max-width: 820px; }
.hero__kicker {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero__title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 12rem);
  line-height: 0.85;
  letter-spacing: 2px;
  text-shadow: 0 6px 40px rgba(0,0,0,0.4);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title--accent {
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 520px;
  margin: 26px 0 34px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: #f0e2ff;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 34px;
  right: clamp(20px, 6vw, 90px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero__scroll-line { width: 1px; height: 60px; background: linear-gradient(rgba(255,255,255,0.6), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--cyan);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0% { transform: translateY(-100%);} 100% { transform: translateY(260%);} }

/* ===== Marquee ===== */
.marquee {
  background: var(--pink);
  color: #0a0410;
  overflow: hidden;
  padding: 16px 0;
  border-top: 2px solid #0a0410;
  border-bottom: 2px solid #0a0410;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  font-family: "Anton", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 3px;
}
.marquee__track span { padding-right: 30px; }

/* ===== About ===== */
.about {
  padding: clamp(80px, 12vw, 180px) clamp(20px, 6vw, 90px);
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}
.about__head { max-width: 900px; margin-bottom: 70px; }
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about__lead { font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.6; color: #e4d4f5; }
.about__stats { display: flex; flex-direction: column; gap: 34px; }
.stat { border-left: 2px solid var(--pink); padding-left: 22px; }
.stat__num {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__suffix { font-family: "Anton", sans-serif; font-size: 2rem; color: var(--pink); }
.stat__label { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; letter-spacing: 1px; }

/* ===== Characters ===== */
.chars {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 90px);
  background: var(--bg2);
}
.chars__title { margin: 6px 0 60px; }
.chars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.char {
  position: relative;
  height: clamp(420px, 60vh, 640px);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  cursor: pointer;
  will-change: transform;
}
.char__bg {
  position: absolute; inset: 0;
  transition: transform 0.6s var(--ease);
  z-index: 0;
  overflow: hidden;
}
.char__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.char--lucia .char__bg {
  background: linear-gradient(180deg, #3a0f4d, #ff2d94 130%);
}
.char--jason .char__bg {
  background: linear-gradient(180deg, #12203f, #ff7a1a 150%);
}
.char::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(5,2,10,0.92));
  z-index: 1;
}
.char:hover .char__bg { transform: scale(1.06); }
.char:hover .char__img { transform: scale(1.04); }
.char__img { transition: transform 0.6s var(--ease); }
.char__meta { position: relative; z-index: 2; }
.char__index { font-family: "Anton", sans-serif; font-size: 1rem; color: var(--yellow); letter-spacing: 2px; }
.char__name {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  margin: 6px 0 14px;
  letter-spacing: 2px;
}
.char__desc { max-width: 420px; color: #e9dcf7; line-height: 1.55; font-size: 0.98rem; margin-bottom: 16px; }
.char__link {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  transition: color 0.3s, transform 0.3s var(--ease);
}
.char__link:hover { color: var(--yellow); transform: translateX(4px); }

/* ===== Trailer ===== */
.trailer {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 90px);
  text-align: center;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}
.trailer__title { margin: 6px 0 50px; }
.trailer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.trailer__card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, #1a0730, #45103f);
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.trailer__card:hover { transform: translateY(-6px); border-color: rgba(255,45,148,0.45); }
.trailer__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.trailer__card:hover .trailer__poster { transform: scale(1.05); }
.trailer__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,2,10,0.75));
  z-index: 1;
}
.trailer__glow {
  position: absolute; inset: -2px;
  background: linear-gradient(120deg, var(--pink), var(--cyan), var(--orange));
  filter: blur(30px);
  opacity: 0.3;
  z-index: -1;
}
.trailer__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px; height: 80px;
  border-radius: 50%;
  color: #0a0410;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
  animation: pulse 2.4s infinite;
}
.trailer__card:hover .trailer__play { transform: translate(-50%, -50%) scale(1.12); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,45,148,0.5); }
  70% { box-shadow: 0 0 0 26px rgba(255,45,148,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,148,0); }
}
.trailer__label {
  position: absolute;
  bottom: 20px; left: 24px;
  z-index: 2;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.trailer__links {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.trailer__links a { color: var(--cyan); transition: color 0.3s; }
.trailer__links a:hover { color: var(--pink); }
.trailer__links span { color: var(--muted); }

/* ===== Video modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 10, 0.88);
  backdrop-filter: blur(8px);
}
.video-modal__dialog {
  position: relative;
  width: min(100%, 1000px);
  z-index: 1;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}
.video-modal.is-open .video-modal__dialog { transform: scale(1); }
.video-modal__close {
  position: absolute;
  top: -48px; right: 0;
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.video-modal__close:hover { background: var(--pink); transform: rotate(90deg); }
.video-modal__frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  background: #000;
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
body.modal-open { overflow: hidden; }

/* ===== Features ===== */
.features { padding: 0 clamp(20px, 6vw, 90px) clamp(60px, 10vw, 120px); background: var(--bg); }
.features__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--pink); background: rgba(255,45,148,0.05); }
.feature h4 { font-size: 1.3rem; margin-bottom: 12px; }
.feature p { color: var(--muted); line-height: 1.6; font-size: 0.95rem; }

/* ===== Pre-order ===== */
.preorder {
  padding: clamp(90px, 14vw, 200px) clamp(20px, 6vw, 90px);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(122,31,255,0.35), transparent 60%),
    linear-gradient(180deg, var(--bg), #1a0730);
  text-align: center;
}
.preorder__inner { max-width: 720px; margin: 0 auto; }
.preorder__title { font-family: "Anton", sans-serif; font-size: clamp(3rem, 9vw, 8rem); line-height: 0.9; }
.preorder__title em { font-style: normal; background: linear-gradient(90deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preorder__sub { color: #e4d4f5; font-size: 1.1rem; margin: 24px 0 34px; }
.preorder__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.preorder__form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 22px;
  border-radius: 44px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.preorder__form input:focus { border-color: var(--cyan); }
.preorder__form input::placeholder { color: rgba(255,255,255,0.4); }
.preorder__note { margin-top: 26px; color: var(--muted); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }

/* ===== Footer ===== */
.footer { padding: 60px clamp(20px, 6vw, 90px) 40px; background: #05020a; overflow: hidden; }
.footer__big {
  font-family: "Anton", sans-serif;
  font-size: clamp(4rem, 22vw, 20rem);
  line-height: 0.8;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,45,148,0.35), rgba(122,31,255,0.05));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 6px;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; gap: 16px;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--pink); }

/* ===== Reveal defaults (before GSAP) ===== */
[data-reveal], [data-lines] .lineInner { will-change: transform, opacity; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .chars__grid { grid-template-columns: 1fr; }
  .trailer__grid { grid-template-columns: 1fr; }
  .features__row { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}
