.cp-page {
  background:
    radial-gradient(ellipse 90% 40% at 50% -8%, rgba(70, 100, 180, 0.2), transparent 60%),
    #070F32;
  color: #f4f6fb;
}

.cp-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.cp-hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(ellipse 46% 70% at 78% 48%, rgba(239, 180, 80, 0.16), transparent 64%),
    radial-gradient(ellipse 42% 55% at 12% 0%, rgba(90, 120, 200, 0.2), transparent 70%);
}

.cp-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.cp-eyebrow {
  margin: 0 0 16px;
  color: #EFB450;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cp-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cp-lead {
  margin: 0 0 28px;
  max-width: 560px;
  color: #c5cde0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.cp-store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cp-play-badge {
  display: block;
  height: 54px;
  width: auto;
}

.cp-play-badge img {
  display: block;
  height: 54px;
  width: auto;
}

.cp-ios-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #9aa3b8;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.cp-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.cp-phone-frame {
  background: linear-gradient(135deg, #0a1020 0%, #0d1628 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(239, 180, 80, 0.05);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cp-phones .cp-phone-frame {
  max-height: 500px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.cp-phones .cp-phone-frame img {
  display: block;
  max-height: 500px;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.cp-phones .cp-phone-frame + .cp-phone-frame {
  margin-left: -72px;
}

.cp-section {
  position: relative;
  padding: 72px 0;
}

.cp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(680px, 72%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(239, 180, 80, 0.45), transparent);
}

.cp-page > .cp-section:nth-child(3) {
  background:
    radial-gradient(ellipse 50% 40% at 50% 46%, rgba(239, 180, 80, 0.07), transparent 70%),
    #0a1438;
}

.cp-page > .cp-section:nth-child(4) {
  background: #09122e;
}

.cp-section h2 {
  margin: 0 0 10px;
  text-align: center;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

.cp-section-lead {
  margin: 0 auto 40px;
  max-width: 640px;
  text-align: center;
  color: #c5cde0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cp-flow-scroll {
  height: 260vh;
}

.cp-flow-sticky {
  position: sticky;
  top: 12px;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-sizing: border-box;
}

.cp-flow-intro {
  width: min(720px, 100%);
  text-align: center;
}

.cp-flow-intro .cp-section-lead {
  margin-bottom: 0;
}

.cp-flow {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 36px 56px;
  align-items: center;
  width: 100%;
}

.cp-flow-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-flow-steps::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, #EFB450 0%, rgba(239, 180, 80, 0.15) 100%);
}

.cp-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 16px 8px 16px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.cp-flow-step.is-active {
  opacity: 1;
}

.cp-flow-num {
  position: relative;
  z-index: 1;
  display: block;
  width: 56px;
  background: #070F32;
  color: #EFB450;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
}

.cp-flow-step h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.cp-flow-step p {
  margin: 0;
  color: #c5cde0;
  line-height: 1.55;
}

.cp-flow-stage {
  position: relative;
  width: 250px;
  height: 480px;
  margin: 0 auto;
}

.cp-flow-glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 240px;
  height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(239, 180, 80, 0.55) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.cp-flow-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.cp-flow-stage img.is-active {
  opacity: 1;
}

.cp-show-scroll {
  height: 180vh;
}

.cp-show-sticky {
  position: sticky;
  top: 12px;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-sizing: border-box;
}

.cp-show-intro {
  width: min(720px, 100%);
  text-align: center;
}

.cp-show-intro .cp-section-lead {
  margin-bottom: 0;
}

.cp-deck {
  --card: 156px;
  --slot: 212px;
  --spread: 0;
  position: relative;
  width: 100%;
  height: 400px;
}

.cp-deck-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--card);
  margin: 0;
  margin-left: calc(var(--card) / -2);
  z-index: calc(8 - var(--i));
  transform:
    translateX(calc((var(--i) - 1.5) * var(--spread) * var(--slot) + (1 - var(--spread)) * var(--i) * 10px))
    translateY(calc((1 - var(--spread)) * var(--i) * 14px))
    rotate(calc((1 - var(--spread)) * var(--i) * -2.2deg));
  will-change: transform;
}

.cp-deck-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(var(--fit, 1));
  transform-origin: center bottom;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}

