/* hmserver.org — landing page.
   Shares the dashboard's palette so the site and the product look like the
   same thing. */

:root {
  --bg-dark: #09090b;
  --bg-panel: #101014;
  --bg-card: #18181c;
  --border: #26262c;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-dim: #71717a;
  --accent: #fbbf24;
  --accent-hover: #facc15;
  --accent-dim: rgba(251, 191, 36, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 760px; }

code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.87em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* --- Nav --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon { width: 22px; height: 22px; color: var(--accent); }
.highlight { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta { display: flex; align-items: center; gap: 0.4rem; }
.nav-cta svg { width: 16px; height: 16px; }

/* --- Hero --- */
.hero {
  padding: 6rem 0 4.5rem;
  background:
    radial-gradient(900px 400px at 50% -80px, rgba(251, 191, 36, 0.07), transparent 70%),
    var(--bg-dark);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.lede {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--accent); color: #09090b; }
.btn-primary:hover { background: var(--accent-hover); }

/* The download button is honest about there being nothing to download yet:
   it reads as a button but says so on its face rather than linking to a 404. */
.btn.is-pending {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px dashed rgba(251, 191, 36, 0.45);
}

.btn.is-pending:hover { background: rgba(251, 191, 36, 0.13); }

.btn.is-pending span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn.is-pending em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.hero-note svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.hero-note strong { color: var(--text-secondary); }

/* --- Value strip --- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 2rem 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.strip-grid strong {
  display: block;
  font-size: 1.02rem;
  color: var(--accent);
  margin-bottom: 2px;
}

.strip-grid span { font-size: 0.87rem; color: var(--text-dim); }

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-panel); border-block: 1px solid var(--border); }

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}

.section-lede {
  max-width: 640px;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.section-note {
  margin-top: 1.5rem;
  font-size: 0.93rem;
  color: var(--text-dim);
  max-width: 720px;
}

/* --- Features --- */
.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 1.6rem;
  transition: border-color 0.15s ease;
}

.feature:hover { border-color: rgba(251, 191, 36, 0.35); }

.feature svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.45rem; }
.feature p { font-size: 0.93rem; color: var(--text-secondary); }
.feature a { color: var(--accent); text-decoration: none; }
.feature a:hover { text-decoration: underline; }

/* --- Routes table --- */
.table-wrap { overflow-x: auto; }

.routes {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.routes th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.routes td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.routes tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.routes strong { color: var(--accent); font-weight: 600; }

/* --- Install steps --- */
.steps { display: flex; flex-direction: column; gap: 1.75rem; }

.step { display: flex; gap: 1.15rem; align-items: flex-start; }

.step-n {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.87rem;
}

.step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.step p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 0.6rem; }

.step pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}

.step pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.65;
}

.hardware {
  margin-top: 3rem;
  padding: 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.hardware h3 { font-size: 1.02rem; margin-bottom: 0.8rem; }
.hardware ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.hardware li { font-size: 0.93rem; color: var(--text-secondary); padding-left: 1.1rem; position: relative; }
.hardware li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.hardware strong { color: var(--text-primary); }

/* --- Plain list --- */
.plain-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.15rem; }
.plain-list li { color: var(--text-secondary); font-size: 0.95rem; padding-left: 1.15rem; position: relative; }
.plain-list li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plain-list strong { color: var(--text-primary); }
.section-alt .container > p { color: var(--text-secondary); }

/* --- Footer --- */
.footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo { margin-bottom: 0.75rem; }
.footer p { font-size: 0.9rem; color: var(--text-dim); }
.licence { margin-top: 0.6rem; font-size: 0.82rem !important; }

.footer h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.footer a:hover { color: var(--accent); }

/* Footer entries that are not links yet, because the thing they would point at
   is not public. Styled as text rather than as a dead link. */
.footer-muted {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

@media (max-width: 780px) {
  .nav-links { gap: 1rem; font-size: 0.85rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
