@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2"),
       url("fonts/geist-sans-latin-400-normal.woff") format("woff");
}

@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/geist-sans-latin-500-normal.woff2") format("woff2"),
       url("fonts/geist-sans-latin-500-normal.woff") format("woff");
}

@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2"),
       url("fonts/geist-sans-latin-600-normal.woff") format("woff");
}

@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/geist-sans-latin-700-normal.woff2") format("woff2"),
       url("fonts/geist-sans-latin-700-normal.woff") format("woff");
}

:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-raised: #f8f9fb;
  --surface-hover: #eef1f5;
  --border: #e1e5eb;
  --border-strong: #cbd3dd;
  --control-border: #758195;
  --text: #1b2430;
  --muted: #556274;
  --subtle: #5f6b7d;
  --accent: #6d4de0;
  --accent-strong: #5b2fcc;
  --accent-soft: #eee9fb;
  --action: #6d4de0;
  --action-hover: #5b2fcc;
  --on-action: #ffffff;
  --warning: #966200;
  --danger: #b93f52;
  --focus: #5b2fcc;
  --code-bg: #f8f9fb;
  --selection: #ded3ff;
  --font: "Geist Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  --max: 1180px;
  --radius-panel: 18px;
  --radius-card: 14px;
  --radius-control: 12px;
  --transition: 160ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161a20;
  --surface: #1e242d;
  --surface-raised: #232a34;
  --surface-hover: #29313c;
  --border: #2c3542;
  --border-strong: #3d4858;
  --control-border: #707b8b;
  --text: #eef1f5;
  --muted: #a3acb9;
  --subtle: #8b95a4;
  --accent: #8b5cf6;
  --accent-strong: #a78bfa;
  --accent-soft: #241f3d;
  --action: #6d4de0;
  --action-hover: #7c3aed;
  --on-action: #ffffff;
  --warning: #fbbf24;
  --danger: #fb7185;
  --focus: #a78bfa;
  --code-bg: #1a2028;
  --selection: #392f60;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

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

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

button,
summary,
a {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 0;
  max-width: 12ch;
  font-size: clamp(2.55rem, 6.4vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

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

code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

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

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 176px;
  height: auto;
}

.brand-logo--dark,
.theme-icon--sun {
  display: none;
}

[data-theme="dark"] .brand-logo--light,
[data-theme="dark"] .theme-icon--moon {
  display: none;
}

[data-theme="dark"] .brand-logo--dark,
[data-theme="dark"] .theme-icon--sun {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  gap: 7px;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.desktop-nav a svg,
.mobile-nav a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.icon-button,
.menu-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}

.icon-button:hover,
.menu-button:hover {
  background: var(--surface-hover);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-nav {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 45%);
}

.mobile-nav a {
  white-space: nowrap;
}

.hero {
  padding: clamp(56px, 8.4vw, 108px) 0 clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.kicker {
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-sub {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  gap: 9px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button--primary {
  background: var(--action);
  color: var(--on-action);
}

.button--primary:hover {
  background: var(--action-hover);
  color: var(--on-action);
}

.button--secondary {
  border-color: var(--control-border);
  background: var(--surface);
  color: var(--text);
}

.button--secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.hero-status {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.hero-panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.hero-mark {
  width: 76px;
  height: 76px;
}

.panel-title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.panel-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.panel-list strong {
  color: var(--text);
  font-weight: 600;
}

.section {
  padding: clamp(58px, 8vw, 102px) 0;
  border-top: 1px solid var(--border);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 28px 48px;
  align-items: end;
  margin-bottom: 40px;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.benefit-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 56px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--border);
}

.benefit-lead h3 {
  max-width: 17ch;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.benefit-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
}

.benefit-item {
  padding: 20px 0 24px;
  border-top: 1px solid var(--border);
}

.benefit-item dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.benefit-item dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.62;
}

.status-label {
  color: var(--warning);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.version-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.version-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.version-value {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.version-state {
  color: var(--subtle);
  font-size: 0.8125rem;
}

.version-state[data-state="error"] {
  color: var(--danger);
}

.version-state[data-state="ready"] {
  color: var(--muted);
}

.install-note {
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 0.8125rem;
}

.code-block {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--code-bg);
}

.code-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid var(--border);
}

.code-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.copy-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}

.copy-button:hover {
  background: var(--surface-hover);
}

.copy-button:disabled {
  opacity: 0.55;
}

.code-block pre {
  margin: 0;
  padding: 15px 14px 17px;
  overflow-x: auto;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code-block code {
  font-size: inherit;
}

.field-note {
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 0.8125rem;
}

.module {
  margin-top: 34px;
}

.module h3 {
  margin-bottom: 6px;
}

.module p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.module a {
  font-weight: 500;
}

.methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 30px;
}

.method {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.method h3 {
  margin-bottom: 5px;
}

.method p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.method a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.method code {
  color: var(--text);
  font-size: 0.84em;
}

.chain {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.chain > li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.chain > li:last-child {
  border-bottom: 1px solid var(--border);
}

.step {
  padding-top: 3px;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.chain h3 {
  margin-bottom: 6px;
}

.chain p {
  max-width: 74ch;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.chain-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.chain-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
}

.note {
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
}

.release-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 34px;
  height: 34px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-brand strong {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-meta {
  margin: 26px 0 0;
  color: var(--subtle);
  font-size: 0.75rem;
}

.code-page {
  padding: clamp(40px, 7vw, 72px) 0 clamp(54px, 8vw, 90px);
}

.code-page h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.code-page .section-lede {
  margin-top: 20px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.8125rem;
}

.page-meta code {
  color: var(--text);
}

.page-meta .is-error {
  color: var(--danger);
}

.code-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.code-toolbar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.code-toolbar a:hover {
  background: var(--surface-hover);
}

.bootstrap-code {
  max-height: 68vh;
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--code-bg);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.7;
  white-space: pre;
  tab-size: 2;
}

.bootstrap-code:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.noscript-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clipboard-helper {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .benefit-lead {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 0;
    max-width: 620px;
  }

  .section-head {
    align-items: start;
  }

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

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .brand-logo {
    width: 148px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .benefit-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-actions .button {
    flex: 1 1 220px;
  }

  .chain > li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .hero-sub,
  .section-lede {
    font-size: 0.9875rem;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-panel {
    padding: 22px;
  }

  .code-head {
    align-items: flex-start;
  }

  .copy-button {
    width: 100%;
  }

  .bootstrap-code {
    padding: 14px;
    font-size: 0.75rem;
  }

  .footer-links {
    gap: 0 12px;
  }
}

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

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

@media (max-width: 840px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}
