/*
 * The download page.
 *
 * It starts from the application's own look: the warm graphite surfaces and
 * the "sonar" aqua accent of packages/ui/src/styles/tokens.css, copied here
 * because this page is static files with no build step of its own.
 *
 * Unlike the application, this page is allowed to show off: light that drifts
 * behind the headline, echoes spreading from it, lit borders and things that
 * arrive as they are scrolled to. The product owner asked for that here. The
 * application itself stays quiet (see AGENTS.md); do not carry these effects
 * into it.
 *
 * No scripts. Everything that moves is CSS, moves by transform and opacity
 * where it can, and stops under "reduce motion".
 */

/* Lets the angle of the lit borders be animated. */
@property --turn {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;
  --sunken: oklch(0.115 0.006 250);
  --canvas: oklch(0.135 0.008 250);
  --surface: oklch(0.18 0.01 250);
  --raised: oklch(0.215 0.012 250);
  --border: oklch(0.28 0.014 250);
  --border-strong: oklch(0.38 0.018 250);
  --fg: oklch(0.96 0.004 85);
  --fg-muted: oklch(0.76 0.012 250);
  --fg-subtle: oklch(0.64 0.014 250);
  --accent: oklch(0.8 0.125 185);
  --accent-hover: oklch(0.86 0.115 185);
  --accent-soft: oklch(0.8 0.125 185 / 0.14);
  --accent-fg: oklch(0.84 0.11 185);
  --on-accent: oklch(0.17 0.03 185);
  /* Two more lights, used only for glow and gradients, never for text or controls. */
  --violet: oklch(0.7 0.19 300);
  --blue: oklch(0.7 0.16 255);
  --glow: oklch(0.8 0.125 185 / 0.45);
  --glow-soft: oklch(0.8 0.125 185 / 0.18);
  --light-strength: 0.55;
  --shadow: 0 40px 120px oklch(0 0 0 / 0.6);
  --nav-bg: oklch(0.135 0.008 250 / 0.72);

  --sans: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Code', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --sunken: oklch(0.94 0.008 250);
    --canvas: oklch(0.975 0.005 250);
    --surface: oklch(0.99 0.003 250);
    --raised: oklch(1 0 0);
    --border: oklch(0.9 0.01 250);
    --border-strong: oklch(0.8 0.014 250);
    --fg: oklch(0.22 0.012 250);
    --fg-muted: oklch(0.42 0.014 250);
    --fg-subtle: oklch(0.52 0.014 250);
    --accent: oklch(0.5 0.09 190);
    --accent-hover: oklch(0.45 0.085 190);
    --accent-soft: oklch(0.5 0.09 190 / 0.12);
    --accent-fg: oklch(0.43 0.085 190);
    --on-accent: oklch(0.99 0 0);
    --violet: oklch(0.55 0.2 300);
    --blue: oklch(0.55 0.17 255);
    --glow: oklch(0.6 0.12 190 / 0.35);
    --glow-soft: oklch(0.6 0.12 190 / 0.14);
    --light-strength: 0.3;
    --shadow: 0 40px 120px oklch(0.3 0.03 250 / 0.22);
    --nav-bg: oklch(0.975 0.005 250 / 0.8);
  }
}

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

html {
  /* The echoes and lights are wider than a phone: cut them off, do not scroll to them. */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.wrap {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* --- Navigation ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mark {
  width: 1.875rem;
  height: 1.875rem;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--glow));
}

.mark circle {
  fill: var(--accent);
  stroke: none;
}

/* The three arcs light up one after another, like a signal going out. */
.mark path {
  animation: signal 2.4s ease-in-out infinite;
}

.mark path:nth-of-type(2) {
  animation-delay: 0.25s;
}

.mark path:nth-of-type(3) {
  animation-delay: 0.5s;
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}

.nav nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav nav a {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.nav nav a:hover {
  background: oklch(1 0 0 / 0.06);
  color: var(--fg);
}

/* --- Buttons --------------------------------------------------------------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  overflow: hidden;
  padding: 0.9375rem 1.625rem;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 55%, var(--blue) 140%);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.12) inset,
    0 10px 40px -8px var(--glow),
    0 0 70px -12px var(--glow);
  transition:
    translate 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

/* A band of light that crosses the button now and then. */
.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, oklch(1 0 0 / 0.55) 50%, transparent 65%);
  translate: -120% 0;
  animation: sheen 4.5s var(--ease) infinite;
}

