:root {
  color-scheme: dark;
  --night: #071018;
  --night-deep: #03080c;
  --panel: #0d1921;
  --ink: #f4f1e9;
  --muted: #9aa8ad;
  --quiet: #64747b;
  --line: rgb(244 241 233 / 13%);
  --aqua: #57d9df;
  --signal: #ff7957;
  --paper: #f4f1e9;
  --paper-ink: #10212a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  background: var(--night);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 54% 48%, rgb(87 217 223 / 9%), transparent 31rem),
    radial-gradient(circle at 88% 10%, rgb(255 121 87 / 6%), transparent 25rem),
    linear-gradient(145deg, var(--night-deep), var(--night) 55%, #09151c);
  color: var(--ink);
  font: 16px/1.55 "Avenir Next", Avenir, "Century Gothic", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  mask-image: radial-gradient(circle at 55% 48%, black, transparent 72%);
  pointer-events: none;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 0.45rem;
  background: var(--paper);
  color: var(--paper-ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  display: grid;
  width: min(90rem, calc(100% - 2.5rem));
  height: 100vh;
  height: 100svh;
  margin-inline: auto;
  grid-template-rows: auto minmax(0, 1fr);
}

.site-header {
  display: grid;
  min-height: 4.9rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 0.78rem;
  box-shadow: 0 0 1.8rem rgb(87 217 223 / 17%);
}

.review-state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #87969c;
  font: 700 0.68rem/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-state span {
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0.8rem var(--signal);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

main {
  min-height: 0;
}

.hero {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(23rem, 1.12fr) minmax(14rem, 0.62fr) minmax(16rem, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.6rem, 4vh, 3.5rem) 0;
}

.hero-copy {
  position: relative;
  align-self: center;
  padding-right: clamp(0rem, 2vw, 2rem);
}

.hero-copy::after {
  display: block;
  width: min(21rem, 82%);
  height: 0.65rem;
  margin-top: clamp(1.2rem, 3vh, 2rem);
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 1.45rem, rgb(244 241 233 / 24%) 1.45rem 1.5rem);
  content: "";
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--aqua);
  font: 750 0.68rem/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.7rem, 5vw, 5rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

h1 span {
  color: var(--signal);
  font-weight: 520;
}

.hero-lede {
  max-width: 37rem;
  margin: clamp(1.25rem, 2.5vh, 1.8rem) 0 0;
  color: #bdc7ca;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.58;
}

.store-state {
  margin: clamp(1.25rem, 2.8vh, 2rem) 0 0;
  color: #78888e;
  font-size: 0.78rem;
  font-weight: 650;
}

.product-preview {
  position: relative;
  display: grid;
  width: min(100%, 18.5rem);
  max-height: 100%;
  margin: 0 auto;
  align-content: center;
}

.product-preview::before,
.product-preview::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(87 217 223 / 15%);
  border-radius: 50%;
  content: "";
}

.product-preview::before {
  inset: 17% -18%;
}

.product-preview::after {
  inset: 25% -6%;
  border-color: rgb(255 121 87 / 13%);
}

.product-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #708087;
  font: 700 0.62rem/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-preview video {
  display: block;
  width: 100%;
  max-height: min(62vh, 36rem);
  aspect-ratio: 9 / 16;
  border: 1px solid #33424a;
  border-radius: 1.35rem;
  background: #000;
  box-shadow:
    0 2.8rem 5rem rgb(0 0 0 / 55%),
    0 0 0 0.35rem rgb(255 255 255 / 2.5%);
  object-fit: cover;
}

.product-preview figcaption {
  margin-top: 0.65rem;
  justify-content: center;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: none;
}

.app-showcase {
  position: relative;
  display: grid;
  width: 100%;
  height: min(62vh, 36rem);
  min-height: 24rem;
  margin: 0;
  place-items: center;
  isolation: isolate;
}

.app-showcase::before,
.app-showcase::after {
  position: absolute;
  z-index: -1;
  width: min(28rem, 135%);
  aspect-ratio: 1;
  border: 1px solid rgb(87 217 223 / 18%);
  border-radius: 50%;
  content: "";
}

.app-showcase::after {
  width: min(22rem, 108%);
  border-color: rgb(255 121 87 / 13%);
}

.showcase-phone {
  position: relative;
  z-index: 2;
  width: min(14rem, 72%);
  margin: 0;
  padding: 0.35rem;
  border: 1px solid #34424a;
  border-radius: 2.25rem;
  background: #020609;
  box-shadow:
    0 2.8rem 5rem rgb(0 0 0 / 58%),
    0 0 0 0.35rem rgb(255 255 255 / 3%);
  transform: rotate(2.5deg);
}

.showcase-phone img {
  display: block;
  width: 100%;
  border-radius: 1.9rem;
}

.showcase-note {
  position: absolute;
  z-index: 3;
  width: min(10.75rem, 62%);
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgb(8 17 26 / 90%);
  box-shadow: 0 1rem 2.4rem rgb(0 0 0 / 35%);
  backdrop-filter: blur(1rem);
}

.showcase-note strong,
.showcase-note span {
  display: block;
}

.showcase-note strong {
  font-size: 0.75rem;
}

.showcase-note span {
  margin-top: 0.2rem;
  color: #8f9ca2;
  font-size: 0.64rem;
  line-height: 1.4;
}

.showcase-note-top {
  top: 12%;
  right: 0;
}

.showcase-note-bottom {
  bottom: 10%;
  left: 0;
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 2rem, 56rem);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .review-state {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(19rem, 1fr) minmax(12rem, 0.55fr);
    grid-template-areas:
      "copy preview"
      "showcase preview";
    gap: 1.3rem 2.4rem;
  }

  .hero-copy {
    grid-area: copy;
    align-self: end;
  }

  .product-preview {
    grid-area: preview;
    width: min(100%, 16rem);
  }

  .app-showcase {
    height: min(30vh, 15rem);
    min-height: 0;
    grid-area: showcase;
  }

  .showcase-phone {
    width: min(7.2rem, 34%);
  }

  .showcase-note {
    width: min(9rem, 42%);
  }

  .showcase-note-top {
    top: 12%;
    right: 7%;
  }

  .showcase-note-bottom {
    bottom: 10%;
    left: 7%;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-shell {
    width: calc(100% - 1.25rem);
  }

  .site-header {
    min-height: 3.8rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 0.82rem;
  }

  .brand img {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.62rem;
  }

  .site-header nav {
    gap: 0.9rem;
  }

  .site-header nav a {
    min-height: 40px;
    font-size: 0.72rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(7.8rem, 0.48fr);
    grid-template-areas:
      "copy copy"
      "showcase preview";
    align-content: center;
    gap: clamp(0.8rem, 2vh, 1.2rem) 0.8rem;
    padding: clamp(0.8rem, 2.2vh, 1.4rem) 0;
  }

  .hero-copy {
    align-self: center;
    padding-right: 0;
  }

  .hero-copy::after {
    display: none;
  }

  .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.57rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.65rem, 12.2vw, 3.4rem);
    letter-spacing: -0.055em;
    line-height: 0.91;
  }

  .hero-lede {
    max-width: 36rem;
    margin-top: 0.8rem;
    font-size: clamp(0.78rem, 3.4vw, 0.9rem);
    line-height: 1.46;
  }

  .store-state {
    font-size: 0.65rem;
  }

  .product-preview {
    width: min(100%, 8.8rem);
  }

  .product-preview::before,
  .product-preview::after {
    display: none;
  }

  .product-preview video {
    max-height: min(35vh, 17rem);
    border-radius: 0.85rem;
    box-shadow:
      0 1.5rem 3rem rgb(0 0 0 / 50%),
      0 0 0 0.25rem rgb(255 255 255 / 2.5%);
  }

  .product-preview figcaption {
    margin-top: 0.4rem;
    font-size: 0.48rem;
  }

  .app-showcase {
    height: min(34vh, 18.5rem);
    min-height: 0;
    grid-area: showcase;
  }

  .app-showcase::before {
    width: 112%;
  }

  .app-showcase::after {
    width: 88%;
  }

  .showcase-phone {
    width: min(7.6rem, 56%);
    padding: 0.22rem;
    border-radius: 1.35rem;
    box-shadow:
      0 1.5rem 3rem rgb(0 0 0 / 55%),
      0 0 0 0.22rem rgb(255 255 255 / 2.5%);
  }

  .showcase-phone img {
    border-radius: 1.12rem;
  }

  .showcase-note {
    width: min(7rem, 51%);
    padding: 0.5rem 0.55rem;
    border-radius: 0.6rem;
  }

  .showcase-note strong {
    font-size: 0.64rem;
  }

  .showcase-note span {
    font-size: 0.56rem;
  }

  .showcase-note-top {
    top: 9%;
    right: 0;
  }

  .showcase-note-bottom {
    bottom: 8%;
    left: 0;
  }

}

