:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #f7f3fd;
  background: #15121e;
  --muted: #cfc4de;
  --soft: #bda9d3;
  --purple: #d9bcff;
  --surface: #211a2d;
  --border: #483751;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.57; }
.wrap { width: min(calc(100% - 3.5rem), 1240px); margin-inline: auto; }
a { color: var(--purple); text-underline-offset: .22em; }
a:hover { color: #f6edff; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(2.45rem, 5.9vw, 5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.18rem; }
.hero h1 { line-height: 1.01; }
p { color: var(--muted); }
.skip { position: absolute; z-index: 2; left: .7rem; top: 1rem; padding: .5rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header, .site-footer { background: #171320; border-color: var(--border); border-style: solid; border-width: 0 0 1px; }
.site-footer { margin-top: clamp(2.6rem, 6vw, 5.4rem); border-width: 1px 0 0; }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.8rem; padding-block: 1.14rem; }
.masthead nav, .links { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.25rem; }
.masthead nav a { color: var(--muted); font-size: .91rem; text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: #f7efff; text-decoration: underline; }
.brand { color: #faf5ff; font-weight: 750; display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; }
.brand img { border-radius: 6px; }
.hero { background: radial-gradient(ellipse at 80% 20%, #30213c, transparent 67%), #1a1423; border-bottom: 1px solid var(--border); }
.hero-layout { display: grid; grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr); align-items: center; gap: clamp(1.3rem, 4vw, 3.2rem); padding-block: clamp(2.25rem, 5.65vw, 5.3rem); }
.hero-copy { display: grid; gap: .96rem; }
.hero h1 span { display: block; color: #d6aeff; }
.eyebrow { color: var(--purple); font-size: .92rem; font-weight: 710; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.65vw, 1.27rem); max-width: 65ch; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .4rem .05rem; }
.button, dialog button { display: inline-block; border-radius: .64rem; padding: .65rem .95rem; background: var(--purple); color: #221334; font-weight: 750; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.button:hover, dialog button:hover { background: #f3e4ff; color: #221334; }
.button.secondary { border-color: #866ba0; color: #f4e8ff; background: #261d33; }
.button.secondary:hover { background: #38294a; }
.hero .actions { gap: .72rem; }
.hero .button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.1rem; padding-inline: 1.1rem; border-radius: .76rem; }
.download-button { background: linear-gradient(135deg, #e9cdff, #bc94f4); box-shadow: 0 7px 24px #ae6ef63d; }
.download-button::before { content: "↓"; font-size: 1.28rem; line-height: 1; }
.hero .demo-button { background: #2a2039; border-color: #8d70a8; }
.hero .demo-button:hover { background: #403054; }
.demo-button::before { content: ""; width: 0; height: 0; border-block: .32rem solid transparent; border-left: .51rem solid #d9bcff; }
.small { color: var(--soft); font-size: .89rem; }
.hero-shot img, .feature-image img, .gallery img, video { width: 100%; border: 1px solid #5e4a74; border-radius: .84rem; background: #191422; }
.hero-shot a { display: block; border-radius: .84rem; }.hero-shot a:hover img { border-color: var(--purple); }
.hero-shot img { box-shadow: 0 19px 64px #0c0912a8; }
.hero-shot figcaption { margin-top: .64rem; color: var(--soft); font-size: .86rem; }
.hero-motion video { box-shadow: 0 19px 64px #0c0912a8; }
.block { padding-top: clamp(1.7rem, 4vw, 3.35rem); scroll-margin-top: 1rem; }
.block + .block { border-top: 1px solid var(--border); margin-top: clamp(1.7rem, 4vw, 3.35rem); }
.block h2 + p, .block h2 + .formats { margin-top: .68rem; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.cards article, .card, .release-card { padding: 1.2rem 1.25rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); }
.cards h2, .card h2 { font-size: 1.3rem; }
.feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.4rem; align-items: center; }
.feature .links { margin-top: .9rem; }
.feature p { margin: .55rem 0 1rem; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .42rem; margin-bottom: 1rem; }
.metrics > div { display: flex; flex-direction: column; border: 1px solid var(--border); background: #221930; border-radius: .56rem; padding: .68rem .7rem; }
.metrics dt { font-size: .8rem; color: var(--muted); }
.metrics dd { order: -1; font-weight: 770; color: var(--purple); font-size: clamp(1.02rem, 2.4vw, 1.65rem); font-variant-numeric: tabular-nums; margin-bottom: .25rem; white-space: nowrap; }
.section-header { margin-bottom: 1.08rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .65rem; }
.section-note { color: var(--soft); font-size: .93rem; }
video { width: 100%; max-width: 1080px; aspect-ratio: 16 / 9; }
video + .links { margin-top: .85rem; }
details { margin-top: .8rem; color: var(--muted); }
summary { cursor: pointer; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery a:hover img { border-color: var(--purple); }
.gallery figcaption { margin-top: .43rem; display: grid; gap: .2rem; font-size: .92rem; }
.gallery span { color: var(--muted); }
.lightbox { width: min(96vw, 1440px); max-width: unset; max-height: 93vh; background: #20192c; color: inherit; border: 1px solid #7d5e9b; border-radius: .85rem; padding: .8rem; }
.lightbox::backdrop { background: #0e0a16d9; }
.lightbox img { margin: .65rem auto; max-height: 70vh; width: 100%; object-fit: contain; }
.lightbox-header, .lightbox-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.lightbox-header h2 { font-size: 1.28rem; }
.formats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.formats a { display: grid; align-content: start; justify-items: center; gap: .3rem; min-height: 9.3rem; padding: 1rem .65rem; text-align: center; color: #faf4ff; background: radial-gradient(ellipse at 50% 0%, #352648, transparent 78%), #20192b; border: 1px solid #534066; border-radius: .95rem; text-decoration: none; }
.formats a:hover { border-color: var(--purple); background-color: #30223d; }
.formats a:hover strong { text-decoration: underline; }
.formats img { width: 4rem; height: 4rem; object-fit: contain; margin-bottom: .16rem; }
.formats span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.article { padding-top: clamp(2.3rem, 6vw, 4rem); max-width: 870px; }
.article h1 { font-size: clamp(2.35rem, 5.2vw, 4.15rem); }
.article .lead { margin-top: 1rem; }
.steps { padding-left: 1.35rem; }
.steps li { margin: 1.1rem 0 1.7rem; padding-left: .45rem; }
.steps h2, .release-card h2, .prose h2 { margin-bottom: .6rem; font-size: 1.5rem; }
.steps p { margin-bottom: .34rem; }
.release-card, .prose { margin-block: 1.4rem; }
.release-card .small { margin: .85rem 0; }
.hash { display: block; overflow-wrap: anywhere; word-break: break-word; color: #f4dbff; margin-block: .42rem .84rem; }
code { background-color: #2d2239; border-radius: .25rem; padding: .16rem .3rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (max-width: 850px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-shot { max-width: 650px; }
  .gallery, .formats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { padding-block: .8rem; }
  .masthead nav { gap: .4rem .7rem; }
  .masthead nav a { font-size: .8rem; }
  .cards, .feature, .gallery { grid-template-columns: 1fr; }
  .metrics > div { padding: .5rem .38rem; }
  .metrics dt { font-size: .74rem; }
  .hero-shot figcaption { line-height: 1.38; }
  .formats a { min-height: 8.5rem; padding: .85rem .45rem; }
  .formats img { width: 3.3rem; height: 3.3rem; }
}

#formats .section-note:last-child {margin-top:.9rem;}