@keyframes sheen {
  0%,
  55% {
    translate: -120% 0;
  }
  85%,
  100% {
    translate: 120% 0;
  }
}

.button:hover {
  translate: 0 -2px;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.2) inset,
    0 16px 50px -8px var(--glow),
    0 0 110px -10px var(--glow);
}

.button:active {
  translate: 0 0;
}

.button svg {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.small {
  padding: 0.5rem 1.125rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.12) inset,
    0 0 30px -6px var(--glow);
}

.button.ghost {
  border-color: var(--border-strong);
  background: oklch(1 0 0 / 0.03);
  color: var(--fg);
  box-shadow: none;
}

.button.ghost::after {
  content: none;
}

.button.ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px -10px var(--glow);
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow-x: clip;
  padding: 6rem 0 0;
}

/* Three soft lights that wander slowly behind everything. */
.aurora {
  position: absolute;
  inset: -10rem 0 auto;
  height: 60rem;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
}

.aurora span {
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  opacity: var(--light-strength);
  /* Soft by its gradient alone: blurring something this large is slow to draw. */
  will-change: transform;
}

.aurora span:nth-child(1) {
  top: 0;
  left: 50%;
  margin-left: -23rem;
  background: radial-gradient(
    closest-side,
    var(--accent),
    oklch(0.8 0.125 185 / 0.35) 45%,
    transparent
  );
  animation: drift-a 16s ease-in-out infinite alternate;
}

.aurora span:nth-child(2) {
  top: 6rem;
  left: 8%;
  background: radial-gradient(closest-side, var(--violet), transparent);
  animation: drift-b 21s ease-in-out infinite alternate;
}

.aurora span:nth-child(3) {
  top: 2rem;
  right: 4%;
  background: radial-gradient(closest-side, var(--blue), transparent);
  animation: drift-c 19s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate3d(-6rem, -2rem, 0) scale(1);
  }
  to {
    transform: translate3d(6rem, 3rem, 0) scale(1.2);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(-4rem, 4rem, 0) scale(1.1);
  }
  to {
    transform: translate3d(10rem, -3rem, 0) scale(0.85);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(5rem, 2rem, 0) scale(0.9);
  }
  to {
    transform: translate3d(-9rem, 5rem, 0) scale(1.15);
  }
}

/* A field of dots that fades away from the headline. */
.dots {
  position: absolute;
  inset: 0 0 auto;
  height: 46rem;
  background-image: radial-gradient(oklch(1 0 0 / 0.16) 1px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, black, transparent 75%);
}

/* The name, drawn: rings that leave the headline and fade, one after another. */
.echoes {
  position: absolute;
  top: 15rem;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.echoes span {
  position: absolute;
  top: -32rem;
  left: -32rem;
  width: 64rem;
  height: 64rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 30px var(--glow-soft),
    0 0 30px var(--glow-soft) inset;
  opacity: 0;
  animation: echo 8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.echoes span:nth-child(2) {
  animation-delay: 2s;
}

.echoes span:nth-child(3) {
  animation-delay: 4s;
}

.echoes span:nth-child(4) {
  animation-delay: 6s;
}

@keyframes echo {
  0% {
    opacity: 0;
    scale: 0.08;
  }
  12% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    scale: 1;
  }
}

.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text > * {
  animation: rise 900ms var(--ease) both;
}

.hero-text > :nth-child(2) {
  animation-delay: 80ms;
}

.hero-text > :nth-child(3) {
  animation-delay: 160ms;
}

.hero-text > :nth-child(4) {
  animation-delay: 240ms;
}

.hero-text > :nth-child(5) {
  animation-delay: 320ms;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 1.25rem;
  }
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4375rem 1rem;
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.05);
  box-shadow: 0 0 40px -10px var(--glow);
  letter-spacing: 0.03em;
  text-transform: none;
}

