:root {
  color-scheme: light;
  --ink: #17191f;
  --muted: #5d6370;
  --quiet: #818793;
  --line: rgba(24, 26, 32, 0.12);
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #7f9edc;
  --violet: #a18ed8;
  --teal: #75bcbc;
  --green: #48b37b;
  --amber: #d59a42;
  --shadow: 0 24px 70px rgba(27, 31, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  overscroll-behavior-y: contain;
}

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

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 251, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.35);
}

.brand,
.nav-links,
.hero-actions,
.download-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(27, 31, 42, 0.12);
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:hover,
.site-footer a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(100svh, 760px);
  overflow: hidden;
  padding: 118px clamp(18px, 4vw, 56px) 76px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 251, 0.82)),
    image-set(
      url("./assets/missingpieces-icon.png") 1x,
      url("./assets/missingpieces-icon@2x.png") 2x
    ) center 58% / min(86vw, 760px) no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  content: "";
  background: linear-gradient(180deg, rgba(247, 248, 251, 0), var(--paper));
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  inset: 18% auto auto 50%;
  width: min(64vw, 540px);
  opacity: 0.07;
  transform: translateX(-50%) rotate(-8deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 5.1vw, 4.85rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.04rem;
}

.hero-copy {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.48;
}

.hero-actions,
.download-actions {
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(27, 31, 42, 0.12);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.desktop-scene {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  min-height: 332px;
  margin: clamp(22px, 3.4vw, 34px) auto 0;
}

.menu-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 50px rgba(34, 39, 51, 0.12);
  backdrop-filter: blur(26px) saturate(1.3);
}

.menu-strip span:not(.status-cluster) {
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background: rgba(23, 25, 31, 0.12);
}

.status-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.status-cluster img {
  width: 16px;
  height: 16px;
}

.status-cluster i {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: var(--green);
}

.popover-preview {
  width: min(430px, calc(100% - 36px));
  margin: 12px auto 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.35);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 25, 31, 0.08);
}

.preview-header strong {
  display: block;
  font-size: 0.94rem;
}

.preview-header span,
.next-step p,
.session-title {
  color: var(--quiet);
  font-size: 0.74rem;
}

.preview-header button {
  min-width: 92px;
  height: 30px;
  border: 1px solid rgba(23, 25, 31, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
}

.session {
  padding-top: 10px;
}

.session-title {
  margin-bottom: 8px;
  font-weight: 800;
}

.next-step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid rgba(23, 25, 31, 0.06);
}

.next-step:first-of-type {
  border-top: 0;
}

.next-step strong {
  display: block;
  color: #626874;
  font-size: 0.82rem;
  line-height: 1.3;
}

.next-step p {
  margin: 3px 0 0;
  line-height: 1.35;
}

.accent {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 5px;
  opacity: 0.86;
}

.accent.blue,
.behavior-list div:nth-child(1) span {
  background: var(--blue);
}

.accent.violet,
.behavior-list div:nth-child(2) span {
  background: var(--violet);
}

.accent.teal,
.behavior-list div:nth-child(3) span {
  background: var(--teal);
}

.intro-band {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 30px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.intro-band p {
  width: min(880px, calc(100% - 40px));
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 1.65vw, 1.45rem);
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
}

.section-heading {
  position: sticky;
  top: 100px;
  align-self: start;
}

.section-heading h2 {
  max-width: 430px;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.feature-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--quiet);
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-grid p,
.behavior-copy p,
.privacy p,
.download p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.behavior-copy {
  max-width: 620px;
}

.behavior-list {
  display: grid;
  gap: 12px;
}

.behavior-list div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 54px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  line-height: 1.45;
}

.behavior-list span {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 4px;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto clamp(48px, 7vw, 90px);
  padding: clamp(32px, 5vw, 54px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(127, 158, 220, 0.16), rgba(117, 188, 188, 0.12)),
    var(--white);
  box-shadow: 0 18px 54px rgba(27, 31, 42, 0.12);
}

.download img {
  float: left;
  width: 72px;
  height: 72px;
  margin: 4px 18px 10px 0;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(27, 31, 42, 0.16);
}

.download h2 {
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
    padding-bottom: 48px;
  }

  .desktop-scene {
    margin: 26px auto 0;
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 4.6rem);
  }

  .popover-preview {
    margin-right: auto;
  }

  .two-column,
  .product-strip,
  .privacy,
  .download {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 821px) and (max-height: 760px) {
  .hero {
    min-height: 100svh;
    padding-top: 78px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(2.35rem, 4.1vw, 3.5rem);
    margin-bottom: 10px;
  }

  .hero-copy {
    max-width: 620px;
    margin-bottom: 14px;
    font-size: 0.98rem;
    line-height: 1.38;
  }

  .button {
    min-height: 40px;
    padding-inline: 17px;
  }

  .desktop-scene {
    min-height: 184px;
    margin-top: 18px;
  }

  .popover-preview {
    max-height: 138px;
    overflow: hidden;
  }

  .next-step {
    padding-block: 7px;
  }

  .next-step p {
    display: none;
  }

  .session .next-step:nth-of-type(n+2) {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 0.95rem;
  }

  .nav-links {
    font-size: 0.8rem;
  }

  .hero {
    padding-inline: 14px;
    padding-top: 54px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .desktop-scene {
    min-height: 52px;
    margin-top: 18px;
  }

  .menu-strip {
    gap: 10px;
  }

  .menu-strip span:not(.status-cluster) {
    width: 38px;
  }

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

  .popover-preview {
    display: none;
  }

  .preview-header button {
    min-width: 76px;
  }

  .section {
    width: calc(100% - 28px);
  }

  .download {
    width: calc(100% - 28px);
    padding: 26px;
  }

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

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

  body {
    overscroll-behavior-y: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
