/* TorrentStream — torrentstream.io
   Dark-first; light theme via prefers-color-scheme. No external resources. */

:root {
  color-scheme: dark light;

  --bg: #0b0b0f;
  --bg-alt: #111117;
  --surface: #15151c;
  --surface-2: #1b1b23;
  --border: #26262f;
  --border-strong: #34343f;
  --text: #ededf0;
  --text-muted: #a3a3ad;
  --text-faint: #8a8a95;
  --accent: #f2b45a;
  --accent-ink: #f2b45a; /* accent used as text/links */
  --accent-soft: rgb(242 180 90 / 0.12);
  --accent-line: rgb(242 180 90 / 0.35);
  --on-accent: #1b1306;
  --yes: #7fd49a;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -20px rgb(0 0 0 / 0.7);
  --glow: rgb(242 180 90 / 0.14);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf8;
    --bg-alt: #f4f2ee;
    --surface: #ffffff;
    --surface-2: #f7f5f1;
    --border: #e6e2da;
    --border-strong: #d6d0c4;
    --text: #17171c;
    --text-muted: #4e4e58;
    --text-faint: #63636e;
    --accent: #f2b45a;
    --accent-ink: #8a5300;
    --accent-soft: rgb(242 180 90 / 0.18);
    --accent-line: rgb(176 112 20 / 0.4);
    --on-accent: #1b1306;
    --yes: #1d7a3c;
    --shadow: 0 1px 2px rgb(23 23 28 / 0.06), 0 24px 60px -24px rgb(23 23 28 / 0.25);
    --glow: rgb(242 180 90 / 0.22);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.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;
}

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

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

.accent {
  color: var(--accent-ink);
}

.muted {
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px -10px rgb(242 180 90 / 0.6);
}

.btn-primary:hover {
  background: #f6c47a;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  min-height: 2.25rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  box-shadow: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 11 15 / 0.82);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgb(251 250 248 / 0.85);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  margin-left: auto;
}

