:root {
  --bg: #12141b;
  --panel: #1b1e28;
  --line: #2c3040;
  --text: #e6e8ef;
  --muted: #9aa0b4;
  --red: #e5383b;
  --blue: #2f7df6;
  --link: #7fb0ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); }
code { overflow-wrap: anywhere; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 0.9em; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; overflow-x: auto; }
pre code { overflow-wrap: normal; background: none; border: 0; padding: 0; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Top menu */
header { border-bottom: 1px solid var(--line); background: rgba(18, 20, 27, 0.9); position: sticky; top: 0; z-index: 2; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding: 12px 0; }
nav .brand { font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--text); }
a.soon { color: var(--muted); opacity: 0.6; cursor: default; }
a.soon::after { content: " (soon)"; font-size: 0.85em; }

/* Landing hero: picture faded into a wide red/blue glow */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(ellipse 60% 70% at 75% 45%, rgba(229, 56, 59, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 70% at 55% 70%, rgba(47, 125, 246, 0.2), transparent 70%),
    linear-gradient(180deg, #1a1d29 0%, var(--bg) 100%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 12px; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 28px; }
.hero img {
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(circle at center, #000 45%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 45%, transparent 72%);
}

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(47, 125, 246, 0.45);
}
.button:hover { background: #4b90ff; }
.download-note { color: var(--muted); font-size: 0.9rem; margin: 10px 0 4px; min-height: 1.4em; }

main section { padding: 32px 0; border-top: 1px solid var(--line); }
main section:first-child { border-top: 0; }
h2 { margin-top: 0; }
.notice { border-left: 4px solid var(--red); background: var(--panel); padding: 12px 16px; border-radius: 0 6px 6px 0; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.card h3 { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

@media (max-width: 760px) {
  .hero .wrap, .cols { grid-template-columns: minmax(0, 1fr); }
  .hero img { max-width: 420px; margin: 0 auto; order: -1; }
}
