:root {
  color-scheme: dark;
  --color-background: #29324d;
  --color-surface: #35415f;
  --color-text: #f2f3fa;
  --color-muted: #c3cce0;
  --color-accent: #e3b6f0;
  --color-line: #4b5875;
  --color-button-text: #252c44;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--color-line) var(--color-background); }
body { margin: 0; background: var(--color-background); color: var(--color-text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--color-accent); color: var(--color-button-text); }
a { color: inherit; text-decoration: none; cursor: pointer; }
a, summary { touch-action: manipulation; -webkit-tap-highlight-color: #e3b6f033; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; border-radius: 4px; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
p, h1, figure, dl, dd { margin: 0; }
svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { width: min(100%, 1264px); margin-inline: auto; padding-inline: max(var(--space-12), env(safe-area-inset-left)) max(var(--space-12), env(safe-area-inset-right)); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 112px; }
.product-brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; transition: opacity 160ms ease-out; }
.product-brand:hover { opacity: .8; }
.product-brand > span { font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.brand-description { display: block; margin-top: 7px; font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--color-muted); }
.release-version { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.release-version > span { color: var(--color-muted); }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--space-16); min-height: calc(100svh - 196px); padding-block: var(--space-10) var(--space-16); }
.hero-copy { min-width: 0; }
h1 { max-width: 10ch; font-size: clamp(56px, 5.9vw, 80px); font-weight: 450; line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; scroll-margin-top: var(--space-6); }
h1 em { color: var(--color-accent); font-style: normal; }
.hero-description { max-width: 37ch; margin-top: var(--space-6); font-size: 17px; line-height: 1.7; color: var(--color-muted); text-wrap: pretty; }
.download-area { margin-top: var(--space-10); }
.download-button { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-10); min-height: 64px; padding: var(--space-4) var(--space-6); border-radius: 8px; background: var(--color-accent); color: var(--color-button-text); font-size: 16px; font-weight: 650; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.download-button:hover { background: #edc9f7; transform: translateY(-2px); }
.download-button:active { background: #d6a5e5; transform: translateY(0); }
.download-button svg { flex-shrink: 0; }
#download-info { margin-top: var(--space-3); font-size: 12px; color: var(--color-muted); }
#download-info > span[aria-hidden] { margin-inline: var(--space-1); }
#preview-status { margin-top: var(--space-4); max-width: 42ch; font-size: 12px; line-height: 1.65; color: var(--color-muted); }
.release-details { max-width: 448px; margin-top: var(--space-6); }
.release-details summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 44px; width: fit-content; padding-block: var(--space-2); font-size: 13px; cursor: pointer; list-style: none; color: var(--color-text); transition: color 160ms ease-out; }
.release-details summary::-webkit-details-marker { display: none; }
.release-details summary:hover { color: var(--color-accent); }
.release-details summary svg { flex-shrink: 0; transition: transform 160ms ease-out; }
.release-details[open] summary svg { transform: rotate(180deg); }
.release-content { padding-top: var(--space-3); font-size: 13px; color: var(--color-muted); }
.presets { margin-top: var(--space-4); }
.presets > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--color-line); }
.presets dt, .presets dd { color: var(--color-text); }
.presets dt > span { margin-left: var(--space-2); color: var(--color-accent); font-size: 11px; }
.presets dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.presets dd > span { color: var(--color-muted); font-size: 12px; }
.nominal-note { margin-top: var(--space-3); font-size: 12px; }

.product-preview { justify-self: end; width: min(100%, 428px); min-width: 0; }
.preview-surface { padding: var(--space-6) var(--space-8); background: var(--color-surface); border-radius: 16px; }
.preview-surface > img { width: 100%; border-radius: 8px; box-shadow: 0 16px 32px #151b314d; }
.product-preview figcaption { margin-top: var(--space-4); color: var(--color-muted); text-align: center; font-size: 11px; }
.product-preview figcaption span { margin-inline: var(--space-2); color: var(--color-accent); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 84px; border-top: 1px solid var(--color-line); padding-bottom: env(safe-area-inset-bottom); font-size: 12px; color: var(--color-muted); }
.naelle-credit { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; transition: color 160ms ease-out; }
.naelle-credit:hover { color: var(--color-accent); }
.naelle-credit svg { margin-left: var(--space-2); }
.skip-link { position: fixed; top: var(--space-3); left: var(--space-3); z-index: 10; padding: var(--space-3) var(--space-5); border-radius: 4px; background: var(--color-accent); color: var(--color-button-text); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1000px) {
  .page-shell { padding-inline: var(--space-8); }
  .site-header { min-height: 96px; }
  .hero { gap: var(--space-8); min-height: calc(100svh - 180px); }
  h1 { font-size: clamp(48px, 6.3vw, 64px); }
  .hero-description { font-size: 16px; }
  .preview-surface { padding: var(--space-5); }
  .download-button { gap: var(--space-6); padding-inline: var(--space-5); }
}

@media (max-width: 700px) {
  .page-shell { padding-inline: max(var(--space-6), env(safe-area-inset-left)) max(var(--space-6), env(safe-area-inset-right)); }
  .site-header { min-height: 88px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); min-height: auto; padding-block: var(--space-10) var(--space-12); }
  h1 { font-size: clamp(48px, 10.5vw, 72px); }
  .hero-description { max-width: 38ch; margin-top: var(--space-5); }
  .download-area { margin-top: var(--space-8); }
  .download-button { width: min(100%, 352px); }
  #preview-status { max-width: 45ch; }
  .release-details { margin-top: var(--space-4); }
  .product-preview { justify-self: center; width: min(100%, 380px); }
  .preview-surface { padding: var(--space-6); }
  .site-footer { gap: var(--space-4); }
}

@media (max-width: 359px) {
  .page-shell { padding-inline: var(--space-5); }
  .release-version { font-size: 12px; }
  .hero { padding-top: var(--space-8); }
  h1 { font-size: 46px; }
  .download-button { font-size: 15px; padding-inline: var(--space-4); }
  .preview-surface { padding: var(--space-4); }
  .site-footer { font-size: 11px; }
  .naelle-credit img { width: 61px; }
  .naelle-credit svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  a, summary, summary svg { transition: none !important; }
  .download-button:hover { transform: none; }
}