/* A small light that is on, in front of the version. */
.hero .eyebrow::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--glow);
  animation: beat 2s ease-in-out infinite;
}

@keyframes beat {
  50% {
    opacity: 0.35;
    scale: 0.8;
  }
}

h1 {
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(3rem, 9.5vw, 6.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

/* The second line is light itself: a gradient that keeps moving, with a glow behind. */
h1 span {
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    oklch(0.95 0.06 185) 22%,
    var(--blue) 45%,
    var(--violet) 62%,
    var(--accent) 85%,
    oklch(0.95 0.06 185) 100%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px var(--glow));
  animation: shimmer 9s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -300% 0;
  }
}

.lead {
  max-width: 39rem;
  margin-top: 1.75rem;
  color: var(--fg-muted);
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.meta {
  margin-top: 1.125rem;
  color: var(--fg-subtle);
  font-size: 0.875rem;
}

/* --- Screenshots ------------------------------------------------------------ */

.window {
  position: relative;
  border-radius: 1rem;
  background: var(--sunken);
  box-shadow: var(--shadow);
}

.window img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/*
 * A border that is lit from one side, with the light travelling round it.
 * Drawn as a gradient in the 1px ring between two masks, so it needs no image.
 */
.lit {
  position: relative;
}

.lit::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--turn),
    oklch(1 0 0 / 0.1) 0deg,
    oklch(1 0 0 / 0.1) 200deg,
    var(--blue) 250deg,
    var(--accent) 290deg,
    oklch(0.97 0.04 185) 310deg,
    var(--violet) 335deg,
    oklch(1 0 0 / 0.1) 360deg
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: turn 7s linear infinite;
}

@keyframes turn {
  to {
    --turn: 360deg;
  }
}

.stage {
  position: relative;
  margin-top: 5rem;
  perspective: 2000px;
}

/* The light the window seems to stand in. */
.stage-glow {
  position: absolute;
  inset: 8% 4% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent), var(--blue) 45%, transparent);
  opacity: calc(var(--light-strength) * 0.9);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: calc(var(--light-strength) * 0.55);
    scale: 0.94;
  }
}

.hero-shot {
  transform-origin: 50% 0;
  animation: rise 1100ms var(--ease) 360ms both;
}

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

@keyframes float {
  50% {
    translate: 0 -0.625rem;
  }
}

/* --- A strip of words that never stops --------------------------------------- */

.ticker {
  display: flex;
  overflow: hidden;
  margin-top: 5rem;
  padding: 1.125rem 0;
  border-block: 1px solid oklch(1 0 0 / 0.07);
  background: oklch(1 0 0 / 0.02);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  user-select: none;
}

.ticker ul {
  display: flex;
  flex: none;
  animation: ticker 38s linear infinite;
}

.ticker li {
  display: flex;
  align-items: center;
  padding-right: 2.75rem;
  color: var(--fg-muted);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker li::before {
  content: '';
  width: 0.4375rem;
  height: 0.4375rem;
  margin-right: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 1px var(--glow);
}

@keyframes ticker {
  to {
    translate: -100% 0;
  }
}

/* --- Sections -------------------------------------------------------------- */

.block {
  padding: 7.5rem 0 0;
}

h2 {
  max-width: 20ch;
  font-family: var(--display);
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.sub {
  margin-top: 1rem;
  color: var(--fg-muted);
  font-size: 1.125rem;
}

/* --- Feature cards --------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr));
  gap: 1.125rem;
  margin-top: 3rem;
}

.cards li {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 1.125rem;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.055), oklch(1 0 0 / 0.015));
  transition:
    border-color 300ms var(--ease),
    translate 300ms var(--ease),
    box-shadow 300ms var(--ease);
}

/* Light that comes on in the corner of a card when it is pointed at. */
.cards li::before {
  content: '';
  position: absolute;
  top: -8rem;
  left: -6rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}

.cards li:hover {
  border-color: oklch(0.8 0.125 185 / 0.55);
  translate: 0 -6px;
  box-shadow:
    0 24px 60px -20px oklch(0 0 0 / 0.6),
    0 0 60px -18px var(--glow);
}

.cards li:hover::before {
  opacity: 0.5;
}

.cards li > * {
  position: relative;
}

.cards p {
  margin-top: 0.625rem;
  color: var(--fg-muted);
  font-size: 0.96875rem;
}

.icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  border: 1px solid oklch(0.8 0.125 185 / 0.35);
  border-radius: 0.9375rem;
  background: linear-gradient(145deg, oklch(0.8 0.125 185 / 0.28), oklch(0.7 0.16 255 / 0.1));
  box-shadow: 0 0 34px -6px var(--glow);
  fill: none;
  stroke: var(--accent-fg);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    scale 300ms var(--ease),
    box-shadow 300ms var(--ease);
}

.cards li:hover .icon {
  scale: 1.08;
  box-shadow: 0 0 50px -2px var(--glow);
}

.icon .fill {
  fill: var(--accent-fg);
  stroke: none;
}

/* --- Showcase: text beside a screenshot ------------------------------------- */

.show {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 4rem;
}

.show + .show {
  margin-top: 7.5rem;
}

.show.flip .show-text {
  order: 2;
}

.show figure {
  box-shadow:
    var(--shadow),
    0 0 110px -30px var(--glow);
}

.show-text > p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: var(--fg-muted);
  font-size: 1.125rem;
}

