/* Feather website. No frameworks, no web fonts, no third-party anything.
   Tokens first; both themes follow the system setting. */
:root {
  color-scheme: light dark;
  --bg: #fbfaff;
  --bg-alt: #f2f0fb;
  --surface: #ffffff;
  --surface-2: #f4f2fc;
  --text: #17161f;
  --muted: #5b5968;
  --border: rgba(40, 32, 90, .12);
  --accent: #6a62bb;          /* links, icons: 5.3:1 on --bg */
  --accent-soft: rgba(106, 98, 187, .12);
  --btn: #6a62bb;
  --btn-text: #ffffff;
  --btn-hover: #5a52ab;
  --glow: rgba(160, 154, 218, .45);
  --shadow: 0 24px 60px -18px rgba(60, 50, 140, .35), 0 8px 24px -12px rgba(40, 30, 100, .25);
  --radius: 18px;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121216;
    --bg-alt: #17171d;
    --surface: #1c1c23;
    --surface-2: #23232c;
    --text: #ececf2;
    --muted: #a6a6b4;
    --border: rgba(255, 255, 255, .10);
    --accent: #a09ada;
    --accent-soft: rgba(160, 154, 218, .14);
    --btn: #a09ada;
    --btn-text: #14131c;
    --btn-hover: #b2adea;
    --glow: rgba(120, 110, 210, .38);
    --shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 10px 30px -14px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 48px); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: var(--btn-text); padding: 10px 16px; border-radius: 10px; z-index: 50; transition: top .15s; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--border); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.bar nav { display: flex; gap: 4px; margin-left: 12px; }
