/* ==========================================================================
   McCoy App Page (B2C) - Dark Theme
   Design inspired by Linktree: bold, energetic, colorful
   Dark backgrounds, light text, bigger fonts, more color, exciting
   ========================================================================== */

/* --- Page Base (Dark Theme) --- */
.app-page {
  background: var(--dark-blue);
  color: #ffffff;
}

/* --- Hero --- */
.app-hero {
  padding: 160px 0 120px;
  background: linear-gradient(180deg, #0B0029 0%, #192050 50%, #552A73 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-hero__inner {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

.app-hero__headline {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #9D8DFF 50%, #64C8FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-hero__subtitle {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.app-hero__badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition-base), transform var(--transition-base);
}

.app-hero__badge:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  opacity: 1;
}

.app-hero__badge svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* Decorative gradient orbs */
.app-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 53, 202, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.app-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 179, 217, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Problem Section --- */
.app-problem {
  padding: 120px 0;
  background: var(--dark-blue);
}

.app-problem__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.app-problem__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.app-problem__body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.app-problem__visual {
  border-radius: 0;
  background: transparent;
  border: none;
  display: block;
  height: auto;
}

/* === B2C App Hero Scene === */

/*
  Layout: card sits in document flow above the laptop.
  margin-bottom: -3.73% ≈ 5% of card height (card is 42% wide × 16/9 tall = 74.7% of scene).
  z-index: 2 on the laptop makes it appear in front, hiding that 5% overlap.
  The card animates translateY(100%) → (0), starting fully behind the laptop.
*/

.app-problem__visual {
  position: relative;
}

/* Ambient glow orb behind the scene */
.app-problem__visual::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(128, 53, 202, 0.25) 0%, rgba(65, 100, 217, 0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app-b2c-scene {
  max-width: 360px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  /* Force compositing layer so overflow:hidden actually clips transformed children */
  transform: translateZ(0);
}

.app-b2c-card-wrapper {
  display: block;
  /* center + pull laptop up by 3.73% of scene width = ~5% of card height */
  margin: 0 auto -3.73%;
  width: 42%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  /* No z-index — laptop z-index:2 ensures it stays on top; no stacking context escape */
  box-shadow: 0 8px 48px rgba(128, 53, 202, 0.45), 0 2px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(178%);
}

.scroll-visible .app-b2c-card-wrapper {
  animation: app-b2c-card-reveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.app-b2c-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Laptop on top — covers the bottom ~5% of the card */
.app-b2c-base-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}


@keyframes app-b2c-card-reveal {
  /* 178% ≈ scene-height / card-height: starts card at scene bottom, fully clipped */
  from { transform: translateY(178%); }
  to   { transform: translateY(0); }
}

/* --- Value Propositions (4 Cards, HeyGen-inspired hover) --- */
.app-values {
  padding: 0 0 120px;
  background: var(--dark-blue);
}

.app-values__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.app-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.app-value-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 36px 28px;
  transition: border-color 0.4s ease, transform var(--transition-base), box-shadow var(--transition-base);
}

.app-value-card:hover {
  border-color: rgba(157, 141, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(128, 53, 202, 0.15);
}

.app-value-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.app-value-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

/* --- How It Works --- */
.app-how {
  padding: 120px 0;
  background: var(--dark-navy);
}

.app-how__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.app-how__header {
  text-align: center;
  margin-bottom: 16px;
}

.app-how__headline {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 12px;
}

.app-how__sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 72px;
}


/* --- Use Cases + Review (combined section) --- */
.app-usecases {
  padding: 120px 0;
  background: var(--dark-navy);
}

.app-usecases__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.app-usecases__headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  max-width: 850px;
}

.app-usecases__featured {
  padding: 0 0 64px;
}

.app-usecases__featured p {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: -0.01em;
  padding-left: 14px;
  border-left: 2px solid rgba(168, 125, 232, 0.8);
}

.app-usecases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
  margin-bottom: 80px;
}

.app-usecase__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.app-usecase__body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

/* Notification scroll animation */
.app-usecases__notifications {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
}

/* Purple ambient glow behind notifications */
.app-usecases__notifications::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(128, 53, 202, 0.2) 0%, rgba(66, 90, 210, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app-usecases__notifications .v2-notification-scroll {
  position: relative;
  z-index: 1;
}

/* --- McCoy Pro --- */
.app-pro {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--dark-navy) 0%, var(--dark-blue) 100%);
}

.app-pro__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.app-pro__header {
  text-align: center;
  margin-bottom: 64px;
}

.app-pro__headline {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #AB66FA 50%, #64C8FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.app-pro__sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.app-pro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-pro__card {
  background: linear-gradient(135deg, rgba(128, 53, 202, 0.08) 0%, rgba(100, 200, 250, 0.08) 100%);
  border: 1px solid rgba(157, 141, 255, 0.12);
  border-radius: 20px;
  padding: 40px 32px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.app-pro__card:hover {
  border-color: rgba(157, 141, 255, 0.3);
  transform: translateY(-4px);
}

.app-pro__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(128, 53, 202, 0.2), rgba(100, 200, 250, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.app-pro__card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--pale-lavender);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-pro__card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.app-pro__card-body {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Testimonials --- */
.app-testimonials {
  padding: 120px 0;
  background: var(--dark-blue);
}

.app-testimonials__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.app-testimonials__header {
  text-align: center;
  margin-bottom: 64px;
}

.app-testimonials__headline {
  font-size: 44px;
  font-weight: 700;
}

/* --- FAQ (App-specific dark theme) --- */
.app-faq {
  padding: 120px 0;
  background: var(--dark-navy);
}

.app-faq__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.app-faq__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pale-lavender);
  margin-bottom: 12px;
  border: 1.5px solid var(--pale-lavender);
  border-radius: 20px;
  display: inline-block;
  padding: 6px 16px;
}

.app-faq__headline {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 0;
}

/* --- Desktop: larger composite asset --- */
@media (min-width: 1025px) {
  .app-b2c-scene {
    max-width: 450px;
  }
}

/* --- Responsive (Tablet) --- */
@media (max-width: 1100px) {
  .app-problem__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .app-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-usecases__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
  }

  .app-problem__headline,
  .app-how__headline,
  .app-usecases__headline,
  .app-pro__headline,
  .app-testimonials__headline,
  .app-faq__headline {
    font-size: 36px;
  }
}

/* --- Responsive (Mobile) --- */
@media (max-width: 800px) {
  .app-hero {
    padding: 120px 0 80px;
  }

  .app-hero__headline {
    font-size: 44px;
  }

  .app-hero__subtitle {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .app-hero__badges {
    flex-direction: column;
    align-items: center;
  }

  .app-problem__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-problem__headline,
  .app-how__headline,
  .app-usecases__headline,
  .app-pro__headline,
  .app-testimonials__headline,
  .app-faq__headline {
    font-size: 32px;
  }

  .app-values__grid {
    grid-template-columns: 1fr;
  }


  .app-usecases__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-pro__grid {
    grid-template-columns: 1fr;
  }

  .app-problem__visual {
    height: auto;
  }
}
