/* Unicut marketing site — system theme by default; optional manual override */
:root,
html[data-theme="dark"] {
  --bg: #0b0b0f;
  --fg: #f4f4f6;
  --fg-2: #a2a0ad;
  --fg-3: #6f6d7c;
  --line: #1f1f29;
  --card: #121218;
  --accent: #9E77ED;
  --accent-deep: #7F56D9;
  --maxw: 760px;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --fg: #18181b;
  --fg-2: #52525b;
  --fg-3: #8a8a93;
  --line: #e6e6eb;
  --card: #f5f5f7;
  --accent: #7F56D9;
  --accent-deep: #6941C6;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg: #ffffff;
    --fg: #18181b;
    --fg-2: #52525b;
    --fg-3: #8a8a93;
    --line: #e6e6eb;
    --card: #f5f5f7;
    --accent: #7F56D9;
    --accent-deep: #6941C6;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  transition: background-color .15s ease, color .15s ease;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
svg { display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

header.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions a { color: var(--fg-2); font-weight: 500; font-size: 15px; }
.nav-actions a:hover { color: var(--fg); }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg-2);
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.theme-btn:hover { border-color: var(--accent); color: var(--fg); }
.theme-btn svg { width: 18px; height: 18px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg-2);
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.lang-btn:hover { border-color: var(--accent); color: var(--fg); }
.theme-btn .ico-sun { display: none; }
html[data-theme="light"] .theme-btn .ico-moon { display: none; }
html[data-theme="light"] .theme-btn .ico-sun { display: block; }
html[data-theme="dark"] .theme-btn .ico-moon { display: block; }
html[data-theme="dark"] .theme-btn .ico-sun { display: none; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .theme-btn .ico-moon { display: none; }
  html:not([data-theme]) .theme-btn .ico-sun { display: block; }
}

main { flex: 1; display: flex; align-items: flex-start; }
.download { width: 100%; padding: 64px 0 40px; text-align: center; }
.dl-mark { width: 56px; height: 56px; margin: 0 auto 22px; }
.download h1 { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 10px; }
.download .lead { color: var(--fg-2); font-size: 1.05rem; max-width: 44ch; margin: 0 auto; }

.dl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 620px; margin: 40px auto 0; text-align: left; }
.dl-tile {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 22px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  transition: border-color .15s ease, transform .12s ease, background-color .15s ease;
}
.dl-tile:hover { transform: translateY(-2px); }
.dl-tile:not(.primary):hover { border-color: var(--accent); }
.dl-tile.primary {
  background: linear-gradient(155deg, var(--accent), var(--accent-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 22px 55px -22px rgba(127,86,217,0.75);
}
.dl-tile .os-ico { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-2); }
.dl-tile.primary .os-ico { color: #fff; }
.dl-tile .os-ico svg { width: 30px; height: 30px; }
.dl-tile .os-text { flex: 1; min-width: 0; }
.dl-tile .os-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.dl-tile .os-meta { display: block; font-size: 12.5px; font-weight: 500; color: var(--fg-3); margin-top: 2px; }
.dl-tile.primary .os-meta { color: rgba(255,255,255,0.82); }
.dl-tile .dl-arrow { flex: none; color: var(--accent); }
.dl-tile.primary .dl-arrow { color: #fff; }
.dl-tile .dl-arrow svg { width: 20px; height: 20px; }
.dl-tile .rec {
  display: none; position: absolute; top: -10px; left: 18px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(127,86,217,0.8);
}
.dl-tile.primary .rec { display: inline-block; background: #fff; color: var(--accent-deep); }

.dl-note { margin: 28px auto 0; font-size: 13px; color: var(--fg-3); max-width: 52ch; line-height: 1.6; }
.dl-note kbd { font-family: inherit; font-size: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--fg); }
.dl-studio { margin-top: 16px; font-size: 14px; color: var(--fg-3); }
.dl-studio a { color: var(--accent); font-weight: 500; }
.dl-studio a:hover { text-decoration: underline; }

/* Recent release notes (home) */
.rn-preview { max-width: 620px; margin: 48px auto 0; text-align: left; }
.rn-preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rn-preview-head h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.rn-preview-head a { font-size: 13px; font-weight: 500; color: var(--accent); }
.rn-preview-head a:hover { text-decoration: underline; }
.rn-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 16px 18px; margin-bottom: 10px;
}
.rn-card:last-child { margin-bottom: 0; }
.rn-card-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.rn-ver { font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700; color: var(--fg); }
.rn-date { font-size: 12px; color: var(--fg-3); }
.rn-title { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.rn-card ul { margin-left: 18px; color: var(--fg-2); font-size: 13px; }
.rn-card li { margin-bottom: 4px; }
.rn-card li:last-child { margin-bottom: 0; }

/* Full release notes page */
.rn-page { padding: 48px 0 64px; }
.rn-page h1 { font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.rn-page .lead { color: var(--fg-2); font-size: 1rem; margin-bottom: 32px; max-width: 52ch; }
.rn-list { display: flex; flex-direction: column; gap: 14px; }

footer { border-top: 1px solid var(--line); padding: 26px 0; margin-top: auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner .copy { color: var(--fg-3); font-size: 13px; }
.footer-links { display: flex; gap: 16px; font-size: 13px; }
.footer-links a { color: var(--fg-3); }
.footer-links a:hover { color: var(--fg); }

@media (max-width: 560px) {
  .dl-tiles { grid-template-columns: 1fr; }
  .download { padding: 44px 0 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
