/* Softmov site styles. Brand: #700143 background, #CFD78C accent. */
:root {
  --bg: #700143;
  --bg-deep: #5a0135;
  --bg-deeper: #45002a;
  --line: rgba(251, 241, 245, 0.14);
  --line-strong: rgba(251, 241, 245, 0.26);
  --text: #fbf1f5;
  --muted: #ddb6ca;
  --accent: #cfd78c;
  --accent-strong: #dde5a2;
  --ink: #3a0023;
  --radius: 14px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.18em; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(112, 1, 67, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--display); font-weight: 300; font-size: 1.45rem; letter-spacing: 0.01em; color: var(--accent);
}
.brand img { width: 22px; height: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: rgba(251, 241, 245, 0.07); }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 14px; font-size: 0.9rem; }
.btn:active { transform: translateY(1px); }
.text-link { color: var(--accent); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(207, 215, 140, 0.10), transparent 60%),
    radial-gradient(40rem 30rem at 0% 110%, rgba(0, 0, 0, 0.22), transparent 70%);
}
.hero::before {
  /* Faint parallel slashes, echoing the logo mark. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-30deg, transparent 0 46px, rgba(207, 215, 140, 0.035) 46px 48px);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center; gap: 48px; padding-top: 104px; padding-bottom: 96px;
}
.eyebrow {
  margin: 0 0 16px; color: var(--accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 14ch;
}
.lede { color: var(--muted); font-size: 1.18rem; line-height: 1.55; max-width: 44ch; margin: 20px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { justify-self: center; }
.hero-art img { width: min(300px, 100%); height: auto; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.25)); }

/* ------------------------------------------------------------------ sections */
.section { padding: 80px 0; }
.section-band { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.section-head h2, .group-title { margin: 0; font-size: 1.75rem; }
.group-title { margin: 48px 0 20px; }
.group-title:first-of-type { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.15s, transform 0.15s, background-color 0.15s;
}
.card:hover { border-color: rgba(207, 215, 140, 0.55); transform: translateY(-2px); }
.card h3 { margin: 16px 0 6px; font-family: var(--display); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; }
.card p { margin: 0 0 16px; color: var(--muted); }
.card-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.card-go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); line-height: 1.3;
}
.badge-free { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.badge-paid { border-color: var(--accent); color: var(--accent); }
.badge-beta { border-color: var(--accent); color: var(--accent); }
.badge-sample { border-style: dashed; }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trust-item .icon { width: 30px; height: 30px; color: var(--accent); }
.trust-item h3 { margin: 16px 0 8px; font-size: 1.1rem; font-weight: 600; }
.trust-item p { margin: 0; color: var(--muted); }

.release-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.release-list a {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; transition: color 0.15s;
}
.release-list a:hover .rl-name { color: var(--accent); }
.rl-name { font-weight: 500; }
.release-list time { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }

/* ------------------------------------------------------------------ pages */
.page { padding-top: 56px; padding-bottom: 96px; }
.page-head { margin-bottom: 40px; }
.page-head h1, .product-head h1 {
  margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  letter-spacing: -0.02em; line-height: 1.1;
}
.page-head .lede { max-width: 60ch; }
.crumbs { display: flex; gap: 10px; font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.notice {
  border: 1px dashed rgba(207, 215, 140, 0.6); background: rgba(207, 215, 140, 0.07);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; font-size: 0.95rem;
}

.product-head { margin-bottom: 40px; }
.product-head h1 { margin-top: 14px; }
.product-meta { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.download-panel {
  position: sticky; top: 88px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.download-panel h2 { margin: 0 0 4px; font-size: 1.3rem; }
.panel-ver { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.panel-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0 0; font-size: 0.92rem; }

/* ------------------------------------------------------------------ files */
.files { list-style: none; margin: 0; padding: 0; }
.file { padding: 16px 0; border-top: 1px solid var(--line); }
.file-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.file-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.file-meta { font-size: 0.84rem; color: var(--muted); }
.signed.yes { color: var(--accent); font-weight: 600; }
.hash {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.hash-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.hash-value { background: none; padding: 0; font-family: var(--mono); font-size: 0.76rem; line-height: 1.45; overflow-wrap: anywhere; flex: 1; color: var(--text); }
.copy {
  font: 600 0.75rem/1 var(--sans); color: var(--accent); background: transparent; cursor: pointer;
  border: 1px solid rgba(207, 215, 140, 0.45); border-radius: 6px; padding: 6px 9px; white-space: nowrap;
}
.copy:hover { background: rgba(207, 215, 140, 0.12); }
.copy[data-state="done"] { background: var(--accent); color: var(--ink); }

/* ------------------------------------------------------------------ releases */
.releases { margin-top: 64px; }
.releases > h2 { font-size: 1.6rem; margin: 0 0 20px; }
.release {
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
}
.release summary {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none;
}
.release summary::-webkit-details-marker { display: none; }
.release summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin: -4px 2px 0 4px; transition: transform 0.15s;
}
.release[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.release-ver { font-weight: 600; font-size: 1.05rem; }
.release summary time { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
.release-body { padding: 0 20px 8px; }
.release-body .files { margin-top: 8px; }
.notes { color: var(--text); }
.notes h4, .notes h5, .notes h6 { margin: 16px 0 6px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.notes ul { margin: 0 0 8px; padding-left: 1.2em; }
.notes p { margin: 0 0 12px; }

.dl-group { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 8px; margin-bottom: 20px; }
.dl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.dl-head h2 { margin: 0; font-size: 1.4rem; }
.dl-head h2 a { text-decoration: none; }
.dl-head h2 a:hover { color: var(--accent); }
.dl-ver { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
.pending { margin-top: 28px; }
.pending a { color: var(--accent); }

/* ------------------------------------------------------------------ prose */
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; font-weight: 600; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(0, 0, 0, 0.22); padding: 2px 6px; border-radius: 5px; }
pre {
  background: var(--bg-deeper); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; line-height: 1.55;
}
pre code { background: none; padding: 0; font-size: 0.86rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.footer-brand img { width: 16px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .download-panel { position: static; order: -1; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .brand { font-size: 1.3rem; }
  .site-nav { width: 100%; margin: 4px -12px 2px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 10px 12px; white-space: nowrap; }
  html { scroll-padding-top: 120px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 56px; gap: 0; }
  .hero-art { display: none; }
  .lede { font-size: 1.08rem; }
  .section { padding: 56px 0; }
  .page { padding-top: 36px; padding-bottom: 64px; }
  .file-top .btn { width: 100%; }
  .dl-ver { margin-left: 0; width: 100%; }
  .release summary { flex-wrap: wrap; row-gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
