/* SPDX-License-Identifier: AGPL-3.0-only */
:root {
  --bg: #090d16;
  --surface: #0f172a;
  --surface-2: #131c31;
  --line: #1e293b;
  --fg: #e5e7eb;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --ok: #10b981;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #12234a 0%, transparent 60%), var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(9, 13, 22, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.brand b { color: var(--accent); font-weight: 600; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--muted); }
nav a:hover { color: var(--fg); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 24px rgba(59, 130, 246, .25);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--fg); }
.btn.small { padding: 7px 14px; font-size: 14px; color: #fff; }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  padding: 72px 0 40px;
}
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
h1 span { color: var(--muted); }
.lead { color: var(--muted); font-size: 18px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta.center { justify-content: center; }
.hero-shot img, .shots img, .split figure img {
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
figure { margin: 0; }

.section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 24px; letter-spacing: -.01em; }
h3 { margin: 0 0 6px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.grid article p { margin: 0; color: var(--muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--muted); }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.checks b { color: var(--fg); }

.server .cards { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin: 20px 0 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center;
}
.card .label { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.card code { font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--fg); word-break: break-all; }
.card button {
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px;
}
.card button:hover { border-color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.downloads .grid.three { margin-bottom: 8px; }
.ok { color: var(--ok); }

footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 1180px; margin: 40px auto 0; padding: 24px clamp(16px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
footer a:hover { color: var(--fg); }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; padding-top: 40px; }
  .grid, .shots, .server .cards { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
}
