:root {
  color-scheme: dark;
  --bg: #0b0d11;
  --bg-soft: #12161d;
  --text: #eef2f7;
  --muted: #a8b4c6;
  --accent: #58b6ff;
  --accent-soft: rgba(88, 182, 255, 0.2);
  --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 90% -10%, rgba(88, 182, 255, 0.18), transparent),
    radial-gradient(50rem 30rem at -20% 20%, rgba(116, 86, 255, 0.14), transparent);
}

.hero,
.grid {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.hero {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.2rem;
  align-items: center;
  padding-top: 3.1rem;
}

.logo {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #0f141c;
  padding: 10px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem);
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.6;
}

.meta {
  margin-top: 0.9rem;
  color: #dbe7f5;
}

.highlight {
  margin-top: 0.75rem;
  color: #bfe2ff;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--accent-soft);
  background: rgba(88, 182, 255, 0.08);
}

.hero-actions {
  margin: 0.8rem 0 0;
}

.donate-button {
  display: inline-block;
  padding: 0.52rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 100, 0.45);
  background: linear-gradient(180deg, rgba(255, 210, 100, 0.22), rgba(255, 210, 100, 0.1));
  color: #ffe9b3;
  font-weight: 600;
  text-decoration: none;
}

.donate-button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.donate-top-right {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.grid {
  margin-top: 1.2rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(2px);
}

.card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #d7e9ff;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #d6e2f1;
  line-height: 1.7;
}

p {
  color: #d6e2f1;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.downloads {
  grid-column: 1 / -1;
}

.download-group + .download-group {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.link-button {
  appearance: none;
  border: 1px solid var(--accent-soft);
  background: rgba(88, 182, 255, 0.08);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  margin-left: 0.35rem;
  cursor: pointer;
  font: inherit;
}

.link-button:hover {
  text-decoration: underline;
}

.download-group a {
  display: block;
  margin: 0.3rem 0;
  width: fit-content;
  padding: 0.34rem 0.55rem;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  background: rgba(88, 182, 255, 0.06);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.75);
}

.modal-panel {
  position: relative;
  width: min(980px, 92vw);
  max-height: 86vh;
  margin: 6vh auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f131a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1rem;
}

.modal-close {
  appearance: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: #151b24;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.license-content {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: #d7e1ef;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
