:root {
  color-scheme: light;
  --paper: #faf7ef;
  --white: #fffdf8;
  --ink: #1d2540;
  --muted: #53586a;
  --line: #d9d7cf;
  --blue: #263fcd;
  --deep-blue: #1e329c;
  --night: #1d2548;
  --ice: #e2e9ff;
  --yellow: #ffd16d;
  --header-height: 72px;
  --gutter: clamp(1.2rem, 4vw, 3.5rem);
  --section-space: clamp(4.25rem, 8vw, 7.75rem);
  --heading: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.1rem);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
}

body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), 1240px); margin-inline: auto; }
.section { padding-block: var(--section-space); }

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: var(--gutter);
  padding: .65rem 1rem;
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  background: rgb(250 247 239 / 87%);
  backdrop-filter: blur(14px);
  transition: background-color .2s ease, border-color .2s ease;
}

.site-header.is-scrolled { border-color: var(--line); background: rgb(250 247 239 / 96%); }

.header-inner { min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; font: 750 1.13rem/1.1 var(--heading); text-decoration: none; }
.brand img { flex: none; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.7vw, 2.5rem); }
.site-nav > a:not(.button) { font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }
.menu-toggle { display: none; }

.button, .text-link { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; }

.button {
  width: fit-content;
  justify-content: center;
  padding: .8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  transition: background-color .2s ease;
}

.button:hover { background: var(--deep-blue); }
.button-small { padding: .5rem .95rem; font-size: .9rem; }
.text-link { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .25em; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
  padding-top: calc(var(--header-height) + clamp(2.2rem, 5vw, 4.9rem));
  padding-bottom: clamp(3.75rem, 7vw, 6.5rem);
}

.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .64rem;
  border-radius: .35rem;
  background: var(--ice);
  color: var(--deep-blue);
}

.hero-label::before { width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); content: ""; }

h1, h2, h3 { font-family: var(--heading); text-wrap: balance; }
h1 { margin-top: 1.4rem; font-size: clamp(3.3rem, 6.2vw, 6.2rem); line-height: .99; font-weight: 800; letter-spacing: -.045em; }
h1 em { color: var(--blue); font-style: normal; }
h2 { font-size: clamp(2.15rem, 4.1vw, 4.1rem); line-height: 1.05; font-weight: 800; letter-spacing: -.037em; }
h3 { font-size: 1.25rem; line-height: 1.15; font-weight: 750; letter-spacing: -.022em; }
.hero-copy > p { max-width: 31rem; margin-top: 1.45rem; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.28rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; margin-top: 1.8rem; }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(25rem, 43vw, 35rem);
  overflow: clip;
  padding: 2rem;
  border-radius: clamp(1.3rem, 3vw, 2.25rem);
  background: var(--deep-blue);
  background-image: radial-gradient(circle at 16% 80%, #425dee, transparent 39%), linear-gradient(149deg, #344ee3, #1c2b80 76%);
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  width: 73%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem rgb(255 255 255 / 10%), 0 0 0 3.5rem rgb(255 255 255 / 10%);
  content: "";
}

.hero-art::after {
  position: absolute;
  z-index: -1;
  width: 36%;
  left: 13%;
  bottom: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.hero-phone {
  width: min(58%, 15rem);
  overflow: hidden;
  padding: .37rem;
  border: 2px solid #a5b4f0;
  border-radius: clamp(1.15rem, 2.8vw, 1.95rem);
  background: #111728;
  box-shadow: 0 1.35rem 2.75rem rgb(5 12 53 / 55%);
  transform: rotate(9deg);
}

.hero-phone img { width: 100%; border-radius: inherit; }

.features { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 1rem 2.4rem; margin-bottom: 2.35rem; }
.section-head h2, .guide h2, .launcher-panel h2, .download-inner h2 { max-width: 16ch; }
.section-head p { max-width: 32ch; font-size: 1.06rem; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.feature {
  display: grid;
  align-content: start;
  gap: .52rem;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--white);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  margin-bottom: .55rem;
  border-radius: .48rem;
  background: var(--ice);
  color: var(--deep-blue);
  font-size: 1.22rem;
  font-weight: 700;
}

.feature p, .steps p, .privacy p { color: var(--muted); }

.gallery-band { color: var(--white); background: var(--night); }
.gallery-band .section-head p { color: var(--ice); }
.gallery-band :focus-visible, .lightbox :focus-visible { outline-color: var(--yellow); }
.gallery-grid { display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); align-items: center; gap: clamp(.6rem, 1.4vw, 1rem); }

