:root {
  --bg: #05060b;
  --ink: #f7f3ed;
  --muted: #aaa5b2;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --purple: #9176ff;
  --blue: #66d5ff;
  --pink: #ff61ad;
  --green: #b8ff68;
  --radius: 8px;
  --display:
    Optima, "Avenir Next", "Helvetica Neue", Inter, ui-sans-serif, system-ui, sans-serif;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 8%, rgba(145, 118, 255, 0.36), transparent 30rem),
    radial-gradient(circle at 15% 20%, rgba(102, 213, 255, 0.14), transparent 34rem),
    linear-gradient(180deg, #05060b 0%, #090a11 50%, #05060b 100%);
}

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

img,
svg,
video,
object {
  display: block;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 6, 11, 0.7);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #17171b;
  box-shadow: 0 0 28px rgba(255, 97, 92, 0.24);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(247, 243, 237, 0.72);
  font-size: 0.9rem;
  font-weight: 760;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-cta {
  color: #08090d;
  background: white;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 50%;
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  transition:
    top 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.nav-toggle span:nth-child(2) {
  top: 15px;
}

.nav-toggle span:nth-child(3) {
  top: 25px;
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 112px max(24px, calc((100vw - 1220px) / 2)) 64px;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  position: absolute;
  right: -18rem;
  bottom: -22rem;
  width: 62rem;
  height: 62rem;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255, 97, 173, 0.17), transparent 63%);
  pointer-events: none;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    radial-gradient(circle at 50% 44%, rgba(5, 6, 11, 0.34), rgba(5, 6, 11, 0.86) 58%, rgba(5, 6, 11, 0.96) 100%),
    linear-gradient(180deg, rgba(5, 6, 11, 0.88) 0%, rgba(5, 6, 11, 0.42) 36%, rgba(5, 6, 11, 0.9) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  width: min(1080px, 100%);
}

.hero-model {
  display: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: 6.25rem;
  font-weight: 720;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.72),
    0 14px 56px rgba(0, 0, 0, 0.52);
  white-space: nowrap;
}

.hero-copy .hero-subhead {
  max-width: 860px;
  margin: 24px 0 0;
  color: white;
  font-size: 1.82rem;
  font-weight: 760;
  line-height: 1.18;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.7),
    0 10px 34px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  max-width: 820px;
  margin: 22px 0 0;
  color: rgba(247, 243, 237, 0.75);
  font-size: 1.28rem;
  line-height: 1.6;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.72),
    0 8px 26px rgba(0, 0, 0, 0.48);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.store-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 15px;
  border-radius: 999px;
  color: #08090d;
  background: white;
  box-shadow: 0 20px 80px rgba(145, 118, 255, 0.26);
}

.store-button svg {
  width: 25px;
  flex: 0 0 auto;
  fill: currentColor;
}

.store-button span {
  display: grid;
}

.store-button small {
  font-size: 0.68rem;
  font-weight: 760;
}

.store-button strong {
  font-size: 1.22rem;
  line-height: 1;
}

.text-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
  font-weight: 850;
}

.hero-showcase {
  position: static;
  z-index: 3;
  min-height: 0;
}

.hero-reel {
  position: absolute;
  inset: 26px max(10px, calc((100vw - 1480px) / 2)) 18px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  grid-auto-rows: minmax(126px, 1fr);
  gap: 8px;
  opacity: 0.7;
  pointer-events: none;
  transform: rotate(-1deg) scale(1.035);
}

.hero-reel video,
.hero-reel img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.hero-reel > :nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.hero-reel > :nth-child(2) {
  grid-column: span 2;
  grid-row: span 2;
}

.hero-reel > :nth-child(3) {
  grid-column: span 2;
}

.hero-reel > :nth-child(4) {
  grid-row: span 2;
}

.hero-reel > :nth-child(7) {
  grid-row: span 2;
}

.hero-reel > :nth-child(9) {
  grid-column: span 2;
}

.hero-reel > :nth-child(11) {
  grid-column: span 2;
}

.hero-reel > :nth-child(14) {
  grid-row: span 1;
}

.hero-reel > .hero-square {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  justify-self: stretch;
  object-fit: cover;
  object-position: 48% 50%;
}

