/* ============================================
   ApeMode — Design System & Styles
   ============================================ */

:root {
  /* Colors */
  --black: #050508;
  --black-deep: #0a0a0f;
  --charcoal: #12121a;
  --charcoal-light: #1a1a26;
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --purple-dark: #7c3aed;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --cyan-dim: #0891b2;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.85);
  --white-muted: rgba(255, 255, 255, 0.6);
  --white-faint: rgba(255, 255, 255, 0.35);

  /* Glows */
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.4);
  --glow-purple-intense: 0 0 80px rgba(168, 85, 247, 0.6), 0 0 120px rgba(168, 85, 247, 0.3);
  --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.3);

  /* Typography */
  --font-display: 'Arial Black', 'Impact', 'Haettenschweiler', 'Franklin Gothic Bold', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 10vw, 8rem);
  --container-max: 1280px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Animation durations */
  --dur-fast: 0.2s;
  --dur-normal: 0.4s;
  --dur-slow: 0.8s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body.intro-active {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ============================================
   Intro / Loading Sequence
   ============================================ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

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

.intro__inner {
  text-align: center;
}

.intro__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.intro__text.intro__text--visible {
  opacity: 1;
  transform: translateY(0);
}

.intro__text--hidden {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  color: var(--purple-bright);
  text-shadow: var(--glow-purple);
}

.intro__text--hidden.intro__text--visible {
  transform: translateX(-50%) translateY(0);
}

.intro__flash {
  position: absolute;
  inset: 0;
  background: var(--purple);
  opacity: 0;
  pointer-events: none;
}

.intro__flash.intro__flash--active {
  animation: introFlash 0.5s var(--ease-out) forwards;
}

@keyframes introFlash {
  0% { opacity: 0; }
  30% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* ============================================
   Custom Cursor Glow
   ============================================ */

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

.cursor-glow.cursor-glow--active {
  opacity: 1;
}

@media (hover: none), (max-width: 1024px) {
  .cursor-glow { display: none; }
}

/* ============================================
   Background Effects
   ============================================ */

.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-effects__grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.bg-effects__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.bg-effects__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--purple-dark);
  top: -10%;
  right: -10%;
  animation: orbFloat 12s ease-in-out infinite;
}

.bg-effects__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--cyan-dim);
  bottom: 20%;
  left: -15%;
  animation: orbFloat 15s ease-in-out infinite reverse;
  opacity: 0.2;
}

.bg-effects__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--violet);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 8s ease-in-out infinite;
  opacity: 0.25;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.15); }
}

.bg-effects__particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--purple-bright);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  50% { transform: translateY(-100px) scale(1.5); opacity: 1; }
}

.bg-effects__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
  );
  opacity: 0.5;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn:hover::before {
  transform: translateX(100%);
}

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

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

.btn--xl {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  box-shadow: var(--glow-purple), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.btn--primary:hover {
  box-shadow: var(--glow-purple-intense), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(168, 85, 247, 0.5);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.btn--outline:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-purple), inset 0 0 30px rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================================
   Status Chips / Terminal Labels
   ============================================ */

.status-chip,
.terminal-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

.terminal-label {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--white-muted);
}

/* ============================================
   Section Titles
   ============================================ */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--white);
}

.section-title--massive {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
}

/* ============================================
   Scroll Reveals
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal--delay { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.nav--scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(168, 85, 247, 0.15);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
}

.nav__logo-accent {
  color: var(--purple-bright);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  z-index: 1001;
  padding: 4px;
}

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

.nav__toggle.nav__toggle--active .nav__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.nav__toggle--active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.nav__toggle--active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-muted);
  transition: color var(--dur-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--dur-normal) var(--ease-out);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  }

  .nav__links.nav__links--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .nav__cta {
    margin-top: 1rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  animation: heroGlowPulse 4s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: 1rem;
}

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
}

.hero__title-line--accent {
  color: var(--purple-bright);
  text-shadow: 0 0 60px rgba(168, 85, 247, 0.5), 0 0 120px rgba(168, 85, 247, 0.2);
  margin-left: 0.1em;
}

.hero__subhead {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--white-dim);
  margin-bottom: 0.75rem;
  max-width: 480px;
  font-weight: 500;
}

.hero__support {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--white-muted);
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__mode-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
}

.hero__mode-arrow {
  color: var(--purple);
  font-size: 1.2em;
}

.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlowPulse 3s ease-in-out infinite;
  filter: blur(40px);
}

.hero__image {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: clamp(280px, 40vw, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.hero__diagonal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, transparent 49.5%, var(--charcoal) 50%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 1;
    z-index: 2;
  }

  .hero__visual {
    order: 0;
    margin-bottom: -2rem;
  }

  .hero__image {
    width: clamp(220px, 60vw, 360px);
    opacity: 0.9;
  }

  .hero__subhead,
  .hero__support {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__mode-line {
    justify-content: center;
  }

  .hero__status {
    justify-content: center;
  }

  .hero__glow {
    right: 50%;
    transform: translate(50%, -50%);
    width: 400px;
    height: 400px;
  }

  .hero__title-line--accent {
    margin-left: 0;
  }
}

/* ============================================
   Ticker Marquee
   ============================================ */

