:root {
  color-scheme: dark;
  --background: #050806;
  --surface: #0c1310;
  --separator: #1c2622;
  --label: #f2f7f4;
  --secondary: #9dada5;
  --tertiary: #6a756e;
  --brand: #54e6a5;
  --accent: #5be3a6;
  --on-brand: #04140c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --max: 1040px;
}

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

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--label);
  color: var(--background);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(5, 8, 6, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, 100% - var(--gutter) * 2);
  height: 56px;
  margin-inline: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-brand img,
.footer-mark img {
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--label);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.page {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 72px) clamp(64px, 10vw, 128px);
  display: grid;
  gap: clamp(72px, 10vw, 128px);
}

.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  aspect-ratio: 1;
}

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

.block-hero .card img {
  object-position: 50% 60%;
}

.copy {
  display: grid;
  gap: 18px;
  justify-items: start;
  min-width: 0;
}

.copy h1,
.copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 30rem;
  color: var(--secondary);
  font-size: 1.0625rem;
}

.note {
  margin: 0;
  color: var(--tertiary);
  font-size: 0.875rem;
}

.download-row {
  display: grid;
  justify-items: center;
  justify-self: stretch;
  gap: 16px;
  margin-top: 8px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}

.store-button:hover {
  background: #6eedb5;
}

.store-button:active {
  transform: scale(0.98);
}

.qr {
  display: none;
  place-items: center;
  width: 168px;
  height: 168px;
  padding: 10px;
  border-radius: 20px;
  background: #ffffff;
}

.qr img {
  width: 100%;
  height: 100%;
}

.qr-pending {
  background: var(--surface);
  border: 1.5px dashed rgba(242, 247, 244, 0.3);
  color: var(--tertiary);
  font-size: 0.75rem;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--secondary);
  font-size: 0.9375rem;
  text-decoration: none;
}

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

.features {
  display: grid;
  gap: 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  color: var(--secondary);
  font-size: 1.0625rem;
}

.features li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-1px);
}

.signature {
  margin: 10px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.stop {
  color: var(--brand);
}

.gallery {
  display: grid;
  gap: 28px;
}

.gallery h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gallery-strip {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 247, 244, 0.25) transparent;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 16px;
  border-radius: 12px;
}

.gallery-strip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-strip ul {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-strip li {
  scroll-snap-align: start;
  width: 240px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gallery-strip img {
  width: 100%;
}

.footer {
  border-top: 1px solid var(--separator);
  background: #070b09;
  font-size: 0.8125rem;
}

.footer-inner {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-columns {
  display: flex;
  gap: clamp(48px, 10vw, 120px);
}

.footer-heading {
  margin: 0 0 12px;
  color: var(--tertiary);
}

.footer-columns ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-columns a,
.languages a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--secondary);
  text-decoration: none;
}

.footer-columns a:hover,
.languages a:hover,
.social:hover {
  color: var(--label);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  color: var(--tertiary);
}

.footer-bottom p {
  margin: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--secondary);
}

.social svg {
  width: 20px;
  height: 20px;
}

.languages {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.languages a[aria-current="page"] {
  color: var(--label);
  font-weight: 600;
}

.not-found {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 20px;
  min-height: calc(100svh - 56px - env(safe-area-inset-top, 0px));
  padding: 48px var(--gutter);
  text-align: center;
}

.not-found-code {
  margin: 0;
  color: var(--brand);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.not-found h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.not-found-links {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--tertiary);
  font-size: 0.9375rem;
}

.not-found-links li:first-child a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}

.not-found-links li + li a {
  color: var(--secondary);
}

@media (min-width: 900px) {
  .qr {
    display: grid;
  }
}

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

  .block-hero .copy {
    order: -1;
  }

  .card {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .block-hero .copy > *,
  .block-hero .card {
    animation: rise 900ms var(--ease) both;
  }

  .block-hero .copy > :nth-child(2) {
    animation-delay: 70ms;
  }

  .block-hero .copy > :nth-child(3) {
    animation-delay: 140ms;
  }

  .block-hero .copy > :nth-child(4),
  .block-hero .copy > :nth-child(5) {
    animation-delay: 210ms;
  }

  .block-hero .card {
    animation-delay: 120ms;
  }

  .block-hero .card img {
    transform-origin: 50% 60%;
    animation: grow 16s cubic-bezier(0.25, 0.1, 0.25, 1) both;
  }

  @supports (animation-timeline: view()) {
    .gallery h2,
    .gallery-strip li,
    .block-features .copy,
    .block-features .card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

@keyframes grow {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.12);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
