:root {
  --bg: #0d1220; --panel: #131a2b; --border: #1e2740; --border-soft: #1a2236;
  --text: #eef1f7; --dim: #97a1b8; --mute: #6e7893;
  --btn-bg: #1a2337; --btn-border: #2a3550; --btn-border-hi: #3b4a6e; --btn-bg-hi: #202b43;
  --header-bg: rgba(13,18,32,0.8);
  --inv-bg: #eef1f7; --inv-fg: #0d1220; --inv-bg-hi: #ffffff;
  --sage: #e64545; --sage-line: rgba(230,69,69,0.45); --sage-wash: rgba(230,69,69,0.07); --sage-btn: #f2a3a3; --sage-btn-hi: rgba(230,69,69,0.14);
  --mgr: #1aab8a; --mgr-line: rgba(26,171,138,0.45); --mgr-wash: rgba(26,171,138,0.07); --mgr-btn: #7fd8c2; --mgr-btn-hi: rgba(26,171,138,0.14);
}

html, body { margin: 0; padding: 0; background: var(--bg); }

* { box-sizing: border-box; }

a { color: var(--text); text-decoration: none; }

html { scroll-behavior: smooth; transition: background 200ms ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg); color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  transition: background 200ms ease, color 200ms ease;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em; color: var(--text);
}

nav { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 8px; border: 1px solid var(--btn-border); background: var(--btn-bg);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.btn:hover { background: var(--btn-bg-hi); border-color: var(--btn-border-hi); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
}

.theme-dot { display: block; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid currentColor; transition: background 160ms ease; }

.btn-invert {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border-radius: 8px; background: var(--inv-bg); color: var(--inv-fg);
  font-size: 15px; font-weight: 600; transition: background 160ms ease;
}

.btn-invert:hover { background: var(--inv-bg-hi); color: var(--inv-fg); }

.btn-outline {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border-radius: 8px; border: 1px solid var(--btn-border); font-size: 15px; font-weight: 500;
  color: var(--dim); transition: border-color 160ms ease, color 160ms ease;
}

.btn-outline:hover { border-color: var(--btn-border-hi); color: var(--text); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
}

.hero { padding: 48px 0 56px; max-width: 780px; }
.hero .eyebrow { margin-bottom: 26px; }

.hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(34px, 7vw, 58px); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 26px; color: var(--text); text-wrap: pretty;
}

.hero p {
  font-size: 19px; line-height: 1.65; color: var(--dim);
  margin: 0 0 38px; max-width: 620px; text-wrap: pretty;
}

footer { border-top: 1px solid var(--border-soft); }

.footer-inner {
  max-width: 1140px; margin: 0 auto; padding: 32px 28px; display: flex;
  flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}

.footer-copy { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--mute); }

.footer-links { display: flex; gap: 24px; font-size: 13.5px; }
.footer-links a { color: var(--dim); }
.footer-links a:hover { color: var(--text); }
