/* lo9i website. The palette and glow come from the web app's own theme (clients/web/src/app.css). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #0b0d12;
  --night-2: #11141b;
  --ink: #f3f2ef;
  --fog: #a8acb5;
  --faint: #7d818a;
  --ember: #fb923c;
  --ember-soft: #ffc42e;
  --spark: #4d8dff;
  --live: #30d158;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(26, 25, 27, 0.58);
  --glass-strong: rgba(26, 25, 27, 0.82);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --wrap-wide: 1360px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 20px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--spark) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--spark);
}

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

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.sprite {
  display: none;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--night);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

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

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

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

.note {
  margin-top: 28px;
}

.small {
  font-size: 0.875rem;
}

/* Type */

.h2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  font-weight: 650;
  font-variation-settings: "opsz" 96;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
  font-weight: 620;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 34em;
}

.lede--wide {
  max-width: 44em;
}

.split__side p:not(.lede),
.duo__item p,
.feature p {
  color: var(--fog);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.8em 1.25em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

.btn--primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.btn--sm {
  padding: 0.5em 0.95em;
  font-size: 0.9rem;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap-wide));
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

.nav nav {
  margin-left: auto;
}

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--fog);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

@media (max-width: 760px) {
  .nav nav {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* Hero: the web app's own sky, the warm glow it shows above every page. */

.hero {
  position: relative;
  padding-top: clamp(24px, 5vw, 72px);
  margin-top: -64px;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 1300px 680px at 50% -8%,
      rgba(251, 146, 60, 0.34) 0%,
      rgba(251, 146, 60, 0.16) 28%,
      rgba(251, 146, 60, 0.05) 52%,
      transparent 74%
    ),
    radial-gradient(ellipse 520px 260px at 50% 0%, rgba(255, 196, 46, 0.14), transparent 70%);
  animation: dawn 1.6s ease-out both;
}

.hero__text {
  padding-top: 64px;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(3rem, 1.4rem + 6.8vw, 6.6rem);
  font-weight: 680;
  font-variation-settings: "opsz" 96;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 0.35em;
  max-width: 10.5em;
  text-wrap: balance;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}

.hero__lede {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.55;
  max-width: 36em;
  color: #e3e1dc;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--fog);
  max-width: 44em;
  margin-top: 14px;
}

.hero__note code {
  white-space: normal;
  word-break: break-all;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__text > .install,
.hero__note,
.hero__actions {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}

.hero__shot {
  margin-top: clamp(48px, 7vw, 88px);
  animation: surface 1.3s cubic-bezier(0.16, 0.8, 0.2, 1) 0.35s both;
}

@keyframes dawn {
  from {
    opacity: 0.25;
    transform: translateY(-80px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes surface {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.975);
  }
}

/* The install command */

.install {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  max-width: 760px;
  padding: 8px 8px 8px 18px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}

.install__cmd {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.install__prompt {
  color: var(--ember);
  margin-right: 0.4em;
  user-select: none;
}

.install__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.install__copy:hover {
  background: rgba(255, 255, 255, 0.12);
}

.install__copy.is-copied {
  color: var(--live);
  border-color: color-mix(in srgb, var(--live) 45%, transparent);
}

.install--sm {
  margin: 14px 0 10px;
  padding-left: 14px;
}

.install--sm .install__cmd {
  font-size: 0.82rem;
}

/* Screenshots */

.window {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--night-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.hero__shot .window {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -30px 120px -50px rgba(251, 146, 60, 0.45),
    0 60px 140px -50px rgba(0, 0, 0, 0.95);
}

.window--term {
  border-radius: 12px;
  background: #292929;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--fog);
  max-width: 60em;
}

.shot {
  margin-block: 48px 0;
}

.shot--inset {
  margin-top: 32px;
}

.shot--inset img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}

/* Sections */

.section {
  padding-block: clamp(80px, 11vw, 150px) 0;
}

.section:last-of-type {
  padding-bottom: clamp(80px, 11vw, 140px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.split__side {
  position: sticky;
  top: 96px;
}

.split + .wrap,
.wrap + .split,
.shot + .split {
  margin-top: clamp(56px, 8vw, 110px);
}

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

/* Plugin catalogue: grouped like the app's Plugins page. */

.catalog {
  display: grid;
  gap: 8px;
}

.catalog__group + .catalog__group {
  margin-top: 22px;
}

.catalog__heading {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.02em;
  margin: 0 0 8px 2px;
}

.catalog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  overflow: hidden;
}

.plugin {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
}

.plugin + .plugin {
  border-top: 1px solid var(--line);
}

.plugin p {
  margin: 0;
}

.plugin__icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plugin__icon--invert {
  filter: invert(1);
}

.plugin__icon--stack img {
  width: 20px;
  height: 20px;
}

.plugin__name {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.plugin__what {
  color: var(--fog);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 2px !important;
}

.plugin--feature {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.1), transparent 70%);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px !important;
}

.tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fog);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* Steps: a real sequence, so numbered. */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.steps li {
  counter-increment: step;
  padding: 22px 24px 0 0;
  color: var(--fog);
  font-size: 0.97rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ember);
  margin-bottom: 14px;
}

.steps__title {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.3em;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
}

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

.links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  gap: 6px;
}

.links a {
  font-weight: 500;
}

/* Code */

.code {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #0e1016;
  overflow: hidden;
}

.code__file {
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
}

.code pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #d8d6d1;
}

