/* ──────────────────────────────────────────────────────────────
   The Muster App — marketing site (dark theme)
   Single source of truth for design tokens, reset, type, buttons,
   nav, footer, and responsive scaling.

   Every dark-theme marketing page must <link> this file BEFORE its
   own inline <style>. Page-specific rules belong in the page.
   ────────────────────────────────────────────────────────────── */

/* Design tokens */
:root {
  --bg: #0a0a0a;
  --s1: #111111;
  --s2: #161616;
  --sHi: #1c1c1c;
  --hair: rgba(255,255,255,0.08);
  --hair2: rgba(255,255,255,0.14);
  --ink: #ffffff;
  --inkDim: rgba(255,255,255,0.72);
  --inkMuted: rgba(255,255,255,0.50);
  --inkFaint: rgba(255,255,255,0.32);
  --signal: #e85a3c;
  --ok: #7fc28b;
  --caution: #e6c46a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Monaco, monospace;
  --page: 1280px;
  --gutter: 48px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* Layout primitives */
.container { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; border-top: 1px solid var(--hair); }
.section:first-of-type { border-top: none; }

/* Type — desktop defaults */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--inkMuted);
}
.h1   { font-size: clamp(48px, 6vw, 84px);   line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; }
.h1--xl { font-size: clamp(56px, 7vw, 100px); letter-spacing: -0.042em; }
.h2   { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 500; text-wrap: balance; }
.h2--xl { font-size: clamp(40px, 4.4vw, 56px); letter-spacing: -0.035em; }
.h3   { font-size: 22px; line-height: 1.2; letter-spacing: -0.012em; font-weight: 500; }
.body { font-size: 17px; line-height: 1.55; color: var(--inkDim); }
.small{ font-size: 13.5px; line-height: 1.55; color: var(--inkMuted); }
.mono { font-family: var(--mono); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em;
  border: 0; font-family: inherit;
  transition: transform 0.15s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  padding: 14px 18px;
  border: 1px solid var(--hair2);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.32); }
.arrow {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: 40px; }
.nav-brand img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--inkDim); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-right .btn-primary { padding: 10px 16px; font-size: 13.5px; }
.nav-signin { font-size: 14px; color: var(--inkDim); }
.nav-signin:hover { color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 64px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-brand img { height: 22px; }
.footer-brand p { margin-top: 14px; max-width: 280px; font-size: 13.5px; color: var(--inkMuted); }
.footer-col-title { margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--inkDim); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--inkMuted);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--ink); }

/* ──────────────────────────────────────────────────────────────
   Responsive — laptops (13"–16" MBA/Pro at any standard scaling,
   viewport ~880–1600px). The design clamps hit their MAX at this
   width range, which renders too large for the screen real estate.
   Dial back one tier; the design's full grandeur is preserved
   above 1600px for 27"+ displays.
   ────────────────────────────────────────────────────────────── */
@media (min-width: 880px) and (max-width: 1600px) {
  .h1     { font-size: clamp(36px, 4.4vw, 60px); }
  .h1--xl { font-size: clamp(42px, 5vw, 72px);   }
  .h2     { font-size: clamp(28px, 3vw, 40px);   }
  .h2--xl { font-size: clamp(32px, 3.6vw, 44px); }
  .section { padding: 88px 0; }
}

/* Mobile */
@media (max-width: 880px) {
  :root { --gutter: 24px; }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
