:root {
  --yellow: #f1c40f;
  --purple: #2d2162;
  --purple-mid: #765edc;
  --lavender: #efe9ff;
  --blue-soft: #eaf6ff;
  --ink: #171322;
  --muted: #665f73;
  --line: #ece8f2;
  --divider: rgba(0, 0, 0, 0.09);
  --paper: #ffffff;
  --page: #fbfaf7;
  --shadow: 0 24px 70px rgba(45, 33, 98, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fbff 0%, var(--page) 48%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 8%, rgba(118, 94, 220, 0.24), transparent 32rem),
    radial-gradient(circle at 12% 28%, rgba(148, 219, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 72%, rgba(206, 193, 255, 0.2), transparent 30rem);
  animation: ambientGradient 18s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
}

@keyframes ambientGradient {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.hero,
.promise,
.method,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

.brand img {
  width: 134px;
}

.legal-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-nav a,
.footer-links a {
  border-bottom: 1px solid transparent;
}

.legal-nav a:hover,
.footer-links a:hover {
  border-color: var(--yellow);
  color: var(--purple);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 52px;
  min-height: 640px;
  padding: 38px 0 96px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-mid);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--purple);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-text {
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.app-store-badge {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 2px solid #15121c;
  border-radius: 16px;
  background: var(--yellow);
  color: #15121c;
  padding: 0 28px;
  box-shadow: 0 12px 0 #15121c, 0 22px 34px rgba(45, 33, 98, 0.16);
  font-size: 16px;
  font-weight: 1000;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.app-store-badge:hover {
  transform: translateY(4px);
  box-shadow: 0 8px 0 #15121c, 0 16px 26px rgba(45, 33, 98, 0.14);
}

.app-store-badge:active {
  transform: translateY(8px);
  box-shadow: 0 4px 0 #15121c, 0 10px 18px rgba(45, 33, 98, 0.12);
}

.hero-media {
  position: relative;
  min-height: 590px;
}

.phone {
  position: absolute;
  margin: 0;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 44px;
  background: #16111f;
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.22) inset;
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: contain;
}

.phone-main {
  z-index: 3;
  right: 26%;
  top: 18px;
  width: min(260px, 44vw);
  aspect-ratio: 750 / 1624;
}

.phone-side {
  z-index: 2;
  right: 0;
  top: 112px;
  width: min(210px, 36vw);
  aspect-ratio: 750 / 1624;
  transform: rotate(5deg);
}

.phone-back {
  z-index: 1;
  left: 0;
  top: 132px;
  width: min(230px, 38vw);
  aspect-ratio: 750 / 1624;
  transform: rotate(-6deg);
  opacity: 0.9;
}

.phone-side,
.phone-back {
  border-radius: 30px;
}

.phone-side::before,
.phone-back::before {
  border-radius: 38px;
}

.phone-side img,
.phone-back img {
  border-radius: 28px;
}

.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--divider);
  padding: 0 0 40px;
}

.promise article {
  min-height: 190px;
  padding: 30px 28px 32px 0;
}

.benefit-number {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 1000;
}

.promise h2,
.method h2 {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.promise h2 {
  font-size: 25px;
}

.promise p,
.steps p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.method {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 42px;
  align-items: start;
  padding: 62px 0 68px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 132px;
  border-radius: 8px;
  background: var(--paper);
  padding: 22px 22px 20px;
  box-shadow: 0 10px 34px rgba(45, 33, 98, 0.08);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--purple);
  font-weight: 1000;
}

.steps span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--divider);
  padding: 28px 0 34px;
  font-size: 14px;
}

.site-footer img {
  width: 92px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
    padding-top: 22px;
  }

  .hero-copy {
    max-width: 680px;
  }

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

  .phone {
    border-radius: 28px;
  }

  .phone::before {
    border-radius: 36px;
  }

  .phone img {
    border-radius: 26px;
  }

  .phone-side,
  .phone-back {
    border-radius: 23px;
  }

  .phone-side::before,
  .phone-back::before {
    border-radius: 31px;
  }

  .phone-side img,
  .phone-back img {
    border-radius: 21px;
  }

  .phone-main {
    right: calc(50% - 112px);
    width: 224px;
  }

  .phone-side {
    right: calc(50% - 238px);
    width: 176px;
  }

  .phone-back {
    left: calc(50% - 238px);
    width: 184px;
  }

  .promise,
  .method {
    grid-template-columns: 1fr;
  }

  .promise article {
    min-height: 0;
    padding-right: 0;
  }

  .promise {
    padding-bottom: 0;
  }

  .promise article + article {
    border-top: 1px solid var(--divider);
  }

  .benefit-number {
    margin-bottom: 22px;
  }

  .method {
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .promise,
  .method,
  .site-footer {
    width: min(100% - 56px, 1120px);
  }

  .site-header {
    align-items: flex-start;
  }

  .brand img {
    width: 112px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    margin-bottom: 30px;
  }

  .hero-media {
    min-height: 420px;
  }

  .phone {
    border-radius: 18px;
  }

  .phone::before {
    inset: -8px;
    border-radius: 26px;
  }

  .phone img {
    border-radius: 17px;
  }

  .phone-side,
  .phone-back {
    border-radius: 14px;
  }

  .phone-side::before,
  .phone-back::before {
    border-radius: 22px;
  }

  .phone-side img,
  .phone-back img {
    border-radius: 13px;
  }

  .phone-main {
    right: calc(50% - 96px);
    width: 178px;
  }

  .phone-side {
    right: calc(50% - 174px);
    top: 94px;
    width: 132px;
  }

  .phone-back {
    left: calc(50% - 174px);
    top: 112px;
    width: 138px;
  }

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

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