:root {
  color-scheme: light;
  --ink: #111114;
  --muted: #62636f;
  --line: rgba(17, 17, 20, 0.14);
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --violet: #7557df;
  --violet-dark: #6546cc;
  --violet-soft: rgba(117, 87, 223, 0.14);
  --green: #77ba87;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 0%, rgba(255, 255, 255, 0.94), transparent 19rem),
    radial-gradient(circle at 73% 46%, rgba(117, 87, 223, 0.18), transparent 13rem),
    linear-gradient(180deg, #f2f3f7 0%, #e7e8ee 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(17, 17, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 20, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  position: fixed;
  inset: auto -8vw 0 -8vw;
  z-index: -1;
  height: 23vh;
  content: "";
  background:
    radial-gradient(ellipse at center, rgba(10, 10, 13, 0.34), transparent 36%),
    linear-gradient(180deg, transparent, rgba(10, 10, 13, 0.12));
  filter: blur(2px);
}

a {
  color: inherit;
}

.guide-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: clamp(54px, 9vh, 110px);
}

.brand {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 7px rgba(117, 87, 223, 0.05);
}

.brand-word {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.48em;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav a,
.github-link {
  color: rgba(17, 17, 20, 0.74);
  text-decoration: none;
}

.github-link {
  justify-self: end;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 20px;
  border: 1px solid rgba(17, 17, 20, 0.34);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(30px, 7vw, 92px);
  align-items: end;
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.divider {
  width: 128px;
  height: 1px;
  margin: 28px 0 26px;
  background: linear-gradient(90deg, var(--line), var(--violet), var(--line));
}

.hero-copy,
.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
}

.hero-card,
.callout,
.content-card,
.step,
.link-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 28px;
}

.hero-card h2,
.content-card h2,
.section-heading {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-card p,
.content-card p,
.step p,
.callout p,
.link-card p {
  margin: 0;
  color: rgba(17, 17, 20, 0.58);
  font-size: 14px;
  line-height: 1.7;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}

.side-nav strong {
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.side-nav a {
  padding: 9px 10px;
  border-radius: 7px;
  color: rgba(17, 17, 20, 0.72);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.side-nav a[aria-current="page"],
.side-nav a:hover {
  background: var(--violet-soft);
  color: var(--ink);
}

.guide-content {
  display: grid;
  gap: 28px;
}

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

.link-card {
  display: grid;
  min-height: 180px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.link-card span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.link-card h2,
.link-card h3 {
  margin: 22px 0 12px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.content-card {
  padding: clamp(24px, 4vw, 38px);
}

.content-card h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.screenshot-figure {
  margin: 22px 0 0;
}

.screenshot-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 17, 20, 0.16);
  border-radius: 12px;
  background: rgba(17, 17, 20, 0.88);
  box-shadow: 0 24px 60px rgba(45, 46, 58, 0.18);
}

.screenshot-figure figcaption {
  margin-top: 10px;
  color: rgba(17, 17, 20, 0.52);
  font-size: 13px;
  line-height: 1.6;
}

.content-card ul,
.content-card ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: rgba(17, 17, 20, 0.68);
  line-height: 1.75;
}

.content-card code {
  padding: 2px 5px;
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(17, 17, 20, 0.82);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.code-sample {
  margin: 18px 0 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(17, 17, 20, 0.14);
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.88);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.65;
}

.badge-preview {
  display: inline-flex;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 20, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.badge-preview img {
  display: block;
  height: 28px;
}

.info-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  color: rgba(17, 17, 20, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.info-table th,
.info-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 17, 20, 0.1);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 32%;
  color: var(--ink);
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 20px;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(117, 87, 223, 0.3);
  border-radius: 999px;
  color: var(--violet);
  font-weight: 700;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.callout {
  padding: 22px 24px;
  border-color: rgba(117, 87, 223, 0.28);
  background: rgba(117, 87, 223, 0.09);
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--violet-dark);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

.related a,
.button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 20, 0.22);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.icon-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
}

.icon-card img,
.icon-card svg {
  width: 34px;
  height: 34px;
}

.icon-card svg {
  color: var(--violet-dark);
  stroke: currentColor;
}

.icon-card h3 {
  margin: 0;
  font-size: 15px;
}

.icon-card p {
  margin: 0;
  color: rgba(17, 17, 20, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.icon-card-attention {
  position: relative;
}

.icon-card-attention::after {
  position: absolute;
  top: 18px;
  left: 46px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fde047;
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.2);
  content: "";
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #896cf1, #6546cc);
  color: white;
  box-shadow: 0 20px 46px rgba(117, 87, 223, 0.22);
}

.page-footer {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: rgba(17, 17, 20, 0.46);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .github-link,
  .nav {
    justify-self: start;
  }

  .side-nav {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .guide-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 28px;
  }

  .nav {
    display: none;
  }

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

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

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