@media (max-width: 680px) and (max-height: 720px) {
  .showcase-phone {
    width: min(6.8rem, 50%);
  }

  .showcase-note {
    width: min(6.7rem, 50%);
  }

  .showcase-note-top {
    top: 12%;
  }

  .showcase-note-bottom {
    bottom: 11%;
  }
}

@media (max-height: 700px) and (min-width: 681px) {
  .site-header {
    min-height: 4rem;
  }

  .hero {
    padding-block: 1rem;
  }

  h1 {
    font-size: clamp(3rem, 7.5vh, 4.5rem);
  }

  .hero-lede {
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  .hero-copy::after {
    margin-top: 1rem;
  }

  .product-preview {
    width: min(100%, 14rem);
  }

  .product-preview video {
    max-height: 72vh;
  }

  .app-showcase {
    height: min(60vh, 31rem);
    min-height: 20rem;
  }

  .showcase-phone {
    width: min(12rem, 68%);
  }
}

@media (max-height: 520px) and (min-width: 681px) {
  .site-shell {
    width: calc(100% - 1.5rem);
  }

  .site-header {
    min-height: 3.2rem;
  }

  .site-header nav a {
    min-height: 36px;
  }

  .brand img {
    width: 2rem;
    height: 2rem;
  }

  .hero {
    grid-template-columns: 1fr 0.43fr 0.7fr;
    grid-template-areas: "copy preview showcase";
    gap: 1.5rem;
    padding-block: 0.55rem;
  }

  .hero-copy {
    align-self: center;
  }

  .hero-copy::after,
  .store-state {
    display: none;
  }

  .eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.58rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-lede {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .product-preview {
    width: min(100%, 8.5rem);
  }

  .product-preview figcaption {
    display: none;
  }

  .product-preview video {
    max-height: 64vh;
    border-radius: 0.8rem;
  }

  .app-showcase {
    height: 64vh;
    min-height: 0;
  }

  .showcase-phone {
    width: min(9rem, 58%);
  }

  .showcase-note {
    width: 6.5rem;
    padding: 0.5rem 0.6rem;
  }

  .showcase-note span {
    display: none;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .product-preview,
  .app-showcase {
    animation: reveal 560ms ease both;
  }

  .product-preview {
    animation-delay: 80ms;
  }

  .app-showcase {
    animation-delay: 150ms;
  }

  .review-state span {
    animation: pulse 2.8s ease-in-out infinite;
  }

  .site-header nav a {
    transition: color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 1.25rem var(--signal);
    opacity: 0.72;
  }
}
