/* ============================================
   GOING TO APE — $GTA
   Vice City Neon Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --pink: #ff2d95;
  --magenta: #e4007c;
  --purple: #9b30ff;
  --violet: #6b1fff;
  --deep-violet: #2d0a4e;
  --near-black: #0a0014;
  --dark: #12001f;
  --darker: #080010;
  --orange: #ff6b35;
  --cyan: #00e5ff;
  --white: #ffffff;
  --gray: #b8a0c8;
  --glass: rgba(20, 0, 40, 0.65);
  --glass-border: rgba(255, 45, 149, 0.25);

  /* Typography */
  --font-display: 'Arial Black', 'Impact', 'Haettenschweiler', 'Franklin Gothic Bold', sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --nav-height: 72px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container: min(1200px, 92vw);

  /* Effects */
  --neon-pink: 0 0 10px var(--pink), 0 0 30px rgba(255, 45, 149, 0.4), 0 0 60px rgba(255, 45, 149, 0.2);
  --neon-purple: 0 0 10px var(--purple), 0 0 30px rgba(155, 48, 255, 0.4);
  --text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 45, 149, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--near-black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.loaded {
  opacity: 1;
}

body:not(.loaded) {
  opacity: 0;
}

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

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

em {
  font-style: italic;
  color: var(--pink);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-shadow: var(--text-shadow);
}

.section__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-neon {
  color: var(--pink);
  text-shadow: var(--neon-pink);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 45, 149, 0.5);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-ring.cursor-ring--hover {
  width: 52px;
  height: 52px;
  border-color: var(--pink);
  background: rgba(255, 45, 149, 0.08);
}

/* Hide custom cursor on touch */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--near-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
}

.loader__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--pink);
  box-shadow: var(--neon-pink);
  animation: loaderPulse 1s ease-in-out infinite;
}

.loader__text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--pink);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.loader__bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 45, 149, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: var(--neon-pink);
  animation: loaderProgress 1.2s ease-out forwards;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes loaderProgress {
  to { width: 100%; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: var(--white);
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-pink);
}

.btn--secondary {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: var(--white);
  border-color: var(--purple);
  box-shadow: 0 0 15px rgba(155, 48, 255, 0.3);
}

.btn--secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-purple);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 45, 149, 0.3);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1001;
}

.navbar__logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pink);
}

.navbar__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pink);
  letter-spacing: 0.1em;
}

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

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.navbar__social:hover {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.4);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

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

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 0, 20, 0.7) 0%, rgba(10, 0, 20, 0.5) 40%, rgba(10, 0, 20, 0.85) 100%),
    linear-gradient(90deg, rgba(10, 0, 20, 0.9) 0%, rgba(10, 0, 20, 0.4) 50%, rgba(10, 0, 20, 0.6) 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: glowDrift 8s ease-in-out infinite alternate;
}

.hero__glow--1 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  top: 10%;
  left: -5%;
}

.hero__glow--2 {
  width: 350px;
  height: 350px;
  background: var(--purple);
  bottom: 20%;
  right: -5%;
  animation-delay: -4s;
}

@keyframes glowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 149, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 149, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero__palm {
  position: absolute;
  bottom: 15%;
  width: 120px;
  height: 200px;
  opacity: 0.15;
  background: var(--near-black);
  clip-path: polygon(50% 0%, 20% 40%, 0% 60%, 15% 55%, 5% 80%, 30% 65%, 50% 100%, 70% 65%, 95% 80%, 85% 55%, 100% 60%, 80% 40%);
}

.hero__palm--left { left: 5%; animation: palmSway 6s ease-in-out infinite; }
.hero__palm--right { right: 8%; animation: palmSway 6s ease-in-out infinite reverse; transform: scaleX(-1); }

@keyframes palmSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.hero__palm--right {
  animation-name: palmSwayRight;
}

@keyframes palmSwayRight {
  0%, 100% { transform: scaleX(-1) rotate(-2deg); }
  50% { transform: scaleX(-1) rotate(2deg); }
}

