@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/Sora.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #171b2d;
  --muted: #666b7d;
  --line: #dfe1eb;
  --primary: #6467d9;
  --deep: #343779;
  --lavender: #e9eafb;
  --coral: #f48b74;
  --gold: #d9a64e;
  --page: min(1180px, calc(100% - 40px));
  --shadow: 0 20px 55px rgba(23, 27, 45, 0.14);
}

* {
  box-sizing: border-box;
}

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

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--deep);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--primary);
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: 4.75rem;
}

h2 {
  margin-bottom: 20px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.section,
.trust-section,
.footer,
.final-cta {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 76px;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(23, 27, 45, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-size: 1.55rem;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  margin: 4px 0;
  background: var(--deep);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links .nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: max(620px, calc(100svh - 112px));
  padding: 54px max(20px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.94fr);
  gap: 54px;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 10px;
  background: var(--coral);
}

.hero-copy-block {
  position: relative;
  z-index: 2;
}

.hero-brand-lockup {
  width: fit-content;
  margin-bottom: 24px;
  padding: 8px 18px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 4px solid var(--gold);
  border-radius: 8px;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.hero-brand-lockup img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero-copy-block > p:last-of-type {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--lavender);
  font-size: 1.14rem;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--deep);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rebrand-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 48px 48px 44px;
  overflow: visible;
  background: var(--white);
  border: 1px solid rgba(52, 55, 121, 0.22);
  border-top: 10px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(23, 27, 45, 0.34);
  text-align: center;
}

.rebrand-dialog::backdrop {
  background: rgba(23, 27, 45, 0.76);
}

.rebrand-dialog[open] {
  animation: dialog-in 260ms ease-out both;
}

.rebrand-dialog::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  height: 8px;
  background: var(--coral);
}

.rebrand-dialog .eyebrow {
  margin-top: 20px;
  color: var(--primary);
}

.rebrand-dialog h2 {
  margin-bottom: 18px;
  font-size: 2.6rem;
}

.rebrand-dialog h2 span {
  color: var(--muted);
  font-weight: 650;
}

.rebrand-dialog h2 strong {
  position: relative;
  display: inline-block;
  color: var(--deep);
}

.rebrand-dialog h2 strong::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 5px;
  background: var(--gold);
}

.rebrand-dialog > p:not(.eyebrow) {
  max-width: 480px;
  margin: 0 auto 28px;
}

.rebrand-mark {
  width: 104px;
  height: 104px;
  margin: -96px auto 0;
  display: grid;
  place-items: center;
  background: var(--lavender);
  border: 6px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(52, 55, 121, 0.2);
}

.rebrand-mark img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--lavender);
  color: var(--deep);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.eyebrow-light {
  color: var(--gold) !important;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--deep);
}

.button-light:hover {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--deep);
}

.text-link {
  font-size: 0.94rem;
}

.text-link-light {
  color: var(--white);
}

.text-link-light:hover {
  color: var(--gold);
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.hero-illustration {
  position: absolute;
  top: 10px;
  right: -90px;
  width: 430px;
  height: 430px;
  display: block;
}

.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-frame {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border: 7px solid var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.device-frame > img {
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top;
}

.device-frame figcaption {
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.hero-device {
  position: absolute;
  bottom: -120px;
  left: 25px;
  width: 300px;
  transform: rotate(-3deg);
}

.signal-band {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  background: var(--lavender);
  border-bottom: 1px solid var(--line);
}

.signal-band p {
  margin: 0;
  padding: 12px 22px;
  color: var(--deep);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 750;
  border-right: 1px solid rgba(52, 55, 121, 0.18);
}

.signal-band p:last-child {
  border-right: 0;
}

.quest-showcase {
  padding: 106px max(20px, calc((100% - 1180px) / 2));
  overflow: hidden;
  background: #f7f7fc;
  border-bottom: 1px solid var(--line);
}

.quest-showcase-heading {
  max-width: 1180px;
  margin: 0 auto 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.quest-showcase-heading > div:first-child {
  max-width: 800px;
}

.quest-showcase-heading h2 {
  margin-bottom: 14px;
}

.quest-showcase-heading p:last-child {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.carousel-controls button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--white);
  color: var(--deep);
  border: 1px solid rgba(52, 55, 121, 0.25);
  border-radius: 50%;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 850;
  cursor: pointer;
}

.carousel-controls button:hover {
  background: var(--deep);
  color: var(--white);
}

.carousel-controls button:disabled {
  background: var(--white);
  color: #a7aabc;
  cursor: default;
  opacity: 0.62;
}

.quest-track {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 2px 2px 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 31%);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--primary) transparent;
  scrollbar-width: thin;
}

.quest-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: 0 14px 32px rgba(23, 27, 45, 0.08);
}

