/* ── ProjectX Landing — Majestic / tablet-mx tokens ── */
:root {
  --accent: #fe0052;
  --accent-soft: rgba(254, 0, 82, 0.2);
  --accent-glow: rgba(254, 0, 82, 0.45);
  --accent-deep: #9a0038;
  --bg: #07080d;
  --bg-elev: #0c0e16;
  --card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f8;
  --muted: rgba(243, 244, 248, 0.48);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --radius: 14px;
  --container: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  --container: 720px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 4px 14px rgba(254, 0, 82, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 6px 18px rgba(254, 0, 82, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(254, 0, 82, 0.45);
  background: var(--accent-soft);
}

.btn--lg {
  min-height: 52px;
  padding: 0 1.6rem;
  font-size: 1rem;
  border-radius: 14px;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
}

.link-btn:hover { color: var(--accent); }

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.header.is-solid {
  background: rgba(7, 8, 13, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 36px;
  width: auto;
  display: block;
  mix-blend-mode: screen; /* logo PNG has black plate */
}

.logo--sm .logo__img {
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #07080d;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.42) saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.88) 0%, rgba(7, 8, 13, 0.55) 42%, rgba(7, 8, 13, 0.55) 58%, rgba(7, 8, 13, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.72) 0%, rgba(7, 8, 13, 0.28) 45%, rgba(7, 8, 13, 0.92) 100%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100% - 40px, var(--container));
  min-height: calc(100dvh - var(--header-h) - 72px);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  text-align: center;
  padding: 12px 0 56px;
  margin-top: -6vh;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__title {
  margin-bottom: 1.1rem;
}

.hero__logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-inline: auto;
  mix-blend-mode: screen; /* logo PNG has black plate */
}

.hero__lead {
  max-width: 34rem;
  margin-inline: auto;
  color: rgba(243, 244, 248, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  margin-bottom: 1.6rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 110px;
}

.stat strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero__stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 max(8px, calc((100% - var(--container)) / 2 - 48px));
  pointer-events: none;
  overflow: visible;
  line-height: 0;
  font-size: 0;
}

.hero__char {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7));
  opacity: 0.95;
}

.hero__char--left {
  margin-left: -3vw;
}

.hero__char--right {
  margin-right: -3vw;
}

.hero__scroll {
  position: absolute;
  right: max(20px, calc((100% - var(--container)) / 2));
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: #090b12;
  padding: 0.85rem 0;
}

.marquee__track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 244, 248, 0.35);
}

.marquee__track span:nth-child(odd) {
  color: rgba(254, 0, 82, 0.7);
}

/* Sections */
.section {
  position: relative;
  padding: 108px 0;
}

.section__head {
  max-width: 560px;
  margin-bottom: 3rem;
}

.section__head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.section__desc {
  color: var(--muted);
  font-size: 1.05rem;
}

/* About */
.about {
  background: var(--bg);
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 2.4rem;
  align-items: center;
}

.about__visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  max-height: 560px;
  width: 100%;
  background: #0c0e16;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 8px 0;
  box-sizing: border-box;
}

.about__shot--char {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
}

.about__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.about__card {
  position: relative;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.about__card:hover {
  border-color: rgba(254, 0, 82, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.about__num {
  display: block;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.about__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.about__card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Gallery */
.gallery {
  background: #080a11;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #10121a;
  min-width: 0;
  aspect-ratio: 16 / 10;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  font-size: 0.88rem;
  font-weight: 700;
}

/* Roles */
.roles__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.role {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  background: #10121a;
}

.role__art {
  position: absolute;
  inset: 0 0 4.8rem 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.role__cutout {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.35s ease;
}

.role:hover .role__cutout {
  transform: translateY(-6px);
}

.role__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.35rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 13, 0.95) 55%);
}

.role__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.role__body p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 24, 34, 0.65), rgba(10, 12, 18, 0.9));
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 0, 82, 0.3);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0e16;
}

.feature__media--cutout {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    linear-gradient(165deg, rgba(254, 0, 82, 0.18), transparent 50%),
    #10121a;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature__media--cutout img {
  width: auto;
  max-width: 70%;
  height: 110%;
  object-fit: contain;
  object-position: bottom center;
}

.feature:hover .feature__media img {
  transform: scale(1.05);
}

.feature__body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Start */
.start {
  background: var(--bg-elev);
}

.start__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.start__visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: #0c0e16;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.start__char {
  width: auto;
  height: 96%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 1.6rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.step__n {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(254, 0, 82, 0.35);
  box-shadow: 0 0 24px var(--accent-soft);
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  max-width: 48rem;
}

.step__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

/* FAQ */
.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(225deg);
  border-color: var(--accent);
}

.faq__item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  background: #05060a;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer__copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer__links a:hover,
.footer__links .link-btn:hover {
  color: var(--text);
}

.footer__links a[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translateX(-50%) translateY(12px);
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: rgba(16, 18, 28, 0.96);
  border: 1px solid rgba(254, 0, 82, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--accent-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1100px) {
  .about__layout,
  .start__layout {
    grid-template-columns: 1fr;
  }

  .hero__char {
    height: 78%;
    opacity: 0.72;
  }

  .roles__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .header__play { display: none; }

  .about__visual {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 780px) {
  .burger { display: grid; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(7, 8, 13, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }

  .nav.is-open { display: flex; }

  .nav__link {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--border);
  }

  .features__grid,
  .roles__row {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .hero__scroll { display: none; }
  .hero__stage { display: none; }

  .hero__content { padding-bottom: 24px; }
  .hero__layout { min-height: calc(100dvh - var(--header-h) - 48px); }
  .start__visual { max-width: 360px; }

  .section { padding: 80px 0; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header__actions .btn--ghost {
    padding: 0 0.85rem;
    font-size: 0.82rem;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll i { animation: none; }
}