.hero-reel::after {
  position: absolute;
  inset: -12px;
  content: "";
  background:
    radial-gradient(circle at 50% 40%, transparent 0 15%, rgba(5, 6, 11, 0.2) 45%, rgba(5, 6, 11, 0.68) 100%),
    linear-gradient(90deg, rgba(5, 6, 11, 0.56), rgba(5, 6, 11, 0.12) 38%, rgba(5, 6, 11, 0.12) 62%, rgba(5, 6, 11, 0.56));
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  width: 382px;
  height: 780px;
  margin: 8px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 48px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    #11131a;
  box-shadow:
    0 56px 130px rgba(0, 0, 0, 0.64),
    0 0 120px rgba(145, 118, 255, 0.3);
  transform: none;
}

.app-screenshot {
  width: 100%;
  height: 756px;
  overflow: hidden;
  border: 0;
  border-radius: 36px;
  background: #080c14;
  object-fit: cover;
  object-position: top center;
}

.screen-fallback {
  position: relative;
  height: 700px;
  overflow: hidden;
  padding: 30px 18px 92px;
  color: white;
  background: #080c14;
}

.screen-fallback::after {
  position: absolute;
  inset: auto 120px 10px;
  height: 5px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.2);
}

.screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.screen-top h2 {
  margin: 0;
  font-size: 1.82rem;
  line-height: 0.96;
}

.screen-top p {
  margin: 12px 0 0;
  color: #b8bac5;
  font-size: 0.92rem;
}

.screen-top > span {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(145, 119, 255, 0.75);
  border-radius: 50%;
  color: #c6b7ff;
  background: #282452;
  font-weight: 850;
}

.studio-stack {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.studio-row {
  display: grid;
  grid-template-columns: 52px 1fr 18px;
  gap: 15px;
  align-items: center;
  min-height: 78px;
  padding: 13px;
  border-radius: 24px;
  background: #191e29;
}

.studio-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: linear-gradient(135deg, #55469b, #312a62);
}

.image-icon::before,
.image-icon::after,
.video-icon::before,
.video-icon::after {
  position: absolute;
  content: "";
}

.image-icon::before {
  inset: 16px 14px;
  border: 4px solid white;
  border-radius: 7px;
}

.image-icon::after {
  right: 15px;
  bottom: 17px;
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: white;
  clip-path: polygon(0 100%, 36% 40%, 55% 64%, 73% 30%, 100% 100%);
}

.video-icon::before {
  inset: 16px 17px;
  border: 4px solid white;
  border-radius: 5px;
}

.video-icon::after {
  top: 17px;
  bottom: 17px;
  left: 13px;
  width: 5px;
  background: repeating-linear-gradient(180deg, white 0 5px, transparent 5px 10px);
}

.studio-row strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.1;
}

.studio-row em {
  display: block;
  margin-top: 6px;
  color: #b5b7c1;
  font-size: 0.8rem;
  font-style: normal;
}

.studio-row b {
  color: #b9bac4;
  font-size: 1.9rem;
}

.screen-section {
  margin-top: 17px;
}

.screen-section h3 {
  margin: 0 0 13px;
  font-size: 1.22rem;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  color: #d4d1db;
  background: #272c38;
  font-size: 0.95rem;
  font-weight: 850;
}

.filter.active {
  color: white;
  background: linear-gradient(135deg, #7b72ff, #63d9ff);
}

.filter b {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.26);
}

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

.mini-card {
  position: relative;
  display: flex;
  min-height: 124px;
  align-items: flex-end;
  overflow: hidden;
  padding: 13px;
  border-radius: var(--radius);
  background: #222;
}

.mini-card::after,
.video-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.72));
}

.mini-card strong {
  position: relative;
  z-index: 1;
  font-size: 0.94rem;
  line-height: 1.08;
}

