:root {
  color-scheme: dark;
  --bg: #0e0c14;
  --surface: #17141f;
  --surface-2: #201c2b;
  --line: #2e2939;
  --ink: #f2eff7;
  --muted: #a7a1b4;
  --slime: #9be22d;
  --slime-ink: #10140a;
  --beak: #ff7a1a;
  --magenta: #e23dd8;
  --youtube: #e6002e;
  --youtube-bright: #ff1f4b;
  --on-youtube: #ffffff;
  --radius: 16px;
  --max: 1120px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--slime);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--slime);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--slime);
  color: var(--slime-ink);
}

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

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

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

.btn-dm,
.btn-community {
  --tint: var(--magenta);
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border-color: color-mix(in srgb, var(--tint) 65%, transparent);
  color: var(--ink);
}

.btn-community {
  --tint: var(--beak);
}

.btn-dm:hover,
.btn-community:hover {
  background: color-mix(in srgb, var(--tint) 28%, transparent);
}

.btn-youtube {
  background: var(--youtube);
  color: var(--on-youtube);
}

.btn-youtube:hover {
  background: var(--youtube-bright);
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.site-header .btn {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 720px;
  height: 720px;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--magenta) 30%, transparent), transparent),
    radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--slime) 22%, transparent), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--beak);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h1 .slime {
  color: var(--slime);
}

.lede {
  margin: 0 0 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.15rem;
}

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

.hero .cta-row {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
}

.hero .cta-row .btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 52px;
  padding-inline: 28px;
  font-size: 1.05rem;
}

.fine {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-media {
  justify-self: end;
  width: min(100%, 440px);
}

.hero-art {
  margin-inline: auto;
  width: min(100%, 380px);
  height: auto;
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 60px color-mix(in srgb, var(--magenta) 35%, transparent));
}

.hero-clip {
  margin: 0;
}

.hero-clip + .hero-art {
  display: none;
}

.hero-clip video {
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--magenta) 30%, transparent);
}

.hero-clip figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-clip figcaption strong {
  color: var(--ink);
  font-size: 1.05rem;
}

/* Stats */

