:root {
  color-scheme: light;
  --ink: #111426;
  --muted: #5c6175;
  --paper: #f7f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --line: #dcddec;
  --violet: #5b5cf0;
  --violet-dark: #4041bd;
  --violet-soft: #e8e8ff;
  --mint: #bff4d7;
  --mint-ink: #174f39;
  --amber: #ffd990;
  --shadow: 0 24px 70px rgba(35, 34, 92, 0.1);
  --radius: 22px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(91, 92, 240, 0.13), transparent 27rem),
    radial-gradient(circle at 92% 30%, rgba(191, 244, 215, 0.32), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 72, 118, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 72, 118, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: var(--violet-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--violet);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

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

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

code {
  padding: 0.12em 0.32em;
  border: 1px solid rgba(91, 92, 240, 0.16);
  border-radius: 6px;
  background: rgba(232, 232, 255, 0.7);
  font-size: 0.88em;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid #30334d;
  border-radius: 14px;
  background: #17192a;
  color: #f5f6ff;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.45rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.22rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.42rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 221, 236, 0.8);
  background: rgba(247, 247, 251, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  min-height: 68px;
  margin: 0 auto;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--violet);
  box-shadow: 7px 7px 0 var(--mint);
  transform: rotate(-4deg);
}

.brand-mark::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 6px;
  border-bottom: 3px solid white;
  border-left: 3px solid white;
  content: "";
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.nav-links a {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

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

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

.narrow {
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #c9c9ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--violet-dark);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ebd75;
  content: "";
  box-shadow: 0 0 0 4px rgba(46, 189, 117, 0.14);
}

.hero h1 span {
  color: var(--violet);
}

.lede {
  max-width: 760px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--mint);
}

.button:hover {
  background: var(--violet-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  box-shadow: none;
}

.hero-install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: 720px;
  margin-top: 2.5rem;
  border: 1px solid #30334d;
  border-radius: 16px;
  background: #17192a;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-install pre {
  border: 0;
  box-shadow: none;
}

.hero-install span {
  margin-right: 1.1rem;
  color: #aeb3cd;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin: 0 0 6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-strip > div {
  padding: 1.5rem;
}

.proof-strip > div + div {
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  display: block;
  font-size: 1.12rem;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 5.5rem 0;
}

.section.tint {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.section-label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--violet-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.13rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(35, 34, 92, 0.055);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-family: var(--mono);
  font-weight: 900;
}

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

.failure-path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 2rem;
}

.failure-path > div {
  position: relative;
  min-height: 145px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.failure-path > div:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.77rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--violet-dark);
  content: "→";
  font-size: 0.8rem;
  transform: translateY(-50%);
}

.failure-path > div:last-child {
  border-color: #91dcb4;
  background: #ecfff4;
}

.failure-path small {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--violet-dark);
  font-family: var(--mono);
  font-weight: 800;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.split-panel > div {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.split-panel > div + div {
  border-left: 1px solid var(--line);
  background: var(--violet-soft);
}

.check-list,
.x-list {
  padding: 0;
  list-style: none;
}

.check-list li,
.x-list li {
  position: relative;
  padding-left: 1.8rem;
}

.check-list li::before,
.x-list li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}

.check-list li::before {
  color: #178653;
  content: "✓";
}

.x-list li::before {
  color: #ad4153;
  content: "×";
}

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

.install-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.install-card pre {
  flex: 1;
  font-size: 0.77rem;
}

.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--violet);
  border-radius: 0 14px 14px 0;
  background: var(--violet-soft);
}

.callout.warning {
  border-left-color: #d68a00;
  background: #fff5dc;
}

.more-link {
  margin-top: 1.5rem;
}

.article-hero {
  padding: 5.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.article-hero .lede {
  max-width: 700px;
}

.article {
  padding: 3.5rem 0 6rem;
}

.article h2 {
  margin-top: 3.8rem;
  padding-top: 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
}

.article h3 {
  margin-top: 2rem;
}

.article p,
.article li {
  color: #3f4457;
}

.article strong {
  color: var(--ink);
}

.article table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  font-size: 0.92rem;
}

.article th,
.article td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--violet-soft);
  color: var(--ink);
}

.article tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.faq-list details {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq-list details p {
  margin: 0.9rem 0 0;
}

.source-list {
  font-size: 0.92rem;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  font-size: 0.88rem;
}

.footer-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 880px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
    gap: 0.55rem;
  }

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

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

  .grid-3,
  .install-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .failure-path > div::after {
    display: none !important;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 4.5rem;
  }

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

  .hero-install span {
    display: none;
  }

  .proof-strip,
  .grid-2,
  .grid-4,
  .failure-path,
  .split-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip > div + div,
  .split-panel > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .nav-links a {
    padding-left: 0;
    padding-right: 0.9rem;
  }

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

  .article table {
    display: block;
    overflow-x: auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
