:root {
  --night: #070b12;
  --night-soft: #0d1420;
  --panel: #111925;
  --panel-raised: #172131;
  --paper: #f4f3ee;
  --ink: #0a1018;
  --white: #fbfcff;
  --muted: #9aa7ba;
  --blue: #2f8cff;
  --blue-bright: #69b5ff;
  --orange: #ff6547;
  --lime: #ceff70;
  --green: #5ee18b;
  --line: rgba(255, 255, 255, 0.11);
  --shell: min(1480px, calc(100vw - 56px));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(47, 140, 255, 0.08), transparent 27%),
    linear-gradient(180deg, #090e17 0%, var(--night) 62%, #060910 100%);
  color: var(--white);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(105, 181, 255, 0.18);
}

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

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

button {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.ambient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.15;
}

.ambient-orb-blue {
  top: 9%;
  right: -12%;
  width: min(52vw, 780px);
  aspect-ratio: 1;
  background: var(--blue);
}

.ambient-orb-orange {
  bottom: -22%;
  left: -9%;
  width: min(30vw, 460px);
  aspect-ratio: 1;
  background: var(--orange);
  opacity: 0.1;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.13em;
  transition: opacity 150ms var(--ease-out);
}

.brand img {
  flex: 0 0 auto;
  border-radius: 11px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

.release-note {
  min-width: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a8b3c4;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.release-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(94, 225, 139, 0.1);
}

.landing {
  min-height: 0;
  padding-block: clamp(46px, 6vh, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(64px, 7vw, 96px);
}

.hero-copy,
.product-viewer {
  min-width: 0;
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: 940px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #b5c0d0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shortcut-mark {
  padding: 6px 8px;
  border: 1px solid rgba(206, 255, 112, 0.36);
  border-radius: 7px;
  background: rgba(206, 255, 112, 0.08);
  color: var(--lime);
  line-height: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

h1 {
  max-width: 720px;
  margin: 0 auto;
  color: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(3.6rem, 4.6vw, 5.15rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.headline-question,
.headline-answer {
  display: block;
}

.headline-question {
  white-space: nowrap;
}

.headline-answer {
  margin-top: 0.58em;
}

.headline-demo {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.headline-selection {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0.015em 0.06em 0.055em;
  color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.headline-selection::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.04em -0.015em 0;
  border-radius: 0.025em;
  background: rgba(82, 123, 164, 0.82);
  box-shadow: inset 0 0.02em rgba(206, 228, 248, 0.16);
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-highlight 5.6s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.demo-cursor {
  position: absolute;
  z-index: 3;
  top: 0.62em;
  left: -0.14em;
  width: 0.24em;
  height: 0.32em;
  background: #fff;
  clip-path: polygon(0 0, 0 100%, 29% 72%, 48% 100%, 67% 89%, 49% 63%, 100% 62%);
  filter:
    drop-shadow(0 0 1px #07111f)
    drop-shadow(0 3px 4px rgba(0, 0, 0, 0.42));
  opacity: 0;
  transform: translate3d(-0.08em, 0.16em, 0) rotate(-8deg);
  animation: hero-cursor 5.6s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  pointer-events: none;
}

.explain-tag {
  position: absolute;
  z-index: 4;
  top: calc(100% + 0.2em);
  right: -0.02em;
  min-height: 26px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--blue-bright);
  border-radius: 8px;
  background: var(--blue);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.34);
  color: #fff;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, -6px, 0) scale(0.96);
  transform-origin: right top;
  animation: hero-explain-tag 5.6s var(--ease-out) infinite;
  white-space: nowrap;
}

@keyframes hero-highlight {
  0%,
  11%,
  100% {
    transform: scaleX(0);
  }

  35%,
  78% {
    transform: scaleX(1);
  }

  89% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

@keyframes hero-cursor {
  0%,
  8% {
    left: -0.14em;
    opacity: 0;
    transform: translate3d(-0.08em, 0.16em, 0) rotate(-8deg);
  }

  12% {
    opacity: 1;
  }

  35%,
  72% {
    left: calc(100% - 0.08em);
    opacity: 1;
    transform: translate3d(0, 0.04em, 0) rotate(-8deg);
  }

  79%,
  100% {
    left: calc(100% - 0.08em);
    opacity: 0;
    transform: translate3d(0.04em, 0.08em, 0) rotate(-8deg);
  }
}

@keyframes hero-explain-tag {
  0%,
  33% {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(0.96);
  }

  39%,
  76% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  83%,
  100% {
    opacity: 0;
    transform: translate3d(0, -3px, 0) scale(0.98);
  }
}

.lede {
  max-width: 630px;
  margin: 28px auto 0;
  color: #aeb9ca;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.64;
  text-wrap: pretty;
}

.selection-demo {
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #a9b4c5;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  white-space: nowrap;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.selection-label {
  color: #68758a;
}

.selection-text {
  padding: 3px 5px;
  border-radius: 2px;
  background: rgba(82, 132, 181, 0.62);
  color: #fff;
}

.selection-arrow {
  color: #657187;
}

.selection-demo kbd {
  border-color: rgba(206, 255, 112, 0.3);
  background: rgba(206, 255, 112, 0.08);
  color: var(--lime);
}

.selection-result {
  color: #dbe2ec;
}

.download-row {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.download-stack {
  width: min(100%, 500px);
  display: grid;
  gap: 10px;
}

.download-intro {
  padding-inline: 2px;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.download-heading {
  min-width: 0;
  display: grid;
  justify-items: center;
}

.download-heading strong {
  color: #f5f7fb;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.download-heading small,
.download-hint {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  line-height: 1.2;
}

.download-heading small {
  margin-top: 4px;
  color: #748196;
}

.download-hint {
  color: #748196;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.download-grid::-webkit-scrollbar {
  display: none;
}

.download-grid .download-button {
  width: auto;
  scroll-snap-align: start;
}

.download-button {
  min-width: 86px;
  min-height: 52px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 149, 123, 0.56);
  border-radius: 13px;
  background: linear-gradient(140deg, #ff6748, #ff4f2f);
  box-shadow:
    0 11px 26px rgba(255, 82, 47, 0.15),
    inset 0 1px rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1;
  transition:
    transform 140ms var(--ease-out),
    filter 160ms ease;
}

.download-button:active,
.viewer-controls button:active {
  transform: scale(0.97);
}

.product-viewer {
  position: relative;
  margin: 0;
}

.product-viewer::before {
  content: "THE CONFUSING PART";
  position: absolute;
  z-index: -1;
  top: -32px;
  right: 14px;
  color: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(2.3rem, 4.2vw, 4.8rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
}

.viewer-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
}

.frame-glow {
  position: absolute;
  z-index: -1;
  inset: 8% 4% 0;
  border-radius: 30px;
  background:
    linear-gradient(128deg, rgba(47, 140, 255, 0.72), rgba(255, 101, 71, 0.54));
  filter: blur(34px);
  opacity: 0.24;
  pointer-events: none;
}

.screenshot-shell {
  position: relative;
  width: 100%;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 25px;
  background: rgba(16, 24, 36, 0.94);
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.1);
  transform-origin: center;
}

.window-bar {
  min-height: 39px;
  padding-inline: 11px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #758399;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #364256;
}

.window-dots i:first-child {
  background: var(--orange);
}

.window-dots i:nth-child(2) {
  background: #f7c847;
}

.window-dots i:last-child {
  background: var(--green);
}

.window-title {
  color: #a8b4c5;
}

#viewer-count {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.product-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 17px;
  background: var(--paper);
  opacity: 1;
  transition: opacity 150ms var(--ease-out);
}

.product-shot.is-switching {
  opacity: 0.22;
}

figcaption {
  min-width: 0;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.viewer-control-shell {
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.viewer-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.viewer-controls button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #758297;
  cursor: pointer;
  font-size: 10px;
  font-weight: 720;
  transition:
    transform 120ms var(--ease-out),
    color 150ms var(--ease-out),
    background-color 150ms var(--ease-out);
}

.viewer-controls button span {
  margin-right: 6px;
  color: #4f5c70;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
}

.viewer-controls button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px #fff;
}

.viewer-controls button[aria-pressed="true"] span {
  color: var(--blue);
}

#viewer-caption {
  min-width: 0;
  max-width: 270px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #78859a;
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
  text-wrap: pretty;
}

.site-footer {
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #637086;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
}

.footer-row p {
  min-width: 0;
  margin: 0;
}

.footer-row p:nth-child(2) {
  color: #8490a2;
  text-align: center;
}

.footer-row a {
  justify-self: end;
  color: #8f9aad;
}

kbd {
  display: inline-flex;
  padding: 0.05em 0.35em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7dde7;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  line-height: 1.3;
}

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

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    opacity: 0.78;
  }

  .download-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }

  .viewer-controls button:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #d8e0eb;
  }

  .viewer-controls button[aria-pressed="true"]:hover {
    background: var(--paper);
    color: var(--ink);
  }

  .footer-row a:hover {
    color: var(--white);
  }
}

@media (max-width: 1280px) {
  .landing {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 72px;
  }

  .hero-copy {
    width: 100%;
    max-width: 760px;
  }

  h1 {
    font-size: clamp(3.8rem, 7.2vw, 5.4rem);
  }

  .headline-question {
    white-space: normal;
  }

  .download-row {
    align-items: center;
    flex-direction: column;
    gap: 13px;
  }

  figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  #viewer-caption {
    max-width: none;
    text-align: left;
  }

  .product-viewer {
    width: min(100%, 960px);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 38px, 760px);
  }

  .landing {
    padding-block: 52px 48px;
    grid-template-columns: minmax(0, 1fr);
    gap: 62px;
  }

  .hero-copy {
    max-width: 700px;
  }

  h1 {
    font-size: clamp(3.65rem, 9.5vw, 5.4rem);
  }

  .download-row {
    align-items: center;
    flex-direction: row;
  }

  .product-viewer {
    width: 100%;
  }

  .footer-row {
    padding-block: 15px;
    grid-template-columns: 1fr auto;
  }

  .footer-row p:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: min(100% - 28px, 540px);
  }

  .nav {
    min-height: 66px;
  }

  .release-note {
    max-width: 180px;
    font-size: 8px;
    text-align: right;
  }

  .release-dot {
    display: none;
  }

  .landing {
    padding-top: 38px;
    gap: 48px;
  }

  .eyebrow {
    margin-bottom: 19px;
    font-size: 8px;
  }

  h1 {
    font-size: clamp(2.75rem, 12.6vw, 4.2rem);
    line-height: 1.02;
  }

  .headline-answer {
    margin-top: 0.68em;
  }

  .explain-tag {
    top: calc(100% + 0.24em);
    min-height: 24px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .lede {
    margin-top: 23px;
    font-size: 1rem;
  }

  .selection-demo {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .selection-label {
    display: none;
  }

  .selection-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .selection-result {
    display: none;
  }

  .download-row {
    align-items: center;
    flex-direction: column;
  }

  .download-button {
    width: auto;
  }

  .product-viewer::before {
    top: -22px;
    font-size: 2.5rem;
  }

  .screenshot-shell {
    padding: 4px;
    border-radius: 18px;
  }

  .window-bar {
    min-height: 34px;
  }

  .product-shot {
    border-radius: 14px;
  }

  .viewer-control-shell {
    width: 100%;
  }

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

  .viewer-controls button {
    padding-inline: 7px;
  }

  .footer-row {
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .release-note {
    max-width: 130px;
  }

  h1 {
    font-size: clamp(2.5rem, 12.7vw, 3.1rem);
  }

  .download-hint {
    display: none;
  }

  .download-grid {
    grid-template-columns: repeat(4, 86px);
    gap: 7px;
  }

  .download-grid .download-button {
    min-width: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .headline-selection::before {
    animation: none;
    transform: scaleX(1);
  }

  .demo-cursor {
    display: none;
    animation: none;
  }

  .explain-tag {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
