:root {
  color-scheme: dark;
  --bg: #080807;
  --surface: #10100e;
  --raised: #18160f;
  --text: #f5efe5;
  --muted: #b8aa98;
  --faint: #7f725f;
  --line: #302b21;
  --accent: #f0a619;
  --accent-dark: #352000;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { position: relative; margin: 0; min-width: 320px; background: var(--bg) url("assets/amber-background.png") center top / cover fixed no-repeat; color: var(--text); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,4,2,.08) 0%, rgba(8,8,7,.12) 42%, rgba(8,8,7,.58) 100%); }
body::after { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; box-shadow: inset 0 0 160px rgba(0,0,0,.42); }
a { color: inherit; }
.site-header, main, footer { position: relative; z-index: 1; width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; text-decoration: none; }
.brand-icon { display: block; width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.frequency, .scale-label, .eyebrow, .release-data, .alpha-badge { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.frequency { color: var(--faint); font-size: 11px; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(28px,4vw,38px); line-height: 1.15; letter-spacing: -.03em; }
.lead { max-width: 410px; margin: 0 auto; color: var(--muted); }
.download-section { display: flex; justify-content: center; padding: 64px 0 54px; }
.download { width: min(100%,540px); padding: 28px; border: 1px solid rgba(240,166,25,.24); border-radius: 14px; background: rgba(16,16,14,.88); text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(12px); }
.download-app-icon { display: block; width: 80px; height: 80px; margin: 0 auto 18px; border: 1px solid rgba(240,166,25,.34); border-radius: 20px; object-fit: cover; box-shadow: 0 0 30px rgba(240,166,25,.12); }
.download-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.download-meta .eyebrow { margin: 0; }
.alpha-badge { padding: 3px 7px; border: 1px solid rgba(240,166,25,.55); border-radius: 4px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.release-data { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border-block: 1px solid var(--line); text-align: left; }
.release-data div { padding: 14px 0; }
.release-data div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.release-data dt { color: var(--faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.release-data dd { margin: 4px 0 0; font-size: 15px; }
.checksum, .changelog { margin: 0 0 20px; text-align: left; }
.checksum-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--faint); font: 10px ui-monospace, monospace; letter-spacing: .1em; }
.checksum code { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.copy-button, .release-history-button, .release-history-close { border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--muted); font: inherit; cursor: pointer; }
.copy-button { padding: 4px 8px; color: var(--accent); font-size: 10px; }
.copy-button:hover, .release-history-button:hover, .release-history-close:hover { border-color: var(--accent); color: var(--text); }
.changelog { padding-left: 12px; border-left: 2px solid var(--accent); }
.changelog > span { color: var(--faint); font: 10px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.changelog ul { display: grid; gap: 6px; margin: 7px 0 0; padding-left: 17px; color: var(--muted); font-size: 13px; }
.release-history-button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 13px; font-size: 12px; font-weight: 650; }
.release-history-button span:last-child { color: var(--accent); font-size: 16px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 8px; font-weight: 750; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button-primary { background: var(--accent); color: var(--accent-dark); }
.button-primary:hover { background: #ffc04a; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(240,166,25,.2); }
.button-full { width: 100%; }
.button.is-disabled { opacity: .45; pointer-events: none; }
.notice, .release-error { margin: 14px 0 0; color: var(--faint); font-size: 12px; line-height: 1.55; text-align: left; }
.tuning-scale { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.scale-label { color: var(--faint); font-size: 10px; white-space: nowrap; }
.ticks { height: 18px; flex: 1; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(var(--line),var(--line)) center/100% 1px no-repeat; }
.ticks i { width: 1px; height: 7px; background: #466068; }
.ticks i:nth-child(2n) { height: 12px; }
.ticks .active { width: 2px; height: 18px; background: var(--accent); box-shadow: 0 0 8px rgba(240,166,25,.55); }
.about-section { padding: 48px 0 64px; }
.about { text-align: center; }
.about h2 { margin-bottom: 14px; font-size: clamp(24px,3vw,32px); line-height: 1.2; letter-spacing: -.025em; }
.about-copy { max-width: 820px; margin-inline: auto; color: var(--muted); }
.about-copy p { margin-bottom: 12px; }
.alpha-note { color: #c6a764; font-size: 14px; }
.advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; max-width: 880px; margin: 28px auto 0; padding: 0; text-align: left; list-style: none; }
.advantages li { position: relative; padding-left: 19px; font-size: 14px; }
.advantages li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }
.release-history-dialog { width: min(calc(100% - 40px),720px); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 26px 90px rgba(0,0,0,.6); }
.release-history-dialog::backdrop { background: rgba(3,8,10,.82); backdrop-filter: blur(3px); }
.release-history-header { display: flex; justify-content: space-between; gap: 24px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.release-history-header .eyebrow { margin-bottom: 5px; }
.release-history-header h2 { margin: 0; font-size: 24px; }
.release-history-close { min-height: 34px; padding: 0 10px; font-size: 12px; }
.release-history-content { max-height: calc(100dvh - 135px); padding: 4px 26px 28px; overflow-y: auto; }
.release-entry { padding: 22px 0; border-bottom: 1px solid var(--line); }
.release-entry:last-child { border: 0; }
.release-entry-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.release-entry h3 { margin: 0; font-size: 21px; }
.release-entry time { color: var(--faint); font-size: 12px; }
.release-entry ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-copyright { color: var(--faint); font-size: 12px; text-decoration: none; }
.footer-copyright:hover { color: var(--accent); }
:focus-visible { outline: 3px solid rgba(240,166,25,.4); outline-offset: 3px; }
@media (max-width:760px) { .site-header,main,footer { width: min(calc(100% - 32px),var(--max)); } .frequency { display:none; } .download-section { padding: 40px 0; } .download { padding: 24px 20px; } .download h1 { font-size: clamp(24px,7vw,28px); } .button { min-height:56px; } .advantages { grid-template-columns:1fr; } .about-section { padding:40px 0 50px; } .release-history-dialog { width:calc(100% - 24px); } .release-history-header { padding:19px 18px 15px; } .release-history-content { padding:2px 18px 24px; } footer { padding:22px 0; align-items:flex-start; flex-direction:column; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .button { transition:none; } }
@media (max-width:760px) { body { background-position: center top; background-size: auto max(100vh, 1150px); background-attachment: scroll; } }
