:root {
  --bg: #0a0a0f;
  --bg-2: #0e0e16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #ecedf2;
  --muted: #9a9bab;
  --dim: #6b6c7e;
  --accent: #7c6cff;
  --accent-2: #a78bfa;
  --kofi: #ff5e5b;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -30% 0 auto 0;
  height: 70vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 70% 0%, rgba(124, 108, 255, 0.22), transparent 70%),
    radial-gradient(50% 50% at 20% 10%, rgba(167, 139, 250, 0.12), transparent 70%);
  filter: blur(10px);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }

section { position: relative; z-index: 1; }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(12px);
}
.nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid var(--border-hi);
  background: var(--surface-hi);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-hi); background: rgba(255,255,255,0.1); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 108, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(124, 108, 255, 0.75); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-kofi { background: var(--kofi); border-color: transparent; color: #fff; }
.btn-kofi:hover { background: #ff4542; }
.btn-kofi .heart { font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---- hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
}
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 700; }
.lede {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
}
.lede em { color: var(--text); font-style: normal; font-weight: 600; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.shot {
  margin: 56px auto 0;
  max-width: 920px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: 0 40px 100px -40px rgba(124, 108, 255, 0.4), 0 2px 0 rgba(255,255,255,0.04) inset;
}
.shot img { width: 100%; display: block; border-radius: 12px; }

/* ---- sections ---- */
.features, .download, .support { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.features h2, .download h2, .support h2 { font-size: clamp(26px, 4vw, 40px); text-align: center; }
.section-lede { text-align: center; color: var(--muted); margin: 14px auto 0; max-width: 520px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: var(--border-hi); background: var(--surface-hi); transform: translateY(-2px); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- downloads ---- */
.editions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.edition {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.edition:hover { border-color: var(--border-hi); background: var(--surface-hi); }
.edition h3 { font-size: 19px; margin-bottom: 8px; }
.edition p { margin: 0; color: var(--muted); font-size: 14.5px; }
.dl .btn { width: 100%; justify-content: center; }
.note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 32px; max-width: 640px; margin-inline: auto; }
.note a { color: var(--muted); text-decoration: underline; }
.note em { color: var(--muted); font-style: normal; }
#rel-version { display: block; color: var(--muted); margin-bottom: 6px; font-weight: 600; }

/* ---- bot ---- */
.bot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}
.bot-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(124, 108, 255, 0.14), transparent 60%),
    var(--surface);
}
.bot-eyes {
  flex: none;
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bot h2 { font-size: clamp(24px, 3.5vw, 34px); }
.bot p { color: var(--muted); margin: 14px 0 22px; max-width: 560px; }

/* ---- support ---- */
.support { text-align: center; }
.support .btn { margin-top: 28px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); margin-top: 40px; position: relative; z-index: 1; }
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
}
.foot-inner .disc { margin-right: auto; }
.foot-inner a { color: var(--muted); }
.foot-inner a:hover { color: var(--text); }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .grid, .editions { grid-template-columns: 1fr; }
  .features, .download, .support { padding: 64px 20px; }
  .bot-inner { flex-direction: column; text-align: center; padding: 36px 24px; gap: 20px; }
  .bot p { margin-inline: auto; }
  .foot-inner { justify-content: center; text-align: center; }
  .foot-inner .disc { margin: 0; flex-basis: 100%; }
}