.ticker {
  position: relative;
  z-index: 2;
  background: var(--charcoal);
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  padding: 1rem 0;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker__content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
}

.ticker__content span {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.ticker__sep {
  color: var(--purple) !important;
  font-size: 0.8em !important;
}

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

/* ============================================
   About Section
   ============================================ */

.about {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black-deep) 100%);
}

.about__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__bull {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

.about__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.about__bull-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

.about__ape-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
  animation: heroFloat 5s ease-in-out infinite;
}

.about__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.about__label--ape {
  color: var(--purple-bright);
}

.about__energy-line {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--white-faint), var(--purple), var(--cyan));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.about__energy-pulse {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  animation: energyPulse 2s ease-in-out infinite;
}

@keyframes energyPulse {
  0% { left: -30%; }
  100% { left: 100%; }
}

.about__copy p {
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--white-muted);
}

.about__highlight {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--purple-bright) !important;
  letter-spacing: 0.05em;
}

.about__tagline {
  font-weight: 600;
  color: var(--white-dim) !important;
  border-left: 3px solid var(--purple);
  padding-left: 1rem;
  margin-top: 1.5rem !important;
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.section-title {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__bull {
    max-width: 100%;
  }

  .about__bull-img,
  .about__ape-img {
    width: 70px;
    height: 70px;
  }
}

/* ============================================
   Transform Section (Bull → Ape)
   ============================================ */

.transform {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  background: var(--black-deep);
  overflow: hidden;
}

.transform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.transform__container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.transform__sequence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.transform__stage {
  padding: 2rem;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s;
}

.transform__stage--bull {
  opacity: 1;
}

.transform__stage--ape {
  opacity: 0.3;
  transform: scale(0.9);
  filter: blur(2px);
}

.transform__sequence.transform__sequence--signal .transform__stage--bull {
  opacity: 0.5;
}

.transform__sequence.transform__sequence--signal .transform__signal {
  opacity: 1;
  visibility: visible;
}

.transform__sequence.transform__sequence--ape .transform__stage--bull {
  opacity: 0.3;
  transform: scale(0.95);
}

.transform__sequence.transform__sequence--ape .transform__stage--ape {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.transform__sequence.transform__sequence--ape .transform__stage--ape .transform__mode-name {
  text-shadow: var(--glow-purple-intense);
}

.transform__sequence.transform__sequence--ape .transform__icon--ape img {
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.8));
}

.transform__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.transform__icon--bull img,
.transform__icon--ape img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
  transition: filter 0.6s var(--ease-out);
}

.transform__icon--bull img {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.transform__mode-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
  transition: text-shadow 0.6s var(--ease-out);
}

.transform__mode-name--ape {
  color: var(--purple-bright);
}

.transform__mode-desc {
  font-size: 1.1rem;
  color: var(--white-muted);
  font-style: italic;
}

.transform__arrow {
  padding: 0.5rem 0;
  opacity: 0.5;
}

.transform__arrow svg {
  width: 40px;
  height: 60px;
}

.transform__signal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 10;
  pointer-events: none;
}

.transform__signal-beam {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), var(--cyan), var(--purple-bright), transparent);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 30px var(--purple), 0 0 60px var(--purple);
}

.transform__sequence.transform__sequence--signal .transform__signal-beam {
  animation: signalBeam 0.8s var(--ease-out) forwards;
}

@keyframes signalBeam {
  0% { transform: translateY(-50%) scaleX(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-50%) scaleX(1); opacity: 1; }
}

.transform__signal-text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 20px var(--purple), 0 0 40px var(--purple);
  opacity: 0;
  animation: signalText 0.5s 0.3s var(--ease-out) forwards;
}

