:root {
  --bg: #ffffff;
  --bg-muted: #f6f6f4;
  --surface: #ffffff;
  --surface-muted: #fafaf8;
  --surface-strong: #0b0b0b;
  --line: rgba(11, 11, 11, 0.1);
  --line-strong: rgba(11, 11, 11, 0.18);
  --text: #0b0b0b;
  --text-soft: rgba(11, 11, 11, 0.66);
  --text-faint: rgba(11, 11, 11, 0.46);
  --shadow: 0 24px 70px rgba(11, 11, 11, 0.08);
  --shadow-soft: 0 10px 32px rgba(11, 11, 11, 0.06);
  --page-width: min(1180px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.03), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #fcfcfb 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.floating-store-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  min-height: 3rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.96);
  color: #ffffff;
  box-shadow: 0 14px 44px rgba(11, 11, 11, 0.16);
  transition: transform 180ms ease, opacity 180ms ease;
}

.floating-store-link:hover,
.floating-store-link:focus-visible,
.button:hover,
.button:focus-visible,
.topbar-link:hover,
.topbar-link:focus-visible {
  transform: translateY(-2px);
}

.floating-store-link.is-disabled,
.topbar-link.is-disabled,
.button.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.boot-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.boot-panel.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-card {
  width: min(32rem, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.boot-card h1,
.hero h1,
.feature-tile h2,
.section-copy h2,
.finale h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.boot-card h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.boot-card p,
.lede,
.section-copy p,
.finale p,
.hero-footnote,
.device-caption {
  color: var(--text-soft);
  line-height: 1.62;
}

.boot-actions,
.hero-actions,
.finale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--surface-strong);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(11, 11, 11, 0.12);
}

.button-secondary {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.hero,
.feature-strip,
.section,
.finale {
  width: var(--page-width);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.2rem 1rem 0.25rem;
}

.wordmark {
  width: min(13rem, 44vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 1.6rem;
  justify-items: center;
  min-height: auto;
  padding: 1rem 0 4.5rem;
  text-align: center;
}

.hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3rem, 7vw, 6rem);
  margin-inline: auto;
}

.lede {
  max-width: 40rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  margin-inline: auto;
}

.hero-points {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 28rem;
  margin-inline: auto;
  text-align: left;
}

.hero-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--text);
}

.hero-footnote {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  margin-inline: auto;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.device-stage {
  width: min(29rem, 100%);
}

.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.device-shadow {
  width: 72%;
  height: 1.6rem;
  margin: 0 auto -0.2rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(11, 11, 11, 0.2) 0%, rgba(11, 11, 11, 0.04) 60%, transparent 100%);
  filter: blur(10px);
}

.device-shell {
  position: relative;
  padding: 0.85rem;
  border-radius: 3.2rem;
  background: linear-gradient(180deg, #141414, #020202);
  box-shadow: 0 30px 90px rgba(11, 11, 11, 0.16);
}

.device-hardware {
  position: absolute;
  top: 1rem;
  left: 50%;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  width: 9rem;
  height: 1.1rem;
  transform: translateX(-50%);
  z-index: 3;
}

.device-speaker {
  width: 4.6rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.device-camera {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.device-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 2.45rem;
  background: #ffffff;
}

.device-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-video[hidden] {
  display: none;
}

.device-grid-fallback {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
}

.screen-header {
  display: grid;
  gap: 0.8rem;
  padding: 3rem 1rem 1rem;
  border-bottom: 1px solid var(--line);
}

.screen-title-block strong,
.grid-preview-header strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
}

.screen-title-block span,
.grid-preview-header span {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.screen-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.screen-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #f1f1ee;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
}

.screen-pill-active {
  background: #111111;
  color: #ffffff;
}

.screen-grid-scroll {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 0.9rem;
}

.screen-grid-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  animation: device-grid-scroll 18s linear infinite;
}

.screen-item,
.grid-preview-item,
.share-preview-grid article {
  overflow: hidden;
  border-radius: 1rem;
  background: #f3f3f0;
  box-shadow: var(--shadow-soft);
}

.screen-item {
  aspect-ratio: 0.85;
}

.screen-item.tall {
  aspect-ratio: 0.73;
}

.screen-item img,
.grid-preview-item img,
.share-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-caption {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1rem;
}

.feature-tile,
.media-card,
.grid-preview-card,
.share-preview-card {
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-tile {
  min-height: 12rem;
  padding: 1.5rem;
}

.feature-tile h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: 4.5rem 0 0;
}

.section-reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.section-reverse .section-copy {
  order: 2;
}

.section-reverse .section-visual {
  order: 1;
}

.section-copy h2,
.finale h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.section-copy p {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 1.03rem;
}

.visual-stack {
  position: relative;
  min-height: 30rem;
}

.media-card {
  overflow: hidden;
}

.screenshot-card {
  width: min(30rem, 100%);
}

.mini-card {
  position: absolute;
  right: 0;
  bottom: -1.25rem;
  width: min(15rem, 42%);
}

.grid-preview-card {
  padding: 1rem;
}

.grid-preview-header,
.share-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.9rem;
}

.grid-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.grid-preview-item {
  aspect-ratio: 0.9;
}

.grid-preview-item.tall {
  aspect-ratio: 0.72;
}

.share-preview-card {
  padding: 1rem;
}

.share-preview-bar {
  color: var(--text-faint);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.share-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.share-preview-grid article {
  aspect-ratio: 0.86;
}

.finale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: 5rem 0 8rem;
}

.finale-actions {
  justify-content: flex-end;
}

body.is-ready .boot-panel {
  pointer-events: none;
}

@keyframes device-grid-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-18%);
  }
}

@media (max-width: 980px) {
  .hero,
  .feature-strip,
  .section,
  .section-reverse,
  .finale {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .feature-strip {
    padding-top: 0.5rem;
  }

  .section-reverse .section-copy,
  .section-reverse .section-visual {
    order: initial;
  }

  .visual-stack {
    min-height: auto;
  }

  .mini-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(18rem, 72%);
    margin-top: 1rem;
  }

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

@media (max-width: 720px) {
  .topbar {
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .feature-tile {
    min-height: auto;
  }

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

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

  .floating-store-link {
    right: 0.75rem;
    bottom: 0.75rem;
    min-width: 8.8rem;
  }
}

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

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