.code code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
}

.code .k {
  color: #8fb4ff;
}

.code .s {
  color: #ffc58a;
}

.code .c {
  color: #6c707a;
}

/* Agents */

.pipeline {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: stage;
}

.pipeline__stage {
  counter-increment: stage;
  position: relative;
  padding: 0 18px 0 0;
  font-size: 0.93rem;
  color: var(--fog);
}

.pipeline__stage::before {
  content: counter(stage);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--night);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.pipeline__stage::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 34px;
  right: 0;
  height: 1.5px;
  background: var(--line-strong);
}

.pipeline__stage:last-child::after {
  display: none;
}

.pipeline__stage--you::before {
  border-color: var(--ember);
  color: var(--ember);
  box-shadow: 0 0 0 5px rgba(251, 146, 60, 0.12);
}

.pipeline__stage p {
  margin: 0 0 0.5em;
}

.pipeline__name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.pipeline__gate {
  display: inline-block;
  justify-self: start;
  margin-top: 4px !important;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ember);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.12);
}

@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .pipeline__stage {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 16px;
    padding: 0 0 22px;
  }
  .pipeline__stage::before {
    grid-row: span 3;
    margin: 0;
  }
  .pipeline__stage::after {
    top: 34px;
    bottom: 0;
    left: 16.5px;
    right: auto;
    width: 1.5px;
    height: auto;
  }
}

/* The factory page's own role colours. */
.roles {
  list-style: none;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: var(--fog);
  font-size: 0.93rem;
}

.role {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.role--architect {
  background: rgba(77, 141, 255, 0.18);
  color: #8fb4ff;
}

.role--security {
  background: rgba(255, 95, 95, 0.16);
  color: #ff8a8a;
}

.role--tester {
  background: rgba(255, 206, 31, 0.14);
  color: #ffd75e;
}

.role--reviewer {
  background: rgba(48, 209, 88, 0.14);
  color: #6ee28d;
}

.role--implementer {
  background: rgba(196, 140, 255, 0.15);
  color: #cfa8ff;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 32px;
  margin-top: 56px;
}

.gallery .shot {
  margin: 0;
}

.gallery__main {
  grid-column: 1 / -1;
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
  margin-bottom: 18px;
}

.facts p {
  margin: 0;
  color: var(--fog);
  font-size: 0.95rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}

.facts strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(64px, 8vw, 110px);
}

.duo__item {
  padding-top: 26px;
  border-top: 2px solid var(--spark);
}

.duo__item + .duo__item {
  border-top-color: var(--line-strong);
}

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

/* Apps */

.tabs {
  margin-top: 40px;
}

.tabs__list {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fog);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tabs__tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--night);
}

.tabs__tab:not([aria-selected="true"]):hover {
  color: var(--ink);
}

.tabs__panel .gallery {
  margin-top: 28px;
}

.tabs__panel:not([hidden]) {
  animation: fade 0.35s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  color: var(--fog);
  font-size: 0.97rem;
}

.checks li {
  position: relative;
  padding-left: 26px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--spark);
}

.gallery--apps {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

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

.gallery--apps .shot:not(.gallery__main) {
  align-self: start;
}

/* Channels */

.channels {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
}

.channels li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
}

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

.channels p {
  margin: 0;
  color: var(--fog);
  font-size: 0.97rem;
}

.channels__icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

p.channels__name {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 16px;
}

.feature__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}

.feature__title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

.feature p {
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Open source */

.section--source {
  position: relative;
}

.section--source::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto;
  height: 600px;
  z-index: -1;
  background: radial-gradient(ellipse 900px 420px at 20% 40%, rgba(77, 141, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.repos {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.repo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--glass-strong);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.repo:hover {
  border-color: color-mix(in srgb, var(--spark) 60%, transparent);
  background: rgba(30, 32, 40, 0.9);
}

.repo > .icon {
  width: 26px;
  height: 26px;
}

.repo__name {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.98rem;
}

.repo__what {
  display: block;
  color: var(--fog);
  font-size: 0.9rem;
}

.repo__arrow {
  margin-left: auto;
  color: var(--fog);
}

.quickstart {
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--glass-strong);
}

.qs {
  margin: 0 0 20px;
  padding-left: 1.4em;
  display: grid;
  gap: 18px;
}

.qs li::marker {
  color: var(--ember);
  font-weight: 700;
}

.qs p {
  margin: 0;
}

.qs > li {
  min-width: 0;
}

.qs code {
  white-space: normal;
  word-break: break-word;
}

.qs .install__cmd {
  white-space: nowrap;
  word-break: normal;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 72px);
}

.faq__list {
  border-top: 1px solid var(--line-strong);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-weight: 600;
  font-size: 1.08rem;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fog);
  border-bottom: 2px solid var(--fog);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}

.faq details p {
  color: var(--fog);
  padding: 0 2px 22px;
  margin: 0;
  max-width: 40em;
}

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

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 56px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  color: var(--fog);
  text-decoration: none;
  font-size: 0.93rem;
}

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

.footer__credits {
  margin: 0 0 0 auto;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer__credits a {
  color: var(--fog);
}

@media (max-width: 760px) {
  .footer__credits {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
