:root {
  --bg: #0b110f;
  --bg-soft: #101815;
  --text: #e7f0ea;
  --muted: #9db0a5;
  --accent: #5fc9a7;
  --accent-2: #e89662;
  --line: #27352e;
  --panel: #15201b;
  --header-offset: 94px;
  --jump-gap: 26px;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  scroll-padding-top: calc(var(--header-offset) + var(--jump-gap));
}

body {
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}

.intro-guillotine {
  align-items: center;
  animation: guillotine-overlay 2500ms cubic-bezier(0.2, 0.74, 0.18, 1) forwards;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--bg-soft) 90%, black 10%),
    color-mix(in oklab, var(--bg) 82%, black 18%)
  );
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 120;
}

.intro-rig {
  height: min(56vh, 420px);
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 156px;
}

.intro-crossbeam {
  background: color-mix(in oklab, var(--line) 72%, white 28%);
  border: 1px solid color-mix(in oklab, var(--line) 82%, black 18%);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  height: 16px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.intro-rail {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--line) 68%, white 32%),
    color-mix(in oklab, var(--line) 80%, black 20%)
  );
  border-radius: 999px;
  bottom: 0;
  position: absolute;
  top: 16px;
  width: 10px;
}

.intro-rail-left {
  left: 16px;
}

.intro-rail-right {
  right: 16px;
}

.intro-blade {
  animation: guillotine-blade 2500ms cubic-bezier(0.22, 0.75, 0.2, 1) forwards;
  background: linear-gradient(
    165deg,
    color-mix(in oklab, var(--text) 78%, var(--line) 22%),
    color-mix(in oklab, var(--muted) 62%, var(--line) 38%)
  );
  border: 1px solid color-mix(in oklab, var(--line) 70%, white 30%);
  box-shadow:
    0 0 12px rgba(95, 201, 167, 0.22),
    0 14px 30px rgba(0, 0, 0, 0.44);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 14% 100%, 0 100%);
  height: 88px;
  left: 50%;
  position: absolute;
  top: 18px;
  transform: translate(-50%, 0);
  width: 92px;
}

@keyframes guillotine-overlay {
  0%,
  70% {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
  }

  84% {
    transform: scale(1.03);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
    visibility: hidden;
  }
}

@keyframes guillotine-blade {
  0%,
  46% {
    transform: translate(-50%, 0);
  }

  62% {
    transform: translate(-50%, clamp(190px, 35vh, 306px));
  }

  68% {
    transform: translate(-50%, clamp(184px, 34vh, 296px));
  }

  76% {
    transform: translate(-50%, clamp(188px, 34.5vh, 300px));
    opacity: 1;
  }

  100% {
    transform: translate(-50%, clamp(188px, 34.5vh, 300px));
    opacity: 0;
  }
}

.page-glow {
  background:
    radial-gradient(40% 30% at 20% 12%, rgba(232, 150, 98, 0.16), transparent 70%),
    radial-gradient(36% 28% at 88% 30%, rgba(95, 201, 167, 0.18), transparent 75%);
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.site-header,
main,
.site-footer {
  margin: 0 auto;
  max-width: none;
  padding-left: clamp(16px, 3.5vw, 56px);
  padding-right: clamp(16px, 3.5vw, 56px);
  width: 100%;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-bottom: 14px;
  padding-top: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 92%, black 8%);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent 20%);
}

.brand {
  color: var(--text);
  font-family: "Instrument Serif", serif;
  font-size: 1.65rem;
  font-style: italic;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.1vw, 24px);
  min-width: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.section {
  padding-bottom: 64px;
  padding-top: 64px;
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + var(--jump-gap));
}

.hero {
  padding-top: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  column-gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-bottom: 0.5em;
  margin-top: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  max-width: 18ch;
  margin-top: 14px;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-side {
  align-self: start;
  display: grid;
  gap: 14px;
  margin-top: -4px;
  min-width: 0;
}

.hero-demo {
  background: color-mix(in oklab, var(--panel) 80%, black 20%);
  border: 1px solid color-mix(in oklab, var(--line) 84%, black 16%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.hero-demo img {
  display: block;
  height: min(220px, 18vw);
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.hero-demo figcaption {
  border-top: 1px solid color-mix(in oklab, var(--line) 85%, black 15%);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 10px 14px;
}

.btn {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  color: #06100c;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 60%, white 40%);
  outline-offset: 2px;
}

.btn-small {
  min-height: 40px;
  padding: 10px 16px;
}

.github-logo-link {
  box-shadow: 0 0 0 rgba(95, 201, 167, 0);
  min-width: 44px;
  padding: 10px;
}

.github-logo {
  display: block;
  fill: currentColor;
}

.github-logo-link:hover,
.github-logo-link:focus-visible {
  box-shadow:
    0 0 18px rgba(95, 201, 167, 0.28),
    0 0 36px rgba(95, 201, 167, 0.15);
}

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

.hero-panel {
  background: linear-gradient(145deg, color-mix(in oklab, var(--panel) 80%, black 20%), var(--panel));
  border: 1px solid color-mix(in oklab, var(--line) 84%, black 16%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 0;
  overflow: hidden;
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 85%, black 15%);
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-transform: uppercase;
}

.copy-btn {
  background: color-mix(in oklab, var(--bg-soft) 85%, black 15%);
  border: 1px solid color-mix(in oklab, var(--line) 80%, black 20%);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 32px;
  min-width: 74px;
  padding: 0 12px;
  text-transform: uppercase;
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: color-mix(in oklab, var(--accent) 28%, var(--bg-soft) 72%);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line) 65%);
  transform: translateY(-1px);
}

.copy-btn:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 60%, white 40%);
  outline-offset: 2px;
}

