:root {
  --bg: #ffffff;
  --bg-soft: #f6f4fe;
  --text: #1c1530;
  --muted: #5d5675;
  --line: #e6e1f5;
  --brand: #7c3aed;
  --brand-strong: #5b21b6;
  --card: #ffffff;
  --hero-a: #1e1b4b;
  --hero-b: #4c1d95;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0c1d;
    --bg-soft: #17132b;
    --text: #ece9f7;
    --muted: #a49dbd;
    --line: #2a2445;
    --brand: #a78bfa;
    --brand-strong: #8b5cf6;
    --card: #17132b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
kbd {
  display: inline-block; padding: 1px 7px; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; background: var(--bg-soft); white-space: nowrap;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--hero-a) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.brand img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; gap: 22px; }
nav a { color: #ddd6fe; text-decoration: none; font-size: 15px; }
nav a:hover { color: #fff; }
nav .langs { display: flex; gap: 2px; padding: 2px; border: 1px solid rgb(255 255 255 / .2); border-radius: 8px; }
nav .langs a { padding: 1px 7px; border-radius: 6px; font-size: 13px; font-weight: 600; }
nav .langs a[aria-current] { background: rgb(255 255 255 / .16); color: #fff; }
@media (max-width: 640px) { nav a.opt { display: none; } nav { gap: 14px; } }
@media (max-width: 460px) { nav a.gh { display: none; } }

/* Hero */
.hero {
  color: #fff; overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; } }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -1.5px; margin: 0 0 18px; }
.hero h1 span { color: #c4b5fd; }
.hero p.lead { font-size: 19px; color: #ddd6fe; margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px;
  font-weight: 650; text-decoration: none; font-size: 16px; transition: transform .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: #fff; color: var(--hero-b); box-shadow: 0 8px 28px rgb(0 0 0 / .25); }
.btn-ghost { color: #fff; border: 1px solid rgb(255 255 255 / .28); }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.hero small.meta { display: block; margin-top: 16px; color: #b8acdf; font-size: 14px; }
.hero small.meta a { color: #ddd6fe; }

/* Demo illustration */
.demo { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; background: #0b0918; box-shadow: 0 30px 70px rgb(0 0 0 / .45); border: 1px solid rgb(255 255 255 / .1); overflow: hidden; }
.demo .bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 12px; background: #1a1630; }
.demo .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3b3458; }
.demo .desk { position: absolute; inset: 30px 0 0; padding: 22px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.demo .desk div { border-radius: 8px; background: #1e1938; }
.demo .desk .tall { grid-row: span 2; }
.demo .stage { position: absolute; inset: 30px 0 0; }
.demo .shade { position: absolute; inset: 0; background: rgb(0 0 0 / .5); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 30% 22%, 30% 82%, 78% 82%, 78% 22%, 30% 22%); }
.demo .sel { position: absolute; left: 30%; top: 22%; width: 48%; height: 60%; border: 2px dashed #c4b5fd; border-radius: 4px; animation: grow 3.6s ease-in-out infinite alternate; }
.demo .sel b { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid #5b21b6; border-radius: 2px; }
.demo .sel b:nth-child(1) { left: -6px; top: -6px; } .demo .sel b:nth-child(2) { right: -6px; top: -6px; }
.demo .sel b:nth-child(3) { left: -6px; bottom: -6px; } .demo .sel b:nth-child(4) { right: -6px; bottom: -6px; }
.demo .size { position: absolute; left: 0; top: -32px; background: #8b5cf6; color: #fff; font: 12px ui-monospace, Menlo, Consolas, monospace; padding: 3px 8px; border-radius: 6px; }
.demo .arrow { position: absolute; left: 12%; top: 22%; width: 64%; height: 56%; }
.demo .tools { position: absolute; right: -54px; top: 10%; width: 40px; padding: 10px 0; display: grid; gap: 12px; justify-items: center; background: #fff; border-radius: 10px; }
.demo .tools span { width: 16px; height: 16px; border-radius: 4px; background: #6d28d9; }
.demo .tools span:nth-child(1) { border-radius: 50%; }
.demo .tools span:nth-child(3) { clip-path: polygon(0 100%, 100% 0, 70% 100%); }
.demo .hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgb(255 255 255 / .92); color: #2e1065; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
/* Keys in the hint stay light in both themes */
.demo .hint kbd { background: #ede9fe; border-color: #c4b5fd; color: #2e1065; }
@keyframes grow { from { transform: scale(.94); } to { transform: scale(1); } }
@media (max-width: 480px) { .demo .tools { display: none; } .demo .hint { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .demo .sel { animation: none; } .btn { transition: none; } }

/* Sections */
section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.8px; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 40em; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.ico svg { width: 22px; height: 22px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; vertical-align: 2px; margin-left: 6px; }
@media (prefers-color-scheme: dark) { .tag { color: #fbbf24; } }

/* Steps and keys */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: s; margin-bottom: 44px; }
.step { position: relative; padding: 22px 22px 22px 70px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-strong); color: #fff; font-weight: 700; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); font-size: 14px; color: var(--muted); font-weight: 600; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Downloads */
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.os { display: flex; flex-direction: column; }
.os.current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.os header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.os header svg { width: 30px; height: 30px; color: var(--text); }
.os header h3 { margin: 0; font-size: 20px; }
.os header em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); }
.os ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.os li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 550; }
.os li a:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.os li a span { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; }
.os p { margin: auto 0 0; color: var(--muted); font-size: 14px; }
.release-line { margin: -24px 0 32px; color: var(--muted); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Donations */
.wallets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 8px; }
@media (max-width: 960px) { .wallets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wallets { grid-template-columns: 1fr; } }
.wallet { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.coin { display: flex; align-items: center; gap: 10px; }
.coin i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.coin b { display: block; font-size: 16px; }
.coin small { display: block; color: var(--muted); font-size: 13px; }
.qr { background: #fff; border-radius: 12px; padding: 10px; }
.qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
@media (max-width: 520px) { .qr { max-width: 240px; width: 100%; margin: 0 auto; } }
.addr { font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); word-break: break-all; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; user-select: all; }
.copy { margin-top: auto; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: var(--brand-strong); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.copy:hover { background: var(--brand); }
.copy.done { background: #16a34a; }

footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: var(--muted); }

/* More from the author */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .apps { grid-template-columns: 1fr; } }
.app { --a: #2fbf86; --b: #7cf0c0; padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.app-video-glow { --a: #ff7a8a; --b: #a98bff; }
.app:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--a) 45%, var(--line)); box-shadow: 0 18px 44px color-mix(in srgb, var(--a) 18%, transparent); }
.app .shot { display: block; position: relative; background: #0b0b0d; border-bottom: 1px solid var(--line); }
.app .shot::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--a), var(--b)); }
.app-video-glow .shot::after { background: linear-gradient(90deg, #ffb36b, #ff7a8a 45%, #a98bff 75%, #5fb4ff); }
.app .shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.app-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.app header { display: flex; align-items: center; gap: 14px; }
.app header img { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--a) 30%, transparent); }
.app header h3 { margin: 0; font-size: 21px; }
.app header span { color: var(--muted); font-size: 14px; }
.app p { margin: 14px 0 16px; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--a) 13%, transparent); color: color-mix(in srgb, var(--a) 70%, var(--text)); }
.app-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-app { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.btn-app:hover { border-color: var(--a); }
.btn-app svg { width: 15px; height: 15px; }
.btn-app.primary { border-color: transparent; color: #0b0d10; background: linear-gradient(90deg, var(--a), var(--b)); }
.btn-app.primary:hover { filter: brightness(1.06); }
@media (prefers-reduced-motion: reduce) { .app { transition: none; } .app:hover { transform: none; } }
