:root {
  color-scheme: light;
  --ink: #182016;
  --muted: #665d71;
  --leaf: #56306f;
  --leaf-bright: #8158e5;
  --cream: #fbf5e8;
  --cream-strong: #f2e3c2;
  --card: rgba(255, 252, 244, 0.78);
  --line: rgba(86, 48, 111, 0.18);
  --shadow: 0 26px 80px rgba(64, 38, 94, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 195, 91, 0.36), transparent 26rem),
    radial-gradient(circle at 84% 8%, rgba(129, 88, 229, 0.24), transparent 30rem),
    radial-gradient(circle at 70% 88%, rgba(190, 134, 255, 0.2), transparent 32rem),
    linear-gradient(145deg, #fffaf0 0%, var(--cream) 45%, #f0e9ff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(86, 48, 111, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 48, 111, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

a {
  color: inherit;
}

main {
  overflow: hidden;
}

.hero,
.promise,
.privacy,
.gallery,
.cta {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 44px;
  align-items: center;
  min-height: 820px;
  padding: 24px 0 76px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand__icon {
  width: 122px;
  height: 122px;
  border-radius: 33px;
  box-shadow: 0 14px 34px rgba(86, 48, 111, 0.22);
}

.brand__wordmark {
  width: 360px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--leaf-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
}

.button--primary {
  color: #fffdf5;
  background: linear-gradient(135deg, #56306f, #8158e5);
  box-shadow: 0 16px 38px rgba(86, 48, 111, 0.28);
}

.hero__art {
  position: relative;
  min-height: 680px;
}

.phone {
  filter: drop-shadow(0 34px 44px rgba(64, 38, 94, 0.24));
  user-select: none;
}

.phone--main {
  position: absolute;
  right: 15%;
  bottom: 0;
  z-index: 2;
  width: min(365px, 52vw);
  transform: rotate(-5deg);
}

.phone--back {
  position: absolute;
  width: min(300px, 42vw);
  opacity: 0.92;
}

.phone--left {
  left: 0;
  top: 84px;
  transform: rotate(-14deg);
}

.phone--right {
  right: 0;
  top: 34px;
  transform: rotate(12deg);
}

.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -16px;
}

.promise article,
.privacy,
.cta {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.promise article {
  min-height: 260px;
  padding: 28px;
  border-radius: 34px;
}

.promise span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--leaf-bright);
  font-weight: 950;
}

.promise h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.promise p,
.privacy p,
.cta p {
  color: var(--muted);
  line-height: 1.65;
}

.privacy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-top: 84px;
  padding: clamp(32px, 6vw, 62px);
  border-radius: 44px;
}

.privacy h2 {
  margin-bottom: 0;
}

.privacy p:last-child {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.gallery {
  margin-top: 108px;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 34px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

figure {
  margin: 0;
  padding: 24px 24px 18px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-radius: 36px;
}

figure img {
  width: min(100%, 330px);
  margin: 0 auto;
  filter: drop-shadow(0 24px 30px rgba(64, 38, 94, 0.19));
}

figcaption {
  margin-top: 16px;
  color: var(--leaf);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 142px;
  margin-bottom: 40px;
  padding: 58px 28px;
  text-align: center;
  border-radius: 44px;
}

.cta img {
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(86, 48, 111, 0.22);
}

.cta h2 {
  margin-bottom: 14px;
}

.cta p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 28px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 44px;
  }

  .nav {
    margin-bottom: 36px;
  }

  .hero__art {
    min-height: 650px;
  }

  .phone--main {
    right: 28%;
    width: min(360px, 58vw);
  }

  .phone--left {
    left: 6%;
  }

  .phone--right {
    right: 8%;
  }

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

  .promise {
    margin-top: 24px;
  }

  .promise article {
    min-height: auto;
  }

  .promise span {
    margin-bottom: 28px;
  }

}

@media (max-width: 640px) {
  .hero,
  .promise,
  .privacy,
  .gallery,
  .cta {
    width: min(100% - 28px, 1160px);
  }

  .brand__icon {
    width: 108px;
    height: 108px;
  }

  .brand__wordmark {
    width: 320px;
  }

  h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.55rem);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero__art {
    min-height: 520px;
    margin-top: 8px;
  }

  .phone--main {
    right: 18%;
    width: min(315px, 74vw);
  }

  .phone--back {
    width: min(250px, 58vw);
  }

  .phone--left {
    left: -12%;
    top: 78px;
  }

  .phone--right {
    right: -13%;
    top: 28px;
  }

  .privacy,
  .gallery {
    margin-top: 64px;
  }

  .cta {
    margin-top: 84px;
  }
}