.quest-card-art {
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.quest-card-art img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.quest-card-art-cafe { background: #fff7f4; }
.quest-card-art-explore { background: #e9eafb; }
.quest-card-art-creative { background: #f2f0ff; }
.quest-card-art-culture { background: #fff9e9; }
.quest-card-art-nature { background: #eef5ed; }
.quest-card-art-reflection { background: #edf3f8; }

.quest-card-copy {
  min-height: 290px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.quest-category {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quest-card h3 {
  min-height: 2.5em;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.quest-card p {
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.quest-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.quest-meta span {
  position: relative;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 750;
}

.quest-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.section {
  padding-block: 112px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 56px;
}

.section-heading > p:last-child {
  max-width: 720px;
}

.illustrated-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  list-style: none;
}

.illustrated-steps li {
  min-width: 0;
}

.illustrated-steps picture {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--lavender);
  border-radius: 8px;
}

.illustrated-steps picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.illustrated-steps span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 850;
}

.illustrated-steps p {
  margin-bottom: 0;
}

.feature-band {
  padding: 110px max(20px, calc((100% - 1180px) / 2));
  background: var(--lavender);
}

.feature-inner {
  max-width: 1180px;
  margin-inline: auto;
}

.screen-stage {
  min-height: 680px;
  display: grid;
  grid-template-columns: 0.82fr 1fr 0.82fr;
  gap: 28px;
  align-items: end;
}

.device-primary {
  align-self: start;
}

.device-secondary {
  margin-bottom: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.05fr) minmax(240px, 0.55fr);
  gap: 50px;
  align-items: center;
}

.split-art {
  min-width: 0;
  background: var(--lavender);
  border-radius: 8px;
}

.split-art picture,
.split-art img {
  width: 100%;
  display: block;
}

.split-copy p {
  max-width: 650px;
}

.plain-list,
.feature-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plain-list li {
  padding: 14px 0;
  color: var(--ink);
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}

.memory-device {
  width: 100%;
}

.progress-band {
  padding: 100px max(20px, calc((100% - 1180px) / 2));
  background: var(--deep);
}

.progress-inner {
  max-width: 1180px;
  min-height: 590px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr) minmax(220px, 0.52fr);
  gap: 48px;
  align-items: center;
}

.progress-copy h2,
.progress-copy p {
  color: var(--white);
}

.progress-copy p:last-child {
  color: var(--lavender);
}

.progress-art {
  display: block;
}

.progress-art img {
  width: 100%;
}

.progress-device {
  width: 100%;
}

.pro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 82px;
  align-items: center;
}

.pro-copy > p {
  max-width: 700px;
}

.feature-list li {
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.feature-list strong {
  color: var(--ink);
}

.feature-list span {
  color: var(--muted);
}

.founder-section {
  padding: 100px max(20px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: 58px;
  align-items: center;
  background: #fff7f4;
  border-block: 1px solid #f4c4b8;
}

.founder-art {
  display: block;
}

.founder-art img {
  width: 100%;
}

.founder-copy p {
  max-width: 700px;
}

.founder-note {
  font-size: 0.86rem;
}

.code-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid #f0b9ad;
  border-radius: 8px;
  background: var(--white);
}

.code-panel > span,
.code-panel code {
  display: block;
}

.code-panel > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.code-panel code {
  margin: 10px 0 24px;
  color: var(--deep);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 850;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.copy-status {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.trust-section {
  padding-block: 100px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.trust-points {
  border-top: 1px solid var(--line);
}

.trust-points p {
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.trust-points strong {
  color: var(--ink);
}

.trust-points span {
  color: var(--muted);
}

.trust-section > .text-link {
  grid-column: 2;
}

.final-cta {
  min-height: 470px;
  padding-block: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.final-cta img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

.footer {
  min-height: 130px;
  padding-block: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.footer > div,
.footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer strong {
  color: var(--deep);
  font-size: 1.1rem;
}

.footer span,
.footer a {
  color: var(--muted);
  font-size: 0.82rem;
}

.simple-page {
  background: #f7f7fc;
}

.simple-main {
  width: min(900px, calc(100% - 40px));
  margin: 54px auto 90px;
}

.simple-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.simple-header h1 {
  margin-bottom: 12px;
  font-size: 3.5rem;
}

.content-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.content-section h2 {
  font-size: 1.5rem;
}

.content-section:last-child {
  border-bottom: 0;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.asset-grid figure {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.asset-grid img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.asset-grid figcaption {
  margin-top: 14px;
  color: var(--deep);
  font-weight: 800;
}

@media (max-width: 1100px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 2.65rem; }

  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.86rem; }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  }

  .hero-illustration {
    right: -120px;
    width: 390px;
    height: 390px;
  }

  .hero-device { width: 260px; }

  .split-section,
  .progress-inner {
    gap: 34px;
  }

  .founder-section {
    grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.15fr);
  }

  .founder-section .code-panel {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 70px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .site-header:has(.menu-toggle) .nav-links {
    width: 100%;
    max-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 180ms ease;
  }

  .site-header:has(.menu-toggle) .nav-links.is-open {
    max-height: 420px;
    padding-bottom: 18px;
    visibility: visible;
  }

  .site-header:has(.nav-links.is-open) {
    background: var(--white);
  }

  .site-header:has(.menu-toggle) .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
  }

  .site-header:has(.menu-toggle) .nav-links .nav-cta {
    min-height: 48px;
    margin-top: 8px;
    justify-content: center;
    grid-column: 1 / -1;
  }

  .site-header:not(:has(.menu-toggle)) {
    padding-block: 12px;
    flex-wrap: wrap;
  }

  .site-header:not(:has(.menu-toggle)) .nav-links {
    width: 100%;
    padding-bottom: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    height: auto;
    padding-top: 48px;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-copy-block {
    max-width: 760px;
    padding-right: 14px;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    min-height: 410px;
  }

  .hero-illustration {
    top: auto;
    right: 2%;
    bottom: 0;
    width: 330px;
    height: 330px;
  }

  .hero-device {
    bottom: 0;
    left: 8%;
    width: 180px;
  }

  .illustrated-steps {
    gap: 20px;
  }

  .split-section {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .memory-device {
    width: min(330px, 100%);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .progress-inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  }

  .progress-device {
    width: min(330px, 100%);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .pro-section {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    gap: 44px;
  }
}

@media (max-width: 760px) {
  :root { --page: min(100% - 28px, 1180px); }

  html { scroll-padding-top: 76px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.15rem; }

  .hero {
    padding-inline: 20px;
  }

  .hero-brand-lockup {
    margin-bottom: 18px;
    padding: 7px 14px 7px 8px;
    font-size: 1.65rem;
  }

  .hero-brand-lockup img {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    max-width: 600px;
    margin-bottom: 16px;
    font-size: 2.6rem;
  }

  .hero-copy-block > p:last-of-type {
    max-width: 540px;
    font-size: 0.96rem;
  }

  .hero-actions {
    margin-top: 20px;
    align-items: flex-start;
    flex-direction: row;
  }

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

  .hero-visual {
    min-height: 360px;
  }

  .hero-illustration {
    top: auto;
    right: -16px;
    bottom: 0;
    width: 285px;
    height: 285px;
  }

  .hero-device {
    bottom: 0;
    left: 2%;
    width: 155px;
  }

  .quest-showcase {
    padding-block: 76px;
  }

  .quest-showcase-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .quest-track {
    grid-auto-columns: min(84vw, 330px);
  }

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

  .signal-band p:nth-child(2) { border-right: 0; }
  .signal-band p:nth-child(-n + 2) { border-bottom: 1px solid rgba(52, 55, 121, 0.18); }

  .section,
  .feature-band,
  .progress-band,
  .founder-section,
  .trust-section {
    padding-block: 76px;
  }

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

  .illustrated-steps li {
    max-width: 520px;
    margin-inline: auto;
  }

  .screen-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .screen-stage .device-frame {
    width: min(330px, 100%);
    margin-inline: auto;
  }

  .device-primary { order: -1; }

  .split-section,
  .progress-inner,
  .pro-section,
  .founder-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .split-art,
  .progress-art,
  .founder-art {
    width: min(520px, 100%);
    margin-inline: auto;
  }

  .memory-device,
  .progress-device,
  .pro-device {
    width: min(330px, 100%);
    justify-self: center;
  }

  .progress-copy { order: -2; }
  .progress-art { order: -1; }

  .feature-list li,
  .trust-points p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .founder-section .code-panel {
    width: min(520px, 100%);
    grid-column: auto;
    justify-self: center;
  }

  .trust-section > .text-link {
    grid-column: auto;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

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

  .final-cta img {
    width: 220px;
    height: 220px;
  }

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

  .simple-main {
    width: min(100% - 28px, 900px);
  }

  .simple-header h1 { font-size: 2.7rem; }
}

@media (max-width: 400px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .brand img { width: 42px; height: 42px; }
  .site-header:has(.menu-toggle) .nav-links { grid-template-columns: 1fr; }
  .site-header:has(.menu-toggle) .nav-links .nav-cta { grid-column: auto; }
  .hero-visual { min-height: 330px; }
  .hero-device { bottom: 0; width: 145px; }
  .hero-illustration { right: -22px; bottom: 8px; width: 220px; height: 220px; }
  .rebrand-dialog { padding: 42px 22px 32px; }
  .rebrand-dialog h2 { font-size: 2rem; }
  .rebrand-mark { width: 90px; height: 90px; margin-top: -84px; }
  .rebrand-mark img { width: 68px; height: 68px; }
  .code-panel { padding: 22px; }
  .code-panel code { font-size: 0.88rem; }
}

@media (max-width: 400px) and (max-height: 650px) {
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 24px;
  }

  .hero h1 {
    max-width: 330px;
    margin-bottom: 12px;
    font-size: 2.2rem;
  }

  .hero-copy-block > p:last-of-type {
    max-width: 300px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 46px;
    font-size: 0.82rem;
  }

  .hero-visual { min-height: 300px; }
  .hero-device { display: block; width: 130px; }
  .hero-illustration {
    right: -24px;
    bottom: 0;
    width: 210px;
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
