/* lanrave.com — one stylesheet for every page. Dark, like the apps: the brand's ground is
   near-black and the mark is a cyan→magenta gradient (Sources/LANRaveUI/Brand.swift). */

:root {
  --bg: #0A0A0F;
  --panel: #14141C;
  --line: #24243A;
  --text: #F2F2F7;
  --muted: #A3A3B8;
  --cyan: #00E5FF;
  --indigo: #7B61FF;
  --purple: #D946FF;
  --magenta: #FF00B8;
  --gradient: linear-gradient(90deg, var(--cyan), var(--indigo) 33%, var(--purple) 67%, var(--magenta));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--cyan); }
a:hover { color: var(--purple); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: auto; }
.wordmark { font-family: "Silkscreen", ui-monospace, monospace; font-size: 26px; letter-spacing: 1px; line-height: 1; }
.wordmark .rave, .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
nav.site a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav.site a:first-child { margin-left: 0; }
nav.site a:hover, nav.site a[aria-current] { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero img.mark { width: min(340px, 80%); height: auto; }
.hero h1 { font-family: "Silkscreen", ui-monospace, monospace; font-weight: 400; font-size: clamp(40px, 9vw, 76px); line-height: 1.05; margin: 28px 0 8px; letter-spacing: 2px; }
.tagline { font-size: 15px; letter-spacing: 6px; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.lede { font-size: 20px; max-width: 620px; margin: 0 auto; color: var(--text); }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 48px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 4px; font-size: 20px; }
.card .role { color: var(--muted); font-size: 14px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 1.5px; }
.card p { margin: 0 0 20px; color: var(--muted); font-size: 15px; flex: 1; }
.button {
  display: inline-block; text-align: center; text-decoration: none; font-weight: 600;
  padding: 12px 18px; border-radius: 12px; color: #0A0A0F; background: var(--gradient);
}
.button:hover { color: #0A0A0F; filter: brightness(1.1); }
.button.disabled { background: var(--line); color: var(--muted); pointer-events: none; }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: 24px 0; }
h2 { font-size: 28px; margin: 0 0 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 20px 64px; position: relative; counter-increment: step; color: var(--muted); }
.steps li strong { color: var(--text); display: block; margin-bottom: 4px; }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  font-family: "Silkscreen", ui-monospace, monospace; font-size: 26px; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Long-form pages */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 48px; }
.doc h1 { font-size: 36px; margin: 16px 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: #D6D6E0; }
.doc code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 15px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--text); }
details[open] summary { margin-bottom: 8px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav.site a { margin-left: 14px; }
  .hero { padding-top: 32px; }
  .lede { font-size: 18px; }
}
