:root {
  color-scheme: light;
  --bg: #fbfaf9;
  --ink: #171717;
  --muted: #6e6a67;
  --line: #e8e2de;
  --panel: #ffffff;
  --accent: #e84878;
  --accent-warm: #ff8c42;
  --soft: #fff1ef;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.glyph-line,
.glyph-detail {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph-line {
  stroke-width: 7;
}

.glyph-detail {
  stroke-width: 5;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1040px, calc(100% - 40px));
  margin: 10px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(232, 226, 222, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(24px) saturate(1.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.links a {
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-download {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(232, 72, 120, 0.22);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 56px auto 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(440px, 1.04fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(42px, 4.7vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.store-button {
  min-width: 214px;
  min-height: 64px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  border-radius: 30px;
  background: #171717;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(23, 23, 23, 0.12);
}

.store-button span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.store-button small {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.store-button strong {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.1;
  white-space: normal;
}

.store-button-muted {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(23, 23, 23, 0.06);
}

.store-button-muted small {
  color: var(--muted);
}

.store-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #0a84ff;
}

.hero-media {
  position: relative;
  min-height: 620px;
  overflow: visible;
  pointer-events: none;
  transform-style: preserve-3d;
}

.device {
  margin: 0;
  position: absolute;
  width: 292px;
  aspect-ratio: 1179 / 2556;
  overflow: hidden;
  border: 10px solid #171717;
  border-radius: 38px;
  background: transparent;
  box-shadow: 0 28px 70px rgba(23, 23, 23, 0.18);
}

.device::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 90px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.device img,
.screen-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.device-primary {
  right: 34px;
  top: 0;
  z-index: 2;
  animation: devicePrimaryIn 900ms cubic-bezier(0.18, 0.9, 0.22, 1) both, deviceFloat 7s ease-in-out 1s infinite;
}

.device-secondary {
  left: 6px;
  top: 86px;
  z-index: 1;
  transform: rotate(-5deg);
  opacity: 0.95;
  animation: deviceSecondaryIn 1050ms cubic-bezier(0.18, 0.9, 0.22, 1) 120ms both, deviceFloatAlt 8s ease-in-out 1.2s infinite;
}

.product-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(232, 72, 120, 0.11), rgba(255, 140, 66, 0.07)),
    var(--soft);
}

.band-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: 44px;
  align-items: center;
}

.band-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.band-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 0 0 1px rgba(232, 72, 120, 0.08), 0 14px 36px rgba(232, 72, 120, 0.08);
  animation: cardRise 700ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
}

.feature-card:nth-child(2) {
  animation-delay: 80ms;
}

.feature-card:nth-child(3) {
  animation-delay: 160ms;
}

.feature-card:nth-child(4) {
  animation-delay: 240ms;
}

.feature-rose {
  --feature-color: #e84878;
  --feature-bg: #ffe3eb;
}

.feature-mint {
  --feature-color: #0f9f8e;
  --feature-bg: #def7f3;
}

.feature-blue {
  --feature-color: #2f68c6;
  --feature-bg: #e8f0ff;
}

.feature-warm {
  --feature-color: #f17c2f;
  --feature-bg: #fff0dc;
}

.feature-head {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.feature-icon {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--feature-bg);
  color: var(--feature-color);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.06);
}

.feature-icon svg {
  width: 54px;
  height: 54px;
  display: block;
}

.feature-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  max-width: 250px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.screens-section {
  background: #fff;
}

.screens-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.section-heading {
  max-width: 760px;
}

.screens-row {
  margin-top: 34px;
  min-height: min(860px, 76vw);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 18px 0 0;
}

.screen-shot {
  flex: 0 0 clamp(280px, 35%, 392px);
  margin: 0;
  margin-left: -38px;
  aspect-ratio: 1179 / 2556;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.11);
  animation: screenStackRise 900ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 42%;
  transform: translateY(130px) rotate(var(--start-rotate, 0deg)) scale(0.94);
}

.screen-shot:nth-child(1) {
  --final-rotate: -2deg;
  --start-rotate: -6deg;
  margin-left: 0;
  z-index: 3;
}

.screen-shot:nth-child(2) {
  --final-rotate: 1.5deg;
  --start-rotate: 5deg;
  animation-delay: 120ms;
  z-index: 2;
}

.screen-shot:nth-child(3) {
  --final-rotate: 3deg;
  --start-rotate: 8deg;
  animation-delay: 240ms;
  z-index: 1;
}

.loop-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 0%, rgba(232, 72, 120, 0.12), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 140, 66, 0.12), transparent 28%),
    #fbfaf9;
}

