:root {
  --bg: #0c1222; --panel: #1a2944; --border: #46587a; --border-soft: #31425f;
  --text: #f3f6fb; --dim: #c5cedf; --mute: #93a0b8;
  --btn-bg: #24344f; --btn-border: #4d6284; --btn-border-hi: #6d84a8; --btn-bg-hi: #2d4060;
  --header-bg: rgba(12, 18, 34, 0.88);
  --header-inner-y: 16px;
  --header-height: calc(44px + (var(--header-inner-y) * 2) + 1px);
  --inv-bg: #eef1f7; --inv-fg: #0c1222; --inv-bg-hi: #ffffff;
  --sage-bg: #3d93b8; --sage-head: #0e7ea3;
  --sage: #509ebf; --sage-line: rgba(61, 147, 184, 0.55); --sage-wash: rgba(61, 147, 184, 0.16); --sage-btn: #509ebf; --sage-btn-hi: rgba(61, 147, 184, 0.16);
  --mgr-bg: #47d8b5; --mgr-head: #018163;
  --mgr: #47d8b5; --mgr-line: rgba(71, 216, 181, 0.55); --mgr-wash: rgba(71, 216, 181, 0.16); --mgr-btn: #47d8b5; --mgr-btn-hi: rgba(71, 216, 181, 0.16);
  color-scheme: dark;
}

html[data-theme="navy"] {
  --bg: #0c1222; --panel: #1a2944; --border: #46587a; --border-soft: #31425f;
  --text: #f3f6fb; --dim: #c5cedf; --mute: #93a0b8;
  --btn-bg: #24344f; --btn-border: #4d6284; --btn-border-hi: #6d84a8; --btn-bg-hi: #2d4060;
  --header-bg: rgba(12, 18, 34, 0.88);
  --inv-bg: #eef1f7; --inv-fg: #0c1222; --inv-bg-hi: #ffffff;
  --sage-bg: #3d93b8; --sage-head: #0e7ea3;
  --sage: #509ebf; --sage-line: rgba(61, 147, 184, 0.55); --sage-wash: rgba(61, 147, 184, 0.16); --sage-btn: #509ebf; --sage-btn-hi: rgba(61, 147, 184, 0.16);
  --mgr-bg: #47d8b5; --mgr-head: #018163;
  --mgr: #47d8b5; --mgr-line: rgba(71, 216, 181, 0.55); --mgr-wash: rgba(71, 216, 181, 0.16); --mgr-btn: #47d8b5; --mgr-btn-hi: rgba(71, 216, 181, 0.16);
  color-scheme: dark;
}

html[data-theme="dark"] {
  --bg: #09090b; --panel: #1c1c21; --border: #4a4a54; --border-soft: #33333a;
  --text: #fafafa; --dim: #c8c8d0; --mute: #a7a7b0;
  --btn-bg: #232328; --btn-border: #4a4a54; --btn-border-hi: #6a6a74; --btn-bg-hi: #2c2c32;
  --header-bg: rgba(9, 9, 11, 0.88);
  --inv-bg: #f4f4f5; --inv-fg: #09090b; --inv-bg-hi: #ffffff;
  --sage-bg: #3d93b8; --sage-head: #0e7ea3;
  --sage: #3d93b8; --sage-line: rgba(61, 147, 184, 0.55); --sage-wash: rgba(61, 147, 184, 0.14); --sage-btn: #3d93b8; --sage-btn-hi: rgba(61, 147, 184, 0.14);
  --mgr-bg: #47d8b5; --mgr-head: #018163;
  --mgr: #47d8b5; --mgr-line: rgba(71, 216, 181, 0.55); --mgr-wash: rgba(71, 216, 181, 0.14); --mgr-btn: #47d8b5; --mgr-btn-hi: rgba(71, 216, 181, 0.14);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f2f2ef; --panel: #ffffff; --border: #b7b7b0; --border-soft: #d4d4ce;
  --text: #141418; --dim: #3a3a44; --mute: #4a5160;
  --btn-bg: #ffffff; --btn-border: #b7b7b0; --btn-border-hi: #8e8e88; --btn-bg-hi: #ecece8;
  --header-bg: rgba(242, 242, 239, 0.9);
  --inv-bg: #141418; --inv-fg: #fafafa; --inv-bg-hi: #000000;
  --sage-bg: #3d93b8; --sage-head: #0e7ea3;
  --sage: #0e7ea3; --sage-line: rgba(14, 126, 163, 0.45); --sage-wash: rgba(61, 147, 184, 0.14); --sage-btn: #0e7ea3; --sage-btn-hi: rgba(14, 126, 163, 0.1);
  --mgr-bg: #47d8b5; --mgr-head: #018163;
  --mgr: #018163; --mgr-line: rgba(1, 129, 99, 0.45); --mgr-wash: rgba(71, 216, 181, 0.18); --mgr-btn: #018163; --mgr-btn-hi: rgba(1, 129, 99, 0.1);
  color-scheme: light;
}

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

* { box-sizing: border-box; }

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

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .btn-invert:active, .btn-outline:active { transform: none; }
}

body {
  background: var(--bg); color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px; line-height: 1.6;
  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: var(--header-inner-y) 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.wordmark {
  font-family: 'Geist', 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: 15px; font-weight: 500; color: var(--text);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.btn:hover { background: var(--btn-bg-hi); border-color: var(--btn-border-hi); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn:active { transform: scale(0.98); }

.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: 16px; font-weight: 600; transition: background 160ms ease, transform 160ms ease;
}

.btn-invert:hover { background: var(--inv-bg-hi); color: var(--inv-fg); }
.btn-invert:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn-invert:active { transform: scale(0.98); }

.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: 16px; font-weight: 500;
  color: var(--dim); transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-outline:hover { border-color: var(--btn-border-hi); color: var(--text); }
.btn-outline:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn-outline:active { transform: scale(0.98); }

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

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

.hero h1 {
  font-family: 'Geist', sans-serif; font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -0.025em;
  margin: 0 0 22px; color: var(--text); text-wrap: pretty;
}

.hero p {
  font-size: 18px; line-height: 1.6; color: var(--dim);
  margin: 0 0 32px; max-width: 40rem; 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: 13px; color: var(--mute); }

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

.nav-text {
  font-size: 15px; font-weight: 500; color: var(--dim); padding: 0 6px;
}
.nav-text:hover { color: var(--text); }
.nav-text[aria-current="page"] { color: var(--text); }

@media (max-width: 720px) {
  .nav-text { display: none; }
}
