:root {
  color-scheme: light;
  --ink: #141018;
  --ink-soft: #3f3a4d;
  --muted: #6a6478;
  --faint: #928ca3;
  --bg: #faf9ff;
  --surface: #ffffff;
  --line: rgba(107, 77, 255, 0.14);
  --shadow: 0 18px 50px rgba(76, 42, 168, 0.12);
  --shadow-sm: 0 8px 24px rgba(76, 42, 168, 0.08);
  --radius: 18px;
  --radius2: 26px;
  --purple: #6b4dff;
  --purple-deep: #4b2dc4;
  --lilac: #e4dcff;
  --pink: #ff6b9d;
  --yellow: #ffd93d;
  --blue: #4f8cff;
  --mint: #1ef2c7;
  --lime: #c8f542;
  --hot: #ff4fd8;
  --ok: #2ee59d;
  --warn: #ffb020;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  --snap-h: min(76vh, 700px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background-color: var(--bg);
  background-image: radial-gradient(900px 620px at 8% 18%, rgba(228, 220, 255, 0.95), transparent 58%),
    radial-gradient(800px 560px at 92% 22%, rgba(255, 200, 232, 0.55), transparent 55%),
    radial-gradient(700px 500px at 50% 92%, rgba(200, 245, 255, 0.5), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #f3f0ff 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

.mono {
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
}

.blob--a {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -80px;
  background: radial-gradient(circle at 35% 35%, rgba(124, 92, 255, 0.55), transparent 65%);
}

.blob--b {
  width: 480px;
  height: 480px;
  right: -100px;
  top: 10%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 140, 200, 0.45), transparent 68%);
}

.blob--c {
  width: 420px;
  height: 420px;
  left: 35%;
  bottom: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(170, 230, 255, 0.55), transparent 68%);
}

.gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(107, 77, 255, 0.06) 0 1px,
    transparent 1px 72px
  );
  mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

.snap {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

.screen {
  min-height: var(--snap-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-items: center;
  padding: 14px 0 8px;
}

.screen--landing {
  padding-top: 8px;
  padding-bottom: 4px;
}

.screen--app {
  padding-top: 8px;
  min-height: calc(var(--snap-h) + 40px);
}

.landing {
  position: relative;
  padding-bottom: 8px;
}

.landing__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}

.landing__copy {
  display: grid;
  gap: 10px;
  max-width: 34rem;
}

.h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.h1--landing {
  color: var(--ink);
}

.h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subhead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 40ch;
}

.subhead--landing {
  max-width: 38ch;
}

.subhead--tight {
  max-width: 46ch;
  font-size: 19px;
}

.landing__powered {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.poweredWrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  gap: 10px;
}

.poweredPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(107, 77, 255, 0.18);
  box-shadow: 0 10px 26px rgba(107, 77, 255, 0.10);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.poweredArrow {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(107, 77, 255, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(20, 16, 24, 0.65);
  box-shadow: 0 8px 18px rgba(107, 77, 255, 0.08);
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

.landing__ai {
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 700;
  color: var(--purple-deep);
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(200, 245, 66, 0.55), rgba(107, 77, 255, 0.12));
  border: 1px solid rgba(107, 77, 255, 0.18);
}

.landing__visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.pillowStack {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  transform: perspective(900px) rotateX(6deg) rotateY(-10deg);
}

.pillow {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 50px rgba(107, 77, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}

.pillow--1 {
  inset: 18% 8% 22% 12%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(200, 170, 255, 0.35));
  transform: rotate(-6deg);
  z-index: 1;
}

.pillow--2 {
  inset: 8% 18% 38% 10%;
  background: linear-gradient(155deg, rgba(230, 220, 255, 0.75), rgba(255, 190, 230, 0.35));
  transform: rotate(8deg);
  z-index: 2;
}

.pillow--3 {
  inset: 34% 10% 8% 24%;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.6), rgba(180, 230, 255, 0.35));
  transform: rotate(-3deg);
  z-index: 3;
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  color: rgba(107, 77, 255, 0.55);
  font-size: 14px;
  line-height: 1;
  animation: twinkle 3.2s ease-in-out infinite;
}

.spark--1 {
  top: 8%;
  left: 12%;
  animation-delay: 0s;
}

.spark--2 {
  top: 22%;
  right: 18%;
  animation-delay: 0.6s;
}

.spark--3 {
  bottom: 28%;
  left: 6%;
  animation-delay: 1.1s;
}

.spark--4 {
  bottom: 14%;
  right: 10%;
  animation-delay: 1.8s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.confetti {
  position: absolute;
  inset: -8% -6% -10% -6%;
  pointer-events: none;
}

.c {
  position: absolute;
  display: block;
}

.c--1 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  left: 4%;
  top: 18%;
  transform: rotate(-12deg);
  box-shadow: var(--shadow-sm);
}