.copy-btn.is-copied {
  background: color-mix(in oklab, var(--accent) 32%, var(--bg-soft) 68%);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line) 55%);
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
}

code {
  color: #d7ece2;
  font-family: "SF Mono", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.95rem);
  max-width: 16ch;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: color-mix(in oklab, var(--bg-soft) 90%, black 10%);
  border: 1px solid color-mix(in oklab, var(--line) 85%, black 15%);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: color-mix(in oklab, var(--bg-soft) 90%, black 10%);
  border: 1px solid color-mix(in oklab, var(--line) 85%, black 15%);
  border-radius: var(--radius);
  padding: 18px;
}

.steps h3 {
  font-size: 1.08rem;
}

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

.chips-scroll {
  padding-bottom: 8px;
  overflow-x: clip;
}

.chips {
  display: grid;
  gap: clamp(10px, 1.6vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  width: 100%;
}

.chips span {
  background: color-mix(in oklab, var(--panel) 88%, black 12%);
  border: 1px solid color-mix(in oklab, var(--line) 84%, black 16%);
  border-radius: 999px;
  color: var(--text);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  white-space: nowrap;
  width: 100%;
}

.adapter-chip {
  cursor: help;
  position: relative;
}

.adapter-chip::after,
.adapter-chip::before {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 12;
}

.adapter-chip::after {
  background: color-mix(in oklab, var(--bg-soft) 88%, black 12%);
  border: 1px solid color-mix(in oklab, var(--line) 84%, black 16%);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--text);
  content: attr(data-pm);
  font-size: 0.74rem;
  font-weight: 600;
  left: 50%;
  line-height: 1.35;
  max-width: min(220px, calc(100vw - 24px));
  min-width: 0;
  padding: 8px 10px;
  text-align: center;
  top: -8px;
  transform: translate(-50%, -100%) translateY(6px);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.adapter-chip::before {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid color-mix(in oklab, var(--line) 84%, black 16%);
  content: "";
  left: 50%;
  top: -8px;
  transform: translate(-50%, -2px);
}

.adapter-chip:hover::after,
.adapter-chip:hover::before,
.adapter-chip:focus-visible::after,
.adapter-chip:focus-visible::before {
  opacity: 1;
}

.adapter-chip:hover::after,
.adapter-chip:focus-visible::after {
  transform: translate(-50%, -100%) translateY(0);
}

.adapter-chip:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 55%, white 45%);
  outline-offset: 2px;
}

@media (hover: none), (pointer: coarse) {
  .adapter-chip {
    cursor: default;
  }

  .adapter-chip::after,
  .adapter-chip::before {
    content: none;
  }
}

.cta {
  background: linear-gradient(
    152deg,
    color-mix(in oklab, var(--accent) 24%, var(--bg-soft) 76%),
    color-mix(in oklab, var(--accent-2) 18%, var(--bg-soft) 82%)
  );
  border: 1px solid color-mix(in oklab, var(--line) 82%, black 18%);
  border-radius: calc(var(--radius) + 8px);
  margin-bottom: 58px;
  padding-left: 26px;
  padding-right: 26px;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 0;
}

.cta p {
  color: var(--muted);
  margin-top: 0;
  max-width: 64ch;
}

.site-footer {
  border-top: 1px solid color-mix(in oklab, var(--line) 80%, black 20%);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-bottom: 30px;
  padding-top: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 700;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 580ms ease, transform 580ms ease;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .intro-guillotine,
  .intro-blade {
    animation: none;
  }

  .intro-guillotine {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    column-gap: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: initial;
  }

  .site-nav {
    justify-content: center;
  }

  .hero {
    column-gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  }
}

@media (max-width: 780px) {
  :root {
    --header-offset: 106px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
    padding-bottom: 10px;
    padding-top: 14px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .site-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .hero {
    display: block;
  }

  .hero-side {
    margin-top: 34px;
  }

  .hero-demo img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 660px) {
  :root {
    --header-offset: 76px;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    row-gap: 0;
  }

  .site-nav {
    display: none;
  }

  .section {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .site-header,
  main,
  .site-footer {
    overflow-x: clip;
    padding-left: 10px;
    padding-right: 10px;
  }
}