.outfit {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 44%),
    radial-gradient(circle at 34% 30%, #c58d73, transparent 23%),
    linear-gradient(135deg, #101013, #4d4f58);
}

.anime {
  background:
    radial-gradient(circle at 50% 23%, #ff9c31, transparent 20%),
    linear-gradient(135deg, #684cff, #06a7ff 42%, #ff51a0 72%, #ffd45a);
}

.room {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(135deg, #d4d9dc, #77746e 58%, #17181d);
}

.age {
  background:
    radial-gradient(circle at 55% 30%, #f5c58f, transparent 24%),
    linear-gradient(135deg, #284633, #1b1e29 72%);
}

.app-tabbar {
  position: absolute;
  right: 34px;
  bottom: 26px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(145, 119, 255, 0.32);
  border-radius: 30px;
  background: rgba(37, 41, 56, 0.92);
  box-shadow: 0 -20px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.app-tabbar span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 24px;
  color: white;
  font-size: 0.86rem;
  font-weight: 850;
}

.app-tabbar .active {
  color: #bcaeff;
  background: rgba(255, 255, 255, 0.12);
}

.audience-section,
.control-section,
.motion-section,
.template-section,
.final-cta {
  padding: 112px max(24px, calc((100vw - 1220px) / 2));
}

.audience-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #06070d;
}

.audience-section::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 70% 18%, rgba(145, 118, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(5, 6, 11, 0.16), rgba(5, 6, 11, 0.7));
  pointer-events: none;
}

.audience-backdrop {
  display: none;
}

.model-mosaic {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 12px;
  margin: 0 0 54px;
}

.mosaic-tile {
  position: relative;
  grid-column: span 2;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.04);
}

.mosaic-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.mosaic-tile.tall {
  grid-row: span 2;
}

.mosaic-tile.portrait {
  grid-row: span 2;
}

.mosaic-tile.wide {
  grid-column: span 4;
}

.mosaic-tile.small {
  grid-row: span 1;
}

.model-mosaic .mosaic-tile:nth-child(5),
.model-mosaic .mosaic-tile:nth-child(8),
.model-mosaic .mosaic-tile:nth-child(14) {
  grid-column: span 4;
}

.model-mosaic .mosaic-tile:nth-child(12) {
  grid-column: span 2;
  grid-row: span 2;
}

@media (min-width: 761px) {
  .model-mosaic .mosaic-tile:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .model-mosaic .mosaic-tile:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
  }

  .model-mosaic .mosaic-tile:nth-child(3) {
    grid-column: 5 / 9;
    grid-row: 1;
  }

  .model-mosaic .mosaic-tile:nth-child(4) {
    grid-column: 9 / 11;
    grid-row: 1;
  }

  .model-mosaic .mosaic-tile:nth-child(5) {
    grid-column: 11 / 13;
    grid-row: 1;
  }

  .model-mosaic .mosaic-tile:nth-child(6) {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .model-mosaic .mosaic-tile:nth-child(7) {
    grid-column: 5 / 7;
    grid-row: 2;
  }

  .model-mosaic .mosaic-tile:nth-child(8) {
    grid-column: 7 / 11;
    grid-row: 2;
  }

  .model-mosaic .mosaic-tile:nth-child(9) {
    grid-column: 11 / 13;
    grid-row: 2;
  }

  .model-mosaic .mosaic-tile:nth-child(10) {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .model-mosaic .mosaic-tile:nth-child(11) {
    grid-column: 3 / 5;
    grid-row: 3;
  }

  .model-mosaic .mosaic-tile:nth-child(12) {
    grid-column: 5 / 7;
    grid-row: 3;
  }

  .model-mosaic .mosaic-tile:nth-child(13) {
    grid-column: 7 / 9;
    grid-row: 3 / 5;
  }

  .model-mosaic .mosaic-tile:nth-child(14) {
    grid-column: 9 / 13;
    grid-row: 3;
  }

  .model-mosaic .mosaic-tile:nth-child(15) {
    grid-column: 1 / 5;
    grid-row: 4;
  }

  .model-mosaic .mosaic-tile:nth-child(16) {
    grid-column: 5 / 7;
    grid-row: 4;
  }

  .model-mosaic .mosaic-tile:nth-child(17) {
    grid-column: 9 / 13;
    grid-row: 4;
  }
}

.audience-section > :not(.audience-backdrop) {
  position: relative;
  z-index: 2;
}

.section-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 46px;
}

.section-lead h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 4.15rem;
  font-weight: 720;
  line-height: 0.94;
  letter-spacing: 0;
}

.section-lead p,
.final-cta p {
  margin: 0;
  color: rgba(247, 243, 237, 0.7);
  font-size: 1.08rem;
  line-height: 1.62;
}

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

.audience-grid article,
.control-grid article {
  min-height: 360px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.032);
}

.audience-grid article {
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(20px);
}

.audience-grid span,
.control-grid span,
.video-card span,
.workflow-row span {
  color: rgba(247, 243, 237, 0.62);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.audience-grid h3,
.control-grid h3 {
  margin: 82px 0 16px;
  font-size: 1.72rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.audience-grid p,
.control-grid p,
.workflow-row p {
  margin: 0;
  color: rgba(247, 243, 237, 0.66);
  line-height: 1.55;
}

.control-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.045)),
    #070810;
}

.motion-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 12px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #111;
}

.video-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

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

.video-card div {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
}

