@font-face {
  font-family: Audiowide;
  src: url('assets/Audiowide-Regular.ttf') format('truetype');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --base: #101116;
  --surface: #181a22;
  --edge: #2e303e;
  --text: #f2f1f8;
  --muted: #b8bacb;
  --accent: #daaeff;
  --cyan: #70e7ed;
  --pink: #f69bad;
  --display: Georgia, 'Times New Roman', serif;
  --brand: Audiowide, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--base); color: var(--text); font: 1rem/1.57 Inter, 'Segoe UI', sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 10; background: var(--cyan); color: var(--base); padding: .55rem .9rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(90%, 1320px); margin: 0 auto; }
.mast { position: sticky; top: 0; z-index: 5; background: #0c0c14f5; border-bottom: 1px solid var(--edge); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 65px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 1.07rem var(--brand); }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: clamp(.52rem, 2vw, 1.8rem); }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.nav nav a:hover { color: var(--cyan); }
.nav-toggle { display: none; }
.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 47%, #252a4a 0%, #191b2a 34%, transparent 65%),
    #101116;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: clamp(525px, 43vw, 645px);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-preview { min-width: 0; margin: 0; }
.hero-window {
  overflow: hidden;
  background: #13151a;
  border: 1px solid #666986;
  border-radius: 12px;
  box-shadow: 0 25px 60px #060710ab, 0 0 55px #9064d730;
}
.window-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .53rem .72rem;
  color: #dce0ee;
  background: #20222f;
  border-bottom: 1px solid #404459;
  font-size: .79rem;
}
.window-chrome > span { display: flex; align-items: center; gap: .35rem; }
.window-chrome .window-actions { color: #a9acc0; letter-spacing: .04em; }
.hero-app-image { display: block; width: 100%; height: auto; }
.hero-preview figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .65rem; }
.hero-preview figcaption span:last-child { color: #b7a3d7; }
.hero-link { color: #e4dbee; font-size: .93rem; text-decoration-color: #756689; }
.hero-link:hover { text-decoration-color: var(--accent); }
.windows-mark { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; }
.windows-mark i { height: 6px; width: 6px; background: currentColor; }
.nav .nav-download { padding: .38rem .9rem; border: 1px solid #5a526b; border-radius: 5px; color: #e9dcf8; }
.eyebrow { display: flex; align-items: center; gap: .68rem; margin: 0 0 1rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .145em; font-size: .76rem; font-weight: 680; }
.eyebrow span { width: 26px; height: 3px; background: linear-gradient(90deg,#fa547f,var(--accent)); transform: skewX(-28deg); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 {
  font-size: clamp(4rem, 6.2vw, 6.85rem);
  letter-spacing: -.073em;
  line-height: .96;
  margin-bottom: 1.25rem;
}
h1 em { color: #ddc0fb; font-weight: 400; }
.hero-copy > p:not(.eyebrow):not(.build-meta) {
  color: #c8c9d6;
  max-width: 390px;
  font-size: clamp(1.03rem, 1.35vw, 1.15rem);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .68rem; margin: 1.55rem 0 .8rem; }
.button, .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: fit-content; border: 1px solid #59556e; border-radius: 6px; padding: .66rem 1rem; text-decoration: none; font: 650 .93rem/1.25 'Segoe UI',sans-serif; cursor: pointer; }
.primary { position: relative; overflow: hidden; color: #171020; background: #e1baff; border-color: #e1baff; }
.primary::after { content: ''; position: absolute; top: 0; bottom: 0; width: 24%; left: -40%; transform: skewX(-30deg); background: #fff6; transition: left .45s ease; }
.primary:hover::after { left: 118%; }
.primary:hover { background: #f0d7ff; }
.quiet, .nav-toggle { background: #161523a8; color: var(--text); }
.quiet:hover { border-color: var(--cyan); }
.giticon { width: 1rem; height: 1rem; filter: invert(1); }
.build-meta, .fine, figcaption { font-size: .84rem; color: var(--muted); }
.build-meta span { padding: 0 .2rem; }
.spec-band { background: #12121c; border-block: 1px solid var(--edge); }
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); padding: 1.25rem 0; }
.spec-grid > div { padding-left: 10%; border-left: 1px solid var(--edge); }
.spec-grid > div:first-child { padding-left: 0; border-left: 0; }
.spec-grid strong, .spec-grid span { display: block; }
.spec-grid strong { font: clamp(1.15rem,1.82vw,1.65rem) var(--display); }
.spec-grid span { color: var(--muted); margin-top: .28rem; font-size: .84rem; }
.section { padding-block: clamp(3.5rem,6.15vw,6rem); }
section[id]:not(.wrap) { scroll-margin-top: 54px; }
h2 { font-size: clamp(2rem,3.9vw,4.1rem); line-height: 1.12; letter-spacing: -.045em; }
h3 { font-size: 1.18rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 1.9rem; }
.section-head > p { color: var(--muted); max-width: 432px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .85rem; margin-top: 1.85rem; }
.feature-grid article, .package, .keys, .diagram li { border: 1px solid var(--edge); background: var(--surface); padding: 1.25rem; border-radius: 9px; }
.feature-grid article { transition: border-color .18s, box-shadow .18s; }
.feature-grid article:hover, .tile:hover { border-color: #9e66cd; box-shadow: 0 0 22px #742c9b34; }
.feature-icon { display: block; font-size: 1.5rem; color: var(--accent); margin-bottom: .45rem; }
.feature-grid p, .package p:not(.eyebrow), .guide-grid p, .section-copy, .diagram span, .custom-grid p, details p { color: var(--muted); margin: .45rem 0 0; }
.gallery-section, .performance, .engine, .faq { background: #10101b; border-block: 1px solid var(--edge); }
.collection-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.collection-filters button { border: 1px solid #42405b; padding: .43rem .76rem; border-radius: 30px; background: #171726; color: var(--muted); font: 600 .9rem 'Segoe UI',sans-serif; cursor: pointer; }
.collection-filters button[aria-pressed=true] { color: #1b1226; background: var(--accent); border-color: var(--accent); }
.wallpapers { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.tile { display: block; width: 100%; padding: 0; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--edge); border-radius: 8px; text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.tile img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #2b1d43; }
.tile span { display: block; padding: .68rem .78rem .82rem; font: 650 .96rem/1.35 'Segoe UI',sans-serif; }
.tile small { display: block; color: var(--accent); font-size: .75rem; margin-bottom: .2rem; }
.fine { margin-top: .9rem; }
.download-grid, .custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.package { padding: clamp(1.15rem,3vw,1.95rem); }
.package.featured { background: linear-gradient(145deg,#221635,#151426 70%); border-color: #684885; }
.package h3 { font: clamp(1.2rem,2.2vw,1.9rem) var(--display); }
.package .button { margin-top: 1.05rem; }
.package-meta { font-weight: 650; }
.notice { padding: .95rem 1.15rem; border-left: 3px solid var(--cyan); background: #151b27; color: #dad9e8; margin-top: 1rem; }
code, kbd { font-size: .92em; color: #eed0ff; }
details { margin-top: .85rem; border-top: 1px solid var(--edge); padding-top: .75rem; }
summary { cursor: pointer; font-weight: 650; }
#release-sha { overflow-wrap: anywhere; }
.guide-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5%; align-items: start; margin-top: 1.8rem; }
.guide-grid img { width: 100%; height: auto; border: 1px solid var(--edge); border-radius: 9px; }
figcaption { margin-top: .32rem; }
.steps { padding-left: 1.55rem; margin: 0; }
.steps li { padding-left: .25rem; margin-bottom: 1rem; }
.steps li::marker { font: .96rem var(--display); color: var(--accent); }
.keys { padding: .9rem; }
.keys span { padding: 0 .2rem; }
kbd { background: #211d32; padding: .1rem .27rem; border: 1px solid #534761; border-radius: 3px; }
.section-copy { max-width: 77ch; margin-top: .9rem; }
.diagram { display: grid; grid-template-columns: repeat(4,1fr); gap: .95rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.diagram li { position: relative; border-top: 2px solid var(--accent); }
.diagram.animate li { animation: reveal .44s ease both; }
.diagram.animate li:nth-child(2) { animation-delay: .12s; }
.diagram.animate li:nth-child(3) { animation-delay: .24s; }
.diagram.animate li:nth-child(4) { animation-delay: .36s; }
@keyframes reveal { from { transform: translateY(9px); opacity: .45; } to { transform: none; opacity: 1; } }
.diagram b, .diagram span { display: block; }
.custom-grid { margin-top: 1.35rem; }
pre { margin: .75rem 0; padding: .8rem 1rem; overflow: auto; background: var(--surface); border: 1px solid var(--edge); border-radius: 6px; }
.faq details { max-width: 940px; }
footer { display: flex; align-items: center; gap: 1.3rem; padding-block: 1.4rem; color: var(--muted); font-size: .83rem; }
footer p { flex: 1; }
dialog { width: min(92%,690px); max-height: 90vh; padding: 0; color: var(--text); background: var(--surface); border: 1px solid #69517e; border-radius: 11px; }
dialog::backdrop { background: #07060bcf; }
dialog img, dialog video { display: block; width: 100%; }
dialog > img { max-height: 40vh; object-fit: cover; background: #181424; }
dialog video { max-height: 36vh; margin-top: .75rem; }
.dialog-content { padding: 1.1rem 1.5rem; }
.dialog-content h2 { font-size: clamp(1.4rem,3vw,2.35rem); }
.dialog-content p { margin-bottom: .65rem; }
.close-dialog { position: absolute; top: .7rem; right: .7rem; width: 35px; height: 35px; border: 1px solid #af9dc0; border-radius: 50%; background: #11101bd9; color: white; font-size: 1.45rem; cursor: pointer; }
.table-scroll { overflow-x: auto; border: 1px solid var(--edge); border-radius: 8px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); }
th, td { padding: .65rem .7rem; text-align: left; border-bottom: 1px solid var(--edge); }
thead { background: #221a32; }
td meter { width: 6rem; margin-left: .4rem; }
@media (max-width: 920px) {
  .feature-grid, .wallpapers { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nav nav a { font-size: .8rem; }
  .hero-content { gap: 1.8rem; }
}
@media (max-width: 715px) {
  .nav-toggle { display: inline-flex; }
  .nav nav { display: grid; grid-template-columns: 1fr 1fr; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 5%; background: #151523; border-bottom: 1px solid var(--edge); }
  .nav-toggle[aria-expanded=false] + nav { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 1.7rem; min-height: auto; }
  .hero-preview { max-width: 590px; }
  h1 { font-size: clamp(3.35rem, 11vw, 4.65rem); }
  .feature-grid, .wallpapers, .diagram, .spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spec-grid { row-gap: .9rem; }
  .spec-grid > div:nth-child(3) { padding-left: 0; border: 0; }
  .download-grid, .guide-grid, .custom-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  footer { flex-wrap: wrap; }
  footer p { flex-basis: 80%; }
}
@media (max-width: 390px) {
  .hero-preview figcaption { font-size: .76rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { padding: .85rem; }
  .tile span { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.gallery-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; gap: .6rem; color: var(--muted); font-size: .84rem; }
.guide-shot { display: grid; place-items: center; aspect-ratio: 1184/792; overflow: hidden; border-radius: 9px; background: #10101c; }
.guide-shot img { width: 100%; height: 100%; max-height: min(45vw,430px); object-fit: contain; border: 0; }
.guide-controls { margin: .8rem 0 1rem; }
.tile img { transition: transform .3s ease; }
.tile:hover img { transform: scale(1.04); }
@media (max-width: 715px) { .guide-shot img { max-height: 57vw; } }

caption { text-align: left; padding: .7rem; color: var(--muted); font-size: .86rem; }
meter { height: .62rem; border: 0; vertical-align: middle; }
meter::-webkit-meter-bar { background: #2c2840; border-color: #2c2840; }
meter::-webkit-meter-optimum-value { background: var(--cyan); }
meter.live::-webkit-meter-optimum-value { background: var(--accent); }
meter::-moz-meter-bar { background: var(--cyan); }
meter.live::-moz-meter-bar { background: var(--accent); }

.guide-grid > *, .custom-grid > *, .download-grid > * { min-width: 0; }
@media (min-width: 716px) { .nav-toggle { display: none; } }
