:root {
  color-scheme: dark;
  --bg: #09080f;
  --bg-soft: #11101a;
  --surface: rgba(19, 17, 29, 0.82);
  --surface-strong: #171421;
  --line: rgba(234, 229, 244, 0.13);
  --line-strong: rgba(234, 229, 244, 0.24);
  --text: #f4f0f7;
  --muted: #a7a0b1;
  --quiet: #746d7f;
  --pink: #ea55cf;
  --violet: #9f6bf4;
  --cyan: #78c9e8;
  --green: #80d3aa;
  --max: 1200px;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% -10%, rgba(177, 73, 211, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(65, 141, 183, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 8, 15, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(234, 85, 207, 0.18), rgba(120, 201, 232, 0.08));
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 22px;
  box-shadow: inset 0 0 22px rgba(234, 85, 207, 0.08);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  color: var(--muted);
  font-size: 13px;
}

.site-nav a,
.header-link,
.site-footer nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.header-link:hover,
.site-footer nav a:hover {
  color: var(--text);
}

.header-link {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 96px 0 110px;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}

.ambient-one {
  top: 18%;
  right: 14%;
  background: var(--pink);
}

.ambient-two {
  right: -10%;
  bottom: 14%;
  background: var(--cyan);
}

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, var(--pink), var(--violet) 52%, var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero-lead strong {
  color: var(--text);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #111019;
  box-shadow: 0 10px 36px rgba(235, 228, 244, 0.12);
}

.button-primary:hover {
  background: white;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(234, 85, 207, 0.48);
  background: rgba(234, 85, 207, 0.06);
}

.microcopy {
  margin: 18px 0 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.terminal-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(13, 12, 20, 0.82);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48), 0 0 80px rgba(159, 107, 244, 0.08);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.terminal-shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.045), transparent 35%);
}

.terminal-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
}

.terminal-lights {
  display: flex;
  gap: 6px;
}

.terminal-lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #493f55;
}

.terminal-lights i:first-child {
  background: var(--pink);
}

.terminal-lights i:nth-child(2) {
  background: var(--violet);
}

.terminal-lights i:last-child {
  background: var(--cyan);
}

.terminal-status {
  justify-self: end;
  color: var(--green);
  letter-spacing: 0.12em;
}

.terminal-body {
  padding: clamp(24px, 4vw, 42px);
  font-family: var(--mono);
  font-size: clamp(12px, 1.15vw, 14px);
}

.terminal-body p {
  margin-bottom: 14px;
}

.prompt {
  margin-right: 10px;
  color: var(--pink);
}

.terminal-muted {
  color: var(--quiet);
}

.terminal-accent {
  color: var(--cyan);
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.terminal-grid b {
  color: var(--text);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip p {
  margin: 0;
}

.proof-strip a:hover {
  color: var(--text);
}

.proof-strip > span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pink);
}

.section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 10vw, 150px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(110px, 14vw, 190px) 0;
}

.section-heading h2,
.closing h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
}

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

.feature-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.feature-number {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 11px;
}

.feature-list h3,
.contribution-tracks h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 650;
}

.feature-list article div p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.showcase {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}

.showcase img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.42);
}

.install {
  align-items: center;
}

.install-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.install-tabs {
  display: flex;
  gap: 24px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
}

.install-tabs button {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.install-tabs .active {
  border-bottom: 1px solid var(--pink);
  color: var(--text);
}

.install-tabs button:hover {
  color: var(--text);
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
}

.copy-row code {
  min-width: 0;
  overflow-x: auto;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 17px);
  white-space: nowrap;
}

.copy-row button {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
}

.copy-row button:hover {
  border-color: rgba(120, 201, 232, 0.45);
  color: var(--text);
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.install-links a:hover,
.text-link:hover {
  color: var(--cyan);
}

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

.contribution-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.contribution-tracks a {
  min-height: 230px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.012);
  transition: background 180ms ease;
}

.contribution-tracks a:hover {
  background: rgba(234, 85, 207, 0.045);
}

.contribution-tracks span,
.contribution-tracks b {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.contribution-tracks h3 {
  margin-top: 38px;
}

.contribution-tracks p {
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
}

.contribution-tracks a:hover b {
  color: var(--pink);
}

.contribute-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}

.text-link {
  color: var(--muted);
  font-size: 13px;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(110px, 15vw, 210px) 0;
  text-align: center;
}

.closing h2 {
  max-width: 850px;
}

.closing > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
  padding: 48px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
}

.site-footer > div p {
  margin: 14px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
  }

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

  .terminal-shell {
    width: min(700px, 100%);
    transform: none;
  }

  .section {
    gap: 56px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding-inline: 18px;
  }

  .header-link {
    font-size: 0;
  }

  .header-link::after {
    content: "GitHub ↗";
    font-size: 11px;
  }

  .hero,
  .section,
  .showcase,
  .closing {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    gap: 48px;
    padding: 68px 0 84px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .proof-strip > span {
    display: none;
  }

  .proof-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: center;
  }

  .section {
    padding: 96px 0;
  }

  .section-heading h2,
  .closing h2 {
    font-size: 39px;
  }

  .feature-list article {
    grid-template-columns: 36px 1fr;
    gap: 14px;
  }

  .showcase img {
    min-height: 210px;
    object-fit: cover;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }

  .copy-row button {
    justify-self: start;
  }

  .contribution-tracks {
    grid-template-columns: 1fr;
  }

  .contribution-tracks a {
    min-height: 205px;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
