:root {
  --jay-blue: #1686ee;
  --jay-blue-deep: #0757b8;
  --jay-black: #090f16;
  --jay-ink: #121923;
  --jay-white: #f5f8fc;
  --jay-buff: #d4c0a0;
  --jay-rose: #be7668;
  --jay-slate: #8b9aa8;
  --page-bg:
    radial-gradient(circle at 15% 8%, rgba(22,134,238,.24), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(190,118,104,.16), transparent 28rem),
    linear-gradient(135deg, #0a111b 0%, #121b28 42%, #0a1420 100%);
  --text: var(--jay-white);
  --muted: rgba(245,248,252,.78);
  --soft: rgba(245,248,252,.58);
  --surface: rgba(245,248,252,.06);
  --surface-strong: rgba(5,8,12,.72);
  --link: #7dc0ff;
  --line: rgba(245, 248, 252, .14);
  --shadow: rgba(0, 0, 0, .35);
  color-scheme: dark light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
.site-header, footer {
  width: calc(100vw - 32px);
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header { padding: 22px 0; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 1.5rem; }
.mark img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 12px 18px var(--shadow)); }
nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
nav a, footer a, .theme-toggle { text-decoration: none; color: var(--muted); border: 1px solid transparent; border-radius: 999px; padding: 9px 13px; }
.theme-toggle { background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.menu-toggle { display: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; font: inherit; font-weight: 800; cursor: pointer; }
nav a:hover, nav a[aria-current="page"], footer a:hover, .theme-toggle:hover { border-color: var(--line); background: var(--surface); color: var(--text); }
main { width: calc(100vw - 32px); max-width: 1120px; margin: 0 auto; }
.page { padding: 36px 0 64px; }
.page > h1:first-of-type { font-size: clamp(1.65rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -.02em; font-weight: 800; margin: 0 0 18px; max-width: 620px; }
.page > p:first-of-type { font-size: clamp(1.08rem, 1.7vw, 1.38rem); color: var(--muted); max-width: 760px; line-height: 1.6; }
.hero-panel {
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(42px, 8vw, 84px) 0 34px;
}
.hero-panel h1 {
  width: min(100%, 980px);
  min-width: 0;
  font-size: clamp(2.1rem, 7.8vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.055em;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.hero-panel p {
  width: min(100%, 790px);
  min-width: 0;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  color: var(--muted);
  line-height: 1.55;
  margin: 0 auto 34px;
}
.install-switch { width: 100%; max-width: 1020px; margin: 8px auto 0; }
.install-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 30px);
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: -.02em;
}
.install-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  padding: 0;
}
.install-tabs button[aria-selected="true"] { color: var(--text); }
.install-tabs button:focus-visible { outline: 2px solid var(--link); outline-offset: 6px; border-radius: 8px; }
.install-tabs span { color: var(--soft); }
.install-command-box[hidden] { display: none; }
.install-command-box { position: relative; }
.install-command {
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  min-height: 84px;
  margin: 0;
  border-radius: 14px;
  border-color: rgba(245, 248, 252, .22);
  background: rgba(5, 8, 12, .58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 24px 70px var(--shadow);
}
.install-command code {
  font-size: clamp(.82rem, 1.75vw, 1.16rem);
  color: var(--soft);
  white-space: pre;
}
.copy-command {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 248, 252, .1);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  padding: 7px 11px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.copy-command:hover { background: var(--surface); border-color: rgba(245, 248, 252, .3); transform: translateY(-1px); }
.copy-command:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.copy-command[data-copied="true"] { color: var(--jay-buff); }
.page > .hero-logo { display: none; }
.split-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 42px;
}
.feature-card h2 { margin-top: 0; }
.feature-card pre { margin-bottom: 0; }
.hero-logo { width: min(360px, 34vw); float: right; margin: -8px -8px 16px 32px; filter: drop-shadow(0 34px 52px var(--shadow)); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); letter-spacing: -.01em; font-weight: 800; margin: 46px 0 14px; }
h3 { margin-top: 34px; color: var(--jay-buff); letter-spacing: 0; }
p, li { line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
ul { display: grid; gap: 10px; padding-left: 22px; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: .12rem .36rem; color: var(--text); }
pre { overflow: auto; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 24px 60px var(--shadow); }
pre code { background: none; border: 0; padding: 0; }
.page a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .2em; }
.nowrap { white-space: nowrap; }
.start-here p { max-width: none; }
.page::after { content: ""; display: block; clear: both; }
.brand-grid, .swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 22px 0; }
.card, .swatch { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: var(--surface); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.brand-asset { display: grid; gap: 12px; text-decoration: none; }
.brand-asset img { width: 100%; height: 180px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,.9); padding: 14px; }
.brand-asset strong { color: var(--text); }
.brand-asset code { display: block; overflow-wrap: anywhere; }
.brand-asset-wide { grid-column: span 2; }
.brand-asset-wide img { height: 220px; object-fit: cover; }
.swatch strong { display: block; margin-top: 72px; }
.docs-with-toc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.commands-reference { min-width: 0; }
.commands-reference h2 {
  border-top: 1px solid var(--line);
  padding-top: 42px;
  scroll-margin-top: 24px;
}
.commands-reference h2:first-of-type { border-top: 0; padding-top: 0; }
.toc {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 16px;
  margin-top: 42px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.toc summary { display: block; margin: 2px 0 10px; font-weight: 800; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; }
.toc-search { display: block; margin: 0 0 12px; }
.toc-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.toc-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
}
.toc-search input::placeholder { color: var(--soft); }
.toc-links { display: grid; gap: 2px; }
.toc a {
  display: block;
  border-radius: 12px;
  color: var(--muted);
  padding: 7px 9px;
  text-decoration: none;
}
.toc a:hover, .toc a[aria-current="page"] { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--soft); }
footer > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
footer > span:first-child a { padding: 0; }
footer span:last-child { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: flex-end; flex: 0 0 auto; }
.footer-resource { display: inline-flex; align-items: center; gap: 8px; }
.footer-icon { display: none; }