.bar nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; transition: color .15s, background .15s; }
.bar nav a:hover { color: var(--text); background: var(--accent-soft); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ghost { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.ghost:hover { color: var(--text); background: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--btn); color: var(--btn-text); font: 600 16px var(--body); text-decoration: none; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 8px 22px -10px var(--btn); }
.btn:hover { background: var(--btn-hover); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.small { padding: 8px 16px; font-size: 15px; border-radius: 10px; box-shadow: none; }
.btn.big { padding: 15px 26px; font-size: 18px; border-radius: 14px; }
.btn.quiet { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.quiet:hover { background: var(--accent-soft); }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 72px 0 24px; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 720px; background: radial-gradient(60% 70% at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow { font: 600 14px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { font: 800 clamp(40px, 7vw, 76px)/1.04 var(--display); letter-spacing: -.03em; margin: 0 auto 22px; max-width: 19ch; text-wrap: balance; }
.grad { background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ff8fc4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 40em; margin: 0 auto 30px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.meta { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }
.shot { margin: 56px auto 0; max-width: 1040px; }
.shot img { width: 100%; filter: drop-shadow(0 40px 60px rgba(30, 20, 90, .35)); }
@media (prefers-color-scheme: dark) { .shot img { filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .65)); } }

/* ---------- generic sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--display); letter-spacing: -.025em; text-align: center; margin: 0 0 14px; text-wrap: balance; }
.section-title.left, .section-sub.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); font-size: 19px; max-width: 36em; margin: 0 auto 48px; text-wrap: pretty; }
.section-sub.left { margin: 0 0 26px; }
h2, h3, h4 { text-wrap: balance; }
.fine { color: var(--muted); font-size: 14.5px; }
.soft { color: var(--muted); }

.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 56px; }
.pillar { padding: 8px 6px; }
.pillar h2 { font: 700 22px var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.pillar p { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card h3 { font: 700 18px var(--display); margin: 0 0 8px; letter-spacing: -.005em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: .85fr 1.15fr; }
.split .eyebrow { margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.4px 2.4px 0; transform: rotate(40deg) scale(.7); transform-origin: 50% 60%; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.note h3 { font: 700 20px var(--display); margin: 0 0 12px; }
.note p { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.note p:last-child { margin: 0; }
.keyshot { margin: 0; display: grid; place-items: center; padding: 40px 20px; border-radius: 28px; background: radial-gradient(70% 80% at 50% 40%, var(--glow), transparent 75%), var(--surface-2); border: 1px solid var(--border); }
.keyshot img { width: min(100%, 520px); filter: drop-shadow(0 24px 40px rgba(20, 10, 70, .45)); }
.split > div > .fine { margin-top: 20px; }

/* ---------- status ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel.good { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.panel h3 { font: 700 19px var(--display); margin: 0 0 14px; }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.panel li { padding-left: 20px; position: relative; color: var(--muted); font-size: 15.5px; }
.panel li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* ---------- download ---------- */
.download { background: radial-gradient(70% 60% at 50% 0%, var(--glow), transparent 70%), var(--bg); }
.dl-card { text-align: center; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: 28px; padding: 48px 32px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto 64px; backdrop-filter: blur(8px); }
.dl-icon { margin: 0 auto 14px; border-radius: 22px; box-shadow: 0 14px 30px -12px rgba(30, 20, 90, .55); }
.dl-card h2 { font: 800 36px var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.dl-version { margin: 0 0 22px; color: var(--muted); }
.dl-version span::before { content: " \00b7  "; }
.dl-version span:empty::before { content: ""; }
.cta.center { justify-content: center; margin-bottom: 14px; }
.sha { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.sha code { background: var(--surface-2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 8px; font-size: 12px; word-break: break-all; color: var(--text); }
.copy { font: 600 13px var(--body); color: var(--accent); background: transparent; border: 1px solid var(--border); padding: 3px 10px; border-radius: 8px; cursor: pointer; }
.copy:hover { background: var(--accent-soft); }

.steps { max-width: 860px; margin: 0 auto; }
.steps h3 { font: 800 28px var(--display); letter-spacing: -.015em; margin: 0 0 10px; text-align: center; }
.steps > p { color: var(--muted); text-align: center; max-width: 40em; margin: 0 auto 28px; }
.steps ol { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; }
.steps ol li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; }
.steps ol li span { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 15px var(--display); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.mini h4 { font: 700 17px var(--display); margin: 0 0 8px; }
.mini p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
pre { margin: 12px 0 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; color: var(--text); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; margin-top: 36px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s; }
details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font: 600 17px var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 56px 0 48px; }
.foot .wrap { display: grid; gap: 26px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 11px; }
.foot-brand div { display: grid; line-height: 1.3; }
.foot-brand strong { font: 700 20px var(--display); }
.foot-brand span { color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
.legal { color: var(--muted); font-size: 13px; max-width: 70em; margin: 0; }

/* ---------- motion (only if the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero .reveal:nth-child(1) { --d: 0s; } .js .hero .reveal:nth-child(2) { --d: .06s; } .js .hero .reveal:nth-child(3) { --d: .12s; }
  .js .hero .reveal:nth-child(4) { --d: .18s; } .js .hero .reveal:nth-child(5) { --d: .24s; }
  .js .hero .shot.reveal { transform: translateY(46px) scale(.975); transition-duration: 1.1s; --d: .3s; }
  .js .hero .shot.reveal.in { transform: none; }
  .js .grid .reveal:nth-child(4n+2), .js .pillars .reveal:nth-child(2), .js .trio .reveal:nth-child(2) { --d: .08s; }
  .js .grid .reveal:nth-child(4n+3), .js .pillars .reveal:nth-child(3), .js .trio .reveal:nth-child(3) { --d: .16s; }
  .js .grid .reveal:nth-child(4n+4) { --d: .24s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .keyshot { order: 2; }
  .trio, .pillars { grid-template-columns: 1fr; }
  .bar nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .grid, .two { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .ghost { display: none; }
  .btn.big { width: 100%; }
  .cta { flex-direction: column; align-items: stretch; }
  .dl-card { padding: 36px 20px; }
  summary { font-size: 16px; }
}

/* ---------- 404 ---------- */
.nf { padding: 120px 0; }
.nf img { margin: 0 auto 24px; border-radius: 20px; }
.nf h1 { font-size: 44px; }