.hero__horizon {
  position: absolute;
  bottom: 25%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--orange), var(--purple), transparent);
  opacity: 0.6;
  animation: horizonPulse 3s ease-in-out infinite;
}

@keyframes horizonPulse {
  0%, 100% { opacity: 0.4; filter: blur(1px); }
  50% { opacity: 0.8; filter: blur(0); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--pink);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-120px); }
}

.hero__streaks span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 149, 0.6), transparent);
  animation: streakPass 4s linear infinite;
}

.hero__streaks span:nth-child(1) { top: 30%; width: 200px; animation-delay: 0s; }
.hero__streaks span:nth-child(2) { top: 50%; width: 150px; animation-delay: 1.5s; }
.hero__streaks span:nth-child(3) { top: 70%; width: 180px; animation-delay: 3s; }

@keyframes streakPass {
  0% { left: -200px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

/* Night drive road */
.hero__road {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1;
  perspective: 200px;
}

.hero__road-surface {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 0, 20, 0.9) 30%, #0d0018 100%);
}

.hero__road-lines {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.6) 0px,
    rgba(255, 255, 255, 0.6) 40px,
    transparent 40px,
    transparent 80px
  );
  animation: roadLines 1s linear infinite;
}

@keyframes roadLines {
  0% { background-position: 0 0; }
  100% { background-position: -80px 0; }
}

.hero__road-reflection {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 30px;
  background: linear-gradient(180deg, rgba(255, 45, 149, 0.15), transparent);
  filter: blur(8px);
  animation: reflectionPulse 2s ease-in-out infinite;
}

@keyframes reflectionPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem 6rem;
}

.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.hero__eyebrow-x {
  color: var(--pink);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: var(--text-shadow);
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: titleReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title-line[data-delay="0"] { animation-delay: 0.5s; }
.hero__title-line[data-delay="1"] { animation-delay: 0.65s; }
.hero__title-line[data-delay="2"] {
  animation-delay: 0.8s;
  color: var(--pink);
}

.hero__title-line--accent {
  animation-name: titleRevealGlow;
}

@keyframes titleReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes titleRevealGlow {
  to {
    opacity: 1;
    transform: translateY(0);
    text-shadow: var(--neon-pink);
  }
}

.hero__ticker {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--orange);
  letter-spacing: 0.2em;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 1s;
}

.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-top: 1.25rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 1.15s;
}

.hero__desc {
  color: var(--gray);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 1.3s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 1.45s;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__character-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(30px);
  animation: characterEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
  will-change: transform;
}

@keyframes characterEnter {
  to { opacity: 1; transform: translateY(0); }
}

.hero__character-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(255, 45, 149, 0.4), transparent 70%);
  filter: blur(30px);
  animation: charGlowPulse 4s ease-in-out infinite;
}

@keyframes charGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero__character {
  position: relative;
  z-index: 1;
  max-height: min(75vh, 700px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255, 45, 149, 0.3));
  animation: characterFloat 5s ease-in-out infinite;
}

@keyframes characterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Marquee --- */
.marquee-wrap {
  background: var(--dark);
  border-block: 1px solid var(--glass-border);
  overflow: hidden;
}

.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  padding-block: 0.6rem;
}

.marquee--reverse {
  padding-block: 0.4rem;
  background: rgba(255, 45, 149, 0.05);
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  font-size: 0.75rem;
  color: var(--gray);
}

.marquee__track {
  display: flex;
  gap: 2rem;
  animation: marqueeScroll 25s linear infinite;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--pink);
}

