/* Nowspace.org — calm & minimal */
:root {
  --bg: #0f172a;
  --bg-soft: #131c33;
  --bg-card: #1a2540;
  --line: #253352;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --text-faint: #64748b;
  --accent: #3b82f6;
  --accent-soft: #93c5fd;
  --north: #f1f5f9;
  --radius: 14px;
  --maxw: 1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 650; font-size: 1.15rem; color: var(--north);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--text-soft); font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--north); text-decoration: none; }
.nav-links a.active { color: var(--north); }
.nav-links a.btn-nav {
  color: #fff; background: var(--accent);
  padding: 7px 16px; border-radius: 9px; font-weight: 600;
}
.nav-links a.btn-nav:hover { background: #2f6fe0; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }
/* 820px, not 720: five nav items stopped fitting on one line when Getting
   started was added, and 721-820px collided the links into the brand */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; }
  .nav-links a.btn-nav { margin: 8px 24px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 90px 24px 70px;
}
.hero .compass { margin: 0 auto 36px; width: 150px; height: 150px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--north);
  max-width: 720px; margin: 0 auto;
  line-height: 1.2;
}
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.hero .sub {
  max-width: 640px; margin: 22px auto 0;
  color: var(--text-soft); font-size: 1.15rem;
}
.hero .cta-row {
  margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 11px;
  font-weight: 600; font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2f6fe0; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-faint); }
.hero .fine { margin-top: 18px; color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  color: var(--accent-soft); font-size: 0.85rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px;
}
h2 { font-size: 1.8rem; font-weight: 700; color: var(--north); letter-spacing: -0.01em; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 650; color: var(--north); margin-bottom: 8px; }
.lede { color: var(--text-soft); max-width: 700px; font-size: 1.08rem; }
/* body copy following a lede needs its own air — nothing else sets p margins */
.lede + p, .lede + p + p { color: var(--text-soft); max-width: 700px; margin-top: 18px; }

.grid {
  display: grid; gap: 22px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card .icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* Screenshots */
.shot {
  margin-top: 44px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}
.shot img { display: block; width: 100%; height: auto; }
.caption {
  margin-top: 14px; text-align: center;
  color: var(--text-faint); font-size: 0.92rem; font-style: italic;
}

/* Two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
/* grid items default to min-width:auto, which lets a wide <pre> push the whole
   page sideways instead of scrolling inside its own box */
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Sovereignty list */
.checklist { list-style: none; margin-top: 24px; }
.checklist li {
  padding: 12px 0 12px 38px; position: relative;
  color: var(--text-soft); border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent) 0 6px, transparent 7px);
  border: 2px solid var(--accent);
  opacity: 0.9;
}
.checklist li strong { color: var(--text); }

/* Prose (philosophy) */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 56px; font-size: 1.5rem; }
.prose h2:first-of-type { margin-top: 40px; }
.prose p { margin: 18px 0; color: var(--text-soft); }
.prose p strong, .prose li strong { color: var(--text); }
.prose ul { margin: 18px 0 18px 22px; color: var(--text-soft); }
.prose li { margin: 10px 0; }
.prose em { color: var(--accent-soft); }
.page-head { text-align: center; padding: 70px 24px 10px; }
.page-head .compass { width: 84px; height: 84px; margin: 0 auto 24px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--north); letter-spacing: -0.02em; }
.page-head .sub { color: var(--text-soft); margin-top: 14px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* Download table */
.dl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 36px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
/* Line-art platform marks rather than vendor logos: Apple and Microsoft both
   prohibit third-party logo use, and emoji rendered differently per OS. */
.dl-card .os { display: block; margin-bottom: 12px; color: var(--text-faint); }
.dl-card .os svg { width: 38px; height: 38px; }
.dl-card:hover .os { color: var(--accent); transition: color 0.15s; }
.dl-card h3 { margin-bottom: 4px; }
.dl-card .meta { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 18px; }
.dl-card .btn { width: 100%; padding: 11px 0; }

.steps { counter-reset: step; margin-top: 30px; max-width: 720px; }
.steps li {
  list-style: none; counter-increment: step; position: relative;
  padding: 0 0 26px 58px; color: var(--text-soft);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--accent-soft); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--text); }
code {
  background: var(--bg-card); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 6px; font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent-soft);
}
pre {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; overflow-x: auto; margin: 20px 0;
  font-size: 0.88rem; line-height: 1.6;
}
pre code { background: none; border: none; padding: 0; }

/* Callout */
.callout {
  margin-top: 40px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--bg-card); border-radius: var(--radius); padding: 24px 28px;
  color: var(--text-soft); max-width: 780px;
}
.callout strong { color: var(--north); }

/* CTA band */
.band { text-align: center; padding: 80px 24px; }
.band .compass { width: 64px; height: 64px; margin: 0 auto 22px; opacity: 0.9; }
.band h2 { margin-bottom: 12px; }
.band p { color: var(--text-soft); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 54px; }
.foot {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap;
}
.foot .col p { color: var(--text-faint); font-size: 0.9rem; max-width: 340px; margin-top: 10px; }
.foot .links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot .links h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin-bottom: 12px; font-weight: 650;
}
.foot .links a { display: block; color: var(--text-soft); font-size: 0.92rem; padding: 4px 0; }
.foot .links a:hover { color: var(--north); text-decoration: none; }
.legal {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: 0.85rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
