/* ==========================================================================
   FEATURES PAGE — Phase 1 (Navbar uses leap-custom.css)
   ========================================================================== */

.features-page {
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero shell
   -------------------------------------------------------------------------- */

.features-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 7.5rem;
  padding-bottom: 6rem;
  background:
    radial-gradient(ellipse 90% 80% at 72% 38%, rgba(88, 28, 180, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 75% 30%, #3b1578 0%, #1e0947 45%, #0c0626 85%);
  overflow: clip;
  width: 100%;
}

.features-hero .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.features-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 3rem;
  align-items: center;
  min-width: 0;
}

/* Ambient effects */
.features-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(60px);
}

.features-hero__glow--1 {
  top: 10%;
  right: 18%;
  width: min(480px, 72vw);
  height: min(480px, 72vw);
  background: radial-gradient(circle, rgba(147, 51, 234, 0.42) 0%, transparent 70%);
  animation: featuresGlowPulse 6s ease-in-out infinite;
}

.features-hero__glow--2 {
  top: 35%;
  right: 2%;
  width: min(320px, 50vw);
  height: min(320px, 50vw);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, transparent 70%);
  animation: featuresGlowPulse 7s ease-in-out 1.5s infinite;
}

.features-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000 15%, transparent 72%);
}

.features-hero__sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
  font-size: 1.1rem;
  animation: featuresSparkle 3.2s ease-in-out infinite;
}

.features-hero__sparkle--1 { top: 20%; left: 48%; animation-delay: 0s; }
.features-hero__sparkle--2 { top: 34%; right: 10%; color: rgba(250, 204, 21, 0.65); font-size: 1.35rem; animation-delay: 0.9s; }
.features-hero__sparkle--3 { bottom: 28%; right: 44%; animation-delay: 1.8s; }

.features-hero__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}

.features-hero__curve svg {
  display: block;
  width: 100%;
  height: clamp(60px, 8vw, 100px);
}

/* --------------------------------------------------------------------------
   Left column
   -------------------------------------------------------------------------- */

.features-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.features-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 1rem;
  border-radius: 9999px;
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9d5ff;
  margin-bottom: 1.35rem;
}

.features-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.features-hero__gradient {
  background: linear-gradient(90deg, #c084fc 0%, #a855f7 45%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-hero__description {
  font-size: clamp(0.95rem, 1.1vw + 0.45rem, 1.075rem);
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 520px;
  margin-bottom: 1.85rem;
}

.features-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.features-hero__download {
  padding: 0.75rem 1.55rem;
  font-size: 0.95rem;
}

.features-hero__explore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s ease, transform 0.25s ease, gap 0.25s ease;
}

.features-hero__explore svg {
  transition: transform 0.25s ease;
}

.features-hero__explore:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.features-hero__explore:hover svg {
  transform: translateX(3px);
}

.features-hero__proof {
  margin-top: 0.25rem;
}

.features-hero__proof .avatar-stack img {
  border-color: #1a0a40;
}

/* --------------------------------------------------------------------------
   Right column — orbit graphic
   -------------------------------------------------------------------------- */

.features-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 1rem 0;
}

.features-orbit {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.features-orbit__hub {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.features-orbit__cards {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.features-orbit__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.features-orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.18);
  pointer-events: none;
  z-index: 2;
}

.features-orbit__ring--1 {
  width: 38%;
  height: 38%;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
}

.features-orbit__ring--2 {
  width: 58%;
  height: 58%;
  border-color: rgba(167, 139, 250, 0.12);
}

.features-orbit__ring--3 {
  width: 78%;
  height: 78%;
  border-color: rgba(167, 139, 250, 0.08);
}

.features-orbit__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: none;
}

.features-orbit__center-glow {
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(124, 58, 237, 0.2) 45%, transparent 70%);
  pointer-events: none;
  animation: featuresGlowPulse 5s ease-in-out infinite;
}

.features-orbit__logo-img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 16px rgba(250, 204, 21, 0.4));
}