.marquee__sep {
  color: var(--purple);
  opacity: 0.5;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- About --- */
.about {
  background: linear-gradient(180deg, var(--dark) 0%, var(--near-black) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--pink);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

.about__body {
  margin-top: 1rem;
  color: var(--gray);
  font-size: 1.05rem;
}

.about__body--accent {
  color: var(--white);
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.about__visual {
  position: relative;
}

.about__city {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, #1a0030 0%, #0a0014 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__city-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 45, 149, 0.1) 100%),
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 20px,
      rgba(155, 48, 255, 0.15) 20px, rgba(155, 48, 255, 0.15) 22px
    );
  clip-path: polygon(
    0% 100%, 0% 60%, 5% 55%, 8% 70%, 12% 45%, 15% 65%, 20% 40%, 25% 60%,
    30% 35%, 35% 55%, 40% 30%, 45% 50%, 50% 25%, 55% 45%, 60% 20%, 65% 40%,
    70% 15%, 75% 35%, 80% 10%, 85% 30%, 90% 5%, 95% 25%, 100% 0%, 100% 100%
  );
}

.about__city-logo {
  position: relative;
  z-index: 1;
  width: 50%;
  border-radius: 50%;
  border: 3px solid var(--pink);
  box-shadow: var(--neon-pink);
}

.about__city-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(255, 45, 149, 0.2), transparent 60%);
}

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

.about-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 10px 40px rgba(255, 45, 149, 0.15);
}

.about-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.about-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--pink);
}

.about-card__desc {
  color: var(--gray);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* --- Lore --- */
.lore {
  background: var(--near-black);
  overflow: hidden;
}

.lore__frame {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 60px rgba(255, 45, 149, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lore__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--pink);
  border-style: solid;
}

.lore__corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.lore__corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.lore__corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.lore__corner--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.lore__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 229, 255, 0.05);
}

.lore__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  text-shadow: var(--text-shadow);
}

.lore__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lore__line {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}

.lore__line--big {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--white);
  letter-spacing: 0.05em;
}

.lore__line--equation {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  color: var(--white);
  padding: 1rem 0;
}

.lore__line--cta {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pink);
  letter-spacing: 0.05em;
}

.lore__character {
  position: absolute;
  right: -60px;
  bottom: -20px;
  width: 200px;
  opacity: 0.3;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(255, 45, 149, 0.3));
}

/* --- Equation --- */
.equation {
  background: linear-gradient(180deg, var(--near-black), var(--deep-violet), var(--near-black));
  padding-block: clamp(3rem, 6vw, 5rem);
}

.equation__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
}

.equation__card {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  min-width: 140px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.equation__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(255, 45, 149, 0.2);
}

.equation__emoji {
  font-size: clamp(3rem, 8vw, 5rem);
  display: block;
  margin-bottom: 0.5rem;
}

.equation__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.equation__operator {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--pink);
  text-shadow: var(--neon-pink);
}

.equation__card--result {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.15), rgba(155, 48, 255, 0.15));
}

.equation__result-ticker {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--pink);
  letter-spacing: 0.1em;
  text-shadow: var(--neon-pink);
}

.equation__card--result.pulse {
  animation: equationPulse 0.8s ease;
}

@keyframes equationPulse {
  0% { box-shadow: none; }
  50% { box-shadow: var(--neon-pink); transform: scale(1.05); }
  100% { box-shadow: 0 0 20px rgba(255, 45, 149, 0.3); transform: scale(1); }
}

/* --- Gallery --- */
.gallery {
  background: var(--dark);
}

.gallery__header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.gallery__item:hover {
  border-color: var(--pink);
  box-shadow: 0 0 30px rgba(255, 45, 149, 0.2);
}

.gallery__item--featured {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--near-black);
}

.gallery__item--featured .gallery__img-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 400px;
}

.gallery__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__img-wrap--hero {
  background: linear-gradient(180deg, #1a0030, #0a0014);
}

.gallery__img-wrap--hero img {
  object-fit: contain;
  object-position: center bottom;
  padding: 1rem;
}

.gallery__img-wrap--logo img {
  object-fit: cover;
  object-position: center;
}

.gallery__img-wrap--crop img {
  object-position: center 20%;
}

.gallery__item:hover .gallery__img-wrap img {
  transform: scale(1.08);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(10, 0, 20, 0.9));
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--pink);
}

/* --- How To Ape --- */
.how-to {
  background: linear-gradient(180deg, var(--dark), var(--near-black));
}

.how-to__header {
  text-align: center;
  margin-bottom: 3rem;
}