.transform__sequence.transform__sequence--signal .transform__signal-text {
  animation: signalText 0.5s 0.3s var(--ease-out) forwards;
}

@keyframes signalText {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.transform__footer {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}

/* ============================================
   Philosophy Section
   ============================================ */

.philosophy {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  background: var(--charcoal);
}

.philosophy__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.philosophy__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem 2rem;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  align-items: baseline;
}

.philosophy__item:last-child {
  border-bottom: none;
}

.philosophy__number {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: rgba(168, 85, 247, 0.15);
  line-height: 1;
  align-self: center;
}

.philosophy__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
}

.philosophy__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--purple-bright);
  font-weight: 500;
}

@media (max-width: 600px) {
  .philosophy__item {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.25rem;
    text-align: center;
  }

  .philosophy__number {
    grid-row: auto;
    font-size: 2.5rem;
  }
}

/* ============================================
   Banner Section
   ============================================ */

.banner-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  background: var(--black-deep);
  overflow: hidden;
}

.banner-section__glow {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.banner-section__container {
  max-width: 1100px;
  margin: 0 auto;
}

.banner-section__frame {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.banner-section__border {
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--purple), var(--cyan), var(--purple-dark), var(--purple));
  background-size: 300% 300%;
  border-radius: 8px;
  animation: borderGlow 4s ease infinite;
  z-index: 0;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.banner-section__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.banner-section__reflection {
  position: absolute;
  bottom: -40%;
  left: 5%;
  right: 5%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(168, 85, 247, 0.1), transparent);
  transform: scaleY(-1);
  opacity: 0.3;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Trenches Section
   ============================================ */

.trenches {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  background: linear-gradient(180deg, var(--black-deep) 0%, var(--charcoal) 100%);
  overflow: hidden;
}

.trenches__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.trenches__text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.trenches__cta {
  gap: 0.75rem;
}

.btn__x-icon {
  flex-shrink: 0;
}

.trenches__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trenches__orbit {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trenches__orbit::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

.trenches__orbit::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  animation: orbitSpin 15s linear infinite reverse;
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.trenches__orbit-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
  animation: heroFloat 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .trenches__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trenches__text {
    margin-left: auto;
    margin-right: auto;
  }

  .trenches__visual {
    order: -1;
  }
}

/* ============================================
   Buy Section
   ============================================ */

.buy {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  background: var(--charcoal);
}

.buy__container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.buy__text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--white-muted);
  margin-bottom: 2.5rem;
}

.buy__contract {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--charcoal-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.buy__contract-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.buy__contract-address {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--purple-bright);
  letter-spacing: 0.05em;
}

.buy__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 4px;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}

.buy__copy-btn:hover {
  background: rgba(168, 85, 247, 0.35);
  box-shadow: var(--glow-purple);
}

.buy__copy-btn:active {
  transform: scale(0.95);
}

.buy__copy-btn.buy__copy-btn--copied {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
  animation: copyPulse 0.4s var(--ease-spring);
}

@keyframes copyPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.buy__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   Final CTA
   ============================================ */

.final-cta {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  background: var(--black-deep);
  overflow: hidden;
  text-align: center;
}

.final-cta__energy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(124, 58, 237, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: finalEnergy 4s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes finalEnergy {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.final-cta__container {
  position: relative;
  z-index: 2;
}

.final-cta__title {
  margin-bottom: 1.5rem;
}

.final-cta__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.final-cta__line--accent {
  color: var(--purple-bright);
  text-shadow: var(--glow-purple-intense);
}

.final-cta__emoji {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  letter-spacing: 0.5em;
}

.final-cta__btn {
  margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 2rem;
  background: var(--black);
  border-top: 1px solid rgba(168, 85, 247, 0.15);
}

.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

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

.footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
}

.footer__ticker {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--purple-bright);
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-muted);
  transition: color var(--dur-fast);
}

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

.footer__tagline {
  font-size: 0.8rem;
  color: var(--white-faint);
  font-style: italic;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--white-faint);
}

/* ============================================
   Lightning Streak (JS-injected)
   ============================================ */

.lightning-streak {
  position: fixed;
  top: 0;
  width: 2px;
  height: 100vh;
  background: linear-gradient(180deg, transparent, var(--purple-bright), var(--cyan), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: lightning 0.3s ease-out forwards;
}

@keyframes lightning {
  0% { opacity: 0; transform: scaleY(0); }
  50% { opacity: 0.8; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}