.features-orbit__bubble {
  position: absolute;
  z-index: 5;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  max-width: min(210px, 46vw);
  animation: featuresBubbleFloat 5s ease-in-out infinite;
}

.features-orbit__bubble--tl { top: 4%; left: 0; animation-name: featuresBubbleFloat; }
.features-orbit__bubble--tr { top: 2%; right: 0; animation-name: featuresBubbleFloat; }
.features-orbit__bubble--ml { top: 42%; left: -2%; transform: translateY(-50%); animation-name: featuresBubbleFloatMid; }
.features-orbit__bubble--mr { top: 40%; right: -2%; transform: translateY(-50%); animation-name: featuresBubbleFloatMid; }
.features-orbit__bubble--bl { bottom: 10%; left: 2%; animation-name: featuresBubbleFloat; }
.features-orbit__bubble--br { bottom: 6%; right: 0; animation-name: featuresBubbleFloat; }

.features-orbit__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-orbit__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.features-orbit__text strong {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b21b6;
  line-height: 1.2;
}

.features-orbit__text span {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes featuresGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes featuresSparkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(12deg); }
}

@keyframes featuresBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes featuresBubbleFloatMid {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 5px)); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .features-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features-hero__content {
    order: 1;
  }

  .features-hero__visual {
    order: 2;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  /* Stacked hub + card grid — avoids absolute-position overlap */
  .features-orbit {
    aspect-ratio: auto;
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
  }

  .features-orbit__hub {
    position: relative;
    inset: auto;
    width: 100%;
    height: 210px;
    flex-shrink: 0;
  }

  .features-orbit__lines {
    display: block;
    opacity: 0.5;
  }

  .features-orbit__ring {
    display: block;
  }

  .features-orbit__center {
    width: 92px;
    height: 92px;
  }

  .features-orbit__logo-img {
    width: 48px;
  }

  .features-orbit__cards {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    pointer-events: auto;
  }

  .features-orbit__bubble {
    position: static;
    transform: none !important;
    animation: none !important;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .features-hero__grid {
    gap: 2rem;
  }

  .features-orbit {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .features-hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 4.5rem;
  }

  .features-hero__content {
    align-items: center;
    text-align: center;
  }

  .features-hero__title,
  .features-hero__description {
    max-width: 100%;
  }

  .features-hero__actions {
    justify-content: center;
  }

  .features-hero__proof {
    justify-content: center;
  }

  .features-orbit {
    max-width: 100%;
    gap: 1.15rem;
  }

  .features-orbit__hub {
    height: 185px;
  }

  .features-orbit__center {
    width: 80px;
    height: 80px;
  }

  .features-orbit__logo-img {
    width: 42px;
  }

  .features-orbit__cards {
    gap: 0.6rem;
    padding: 0 0.1rem;
  }

  .features-orbit__bubble {
    padding: 0.55rem 0.6rem;
    gap: 0.45rem;
  }

  .features-orbit__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .features-orbit__icon svg {
    width: 15px;
    height: 15px;
  }

  .features-orbit__text strong {
    font-size: 0.7rem;
  }

  .features-orbit__text span {
    font-size: 0.58rem;
    line-height: 1.2;
  }

  /* Phone: show primary 2×2 cards only */
  .features-orbit__bubble--bl,
  .features-orbit__bubble--br {
    display: none;
  }
}

@media (max-width: 480px) {
  .features-orbit__hub {
    height: 170px;
  }

  .features-orbit__center {
    width: 76px;
    height: 76px;
  }

  .features-orbit__logo-img {
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-hero__glow,
  .features-hero__sparkle,
  .features-orbit__center-glow,
  .features-orbit__bubble {
    animation: none !important;
  }
}

/* ==========================================================================
   FEATURES GRID SECTION
   ========================================================================== */

.features-grid-section {
  padding: 4.5rem 0 6rem;
  background: #ffffff;
  --fp-grid-shift: 22px;
  --fp-grid-scale-from: 0.98;
}

.features-grid-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.features-grid-section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.25rem;
}

.features-grid-section__pill {
  display: inline-block;
  padding: 0.38rem 1rem;
  border-radius: 9999px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.features-grid-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.features-grid-section__subtitle {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.55;
}

.features-grid-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Feature card */
.fp-feature-card {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  backface-visibility: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.fp-feature-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.fp-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.fp-feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  padding-top: 0.4rem;
}

.fp-feature-card__desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
}

.fp-feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7c3aed;
  margin-top: 0.15rem;
  transition: color 0.25s ease, gap 0.25s ease;
}

