/* ============================================================
   HOME PAGE — Quantum Paradox
   ============================================================ */

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../assets/images/hero-bg.jpg') center / cover no-repeat fixed;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 16, 38, 0.7),
    rgba(11, 16, 38, 0.9)
  );
  z-index: 1;
}

.hero .particles-container {
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
}

.hero__logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.4));
  margin-bottom: 2rem;
}

/* Typewriter tagline */
.typewriter {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--accent-blue);
  min-height: 1.6em;
  border-right: 2px solid var(--accent-blue);
  white-space: nowrap;
  overflow: hidden;
  animation: blinkCaret 0.75s step-end infinite;
}

@keyframes blinkCaret {
  0%, 100% { border-color: var(--accent-blue); }
  50%      { border-color: transparent; }
}

/* CTA button row */
.hero__buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator__chevron {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  transform: rotate(45deg);
  animation: bounceChevron 2s ease-in-out infinite;
}

@keyframes bounceChevron {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(8px); }
}

/* ----------------------------------------------------------
   MISSION BAND
   ---------------------------------------------------------- */
.mission-band {
  background: var(--bg-surface);
  border-top: 1px solid rgba(61, 79, 95, 0.3);
  border-bottom: 1px solid rgba(61, 79, 95, 0.3);
  padding: 5rem 2rem;
  text-align: center;
}

.mission-band__text {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.7;
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   SIDEQUEST TEASER
   ---------------------------------------------------------- */
.sidequest-teaser {
  padding: 6rem 2rem;
}

.sidequest-teaser .container {
  max-width: 1200px;
  margin: 0 auto;
}

.sidequest-teaser__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

/* Phone mockup with glow */
.sidequest-teaser__mockup {
  position: relative;
}

.sidequest-teaser__mockup img {
  width: 100%;
  max-width: 480px;
  border-radius: 1.25rem;
  box-shadow:
    0 0 40px rgba(0, 102, 255, 0.25),
    0 0 80px rgba(0, 102, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.sidequest-teaser__mockup img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 50px rgba(0, 102, 255, 0.35),
    0 0 100px rgba(0, 102, 255, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Feature items */
.sidequest-teaser__features {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 0.75rem;
}

.feature-item__content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-heading);
  margin: 0 0 0.4rem;
  letter-spacing: 0.04em;
}

.feature-item__content p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.sidequest-teaser__cta {
  margin-top: 2rem;
}

/* ----------------------------------------------------------
   TECHNOLOGY TEASER
   ---------------------------------------------------------- */
.tech-teaser {
  background: var(--bg-elevated);
  padding: 6rem 2rem;
  text-align: center;
}

.tech-teaser .container {
  max-width: 800px;
  margin: 0 auto;
}

.tech-teaser__badge {
  margin-bottom: 1.25rem;
}

.tech-teaser__text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1.5rem auto 2rem;
  max-width: 700px;
}

.tech-teaser__cta {
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------
   STATS BAND
   ---------------------------------------------------------- */
.stats-band {
  padding: 5rem 2rem;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat {
  padding: 2rem 1rem;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent-blue);
  display: block;
  line-height: 1.1;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  display: block;
}

/* ----------------------------------------------------------
   SIGNUP SECTION
   ---------------------------------------------------------- */
.signup-section {
  padding: 6rem 2rem;
  text-align: center;
}

.signup-section .container {
  max-width: 700px;
  margin: 0 auto;
}

.signup-section .signup-form {
  margin-top: 2rem;
}

/* ----------------------------------------------------------
   RESPONSIVE — 768px
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .hero__logo {
    width: 140px;
    height: 140px;
  }

  .sidequest-teaser__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sidequest-teaser__mockup {
    text-align: center;
    order: -1;
  }

  .sidequest-teaser__mockup img {
    max-width: 360px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .typewriter {
    white-space: normal;
    border-right: none;
    animation: none;
  }

  .sidequest-teaser,
  .tech-teaser,
  .signup-section {
    padding: 4rem 1.5rem;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 480px
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .hero__logo {
    width: 110px;
    height: 110px;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero__buttons .btn {
    width: 100%;
  }

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

  .stat__number {
    font-size: 1.8rem;
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .scroll-indicator {
    display: none;
  }

  .sidequest-teaser,
  .tech-teaser,
  .signup-section {
    padding: 3rem 1rem;
  }
}
