:root {
  --lavender-50: #f7f4ff;
  --lavender-100: #eee9ff;
  --lavender-200: #ded5fb;
  --paper: #fffefe;
  --ink: #25264c;
  --ink-soft: #5c5a80;
  --purple: #7458c8;
  --purple-deep: #5f43b5;
  --purple-light: #a68de8;
  --blue: #348bea;
  --red: #ef504e;
  --green: #2eae63;
  --line: #d8d0ed;
  --display: "Space Grotesk", "Arial Black", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --shell: min(1220px, calc(100vw - 48px));
  --header-height: 76px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --shadow-phone: 0 34px 90px rgba(53, 39, 105, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--lavender-50);
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--lavender-50);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body *::selection {
  color: var(--paper);
  background: var(--purple);
}

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

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

ul,
ol {
  list-style: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.container {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 800;
  transform: translateY(-170%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  width: 0;
  height: 3px;
  background: var(--red);
  pointer-events: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(247, 244, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(116, 88, 200, 0.16);
  background: rgba(255, 254, 254, 0.92);
  box-shadow: 0 12px 36px rgba(52, 39, 101, 0.08);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  width: max-content;
  min-height: 44px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.brand::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--paper);
  background: var(--purple);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(95, 67, 181, 0.25);
  transform: rotate(-7deg);
}

.brand span {
  color: var(--purple);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(216, 208, 237, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--paper);
}

.topbar-inner > .btn {
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.topbar .btn {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--paper);
  background: var(--purple);
  box-shadow: 0 14px 30px rgba(95, 67, 181, 0.24);
}

.btn-primary:hover {
  background: var(--purple-deep);
  box-shadow: 0 18px 40px rgba(95, 67, 181, 0.3);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.btn-ghost:hover {
  border-color: var(--purple-light);
  background: var(--paper);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero {
  position: relative;
  min-height: 780px;
  padding: clamp(132px, 14vw, 180px) 0 clamp(86px, 10vw, 130px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(116, 88, 200, 0.105) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 88, 200, 0.105) 1px, transparent 1px),
    radial-gradient(circle at 78% 22%, rgba(166, 141, 232, 0.42), transparent 29%),
    linear-gradient(180deg, var(--lavender-50), var(--lavender-100));
  background-size: 44px 44px, 44px 44px, auto, auto;
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

.hero::after {
  content: "×  +  ○  =  ?";
  position: absolute;
  top: 118px;
  right: max(-100px, calc((100vw - 1420px) / 2));
  z-index: -1;
  color: rgba(116, 88, 200, 0.095);
  font-family: var(--mono);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 600;
  letter-spacing: -0.1em;
  white-space: nowrap;
  transform: rotate(-8deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-bottom: 24px;
  color: var(--purple-deep);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--red);
  box-shadow: 16px 0 0 var(--blue), 32px 0 0 var(--green);
  margin-right: 28px;
  transform: rotate(45deg);
}

.hero h1 {
  max-width: 11.2ch;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6.7vw, 6.1rem);
  font-weight: 700;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--purple);
}

.hero h1 span::after {
  content: "";
  position: absolute;
  right: 0.02em;
  bottom: 0.06em;
  left: 0;
  z-index: -1;
  height: 0.16em;
  border-radius: 999px;
  background: var(--purple-light);
  opacity: 0.28;
}

.hero-grid > .reveal > p {
  max-width: 58ch;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  border-top: 1px solid var(--line);
}

.stat {
  min-width: 0;
  padding: 18px 18px 0 0;
}

.stat + .stat {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.stat span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.hero-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 610px;
}

.hero-showcase::before,
.hero-showcase::after {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 0 22px;
  border: 1px solid rgba(216, 208, 237, 0.9);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 254, 254, 0.9);
  box-shadow: 0 18px 44px rgba(53, 39, 105, 0.15);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}

.hero-showcase::before {
  content: "●  +  ★  =  12";
  top: 74px;
  left: -54px;
  color: var(--blue);
  transform: rotate(-5deg);
}

.hero-showcase::after {
  content: "★  +  ◉  =  ?";
  right: -26px;
  bottom: 88px;
  color: var(--red);
  transform: rotate(4deg);
}

.hero-showcase .label {
  position: absolute;
  top: 16px;
  right: 4px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-showcase .label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(46, 174, 99, 0.13);
}

.phone-frame {
  position: relative;
  width: min(100%, 292px);
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 42px;
  background: #17182d;
  box-shadow: var(--shadow-phone);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 4;
  width: 34%;
  height: 22px;
  border-radius: 999px;
  background: #101120;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  aspect-ratio: 1125 / 2436;
  overflow: hidden;
  border-radius: 33px;
  background: var(--lavender-100);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone {
  z-index: 1;
  width: min(72vw, 310px);
  transform: rotate(2.5deg);
}

.hero-phone::after {
  content: "";
  position: absolute;
  inset: 8% -48% -10% -34%;
  z-index: -2;
  border-radius: 50%;
  background: var(--purple-light);
  opacity: 0.32;
  filter: blur(1px);
  transform: rotate(-14deg);
}

.hero-phone .phone-screen img {
  transform: translateY(var(--hero-parallax, 0));
}

.hero-chip {
  position: absolute;
  z-index: 3;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 254, 254, 0.92);
  box-shadow: 0 10px 28px rgba(53, 39, 105, 0.12);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-chip.top {
  top: 164px;
  right: -8px;
}

.hero-chip.bottom {
  bottom: 36px;
  left: 4px;
}

.section {
  position: relative;
  padding: clamp(86px, 10vw, 140px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-head h2 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
}

.section-head p {
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

#screenshots {
  background: var(--paper);
  overflow: hidden;
}

#screenshots::before {
  content: "PUZZLE / SOLVE / REPEAT";
  position: absolute;
  top: 54px;
  right: -28px;
  color: rgba(116, 88, 200, 0.06);
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 34px);
  align-items: start;
}

.screen-card {
  min-width: 0;
}

.screen-card:nth-child(even) {
  margin-top: 52px;
}

.screen-card .phone-frame {
  width: 100%;
  max-width: 270px;
  margin-inline: auto;
  padding: 7px;
  border-radius: 36px;
  box-shadow: 0 26px 66px rgba(53, 39, 105, 0.18);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
}

.screen-card .phone-frame::before {
  top: 12px;
  height: 18px;
}

.screen-card .phone-screen {
  border-radius: 29px;
}

.screen-card:hover .phone-frame {
  box-shadow: 0 34px 80px rgba(53, 39, 105, 0.25);
  transform: translateY(-8px);
}

.screen-card p {
  max-width: 23ch;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

#features {
  background: var(--lavender-50);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  position: relative;
  min-height: 245px;
  padding: clamp(28px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 46px;
  border: 4px solid var(--purple);
  border-radius: 50%;
}

.feature-card:nth-child(2)::before,
.feature-card:nth-child(5)::before {
  border-radius: 3px;
  border-color: var(--red);
  transform: rotate(45deg);
}

.feature-card:nth-child(3)::before,
.feature-card:nth-child(6)::before {
  border-color: var(--blue);
  border-radius: 999px 999px 2px 999px;
  transform: rotate(45deg);
}

.feature-card h3 {
  max-width: 15ch;
  margin-bottom: 13px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.feature-card p {
  max-width: 39ch;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

#difficulty {
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

#difficulty::before {
  content: "?";
  position: absolute;
  right: -0.08em;
  bottom: -0.42em;
  z-index: -1;
  color: rgba(166, 141, 232, 0.1);
  font-family: var(--display);
  font-size: min(50vw, 680px);
  font-weight: 700;
  line-height: 1;
}

#difficulty .section-head p {
  color: #c4c1df;
}

.difficulty {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: tier;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.difficulty li {
  min-width: 0;
  padding: 26px 22px 34px;
  counter-increment: tier;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.difficulty li:last-child {
  border-right: 0;
}

.difficulty li::before {
  content: "0" counter(tier);
  display: block;
  margin-bottom: 58px;
  color: var(--purple-light);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.difficulty li::after {
  content: "";
  display: block;
  width: calc(24% + (var(--d, 0) * 14%));
  max-width: 100%;
  height: 5px;
  margin-top: 26px;
  border-radius: 999px;
  background: var(--purple-light);
}

.difficulty strong {
  display: block;
  margin-bottom: 11px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.difficulty span {
  display: block;
  color: #c4c1df;
  font-size: 0.79rem;
  line-height: 1.6;
}

#how-it-works {
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 68px;
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 260px;
  padding: 32px;
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--lavender-50);
}

.step::before {
  content: "STEP 0" counter(step);
  display: block;
  margin-bottom: 70px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.step:not(:last-child)::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: -48px;
  color: var(--purple-light);
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  transform: translateY(-50%);
}

.step:nth-child(2)::after {
  content: "=";
}

.step h3 {
  margin-bottom: 13px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 650;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

#download {
  padding-top: 0;
  color: var(--paper);
  background: var(--paper);
}

.cta {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--purple);
  background-size: 40px 40px;
  isolation: isolate;
}

.cta::before {
  content: "★  +  ◉  =  ?";
  position: absolute;
  top: 50%;
  right: -0.8em;
  z-index: -1;
  color: rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(-50%) rotate(-8deg);
}

.cta-content {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(610px, 72%);
  padding: clamp(46px, 6vw, 80px);
}

.cta h2 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 700;
}

.cta p {
  max-width: 52ch;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.cta .btn-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.cta .btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.18);
}

footer {
  padding: 32px 0;
  color: #d9d6ed;
  background: var(--ink);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-row p {
  font-family: var(--mono);
  font-size: 0.68rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-links a:hover {
  color: #c8b9ff;
  text-decoration-color: currentColor;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1080px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 44px;
  }

  .hero-showcase::before {
    left: -20px;
  }

  .hero-showcase::after {
    right: -8px;
  }

  .section-head {
    grid-template-columns: 1fr 0.7fr;
  }

  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 710px;
    margin-inline: auto;
    gap: 54px 42px;
  }

  .screen-card:nth-child(even) {
    margin-top: 48px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .difficulty {
    grid-template-columns: repeat(5, 230px);
    width: calc(100vw - max(24px, (100vw - 1220px) / 2));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .difficulty li {
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 620px);
    --header-height: 68px;
  }

  .topbar .btn {
    min-height: 40px;
    padding-inline: 13px;
  }

  .brand {
    gap: 9px;
    font-size: 1.06rem;
  }

  .brand::before {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .hero {
    min-height: 0;
    padding: 118px 0 82px;
  }

  .hero::after {
    top: 98px;
    right: -180px;
    font-size: 7rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.05rem, 15vw, 5.15rem);
  }

  .hero-grid > .reveal > p {
    font-size: 0.98rem;
  }

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

  .stat {
    padding: 16px 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-showcase {
    min-height: 560px;
  }

  .hero-showcase::before {
    top: 52px;
    left: -4px;
  }

  .hero-showcase::after {
    right: -4px;
    bottom: 60px;
  }

  .hero-showcase .label {
    top: 0;
    right: 0;
  }

  .hero-chip.top {
    top: 140px;
    right: -4px;
  }

  .hero-chip.bottom {
    bottom: 16px;
  }

  .section {
    padding: 82px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 48px;
  }

  .section-head h2 {
    max-width: 13ch;
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 18px;
  }

  .screen-card:nth-child(even) {
    margin-top: 32px;
  }

  .screen-card .phone-frame {
    padding: 5px;
    border-radius: 26px;
  }

  .screen-card .phone-frame::before {
    top: 9px;
    height: 13px;
  }

  .screen-card .phone-screen {
    border-radius: 21px;
  }

  .screen-card p {
    margin-top: 14px;
    font-size: 0.64rem;
  }

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

  .feature-card {
    min-height: 0;
    padding: 28px;
  }

  .feature-card::before {
    margin-bottom: 32px;
  }

  .difficulty {
    grid-template-columns: repeat(5, min(78vw, 280px));
  }

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

  .step {
    min-height: 230px;
  }

  .step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -46px;
    transform: translateX(50%);
  }

  #download {
    padding-bottom: 0;
  }

  #download .container {
    width: 100%;
  }

  .cta {
    min-height: 520px;
    border-radius: 0;
  }

  .cta-content {
    width: 100%;
    min-height: 520px;
    padding: 44px 24px;
  }

  .cta::before {
    top: auto;
    right: -1.2em;
    bottom: 20px;
    font-size: 5.4rem;
    transform: rotate(-8deg);
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .topbar-inner > .btn {
    font-size: 0;
  }

  .topbar-inner > .btn::after {
    content: "↓";
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-showcase::before,
  .hero-showcase::after {
    min-height: 54px;
    padding-inline: 15px;
    font-size: 0.76rem;
  }

  .hero-chip.top {
    display: none;
  }

  .screens {
    gap-inline: 12px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-phone .phone-screen img {
    transform: none;
  }
}