.gallery-image {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: .65rem;
  background: #101939;
}

.gallery-image img { width: 100%; transition: transform .25s ease; }
.gallery-image:hover img { transform: scale(1.04); }

.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 7vw, 7rem); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: wallpaper-step; }

.steps li {
  position: relative;
  padding: 1.1rem 0 1.2rem 3.05rem;
  border-top: 1px solid var(--line);
  counter-increment: wallpaper-step;
}

.steps li::before {
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.15rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ice);
  color: var(--deep-blue);
  font-weight: 700;
  content: counter(wallpaper-step);
}

.steps p { margin-top: .35rem; }

.launcher-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 1.35rem clamp(1.5rem, 6vw, 5rem);
  padding: clamp(1.5rem, 5vw, 4.6rem);
  border-radius: 1.35rem;
  background: var(--ice);
}

.launcher-panel .eyebrow { display: block; margin-bottom: .75rem; color: var(--deep-blue); }
.launcher-copy { max-width: 40ch; }
.launcher-copy p + p { margin-top: .9rem; }

.privacy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 1rem 2rem; padding-block: clamp(2.65rem, 6vw, 5rem); }
.privacy h2 { margin-top: .22rem; font-size: 1.2rem; letter-spacing: -.02em; }
.privacy p { max-width: 69ch; }

.download-band { background: var(--yellow); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding-block: clamp(2.8rem, 6vw, 5rem); }
.download-inner p { margin-top: .8rem; }
.download-inner .button { flex: none; }

.site-footer { padding-top: 3.4rem; background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.12fr .65fr 1.04fr 1.22fr; gap: 1.5rem; }
.footer-grid .brand { margin-bottom: .55rem; }
.site-footer h2 { margin-bottom: .65rem; font-size: 1rem; letter-spacing: -.02em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer address { font-style: normal; }
.site-footer p, .site-footer ul, .site-footer address { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.site-footer li + li { margin-top: .3rem; }
.site-footer a:hover { color: var(--blue); }
.copyright { margin-top: 2.4rem; padding-block: 1rem; border-top: 1px solid var(--line); }

.lightbox {
  width: fit-content;
  max-width: min(92vw, 68rem);
  max-height: 93vh;
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: .8rem;
  color: var(--white);
  background: var(--night);
}

.lightbox::backdrop { background: rgb(13 17 33 / 86%); }
.lightbox-content { display: grid; justify-items: end; gap: .55rem; padding: .65rem; }
.lightbox-close { padding: .35rem .68rem; border: 1px solid var(--ice); border-radius: .4rem; color: var(--white); background: transparent; }
.lightbox-close:hover { background: var(--deep-blue); }
.lightbox figure { width: 100%; }
.lightbox img { width: auto; max-height: min(76vh, 76dvh); margin-inline: auto; object-fit: contain; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(.9rem); transition: opacity .4s ease, transform .4s ease; }
.reveal-ready [data-reveal].is-visible, .reveal-ready [data-reveal]:focus-within { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery-banner { grid-column: 1 / -1; width: min(100%, 37rem); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  :root { --header-height: 64px; }
  .header-inner { flex-wrap: wrap; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
  .js .menu-toggle { display: block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--white); font-weight: 700; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: .85rem; }
  .js .site-nav { display: none; position: absolute; top: calc(100% + .3rem); right: var(--gutter); left: var(--gutter); width: auto; align-items: stretch; padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); box-shadow: 0 .6rem 1.8rem rgb(29 37 64 / 12%); }
  .js .site-nav.is-open { display: grid; }
  .site-nav > a { padding: .35rem .55rem; }
  html:not(.js) .site-header { position: static; padding-block: .7rem; }
  html:not(.js) .hero { padding-top: 2rem; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 11ch; font-size: clamp(3.3rem, 10vw, 5.7rem); }
  .hero-art { min-height: clamp(22rem, 76vw, 32rem); }
  .hero-phone { width: clamp(10rem, 37vw, 14rem); }
  .section-head { grid-template-columns: 1fr; margin-bottom: 1.65rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide, .launcher-panel, .privacy { grid-template-columns: 1fr; }
  .privacy { gap: .65rem; }
}

@media (max-width: 470px) {
  .hero-art { min-height: 21rem; }
  .feature-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { padding: 1rem; }
  .feature h3 { font-size: 1.06rem; }
  .feature p { font-size: .92rem; }
  .download-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 355px) {
  .feature-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