.ticks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.ticks li {
  position: relative;
  padding-left: 2.125rem;
  color: var(--fg);
  font-size: 1rem;
}

/* A lit disc with a check mark in it, drawn without an image. */
.ticks li::before {
  content: '';
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 1.3125rem;
  height: 1.3125rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 18px -2px var(--glow);
}

.ticks li::after {
  content: '';
  position: absolute;
  top: 0.4em;
  left: 0.5rem;
  width: 0.3125rem;
  height: 0.5625rem;
  border: solid var(--accent-fg);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

/* --- Steps ----------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.125rem;
  margin-top: 3rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.75rem;
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 1.125rem;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.055), oklch(1 0 0 / 0.015));
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 60%, var(--blue) 150%);
  box-shadow:
    0 0 0 6px var(--accent-soft),
    0 0 40px -4px var(--glow);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  animation: halo 3s ease-in-out infinite;
}

.steps li:nth-child(2)::before {
  animation-delay: 0.5s;
}

.steps li:nth-child(3)::before {
  animation-delay: 1s;
}

@keyframes halo {
  50% {
    box-shadow:
      0 0 0 10px oklch(0.8 0.125 185 / 0.06),
      0 0 60px 0 var(--glow);
  }
}

.steps p {
  margin-top: 0.625rem;
  color: var(--fg-muted);
  font-size: 0.96875rem;
}

.notice {
  margin-top: 1.125rem;
  padding: 1.75rem;
  border: 1px solid oklch(1 0 0 / 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 1.125rem;
  background: linear-gradient(100deg, var(--accent-soft), oklch(1 0 0 / 0.02) 45%);
}

.notice ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding-left: 1.125rem;
  color: var(--fg-muted);
  font-size: 0.96875rem;
  list-style: disc;
}

/* --- Facts about data ------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 1.125rem;
  /* The gaps between the cells show this color: hairlines without extra borders. */
  background: oklch(1 0 0 / 0.08);
}

.facts div {
  padding: 1.75rem;
  background: var(--surface);
  transition: background-color 300ms var(--ease);
}

.facts div:hover {
  background: var(--raised);
}

