:root {
  --bg: #f7f5fb;
  --panel: #ffffff;
  --line: #e8e4f0;
  --text: #2d2d3a;
  --muted: #6f6f85;
  --brand: #9a7fd4;
  --brand-hero: #8468c0;
  --brand-dark: #6e52ab;
  --brand-soft: #f3eefb;
  --accent: #ff669c;
  --shadow: 0 24px 56px rgba(110, 82, 171, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(650px 400px at 88% -10%, rgba(255, 102, 156, 0.2), transparent 68%),
    radial-gradient(500px 340px at -4% 12%, rgba(154, 127, 212, 0.24), transparent 70%),
    linear-gradient(180deg, #f8f6fc 0%, #f6f4fa 60%, #f7f5fb 100%);
  z-index: -1;
}

.topbar,
.hero,
.section,
.footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(132, 104, 192, 0.08);
  position: sticky;
  top: 14px;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e8e0f4;
  box-shadow: 0 8px 18px rgba(110, 82, 171, 0.16);
  padding: 8px;
}

.brand span {
  font-size: clamp(1.65rem, 2vw, 2rem);
  line-height: 1;
  background: linear-gradient(90deg, #7e6fd9 0%, #9a6bd5 48%, #ef5d97 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navlinks a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.navlinks a:hover {
  color: var(--brand-dark);
}

.hero {
  padding: 66px 0 34px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.kicker {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

.hero-copy h1 {
  margin-top: 12px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
}

.hero-copy p {
  color: var(--muted);
  font-size: 1rem;
  margin: 16px 0 0;
  max-width: 62ch;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hero) 70%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(132, 104, 192, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(132, 104, 192, 0.45);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.85);
}

.apple {
  font-size: 1.08rem;
  line-height: 1;
}

.hero-preview {
  display: block;
}

.hero-carousel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2360 / 1640;
  max-height: min(56vh, 520px);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #f5f2fb 0%, #f9f6ff 100%);
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.985) translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.carousel-slide figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(25, 25, 33, 0.55);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 6px 10px;
}

.carousel-chrome {
  margin-top: 12px;
}

.carousel-progress {
  height: 4px;
  border-radius: 999px;
  background: #ede7f7;
  overflow: hidden;
}

.carousel-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

.carousel-progress-bar.is-running {
  animation: carouselProgress 5.4s linear forwards;
}

.carousel-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #dacfee;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  background: #f7f2ff;
}

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

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #d7cce9;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, width 0.2s ease;
}

.carousel-dot.is-active {
  width: 24px;
  background: var(--brand);
}

.real-shot {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  display: block;
}

.placeholder {
  min-height: 130px;
  border-radius: 12px;
  border: 1px dashed #c5badf;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(154, 127, 212, 0.12) 0,
      rgba(154, 127, 212, 0.12) 14px,
      rgba(255, 255, 255, 0.8) 14px,
      rgba(255, 255, 255, 0.8) 28px
    );
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

@keyframes carouselProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.section {
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(232, 228, 240, 0.8);
  border-radius: 20px;
  padding: 30px;
}

.section-head h2,
.split h2,
.cta h2 {
  margin-top: 10px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.steps span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.84rem;
  border: 1px solid #d9cceb;
}

.gallery {
  display: block;
}

.hero-carousel.compact .carousel-viewport {
  max-height: min(48vh, 430px);
}

.hero-carousel .placeholder {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
}

.cta {
  text-align: center;
  background: linear-gradient(145deg, #fff 10%, #f5f0fc 60%, #fff0f6 100%);
}

.cta p {
  color: var(--muted);
  margin: 12px auto 0;
  max-width: 60ch;
}

.cta .btn {
  margin-top: 20px;
}

.footer {
  margin: 30px auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-carousel.compact .carousel-viewport {
    max-height: min(44vh, 380px);
  }
}

@media (max-width: 680px) {
  .topbar,
  .hero,
  .section,
  .footer {
    width: min(1160px, calc(100% - 24px));
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 46px;
    height: 46px;
    padding: 6px;
  }

  .brand span {
    font-size: 1.38rem;
  }

  .navlinks {
    width: 100%;
    justify-content: flex-start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }
}