.how-to__path {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.how-to__line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--purple), var(--orange));
  opacity: 0.4;
}

.mission-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.mission-step__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pink);
  background: var(--glass);
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 45, 149, 0.3);
  position: relative;
  z-index: 1;
}

.mission-step__content {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition);
}

.mission-step:hover .mission-step__content {
  transform: translateX(4px);
  border-color: rgba(255, 45, 149, 0.4);
}

.mission-step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.mission-step__desc {
  color: var(--gray);
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.how-to__cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Contract --- */
.contract {
  background: var(--near-black);
}

.contract__panel {
  max-width: 600px;
  margin: 0 auto;
}

.contract__terminal {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(255, 45, 149, 0.1);
}

.contract__terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--glass-border);
}

.contract__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.contract__dot--red { background: #ff5f57; }
.contract__dot--yellow { background: #ffbd2e; }
.contract__dot--green { background: #28c840; }

.contract__terminal-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray);
  font-family: monospace;
}

.contract__terminal-body {
  padding: 2rem;
  background: rgba(10, 0, 20, 0.8);
  font-family: 'Courier New', monospace;
}

.contract__label {
  color: var(--cyan);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.contract__address {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-shadow: var(--neon-pink);
  margin-bottom: 1rem;
}

.contract__status {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.contract__blink {
  color: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.contract__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contract__actions .btn {
  font-family: var(--font-body);
}

/* --- Final CTA --- */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8rem);
  background: linear-gradient(180deg, var(--near-black), var(--deep-violet));
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.final-cta__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: rgba(255, 45, 149, 0.04);
  letter-spacing: 0.05em;
  white-space: nowrap;
  user-select: none;
}

.final-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 45, 149, 0.15), transparent 70%);
  filter: blur(40px);
}

.final-cta__inner {
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-shadow: var(--text-shadow);
}

.final-cta__sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--pink);
  letter-spacing: 0.2em;
  margin-top: 1rem;
  text-shadow: var(--neon-pink);
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--darker);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand img {
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.footer__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer__ticker {
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--pink);
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--purple);
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* --- Scroll Reveal --- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.9); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays via data-delay */
.reveal[data-delay="1"], .reveal-left[data-delay="1"], .reveal-right[data-delay="1"], .reveal-scale[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"], .reveal-left[data-delay="2"], .reveal-right[data-delay="2"], .reveal-scale[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"], .reveal-left[data-delay="3"], .reveal-right[data-delay="3"], .reveal-scale[data-delay="3"] { transition-delay: 0.45s; }

/* --- Navbar entrance --- */
.navbar {
  opacity: 0;
  transform: translateY(-20px);
  animation: navEnter 0.6s ease forwards;
  animation-delay: 1.5s;
}

@keyframes navEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero__title-line,
  .hero__eyebrow,
  .hero__ticker,
  .hero__sub,
  .hero__desc,
  .hero__actions,
  .hero__character-wrap {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .navbar {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .loader { display: none; }

  body { opacity: 1; cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    order: 1;
  }

  .hero__character-wrap {
    order: 0;
    max-height: 50vh;
  }

  .hero__character {
    max-height: 45vh;
  }

  .hero__actions {
    justify-content: center;
  }

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

  .about__visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .lore__character {
    display: none;
  }

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

  .gallery__item--featured {
    grid-row: span 1;
    grid-column: span 2;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(10, 0, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .navbar__menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .navbar__menu-cta {
    margin-top: 1rem;
  }

  .hero__character-wrap {
    max-height: 40vh;
  }

  .hero__character {
    max-height: 38vh;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .equation__wrap {
    flex-direction: column;
  }

  .equation__operator {
    transform: rotate(90deg);
  }

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

  .gallery__item--featured,
  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__item--featured .gallery__img-wrap {
    min-height: 250px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .contract__actions {
    flex-direction: column;
  }

  .contract__actions .btn {
    width: 100%;
  }

  .final-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .final-cta__actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .how-to__cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .hero__road {
    height: 50px;
  }
}