.loop-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 84px;
}

.loop-copy {
  max-width: 760px;
}

.loop-copy h2,
.download-inner h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.loop-copy p,
.download-inner p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.shot-marquee {
  width: 100%;
  margin-top: 36px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.shot-track {
  width: max-content;
  display: flex;
  gap: 18px;
  animation: shotRail 34s linear infinite;
}

.shot-track:hover {
  animation-play-state: paused;
}

.mini-shot {
  flex: 0 0 auto;
  width: 178px;
  aspect-ratio: 1179 / 2556;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(232, 226, 222, 0.88);
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.12);
}

.mini-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.process-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  min-height: 156px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.06);
}

.process-card span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-card strong {
  display: block;
  margin-top: 16px;
  font-size: 22px;
}

.process-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-section {
  background: linear-gradient(135deg, #171717, #342b2b);
  color: #fff;
}

.download-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}

.download-inner .eyebrow {
  color: #ff9f60;
}

.download-inner p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.download-buttons {
  display: grid;
  gap: 12px;
}

.store-large {
  min-width: 260px;
  min-height: 64px;
}

.store-large strong {
  font-size: 22px;
}

.doc {
  width: min(820px, calc(100% - 40px));
  margin: 36px auto 80px;
  padding: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc h1 {
  font-size: 40px;
  line-height: 1.1;
}

.doc h2 {
  margin-top: 34px;
  font-size: 22px;
}

.doc p,
.doc li {
  color: var(--muted);
  line-height: 1.75;
}

.doc ul {
  padding-left: 20px;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.footer-inner span:last-child {
  display: flex;
  gap: 14px;
}

@keyframes devicePrimaryIn {
  from {
    opacity: 0;
    transform: translateX(58px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes deviceSecondaryIn {
  from {
    opacity: 0;
    transform: translateX(-62px) rotate(-12deg);
  }
  to {
    opacity: 0.95;
    transform: translateX(0) rotate(-5deg);
  }
}

@keyframes deviceFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes deviceFloatAlt {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(12px) rotate(-6deg);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screenStackRise {
  from {
    opacity: 0;
    transform: translateY(130px) rotate(var(--start-rotate, 0deg)) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--final-rotate, 0deg)) scale(1);
  }
}

@keyframes shotRail {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 780px) {
  .nav,
  .footer-inner {
    width: min(100% - 28px, 1040px);
  }

  .links {
    gap: 12px;
    justify-content: flex-end;
  }

  .links a:nth-child(1),
  .links a:nth-child(3),
  .links a:last-child {
    display: none;
  }

  .nav {
    top: 8px;
    width: min(100% - 20px, 1040px);
  }

  .nav-actions {
    gap: 10px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .hero {
    width: min(100% - 28px, 1040px);
    margin-top: 20px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-media {
    min-height: 500px;
    overflow: visible;
  }

  .device {
    width: 232px;
    border-width: 8px;
    border-radius: 32px;
  }

  .device-primary {
    right: 6px;
  }

  .device-secondary {
    left: 6px;
    top: 74px;
  }

  .band-inner {
    width: min(100% - 28px, 1040px);
    grid-template-columns: 1fr;
  }

  .component-grid {
    grid-template-columns: 1fr;
  }

  .screens-row {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
  }

  .screen-shot {
    width: min(100%, 340px);
    flex: none;
    margin-left: 0;
    margin-top: -52px;
  }

  .screen-shot:nth-child(1) {
    margin-top: 0;
  }

  .store-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .store-button {
    min-width: 0;
  }

  .process-grid,
  .download-inner {
    grid-template-columns: 1fr;
  }

  .loop-inner,
  .download-inner {
    width: min(100% - 28px, 1040px);
  }

  .mini-shot {
    width: 142px;
  }

  .screens-inner {
    width: min(100% - 28px, 1040px);
  }

  .doc {
    width: min(100% - 28px, 820px);
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
