:root {
  --bg: #0a0f1e;
  --bg-soft: #0f1628;
  --panel: #141e36;
  --panel-soft: #0e1830;
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #dce8fb;
  --muted: #7f99c0;
  --accent: #a78bfa;
  --accent-strong: #7c3aed;
  --danger: #fca5a5;
  --radius-md: 0.95rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.35rem;
  --radius-pill: 999px;
  --font-heading: "Cormorant Garamond", Georgia, "Book Antiqua", Palatino, serif;
  --font-body: "Inconsolata", "Courier New", ui-monospace, monospace;
  --font-mono: "Inconsolata", "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 5% -12%, rgba(60, 30, 130, 0.32), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(30, 20, 80, 0.24), transparent 62%),
    linear-gradient(165deg, #050a18, #0a1022 48%, #080e1c);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

code,
pre {
  font-family: var(--font-mono);
}

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

a:hover {
  text-decoration: underline;
}

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

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(6, 10, 26, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand__dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.66);
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.78rem;
  font-weight: 700;
  line-height: 1;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.topnav a {
  color: #b9cceb;
}

.topnav__cta {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border-radius: 32px;
}

.topnav__cta:hover {
  text-decoration: none;
  background: var(--accent-strong);
  color: #fff;
}

main {
  display: block;
}

.hero {
  position: relative;
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, rgba(5, 8, 24, 0.4), rgba(6, 10, 28, 0.88) 70%),
    radial-gradient(circle at 86% 18%, rgba(100, 60, 220, 0.14), transparent 42%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: 1.9rem;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}

.kicker {
  margin: 0 0 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #b99eff;
  font-size: 0.9rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 10ch;
}

.hero-title__serif {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-title__mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
}

.lede {
  margin-top: 1.1rem;
  color: #bbcee9;
  max-width: 45ch;
  font-size: 1.23rem;
}

.hero__actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  font-size: 1rem;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--text);
  background: rgba(15, 23, 42, 0.32);
}

.note {
  color: #a8bfdf;
  margin-top: 1.15rem;
  font-size: 1rem;
}

.card.term {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(180deg, #080810 0%, #050508 100%);
  border-radius: 2.15rem;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(2, 2, 6, 0.72);
  padding: 0;
}

.term__bar {
  height: 2.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.84rem;
  font-size: 0.86rem;
  color: #9aa3b2;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.95) 0%, rgba(7, 7, 12, 0.98) 100%);
}

.dots {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
}

.dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: var(--radius-pill);
}

.dot--r {
  background: #ff6f7d;
}

.dot--y {
  background: #ffd06c;
}

.dot--g {
  background: #66d590;
}

.term__title {
  margin-left: auto;
}

.term__body {
  padding: 1.12rem;
  background:
    radial-gradient(circle at 50% 14%, rgba(167, 139, 250, 0.07), transparent 46%),
    linear-gradient(180deg, #050508 0%, #030306 100%);
}

.term__pre {
  margin: 0;
  font-size: 0.97rem;
  color: #dde3ec;
  overflow-x: auto;
  line-height: 1.55;
}

.section {
  padding: 2.1rem 0;
}

.section__grid {
  display: grid;
  gap: 1.08rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

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

.muted a:hover {
  color: #c4b5fd;
}

.card,
.command-card,
.issue {
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(24, 30, 58, 0.92), rgba(18, 24, 48, 0.95));
  padding: 1rem;
}

.card__title {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.08rem;
}

.install-options {
  display: grid;
  gap: 0.85rem;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.72rem;
  align-items: start;
  margin-bottom: 0.6rem;
}

pre {
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  border-radius: 32px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.48rem 0.72rem;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: rgba(167, 139, 250, 0.6);
}

.copy-btn.is-copied {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent-strong);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.step {
  border-left: 3px solid var(--accent);
  padding: 0.24rem 0 0.24rem 0.84rem;
}

.step__title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 1.16rem;
}

.command-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-card h3,
.issue h3 {
  margin-top: 0;
  margin-bottom: 0.58rem;
}

.command-card pre,
.issue p,
.issue code,
.links a,
.step code,
.step pre,
.note,
.lede,
.muted,
.topnav,
.footer {
  font-family: var(--font-body);
}

.issue h3 {
  color: var(--danger);
}

.issues {
  display: grid;
  gap: 0.85rem;
}

.issue p a {
  color: var(--accent);
}

.issue p a:hover {
  color: #c4b5fd;
}

.links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.74rem;
  font-size: 0.98rem;
  color: #c8d5ea;
  background: rgba(15, 23, 42, 0.46);
}

.links a:hover {
  color: var(--text);
  text-decoration: none;
  border-color: rgba(167, 139, 250, 0.58);
}

.footer {
  padding: 1.3rem 0 2rem;
  color: #9eb0cb;
}

.footer__inner {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.96rem;
}

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

@media (max-width: 900px) {
  .topbar {
    position: static;
  }

  .topbar__inner {
    flex-wrap: wrap;
    padding: 0.65rem 0;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 2.3rem;
    padding-bottom: 1.8rem;
  }

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

  h1 {
    max-width: 13ch;
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .lede {
    font-size: 1.12rem;
  }

  .brand__name {
    font-size: 1.56rem;
  }

  .card.term {
    border-radius: 1.55rem;
  }

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

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

  .copy-btn {
    width: 5.6rem;
  }
}
