@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/landing/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/landing/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/landing/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/landing/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/landing/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink: #100e2c;
  --ink-deep: #0b0a22;
  --ink-raised: #1a1744;
  --line: rgba(165, 180, 252, 0.14);
  --line-strong: rgba(165, 180, 252, 0.26);
  --text: #efeeff;
  --muted: #a9a6d9;
  --dim: #7d7ab0;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --periwinkle: #a5b4fc;
  --lilac: #c4b5fd;
  --mint: #6ee7b7;
  --green: #34d399;
  --brand: linear-gradient(135deg, var(--indigo), var(--violet));
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(62rem 44rem at 8% -12%, rgba(79, 70, 229, 0.34), transparent 62%),
    radial-gradient(54rem 40rem at 100% 4%, rgba(124, 58, 237, 0.24), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.defs {
  position: absolute;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin-inline: auto;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
pre {
  font-family: var(--mono);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 6px;
}

.link {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.link:hover {
  color: var(--periwinkle);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.button-small {
  height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124, 58, 237, 0.8);
}

.button-primary:hover {
  filter: brightness(1.12);
}

.button-quiet {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.button-quiet:hover {
  background-color: rgba(165, 180, 252, 0.08);
  border-color: rgba(165, 180, 252, 0.4);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 24px -10px rgba(79, 70, 229, 0.9);
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero {
  padding-top: clamp(3rem, 8vw, 6.5rem);
}

.hero-text {
  display: grid;
  gap: 28px;
}

h1 {
  max-width: 12.5ch;
  font-size: clamp(2.75rem, 1.5rem + 5.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-side {
  display: grid;
  gap: 28px;
  max-width: 34rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.film {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.film-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--ink-deep);
  box-shadow:
    0 60px 120px -50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(124, 58, 237, 0.12),
    0 0 90px -30px rgba(124, 58, 237, 0.55);
}

.film-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink-deep);
}

.film-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 10, 34, 0.72);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.15s ease;
}

.film-toggle:hover {
  background: rgba(26, 23, 68, 0.92);
}

.film-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.film-toggle .icon-play,
.film-toggle[data-state='playing'] .icon-pause {
  display: block;
}

.film-toggle .icon-pause,
.film-toggle[data-state='playing'] .icon-play {
  display: none;
}

.section {
  padding-top: clamp(5.5rem, 11vw, 9.5rem);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p,
.note {
  color: var(--muted);
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.375rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.pair {
  display: grid;
  gap: 20px;
  align-items: start;
}

.code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-deep);
}

.code-answer {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 70px -36px rgba(52, 211, 153, 0.7);
}

.code-bar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(165, 180, 252, 0.04);
  color: var(--dim);
  font-size: 0.875rem;
  font-weight: 500;
}

.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.75;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 180, 252, 0.3) transparent;
}

.code pre::-webkit-scrollbar {
  height: 8px;
}

.code pre::-webkit-scrollbar-track {
  background: transparent;
}

.code pre::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background-color: rgba(165, 180, 252, 0.3);
}

.code .c {
  color: var(--green);
}

.code .k {
  color: var(--lilac);
}

.code .s {
  color: var(--mint);
}

.code .n {
  color: var(--periwinkle);
}

.code .p {
  color: var(--dim);
}

:not(pre) > code {
  color: var(--periwinkle);
  font-size: 0.9em;
}

.fields {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.fields > div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fields dd {
  color: var(--muted);
}

.settings {
  display: grid;
  border-top: 1px solid var(--line);
}

.settings > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.settings dt {
  color: var(--muted);
}

.settings dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.split h2 {
  max-width: 13ch;
}

.rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.rows > div {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.rows dt {
  font-size: 1.125rem;
  font-weight: 600;
}

.rows dd {
  color: var(--muted);
}

.credits {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.credits th,
.credits td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.credits tr:first-child th,
.credits tr:first-child td {
  border-top: 1px solid var(--line);
}

.credits th {
  padding-right: 16px;
  color: var(--muted);
  font-weight: 400;
  text-align: left;
}

.credits td {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.credits .free {
  color: var(--green);
}

.note {
  margin-top: 18px;
  font-size: 0.9375rem;
}

.steps {
  display: grid;
  gap: 32px;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.steps p {
  color: var(--muted);
}

.closing {
  display: grid;
  gap: 28px;
  justify-items: start;
  margin-top: clamp(6rem, 12vw, 10rem);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(40rem 22rem at 100% 100%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(30rem 18rem at 0% 0%, rgba(79, 70, 229, 0.22), transparent 70%),
    var(--ink-raised);
}

.closing h2 {
  max-width: 14ch;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 48px 56px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.brand-small .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-small .brand-name {
  font-size: 1.125rem;
  color: var(--text);
}

.foot-copy {
  margin-left: auto;
  color: var(--dim);
}

@media (min-width: 900px) {
  .pair {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .pair-proxy {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .pair-proxy .section-head {
    margin-bottom: 2rem;
  }

  .fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(2rem, 6vw, 6rem);
  }

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

@media (min-width: 1040px) {
  .hero-text {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    column-gap: 56px;
  }

  .hero-side {
    padding-bottom: 10px;
  }
}

@media (max-width: 640px) {
  .top-nav .link {
    display: none;
  }

  .film-frame {
    width: min(100%, calc(78svh * 9 / 16));
    margin-inline: auto;
    border-radius: 18px;
  }

  .film-frame video {
    aspect-ratio: 9 / 16;
  }

  .code pre {
    padding: 16px;
    font-size: 0.8125rem;
  }

  .settings > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .foot-copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .film-toggle {
    transition: none;
  }
}