.stats {
  padding: 8px 0 24px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-row strong {
  color: var(--slime);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-row .stat-headline {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}

.stat-row .stat-headline strong {
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.stat-row a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.stat-row a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.stat-row li:has(> a) {
  position: relative;
  transition: border-color 0.15s ease;
}

.stat-row li:has(> a:hover),
.stat-row li:has(> a:focus-visible) {
  border-color: var(--slime);
}

.stat-row a:hover span,
.stat-row a:focus-visible span {
  color: var(--ink);
}

.follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.follow-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.follow-lede {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.growth {
  margin: 12px 0 0;
  padding: 22px 24px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.growth .growth-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.growth-lede {
  margin: 6px 0 22px;
  color: var(--muted);
}

.growth-lede strong {
  color: var(--slime);
}

.growth-plot {
  position: relative;
  height: 220px;
}

.growth-plot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.growth-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.growth-area {
  fill: rgb(155 226 45 / 0.12);
}

.growth-line {
  fill: none;
  stroke: var(--slime);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-tick {
  position: absolute;
  left: 0;
  transform: translateY(-125%);
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.growth-dot {
  position: absolute;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--slime);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--surface);
  transform: translate(50%, -50%);
}

.growth-total {
  position: absolute;
  right: 14px;
  transform: translateY(-110%);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.growth-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .growth {
    padding: 16px 14px 14px;
  }

  .growth-plot {
    height: 170px;
  }
}

.quote {
  margin: 44px 0 0;
}

.quote blockquote {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 0;
}

.quote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.quote p::before {
  content: "“";
  display: block;
  height: 0.42em;
  margin-bottom: 0.1em;
  color: var(--slime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4em;
  line-height: 1;
}

.quote mark {
  background: none;
  color: var(--slime);
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .quote {
    margin-top: 32px;
  }

  .quote blockquote {
    grid-template-columns: 1fr;
  }

  .stat-row {
    gap: 8px;
  }

  .stat-row li {
    padding: 14px 12px;
  }

  .stat-row span {
    font-size: 0.82rem;
    line-height: 1.3;
  }
}

/* Sections */

section {
  padding: 56px 0;
  scroll-margin-top: 64px;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 640px;
}

/* Featured */

.featured-player {
  position: relative;
}

.featured-player video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
}

.sound-toggle {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

/* Examples */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.clip {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.clip-player {
  position: relative;
}

.clip .sound-toggle {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

.clip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.clip figcaption {
  padding: 12px 14px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.clip figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.clip figcaption span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
}

.gallery-empty {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Commands */

.command-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.command-group h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.commands {
  display: grid;
  gap: 18px;
  margin: 0;
}

.command {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 2px 28px;
  align-items: baseline;
}

.command dt {
  color: var(--slime);
  font-size: 0.92rem;
  font-weight: 600;
}

.command dt code {
  font-size: 1rem;
}

.command dd {
  margin: 0;
  color: var(--muted);
}

.command dd strong {
  color: var(--ink);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan.featured {
  border-color: var(--slime);
  box-shadow: 0 0 0 1px var(--slime) inset;
}

.plan h3 {
  margin: 0;
  font-size: 1.05rem;
}

.price {
  margin: 10px 0 2px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.93rem;
}

.plan li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.plan li strong {
  color: var(--ink);
}

.plan-pack {
  flex-flow: row wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 16px;
}

.plan-pack .price {
  margin: 0;
}

.plan-pack ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0 0 0 auto;
}

.plan-pack li {
  padding: 0;
  border-top: 0;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* FAQ */

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Final CTA */

.final {
  text-align: center;
}

.final .cta-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.site-footer a {
  color: var(--muted);
}

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

/* Legal pages */

.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.legal h2 {
  margin-top: 36px;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: #d6d1df;
}

.legal .updated {
  color: var(--muted);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.93rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.legal th {
  color: var(--muted);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

/* Story guide */

.guide {
  max-width: 880px;
  padding-top: 48px;
  padding-bottom: 128px;
}

.guide h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

.guide h2 {
  margin-top: 56px;
  font-size: 1.5rem;
}

.guide p,
.guide li {
  color: #d6d1df;
}

.feature {
  margin: 32px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.feature figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.guide-steps {
  padding-left: 1.3em;
}

.guide-steps li + li {
  margin-top: 8px;
}

.compare {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.compare-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-row p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}

.compare-row span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-row .bad span {
  color: var(--beak);
}

.compare-row .good {
  border-color: rgba(155, 226, 45, 0.35);
}

.compare-row .good span {
  color: var(--slime);
}

.rules li + li {
  margin-top: 6px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pipeline li {
  padding: 12px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.pipeline img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.pipeline strong::before {
  content: counter(step) ". ";
  color: var(--slime);
}

.pipeline strong {
  display: block;
  color: var(--ink);
}

.pipeline span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
}

.guide .cta-row {
  margin-top: 48px;
}

@media (max-width: 640px) {
  .compare-row,
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-self: start;
  }

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

  .command-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    flex-wrap: wrap;
    gap: 0 16px;
    min-height: 0;
    padding-top: 9px;
  }

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

  .site-nav {
    order: 1;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 12px;
    margin-left: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: 0.9rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 8px 0 10px;
  }

  .hero {
    padding: 28px 0 8px;
  }

  .hero::before {
    inset: -30% -40% auto auto;
    width: 420px;
    height: 420px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-media {
    justify-self: stretch;
    width: 100%;
  }

  .hero-art {
    display: none;
  }

  .hero .cta-row {
    grid-template-columns: auto auto;
    justify-content: stretch;
    gap: 10px;
  }

  .hero .cta-row .btn-primary {
    justify-self: stretch;
  }

  .hero .cta-row .btn-dm,
  .hero .cta-row .btn-community {
    padding: 8px 12px;
    font-size: 0.86rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  h1 {
    margin: 8px 0 12px;
    font-size: 2rem;
  }

  .lede {
    margin-bottom: 20px;
    font-size: 1.05rem;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  section {
    padding: 36px 0;
    scroll-margin-top: 100px;
  }

  .section-lede {
    margin-bottom: 18px;
  }

  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .clip {
    scroll-snap-align: start;
  }

  .clip figcaption span {
    -webkit-line-clamp: 2;
  }

  .gallery-empty {
    grid-column: 1 / -1;
  }

  .command-group {
    padding: 22px 0;
  }

  .command {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .plan {
    padding: 16px;
  }

  .price {
    margin-top: 6px;
    font-size: 1.75rem;
  }

  .price small {
    display: block;
    font-size: 0.8rem;
  }

  .plan-pack .price small {
    display: inline;
  }

  .plan-pack ul {
    flex-basis: 100%;
    margin-left: 0;
  }

  .plan ul {
    margin-top: 8px;
    font-size: 0.85rem;
  }

  .plan li {
    padding: 5px 0;
  }

  .faq details {
    padding: 14px 0;
  }

  .site-footer nav {
    margin-left: 0;
  }
}

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