.cp-deck-card figcaption {
  margin-top: 12px;
  text-align: center;
  color: #EFB450;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: var(--spread);
}

.cp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.cp-col {
  border-radius: 20px;
  padding: 28px 26px;
  background: #0a1230;
}

.cp-col h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.cp-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-col li {
  margin: 0 0 14px;
  line-height: 1.5;
  color: #d5dbea;
}

.cp-col-other h3 { color: #f0a0a0; }
.cp-col-other li::before {
  content: "✗  ";
  color: #e06a6a;
  font-weight: 700;
}

.cp-col-ours {
  border: 1px solid rgba(239, 180, 80, 0.35);
}

.cp-col-ours h3 { color: #EFB450; }
.cp-col-ours li::before {
  content: "✓  ";
  color: #EFB450;
  font-weight: 700;
}

.cp-download {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, rgba(239, 180, 80, 0.18), transparent 62%),
    #0c1736;
}

.cp-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(680px, 72%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(239, 180, 80, 0.45), transparent);
}

.cp-download h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.cp-nowrap {
  white-space: nowrap;
}

.cp-site-link {
  color: #EFB450;
  font-weight: 700;
  text-decoration: none;
}

.cp-site-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.cp-download .cp-section-lead { margin-bottom: 28px; }

.cp-download .cp-store-row { justify-content: center; }

.cp-built {
  margin: 22px 0 0;
  color: #9aa3b8;
  font-size: 0.92rem;
}

.cp-built a {
  color: #EFB450;
}

.cp-hire {
  background: #EFB450;
  color: #070F32;
  text-align: center;
  padding: 42px 20px;
}

.cp-hire p {
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
}

.cp-hire a {
  display: inline-flex;
  align-items: center;
  background: #070F32;
  color: #EFB450;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 22px;
}

.cp-hire a:hover {
  color: #ffffff;
  text-decoration: none;
}

.cp-carousel-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cp-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(239, 180, 80, 0.5);
  background: transparent;
  color: #EFB450;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cp-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.cp-carousel-dots button.is-active {
  width: 22px;
  background: #EFB450;
}

@media (max-width: 900px) {
  .cp-hero-grid,
  .cp-flow,
  .cp-compare {
    grid-template-columns: 1fr;
  }

  .cp-flow-scroll {
    height: auto;
  }

  .cp-flow-sticky,
  .cp-show-sticky {
    position: static;
    min-height: 0;
    gap: 18px;
  }

  .cp-flow-nav,
  .cp-show-nav {
    display: flex;
  }

  .cp-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .cp-flow-steps::before {
    display: none;
  }

  .cp-flow-step {
    display: none;
    padding: 0;
  }

  .cp-flow-step.is-active {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    opacity: 1;
  }

  .cp-flow-stage {
    width: min(220px, 58vw);
    height: 400px;
    order: -1;
  }

  .cp-show-scroll {
    height: auto;
  }

  .cp-show-intro,
  .cp-flow-intro {
    position: relative;
    z-index: 2;
  }

  .cp-deck {
    --card: min(200px, 56vw);
    --slot: 0px;
    height: 460px;
  }

  .cp-deck-card {
    transform: none;
  }

  .cp-deck-card img {
    height: 400px;
    transform: scale(1);
    transform-origin: center bottom;
  }

  .cp-deck-card[style*="--i: 1"] img {
    transform: scale(1.54);
  }

  .cp-deck-card[style*="--i: 3"] img {
    transform: scale(1.53);
  }

  .cp-deck-card figcaption {
    opacity: 0;
  }

  .cp-deck-card.is-active {
    z-index: 2;
  }

  .cp-deck-card.is-active figcaption {
    opacity: 1;
  }

  .cp-deck-card:not(.is-active) {
    visibility: hidden;
  }

  .cp-hero { padding-top: 56px; }

  .cp-phones {
    width: 100%;
    justify-content: center;
  }

  .cp-phones .cp-phone-frame {
    width: 54%;
    max-width: 54%;
    max-height: none;
  }

  .cp-phones .cp-phone-frame img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .cp-phones .cp-phone-frame + .cp-phone-frame {
    margin-left: -14%;
  }
}