.facts dt {
  color: var(--accent-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts dd {
  margin-top: 0.75rem;
  color: var(--fg-muted);
  font-size: 0.96875rem;
}

/* --- Closing call to action ------------------------------------------------ */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5.5rem 1.5rem;
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: 0 0 140px -40px var(--glow);
  text-align: center;
}

.cta .aurora {
  inset: 0;
  height: auto;
  border-radius: inherit;
  mask-image: none;
}

.cta .aurora span {
  width: 34rem;
  height: 34rem;
}

.cta .aurora span:nth-child(1) {
  top: -14rem;
  margin-left: -17rem;
}

.cta .aurora span:nth-child(2) {
  top: auto;
  bottom: -18rem;
  left: 55%;
}

.cta > :not(.aurora) {
  position: relative;
}

.cta h2 {
  max-width: none;
}

.cta > p {
  margin: 1rem 0 2.5rem;
  color: var(--fg-muted);
  font-size: 1.125rem;
}

.cta .checksum {
  display: grid;
  gap: 0.375rem;
  margin: 2.5rem 0 0;
  color: var(--fg-subtle);
  font-size: 0.8125rem;
}

code {
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  user-select: all;
}

/* --- Footer ---------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 7rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid oklch(1 0 0 / 0.08);
  color: var(--fg-subtle);
  font-size: 0.875rem;
}

/* --- Things that arrive as they are scrolled to -----------------------------
 * Only where the browser can tie an animation to scrolling. Elsewhere
 * everything is simply there, which is the safe way to fail.
 */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .block > .eyebrow,
    .block > h2,
    .block > .sub,
    .cards li,
    .show-text,
    .show figure,
    .steps li,
    .notice,
    .facts,
    .cta {
      animation: arrive linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    /* The window starts tilted away and straightens as it comes up the screen. */
    .hero-shot {
      animation:
        rise 1100ms var(--ease) 360ms both,
        straighten linear both;
      animation-timeline: auto, view();
      animation-range:
        normal,
        entry 10% cover 45%;
    }

    .show figure {
      animation: swing linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    .show.flip figure {
      animation-name: swing-back;
    }
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    translate: 0 3rem;
    scale: 0.96;
  }
}

@keyframes straighten {
  from {
    transform: rotateX(22deg) scale(0.92);
  }
  to {
    transform: rotateX(0deg) scale(1);
  }
}

@keyframes swing {
  from {
    opacity: 0;
    transform: perspective(1600px) rotateY(-16deg) translateX(4rem);
  }
  to {
    opacity: 1;
    transform: perspective(1600px) rotateY(0deg) translateX(0);
  }
}

@keyframes swing-back {
  from {
    opacity: 0;
    transform: perspective(1600px) rotateY(16deg) translateX(-4rem);
  }
  to {
    opacity: 1;
    transform: perspective(1600px) rotateY(0deg) translateX(0);
  }
}

/* --- Light scheme: the same page with the lights turned down ---------------- */

@media (prefers-color-scheme: light) {
  .dots {
    background-image: radial-gradient(oklch(0.3 0.03 250 / 0.18) 1px, transparent 1.5px);
  }

  .nav,
  .footer,
  .ticker {
    border-color: var(--border);
  }

  .cards li,
  .steps li,
  .notice,
  .facts {
    border-color: var(--border);
  }

  .cards li,
  .steps li {
    background: var(--surface);
  }

  .facts {
    background: var(--border);
  }

  .hero .eyebrow,
  .button.ghost {
    border-color: var(--border-strong);
    background: oklch(1 0 0 / 0.6);
  }

  h1 span {
    background-image: linear-gradient(
      100deg,
      var(--accent) 0%,
      var(--blue) 30%,
      var(--violet) 60%,
      var(--accent) 100%
    );
  }
}

/* --- Smaller screens ------------------------------------------------------- */

@media (max-width: 56rem) {
  .show {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .show.flip .show-text {
    order: 0;
  }

  .show + .show {
    margin-top: 5rem;
  }
}

@media (max-width: 40rem) {
  .nav nav {
    display: none;
  }

  .nav-row {
    justify-content: space-between;
  }

  .hero {
    padding-top: 4rem;
  }

  .stage {
    margin-top: 3.5rem;
  }

  .echoes {
    top: 12rem;
  }

  .echoes span {
    top: -22rem;
    left: -22rem;
    width: 44rem;
    height: 44rem;
  }

  .block {
    padding-top: 5rem;
  }

  .actions .button {
    width: 100%;
  }

  .cta {
    padding: 4rem 1.25rem;
  }
}

/* --- Reduced motion: everything is still there, nothing moves --------------- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .echoes span {
    opacity: 0.18;
  }

  .echoes span:nth-child(2) {
    scale: 0.75;
  }

  .echoes span:nth-child(3) {
    scale: 0.5;
  }

  .echoes span:nth-child(4) {
    scale: 0.25;
  }
}