.fp-feature-card__link span {
  transition: transform 0.25s ease;
}

.fp-feature-card__link:hover {
  color: #6d28d9;
  gap: 0.5rem;
}

.fp-feature-card__link:hover span {
  transform: translateX(2px);
}

@media (hover: hover) and (pointer: fine) {
  .fp-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.42);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.1);
  }

  .fp-feature-card:hover .fp-feature-card__icon {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.18);
  }
}

/* Scroll reveal animations */
@media (max-width: 768px) {
  .features-grid-section {
    --fp-grid-shift: 14px;
    padding: 3.5rem 0 4.5rem;
  }
}

@media (max-width: 900px) {
  .features-grid-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid-section__grid {
    grid-template-columns: 1fr;
  }

  .fp-feature-card {
    padding: 1.25rem 1.15rem 1.15rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .features-grid-section:not(.is-visible) .features-grid-section__pill,
  html.leap-js .features-grid-section:not(.is-visible) .features-grid-section__title,
  html.leap-js .features-grid-section:not(.is-visible) .features-grid-section__subtitle,
  html.leap-js .features-grid-section:not(.is-visible) .fp-feature-card {
    opacity: 0;
  }

  html.leap-js .features-grid-section:not(.is-visible) .features-grid-section__pill,
  html.leap-js .features-grid-section:not(.is-visible) .features-grid-section__title,
  html.leap-js .features-grid-section:not(.is-visible) .features-grid-section__subtitle {
    transform: translateY(var(--fp-grid-shift));
  }

  html.leap-js .features-grid-section:not(.is-visible) .fp-feature-card {
    transform: translateY(var(--fp-grid-shift)) scale(var(--fp-grid-scale-from));
  }

  html.leap-js .features-grid-section:not(.is-visible) .fp-feature-card__icon {
    opacity: 0;
    transform: scale(0.82) rotate(-4deg);
  }

  html.leap-js .features-grid-section.is-visible .features-grid-section__pill {
    animation: fpGridReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  html.leap-js .features-grid-section.is-visible .features-grid-section__title {
    animation: fpGridReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  html.leap-js .features-grid-section.is-visible .features-grid-section__subtitle {
    animation: fpGridReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
  }

  html.leap-js .features-grid-section.is-visible .fp-feature-card {
    animation: fpGridCardReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(1)  { animation-delay: 0.32s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(2)  { animation-delay: 0.37s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(3)  { animation-delay: 0.42s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(4)  { animation-delay: 0.47s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(5)  { animation-delay: 0.52s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(6)  { animation-delay: 0.57s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(7)  { animation-delay: 0.62s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(8)  { animation-delay: 0.67s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(9)  { animation-delay: 0.72s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(10) { animation-delay: 0.77s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(11) { animation-delay: 0.82s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(12) { animation-delay: 0.87s; }

  html.leap-js .features-grid-section.is-visible .fp-feature-card .fp-feature-card__icon {
    animation: fpGridIconReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(1)  .fp-feature-card__icon { animation-delay: 0.38s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(2)  .fp-feature-card__icon { animation-delay: 0.43s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(3)  .fp-feature-card__icon { animation-delay: 0.48s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(4)  .fp-feature-card__icon { animation-delay: 0.53s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(5)  .fp-feature-card__icon { animation-delay: 0.58s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(6)  .fp-feature-card__icon { animation-delay: 0.63s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(7)  .fp-feature-card__icon { animation-delay: 0.68s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(8)  .fp-feature-card__icon { animation-delay: 0.73s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(9)  .fp-feature-card__icon { animation-delay: 0.78s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(10) .fp-feature-card__icon { animation-delay: 0.83s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(11) .fp-feature-card__icon { animation-delay: 0.88s; }
  html.leap-js .features-grid-section.is-visible .fp-feature-card:nth-child(12) .fp-feature-card__icon { animation-delay: 0.93s; }
}

@keyframes fpGridReveal {
  from {
    opacity: 0;
    transform: translateY(var(--fp-grid-shift));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fpGridCardReveal {
  from {
    opacity: 0;
    transform: translateY(var(--fp-grid-shift)) scale(var(--fp-grid-scale-from));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fpGridIconReveal {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-grid-section .features-grid-section__pill,
  .features-grid-section .features-grid-section__title,
  .features-grid-section .features-grid-section__subtitle,
  .features-grid-section .fp-feature-card,
  .features-grid-section .fp-feature-card__icon {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .fp-feature-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   DOWNLOAD CTA
   ========================================================================== */

.features-download-cta {
  padding: 0 0 3.5rem;
  background: #ffffff;
  --fp-cta-shift: 20px;
}

.features-download-cta .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fp-cta-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem 2.5rem;
  align-items: center;
  padding: 2.75rem 3rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 35%, #6d28d9 65%, #7c3aed 100%);
  box-shadow: 0 24px 64px rgba(76, 29, 149, 0.32);
  overflow: hidden;
  isolation: isolate;
}

.fp-cta-card__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.fp-cta-card__glow--1 {
  top: -80px;
  right: 18%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  animation: fpCtaGlowPulse 7s ease-in-out infinite;
}

.fp-cta-card__glow--2 {
  bottom: -100px;
  left: 28%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  animation: fpCtaGlowPulse 8s ease-in-out 1.5s infinite;
}

.fp-cta-card__emblem-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.fp-cta-card__emblem {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-cta-card__emblem-img {
  width: 72px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 8px 20px rgba(250, 204, 21, 0.35));
}

.fp-cta-card__spark,
.fp-cta-card__dot {
  position: absolute;
  pointer-events: none;
}

.fp-cta-card__spark {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  animation: fpCtaSparkle 3s ease-in-out infinite;
}

.fp-cta-card__spark--1 { top: 4px; left: -6px; color: #60a5fa; animation-delay: 0s; }
.fp-cta-card__spark--2 { top: 18px; right: -10px; color: #facc15; animation-delay: 0.8s; }
.fp-cta-card__spark--3 { bottom: 8px; left: 10px; color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; animation-delay: 1.6s; }

.fp-cta-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: fpCtaSparkle 4s ease-in-out infinite;
}

.fp-cta-card__dot--1 { top: 28px; right: 4px; background: #93c5fd; animation-delay: 0.4s; }
.fp-cta-card__dot--2 { bottom: 22px; right: -4px; animation-delay: 1.2s; }
.fp-cta-card__dot--3 { bottom: 36px; left: -2px; background: #fde68a; animation-delay: 2s; }

.fp-cta-card__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.fp-cta-card__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.fp-cta-card__text {
  font-size: 0.975rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
}

.fp-cta-card__stores {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fp-cta-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  min-width: 185px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.fp-cta-store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.fp-cta-store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.fp-cta-store-btn__sub {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 500;
}

.fp-cta-store-btn__main {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
  .fp-cta-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    color: #0f172a;
  }
}

/* ==========================================================================
   BENEFITS STRIP
   ========================================================================== */

.features-benefits {
  padding: 0 0 3rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
  --fp-benefits-shift: 18px;
}

.features-benefits .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.features-benefits__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 2.25rem 0.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ece8f5;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.05);
}

.features-benefits__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 1.25rem;
  gap: 0.55rem;
}

.features-benefits__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: #e2e8f0;
}

.features-benefits__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.features-benefits__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #5b21b6;
  line-height: 1.25;
}

.features-benefits__desc {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 180px;
}

@media (hover: hover) and (pointer: fine) {
  .features-benefits__item:hover .features-benefits__icon {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.16);
  }
}

/* Phase 3 scroll animations */
@keyframes fpCtaGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes fpCtaSparkle {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .features-download-cta:not(.is-visible) .fp-cta-card {
    opacity: 0;
    transform: translateY(var(--fp-cta-shift)) scale(0.98);
  }

  html.leap-js .features-download-cta:not(.is-visible) .fp-cta-card__emblem-wrap,
  html.leap-js .features-download-cta:not(.is-visible) .fp-cta-card__content,
  html.leap-js .features-download-cta:not(.is-visible) .fp-cta-card__stores {
    opacity: 0;
  }

  html.leap-js .features-download-cta.is-visible .fp-cta-card {
    animation: fpCtaCardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-download-cta.is-visible .fp-cta-card__emblem-wrap {
    animation: fpGridReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
  }

  html.leap-js .features-download-cta.is-visible .fp-cta-card__content {
    animation: fpGridReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }

  html.leap-js .features-download-cta.is-visible .fp-cta-card__stores {
    animation: fpGridReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
  }

  html.leap-js .features-benefits:not(.is-visible) .features-benefits__strip {
    opacity: 0;
    transform: translateY(var(--fp-benefits-shift));
  }

  html.leap-js .features-benefits:not(.is-visible) .features-benefits__item {
    opacity: 0;
    transform: translateY(14px);
  }

  html.leap-js .features-benefits.is-visible .features-benefits__strip {
    animation: fpGridReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-benefits.is-visible .features-benefits__item {
    animation: fpGridReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(1) { animation-delay: 0.14s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(2) { animation-delay: 0.22s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(3) { animation-delay: 0.30s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(4) { animation-delay: 0.38s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(5) { animation-delay: 0.46s; }

  html.leap-js .features-benefits.is-visible .features-benefits__icon {
    animation: fpGridIconReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(1) .features-benefits__icon { animation-delay: 0.2s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(2) .features-benefits__icon { animation-delay: 0.28s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(3) .features-benefits__icon { animation-delay: 0.36s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(4) .features-benefits__icon { animation-delay: 0.44s; }
  html.leap-js .features-benefits.is-visible .features-benefits__item:nth-child(5) .features-benefits__icon { animation-delay: 0.52s; }
}

@keyframes fpCtaCardReveal {
  from {
    opacity: 0;
    transform: translateY(var(--fp-cta-shift)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1024px) {
  .fp-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 1.75rem;
  }

  .fp-cta-card__emblem-wrap {
    margin: 0 auto;
  }

  .fp-cta-card__text {
    max-width: 100%;
    margin: 0 auto;
  }

  .fp-cta-card__stores {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .features-benefits__strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 1.75rem 1rem;
  }

  .features-benefits__item:not(:last-child)::after {
    display: none;
  }

  .features-benefits__item {
    padding: 1rem 1.25rem;
  }

  .features-benefits__item:not(:nth-last-child(-n+2)) {
    border-bottom: 1px solid #eef2f7;
  }
}

@media (max-width: 560px) {
  .features-download-cta {
    padding-bottom: 2.5rem;
  }

  .fp-cta-card {
    padding: 2rem 1.35rem;
    border-radius: 22px;
  }

  .fp-cta-card__stores {
    flex-direction: column;
    width: 100%;
  }

  .fp-cta-store-btn {
    width: 100%;
    justify-content: center;
  }

  .features-benefits__strip {
    grid-template-columns: 1fr;
  }

  .features-benefits__item:not(:last-child) {
    border-bottom: 1px solid #eef2f7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-download-cta .fp-cta-card,
  .features-download-cta .fp-cta-card__emblem-wrap,
  .features-download-cta .fp-cta-card__content,
  .features-download-cta .fp-cta-card__stores,
  .features-download-cta .fp-cta-card__glow,
  .features-download-cta .fp-cta-card__spark,
  .features-download-cta .fp-cta-card__dot,
  .features-benefits .features-benefits__strip,
  .features-benefits .features-benefits__item,
  .features-benefits .features-benefits__icon {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
