:root {
  color-scheme: dark;
  --bg: #080910;
  --bg-soft: #0d0f19;
  --panel: #121522;
  --panel-strong: #171b2d;
  --line: #ffffff14;
  --line-strong: #ffffff24;
  --text: #e9ebf5;
  --muted: #a8adc4;
  --muted-strong: #c3c8dc;
  --blue: #8fa8ff;
  --blue-strong: #6f8dff;
  --violet: #b18cff;
  --green: #76e0b6;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  --tok-key: #8fa8ff;
  --tok-string: #76e0b6;
  --tok-number: #ffca85;
  --tok-boolean: #c5a3ff;
  --tok-section: #d6a4ff;
  --tok-builtin: #b18cff;
  --tok-function: #8fd4ff;
  --tok-keyword: #ff9ecb;
  --tok-punct: #7d84a3;
  --tok-command: #8fd4ff;
  --tok-flag: #ffca85;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 560px at 8% 0%, #243461 0%, transparent 62%),
    radial-gradient(820px 560px at 96% 10%, #4b1f45 0%, transparent 58%),
    radial-gradient(760px 520px at 70% 100%, #123c3a 0%, transparent 62%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #c5d2ff;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #d9e2ff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 76px;
  background: linear-gradient(to bottom, #080910e6, #08091000);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px #ffffff14;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 550;
}

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

.site-nav .nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #ffffff08;
}

.site-nav .nav-github svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 56px;
  padding: 62px 0 92px;
}

.hero-copy {
  max-width: 610px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #b9c7ff;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  background: #ffffff08;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px #76e0b6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 24px 0 20px;
  font-size: clamp(3rem, 6.1vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 780;
}

h1 span {
  color: var(--blue);
  background: linear-gradient(120deg, #8fa8ff 10%, #b18cff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 0.96rem;
  font-weight: 650;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  color: #081020;
  background: linear-gradient(135deg, #a9bbff, #8fa8ff 55%, #b18cff);
  box-shadow: 0 10px 30px #6f8dff2e;
}

.btn-primary:hover {
  color: #081020;
  filter: brightness(1.06);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #ffffff08;
}

.btn-ghost:hover {
  color: var(--text);
  background: #ffffff11;
  border-color: #ffffff3a;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.quick-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-visual {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff10, #ffffff04);
  box-shadow: 0 34px 90px #00000066;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #ffffff10;
}

.hero-visual figcaption {
  padding: 12px 8px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 740;
}

.section-head > p:last-child,
.split-copy > p,
.panel > p,
.install-note {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff0c, #ffffff04);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid #8fa8ff2e;
  border-radius: 12px;
  color: var(--blue);
  background: #8fa8ff0f;
}

.feature-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3,
.step h3,
.panel h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.feature p,
.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

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

.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff05;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: #081020;
  background: linear-gradient(135deg, #a9bbff, #b18cff);
  font-size: 0.9rem;
  font-weight: 800;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff0c, #ffffff04);
}

.panel pre {
  margin: 18px 0 0;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #05060bcc;
  line-height: 1.65;
  tab-size: 4;
}

pre code {
  color: #dbe3ff;
  font-size: 0.83rem;
}

.tok-key {
  color: var(--tok-key);
}

.tok-string {
  color: var(--tok-string);
}

.tok-number {
  color: var(--tok-number);
}

.tok-boolean {
  color: var(--tok-boolean);
}

.tok-section {
  color: var(--tok-section);
  font-weight: 650;
}

.tok-builtin {
  color: var(--tok-builtin);
}

.tok-function {
  color: var(--tok-function);
}

.tok-keyword {
  color: var(--tok-keyword);
}

.tok-punct {
  color: var(--tok-punct);
}

.tok-command {
  color: var(--tok-command);
}

.tok-flag {
  color: var(--tok-flag);
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.split-copy {
  position: sticky;
  top: 100px;
}

.split-copy .actions {
  margin-top: 24px;
}

.split-code {
  display: grid;
  gap: 16px;
}

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

.code-title {
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.code-window pre {
  border: 0;
  border-radius: 0;
  background: transparent;
}

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

.control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff05;
}

.control span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

kbd {
  min-width: 32px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #e6ebff;
  background: #ffffff0a;
  box-shadow: 0 2px 0 #00000044;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 650;
  text-align: center;
}

.cta-section {
  padding-bottom: 96px;
}

.cta {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(500px 200px at 15% 0%, #8fa8ff1c, transparent 70%),
    linear-gradient(145deg, #ffffff0d, #ffffff04);
}

.cta img {
  width: 56px;
  height: 56px;
  flex: none;
}

.cta h2 {
  margin-bottom: 4px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

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

.cta .btn {
  margin-left: auto;
  flex: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px 48px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-main p {
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-content: start;
  justify-content: flex-end;
}

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

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

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.footer-meta {
  margin: 0;
}

.footer-link,
.sponsor-link {
  color: var(--muted-strong);
}

.footer-link:hover,
.sponsor-link:hover {
  color: var(--text);
}

.heart {
  color: #ff7a9c;
}

.fork-note {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .split-copy {
    position: static;
  }

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

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 30px 0 64px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .feature-grid,
  .steps,
  .controls-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .cta .btn {
    margin-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .control span {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