.brand + .btn {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.925rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .header-inner .btn {
    margin-left: auto;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 5vw, 3.5rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -18rem;
  width: 64rem;
  height: 40rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}

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

.hero-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 1.75rem;
  border-radius: 18px;
  box-shadow: 0 18px 50px -16px rgb(242 180 90 / 0.45);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pill-tag,
.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  margin-left: 0.35rem;
  vertical-align: 0.2em;
  letter-spacing: 0.05em;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 1.4rem + 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.subhead {
  margin-top: 1.1rem;
  font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead {
  max-width: 38rem;
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.15rem);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fine {
  margin-top: 1rem;
  color: var(--text-faint);
  font-size: 0.875rem;
  text-wrap: pretty;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.trust li + li::before {
  content: "·";
  margin-inline: 0.65rem;
  color: var(--text-faint);
}

/* ---------- Demo ---------- */

.showcase {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* The demo video brings its own frame (background, rounded window, shadow). */
.demo {
  margin: 0;
}

.demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #0d0d12;
  box-shadow: var(--shadow);
}

.demo figcaption {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.credit {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.credit cite {
  font-style: italic;
}

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

.section {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

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

.section h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  letter-spacing: -0.035em;
}

.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  text-wrap: pretty;
}

.footnote {
  max-width: 52rem;
  margin-top: 1.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-wrap: pretty;
}

/* ---------- Seek illustration ---------- */

.seek-demo {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.seek-track {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--border);
}

.seek-have {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 12%;
  border-radius: 999px;
  background: var(--text-faint);
  opacity: 0.6;
}

.seek-target {
  position: absolute;
  inset-block: 0;
  left: 62%;
  width: 9%;
  border-radius: 999px;
  background: var(--accent);
}

.seek-head {
  position: absolute;
  top: 50%;
  left: 62%;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  transform: translate(-50%, -50%);
}

.seek-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.seek-label-target {
  position: absolute;
  left: 62%;
  transform: translateX(-50%);
  color: var(--accent-ink);
  font-family: var(--font);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .seek-labels {
    flex-wrap: wrap;
  }

  .seek-label-target {
    position: static;
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
    text-align: center;
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  margin: 0;
}

/* Each stat: dt (label) + dd (value, note), shown as value / label / note. */
.stat {
  display: grid;
  grid-template-areas:
    "value"
    "label"
    "note";
  align-content: start;
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat dt {
  grid-area: label;
  margin-top: 0.75rem;
  font-weight: 600;
}

.stat dd {
  display: contents;
  margin: 0;
}

.stat-value {
  grid-area: value;
  color: var(--accent-ink);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-note {
  grid-area: note;
  margin-top: 0.15rem;
  color: var(--text-faint);
  font-size: 0.825rem;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card h3 {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.icon {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
}

.icon::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  background: var(--accent-ink);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.icon-skip::after {
  -webkit-mask-image: url("assets/icons/skip.svg");
  mask-image: url("assets/icons/skip.svg");
}

.icon-speed::after {
  -webkit-mask-image: url("assets/icons/speed.svg");
  mask-image: url("assets/icons/speed.svg");
}

.icon-queue::after {
  -webkit-mask-image: url("assets/icons/queue.svg");
  mask-image: url("assets/icons/queue.svg");
}

.icon-media::after {
  -webkit-mask-image: url("assets/icons/media.svg");
  mask-image: url("assets/icons/media.svg");
}

.icon-shield::after {
  -webkit-mask-image: url("assets/icons/shield.svg");
  mask-image: url("assets/icons/shield.svg");
}

.icon-search::after {
  -webkit-mask-image: url("assets/icons/search.svg");
  mask-image: url("assets/icons/search.svg");
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 56rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

.compare th,
.compare td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  vertical-align: bottom;
}

.compare thead .sub {
  display: block;
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.8rem;
}

.compare tbody th {
  width: 12rem;
  color: var(--text);
  font-weight: 600;
}

.compare td {
  color: var(--text-muted);
}

.compare .col-us {
  background: var(--accent-soft);
  color: var(--text);
}

.compare thead .col-us {
  color: var(--accent-ink);
}

.yes {
  color: var(--yes);
  font-weight: 600;
}

.yes::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.3em;
  vertical-align: -0.08em;
  background: currentColor;
  -webkit-mask: url("assets/icons/check.svg") center / contain no-repeat;
  mask: url("assets/icons/check.svg") center / contain no-repeat;
}

/* ---------- Privacy ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.checklist {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--accent-ink);
  -webkit-mask: url("assets/icons/check.svg") center / contain no-repeat;
  mask: url("assets/icons/check.svg") center / contain no-repeat;
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

.panel {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel h3 {
  font-size: 1.125rem;
}

.modes {
  display: grid;
  gap: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mode;
}

.modes li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.5rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--border);
  counter-increment: mode;
}

.modes li::before {
  content: counter(mode, decimal-leading-zero);
  grid-row: span 2;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.9;
}

.mode-name {
  font-weight: 600;
}

.mode-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.panel-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-size: 1.075rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent-ink);
}

.faq details p {
  padding-bottom: 1.35rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- Final CTA ---------- */

.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -22rem;
  width: 60rem;
  height: 36rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}

.final img {
  margin: 0 auto 1.5rem;
  border-radius: 14px;
}

.final .section-lead {
  margin-inline: auto;
}

.final .fine {
  max-width: 40rem;
  margin: 1.5rem auto 0;
}

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

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

.brand-footer {
  font-size: 0.95rem;
}

.brand-footer img {
  border-radius: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-meta a {
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--text);
}

.footer-meta {
  flex-basis: 100%;
}

.footer-meta + .footer-meta {
  margin-top: -0.5rem;
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-block: 5rem;
  text-align: center;
}

.notfound .code {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.notfound h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
}

.notfound p {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* ---------- Motion ---------- */

/* ---------- Cinema: dark, glowing bands (hero with demo, download) in either theme ---------- */

.cinema {
  --bg: #0b0b0f;
  --bg-alt: #111117;
  --surface: #15151c;
  --border: #26262f;
  --border-strong: #34343f;
  --text: #ededf0;
  --text-muted: #a3a3ad;
  --text-faint: #8a8a95;
  --accent-ink: #f2b45a;
  --accent-soft: rgb(242 180 90 / 0.12);
  --accent-line: rgb(242 180 90 / 0.35);
  --glow: rgb(242 180 90 / 0.18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color-scheme: dark;
  background:
    radial-gradient(70rem 34rem at 50% -8rem, rgb(242 180 90 / 0.22), transparent 70%),
    radial-gradient(46rem 30rem at 92% 55%, rgb(232 120 60 / 0.10), transparent 70%),
    radial-gradient(40rem 26rem at 6% 75%, rgb(242 180 90 / 0.08), transparent 70%),
    #0b0b0f;
  color: var(--text);
}

/* A faint grain of light lines, like a projector beam. */
.cinema::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 46px, rgb(255 255 255 / 0.018) 46px 47px);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

.cinema .hero::before {
  display: none;
}

.cinema .hero h1 {
  color: #f6f3ee;
}

.cinema .demo video {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.07),
    0 40px 120px -36px rgb(242 180 90 / 0.38),
    0 24px 60px -24px rgb(0 0 0 / 0.8);
}

.cinema .section {
  border-top: none;
}

.cinema .btn-ghost {
  border-color: rgb(255 255 255 / 0.18);
  color: var(--text);
}

/* Numbers from the demo above. */
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.proof > div {
  padding: 1.25rem 1.1rem;
  background: rgb(17 17 23 / 0.85);
  text-align: center;
}

.proof dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.proof dd {
  margin: 0.35rem 0 0;
  background: linear-gradient(180deg, #ffd79a, #f2b45a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

@media (width < 44rem) {
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.step::after {
  content: "0" counter(step);
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  color: var(--accent-soft);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
}

.step h3,
.use h3 {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.step p,
.use p {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Use cases ---------- */

.uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.icon-play::after {
  -webkit-mask-image: url("assets/icons/play.svg");
  mask-image: url("assets/icons/play.svg");
}

.icon-link::after {
  -webkit-mask-image: url("assets/icons/link.svg");
  mask-image: url("assets/icons/link.svg");
}

.icon-film::after {
  -webkit-mask-image: url("assets/icons/film.svg");
  mask-image: url("assets/icons/film.svg");
}

.icon-lecture::after {
  -webkit-mask-image: url("assets/icons/lecture.svg");
  mask-image: url("assets/icons/lecture.svg");
}

.icon-music::after {
  -webkit-mask-image: url("assets/icons/music.svg");
  mask-image: url("assets/icons/music.svg");
}

.icon-headphones::after {
  -webkit-mask-image: url("assets/icons/headphones.svg");
  mask-image: url("assets/icons/headphones.svg");
}

/* Cards lift a little under the pointer. */
.card,
.step,
.use,
.post-card a {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) {
  .card:hover,
  .step:hover,
  .use:hover,
  .post-card a:hover {
    transform: translateY(-3px);
    border-color: var(--accent-line);
    box-shadow: 0 18px 40px -24px rgb(242 180 90 / 0.35);
  }
}

/* ---------- From the blog ---------- */

.post-teasers {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  margin-top: 0;
}

.post-teasers h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.post-card .post-more {
  margin-top: 0.9rem;
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Downloads ---------- */

.downloads {
  margin: 2rem auto 0;
  max-width: 38rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(21 21 28 / 0.75);
  text-align: left;
}

.downloads-head {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.downloads ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.downloads li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
}

.downloads li + li {
  border-top: 1px solid var(--border);
}

.dl-system {
  font-weight: 600;
}

.dl-links {
  color: var(--text-faint);
  font-size: 0.925rem;
}

.dl-links .size {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

/* ---------- Reveal on scroll (where supported; never for reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }

    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(1.5rem) scale(0.985);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

/* ---------- Blog ---------- */

.blog-index,
.post {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.post-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.post-card a {
  display: block;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.post-card a:hover {
  border-color: var(--accent-line);
}

.post-card h2 {
  font-size: 1.25rem;
}

.post-card p {
  margin-top: 0.45rem;
  color: var(--text-muted);
}

.post-meta {
  color: var(--text-faint);
  font-size: 0.875rem;
}

.post-container {
  max-width: 46rem;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.post-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
}

.post-header .post-meta {
  margin-top: 0.75rem;
}

.answer {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--accent-line);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.answer-label {
  margin-bottom: 0.35rem;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-toc {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 0.95rem;
}

.post-toc-title {
  margin-bottom: 0.4rem;
  font-weight: 650;
}

.post-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.post-toc li + li {
  margin-top: 0.25rem;
}

.prose {
  margin-top: 2rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: 1.6rem;
  scroll-margin-top: 5rem;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.2rem;
  scroll-margin-top: 5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border-strong);
  color: var(--text-muted);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--bg-alt);
  font-family: var(--mono);
  font-size: 0.9em;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.prose pre code {
  padding: 0;
  background: none;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-alt);
  font-weight: 650;
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: none;
}

.post-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-cta p {
  flex: 1 1 18rem;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Forced colors / print ---------- */

@media (forced-colors: active) {
  .icon::after,
  .yes::before,
  .checklist li::before {
    background: CanvasText;
  }

  .btn {
    border-color: ButtonText;
  }
}