.video-card h3 {
  max-width: 10ch;
  margin: 9px 0 0;
  font-size: 2.1rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.template-section {
  background: #f6f7fb;
  color: #07080c;
}

.template-section .section-lead p,
.template-section .workflow-row p {
  color: rgba(7, 8, 12, 0.66);
}

.workflow-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-row article {
  min-height: 300px;
  padding: 28px;
  border: 1px solid rgba(7, 8, 12, 0.11);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 70px rgba(7, 8, 12, 0.08);
}

.workflow-row span {
  color: #6651d9;
}

.workflow-row h3 {
  margin: 88px 0 14px;
  font-size: 1.72rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 54px;
  min-height: 620px;
  align-items: center;
  text-align: left;
  background:
    radial-gradient(circle at 50% 12%, rgba(145, 118, 255, 0.34), transparent 30rem),
    #05060b;
}

.final-cta h2 {
  max-width: 980px;
}

.final-cta p {
  max-width: 680px;
  margin: 24px 0 32px;
}

.final-copy {
  display: grid;
  justify-items: start;
}

.final-phone {
  display: flex;
  justify-content: center;
}

.final-phone .phone-frame {
  width: 330px;
  height: 674px;
  margin: 0;
}

.final-phone .app-screenshot {
  height: 650px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(24px, calc((100vw - 1220px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 3.9rem;
  }
}

@media (max-width: 980px) {
  .section-lead {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  h1 {
    max-width: 900px;
    font-size: 4rem;
  }

  .hero-showcase {
    min-height: 0;
  }

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

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

  .model-mosaic {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: 108px;
  }

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

  .final-copy {
    justify-items: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 22px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 6, 11, 0.96);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero,
  .audience-section,
  .control-section,
  .motion-section,
  .template-section,
  .final-cta {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    padding-bottom: 28px;
  }

  .audience-section {
    padding-top: 72px;
  }

  h1 {
    font-size: 2.95rem;
  }

  .hero-copy p,
  .section-lead p,
  .final-cta p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-copy .hero-subhead {
    font-size: 1.28rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .store-button {
    justify-content: center;
  }

  .hero-showcase {
    min-height: 0;
  }

  .hero-reel {
    inset: 66px -82px -76px -82px;
    grid-template-columns: repeat(4, 122px);
    grid-auto-rows: 152px;
    opacity: 0.54;
    transform: rotate(-1deg) scale(1.03);
  }

  .hero-reel video {
    height: 100%;
  }

  .phone-frame {
    width: min(350px, 100%);
    height: 694px;
    margin-top: 0;
  }

  .app-screenshot {
    height: 670px;
  }

  .screen-fallback {
    padding: 24px 14px 86px;
  }

  .screen-top h2 {
    font-size: 1.65rem;
  }

  .screen-top p {
    font-size: 0.88rem;
  }

  .screen-top > span {
    width: 48px;
    height: 48px;
  }

  .studio-row {
    grid-template-columns: 54px 1fr 18px;
    min-height: 78px;
    border-radius: 22px;
  }

  .studio-icon {
    width: 54px;
    height: 54px;
  }

  .studio-row strong {
    font-size: 1.1rem;
  }

  .studio-row em {
    font-size: 0.8rem;
  }

  .screen-section {
    margin-top: 17px;
  }

  .mini-card {
    min-height: 122px;
  }

  .section-lead h2,
  .final-cta h2 {
    font-size: 3rem;
  }

  .audience-grid,
  .control-grid,
  .video-grid,
  .workflow-row {
    grid-template-columns: 1fr;
  }

  .model-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 126px;
    gap: 10px;
    margin-bottom: 34px;
  }

  .mosaic-tile.wide {
    grid-column: span 2;
  }

  .model-mosaic .mosaic-tile:nth-child(5),
  .model-mosaic .mosaic-tile:nth-child(8),
  .model-mosaic .mosaic-tile:nth-child(12),
  .model-mosaic .mosaic-tile:nth-child(14) {
    grid-column: span 2;
  }

  .audience-grid article,
  .control-grid article {
    min-height: auto;
  }

  .audience-grid h3,
  .control-grid h3,
  .workflow-row h3 {
    margin-top: 54px;
  }

  .video-grid {
    grid-auto-rows: 320px;
  }

  .video-card.large {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 2.95rem;
  }

  .hero-reel {
    grid-template-columns: repeat(4, 112px);
  }

  .phone-frame {
    width: min(340px, 100%);
    height: 674px;
  }

  .app-screenshot {
    height: 650px;
  }

  .final-phone .phone-frame {
    width: min(340px, 100%);
    height: 674px;
  }

  .final-phone .app-screenshot {
    height: 650px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.55rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 760ms ease,
      transform 760ms ease;
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .phone-frame {
    animation: float-phone 7s ease-in-out infinite;
  }
}

@keyframes float-phone {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}
