@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --surface: rgba(255,255,255,.1); --surface-soft: rgba(255,255,255,.05);
  --text: #fff; --muted: #e9d5ff; --line: rgba(255,255,255,.2);
  --purple: #c084fc; --link: #d8b4fe;
  --radius: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-height: 100vh; color: var(--text); background: linear-gradient(180deg,#0f0a1e 0%,#1a1040 25%,#2e1065 50%,#4c1d95 75%,#4c1d95 100%) fixed; font: 16px/1.7 'Poppins',system-ui,sans-serif; }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
h1,h2,h3,.brand { font-family: 'Poppins',system-ui,sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem,5.5vw,5rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.8rem,3.2vw,2.7rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 .65rem; }
p { margin: 0 0 1.2rem; max-width: 70ch; }
ul,ol { padding-left: 1.4rem; }
li { margin-bottom: .55rem; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px,calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { color: var(--link); font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--surface); padding: 10px 20px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
#site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.header-row { min-height: 82px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.7rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.brand span { background: linear-gradient(90deg,#c084fc,#f472b6); background-clip: text; -webkit-background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 500; padding: 10px 11px; border-radius: 12px; white-space: nowrap; }
.site-nav a:hover,.site-nav a[aria-current="page"] { background: rgba(147,51,234,.3); color: var(--link); }
.icon-button { border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; display: inline-grid; place-items: center; background: var(--surface); color: var(--text); flex-shrink: 0; }
.menu-button { display: none; border-radius: 12px; width: auto; padding-inline: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 23px; border: 1px solid transparent; border-radius: 999px; background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; text-decoration: none; font-weight: 600; line-height: 1.5; transition: filter .2s,box-shadow .2s; }
.button:hover { filter: brightness(1.1); box-shadow: 0 12px 30px rgba(102,126,234,.3); text-decoration: none; }
.button.secondary { color: var(--text); background: var(--surface); border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface); backdrop-filter: blur(20px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 20px; }
.stack { display: grid; gap: 20px; }
.page-intro { padding-block: 58px 35px; }
.page-intro h1 { font-size: clamp(2.5rem,4vw,3.7rem); }
.page-intro p { color: var(--muted); }
.prose { max-width: 850px; padding-bottom: 56px; }
.prose h2 { margin-top: 2.1rem; font-size: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p,.prose li { color: var(--muted); }
.prose section { margin-bottom: 24px; }
.panel.prose { padding-bottom: 30px; }
.panel.prose h2:first-child { margin-top: 0; }
details .prose { padding-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; }
th,td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px; }
th { background: rgba(147,51,234,.2); }
tr:hover { background: rgba(255,255,255,.05); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 19px 23px; }
details + details { margin-top: 12px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 16px 0 0; }
.changelog { max-width: 900px; }
.changelog .page-intro { padding-bottom: 12px; }
.changelog-release[open] { border-color: rgba(192,132,252,.55); }
.changelog-release > summary { font-size: 1.1rem; }
.changelog-meta { color: var(--muted); font-size: .85rem; font-weight: 400; margin-inline-start: .45rem; }
.changelog-meta > span + span::before { content: ' · '; }
.changelog-release-content { padding-top: 14px; }
.changelog-overview h3 { font-size: 1.1rem; margin: 1rem 0 .3rem; }
.changelog-overview p { margin: 0 0 1rem; }
.changelog-area { margin-top: 12px; padding: 14px 16px; background: var(--surface-soft); }
.changelog-changes { list-style: none; margin: 1rem 0 0; padding: 0; }
.changelog-change { border-top: 1px solid var(--line); margin: 0; padding: .85rem 0; }
.changelog-change:last-child { padding-bottom: 0; }
.changelog-change-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; margin: 0; font-size: 1rem; }
.changelog-change p { margin-top: .35rem; }
.changelog-details { margin: .55rem 0 0; color: var(--muted); }
.changelog-badge,.changelog-type { display: inline-block; border-radius: 999px; padding: .12rem .55rem; background: #462768; color: #f3e8ff; font-size: .75rem; font-weight: 600; }
.changelog-type[data-type="new"] { background: #174439; color: #c7f9e7; }
.changelog-type[data-type="fixed"] { background: #573819; color: #ffead1; }
.changelog-pending { border-inline-start: 3px solid var(--purple); padding-inline-start: .75rem; }
label { display: block; font-weight: 600; margin-bottom: 7px; }
input,select,textarea { width: 100%; background: var(--surface-soft); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; }
select option { background: #581c87; color: #fff; }
textarea { resize: vertical; }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: .9; }
#site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding-block: 32px; background: linear-gradient(135deg,#000,#581c87); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-row p { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .85rem; }
@media (max-width: 1080px) {
  .header-row { gap: 12px; }
  .site-nav a { padding-inline: 8px; font-size: .8rem; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .header-row { min-height: 72px; flex-wrap: wrap; }
  .menu-button { display: inline-grid; margin-left: auto; }
  .site-nav { display: none; order: 4; width: 100%; margin: 0; padding-bottom: 18px; flex-wrap: wrap; }
  .site-nav[data-open] { display: flex; }
  .site-nav a { padding: 10px 13px; font-size: .9rem; }
}
@media (max-width: 640px) {
  .panel { padding: 24px; }
  .footer-row { flex-direction: column; }
  .page-intro { padding-top: 38px; }
  .button { padding-inline: 18px; }
  .brand { font-size: 1.5rem; }
  .prose table { display: block; overflow-x: auto; }
}
@media (max-width: 380px) {
  .header-row { gap: 8px; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