.c--2 {
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: var(--yellow);
  right: 6%;
  top: 10%;
  transform: rotate(18deg);
}

.c--3 {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pink);
  right: 12%;
  bottom: 22%;
  transform: rotate(24deg);
}

.c--4 {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 38px solid var(--purple);
  left: 0;
  bottom: 8%;
  opacity: 0.85;
  transform: rotate(8deg);
  border-radius: 4px;
}

.c--5 {
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: var(--mint);
  left: 18%;
  bottom: 4%;
  opacity: 0.75;
  transform: rotate(-8deg);
}

.c--6 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  right: 2%;
  top: 42%;
}

.c--7 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac), #fff);
  left: 22%;
  top: 0;
  opacity: 0.9;
  clip-path: inset(0 0 50% 0 round 999px);
  transform: rotate(-22deg);
}

.c--8 {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--hot);
  right: 22%;
  bottom: 6%;
  transform: rotate(-15deg);
}

.c--9 {
  width: 20px;
  height: 64px;
  border-radius: 999px;
  background: var(--purple-deep);
  left: 42%;
  top: 12%;
  opacity: 0.22;
  transform: rotate(35deg);
}

.c--10 {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px var(--yellow);
  left: 48%;
  bottom: 18%;
}

.c--11 {
  width: 40px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(107, 77, 255, 0.25);
  right: 28%;
  top: 52%;
}

.c--12 {
  width: 28px;
  height: 28px;
  background: var(--ok);
  border-radius: 6px;
  left: 8%;
  top: 48%;
  transform: rotate(45deg);
}

.scrollNudge {
  position: absolute;
  right: 8px;
  bottom: 4px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 77, 255, 0.22);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.scrollNudge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(107, 77, 255, 0.18);
}

.scrollNudge__ring {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px dashed rgba(107, 77, 255, 0.25);
}

.scrollNudge__arrow {
  font-size: 18px;
  transform: rotate(90deg);
  font-weight: 700;
}

.page {
  margin-top: 0;
  padding: 44px 40px 48px;
  border-radius: calc(var(--radius2) + 4px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  min-height: min(62vh, 560px);
}

.page--light {
  background: var(--surface);
}

.page__head {
  display: grid;
  gap: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.card {
  padding: 26px 22px 30px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(107, 77, 255, 0.12);
  background: linear-gradient(180deg, rgba(250, 247, 255, 0.9), #fff);
  min-height: 200px;
}

.card--light {
  box-shadow: 0 4px 18px rgba(76, 42, 168, 0.06);
}

.card__num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  color: var(--purple-deep);
  border: 1px solid rgba(107, 77, 255, 0.22);
  background: rgba(228, 220, 255, 0.45);
  font-family: var(--mono);
  font-size: 13px;
}

.card__title {
  margin-top: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.card__desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.matchCTA {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matchCTA--inPage {
  margin-top: 32px;
  padding: 22px 24px 26px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: calc(var(--radius2) + 8px);
  background: linear-gradient(
    145deg,
    rgba(107, 77, 255, 0.22) 0%,
    rgba(180, 150, 255, 0.35) 45%,
    rgba(90, 58, 232, 0.2) 100%
  );
  border: 1px solid rgba(107, 77, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 32px rgba(107, 77, 255, 0.12);
}

.btn--match {
  display: inline-flex;
  justify-content: center;
  width: min(92vw, 760px);
  max-width: 100%;
  padding: 34px 44px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  border-radius: 999px;
  border-color: rgba(60, 90, 20, 0.32);
  background: linear-gradient(180deg, #e9ff8f 0%, #c8f542 55%, #94e62a 100%);
  color: #172006;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.btn--match:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.btn {
  appearance: none;
  border: 1px solid rgba(107, 77, 255, 0.2);
  background: #fff;
  color: var(--ink);
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease;
  box-shadow: 0 6px 18px rgba(76, 42, 168, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(76, 42, 168, 0.12);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  border-color: rgba(107, 77, 255, 0.35);
  background: linear-gradient(135deg, rgba(107, 77, 255, 0.16), rgba(79, 140, 255, 0.12));
  color: var(--purple-deep);
}

.btn--primary:hover {
  border-color: rgba(107, 77, 255, 0.5);
}

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

  .landing__visual {
    order: -1;
    min-height: 240px;
    margin-bottom: 8px;
  }

  .pillowStack {
    width: min(300px, 92vw);
  }

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

  .scrollNudge {
    position: static;
    margin: 14px auto 0;
  }
}