@media (prefers-color-scheme: light) {
  :root {
    --page-bg:
      radial-gradient(circle at 15% 8%, rgba(22,134,238,.18), transparent 30rem),
      radial-gradient(circle at 88% 0%, rgba(212,192,160,.36), transparent 28rem),
      linear-gradient(135deg, #f8fbff 0%, #eef5fb 44%, #f7f1e8 100%);
    --text: #0b1220;
    --muted: rgba(11,18,32,.72);
    --soft: rgba(11,18,32,.56);
    --surface: rgba(255,255,255,.66);
    --surface-strong: rgba(255,255,255,.78);
    --link: #0757b8;
    --line: rgba(11,18,32,.14);
    --shadow: rgba(31,47,70,.18);
  }
}

:root[data-theme="light"] {
  --page-bg:
    radial-gradient(circle at 15% 8%, rgba(22,134,238,.18), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(212,192,160,.36), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef5fb 44%, #f7f1e8 100%);
  --text: #0b1220;
  --muted: rgba(11,18,32,.72);
  --soft: rgba(11,18,32,.56);
  --surface: rgba(255,255,255,.66);
  --surface-strong: rgba(255,255,255,.78);
  --link: #0757b8;
  --line: rgba(11,18,32,.14);
  --shadow: rgba(31,47,70,.18);
}

:root[data-theme="dark"] {
  --page-bg:
    radial-gradient(circle at 15% 8%, rgba(22,134,238,.24), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(190,118,104,.16), transparent 28rem),
    linear-gradient(135deg, #0a111b 0%, #121b28 42%, #0a1420 100%);
  --text: var(--jay-white);
  --muted: rgba(245,248,252,.78);
  --soft: rgba(245,248,252,.58);
  --surface: rgba(245,248,252,.06);
  --surface-strong: rgba(5,8,12,.72);
  --link: #7dc0ff;
  --line: rgba(245, 248, 252, .14);
  --shadow: rgba(0, 0, 0, .35);
}

@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
  .site-header, main, footer { width: calc(100vw - 32px); }
  .page { padding-top: 18px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; grid-column: 1 / -1; width: 100%; justify-content: stretch; }
  .site-nav[data-open="true"] { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .site-nav a, .site-nav .theme-toggle { width: 100%; text-align: left; }
  footer { gap: 12px; }
  footer span:last-child { justify-content: flex-end; gap: 10px; }
  .footer-resource { width: 44px; height: 44px; justify-content: center; padding: 0; border-color: var(--line); background: var(--surface); }
  .footer-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .footer-icon { display: block; width: 21px; height: 21px; font-size: .72rem; font-weight: 900; letter-spacing: -.04em; line-height: 21px; text-align: center; }
  .footer-github .footer-icon { width: 22px; height: 22px; }
  .docs-with-toc { display: flex; flex-direction: column; gap: 0; }
  .commands-reference { width: 100%; max-width: 100%; overflow: hidden; padding-top: 18px; }
  .commands-reference p, .commands-reference li { max-width: 30ch; }
  .toc { order: -1; position: static; max-height: none; margin: 0 0 16px; width: 100%; }
  .toc summary { display: flex; align-items: center; justify-content: space-between; margin: 0; }
  .toc summary::after { content: "+"; color: var(--soft); font-weight: 700; }
  .toc details[open] summary { margin-bottom: 12px; }
  .toc details[open] summary::after { content: "−"; }
  .hero-logo { float: none; display: block; width: min(260px, 72vw); margin: 0 auto 20px; }
  .split-cards { grid-template-columns: 1fr; }
  .install-command { display: block; width: 100%; min-width: 0; min-height: auto; padding: 16px; padding-right: 74px; overflow: hidden; }
  .copy-command { top: 10px; right: 10px; font-size: .75rem; padding: 6px 9px; }
  .install-switch { width: 100%; max-width: 100%; }
  .install-command code { display: block; font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; }
  .install-tabs { display: grid; grid-template-columns: 1fr auto 1fr; width: min(100%, 280px); margin: 0 auto 24px; font-size: .95rem; gap: 8px; }
  .install-tabs button { white-space: normal; }
  .brand-asset-wide { grid-column: span 1; }
  .brand-asset img, .brand-asset-wide img { height: 160px; object-fit: contain; }
  .hero-panel { display: block; width: 100%; max-width: 100%; margin-left: 0; transform: none; overflow: hidden; padding-top: 0; text-align: left; }
  .hero-panel h1 { width: 100%; max-width: none; font-size: clamp(1.9rem, 8.5vw, 2.55rem); letter-spacing: -.03em; margin-left: 0; margin-right: 0; }
  .hero-panel p { width: 100%; max-width: none; font-size: clamp(1rem, 4.2vw, 1.12rem); overflow-wrap: normal; margin-left: 0; margin-right: 0; }
}
