/* ==========================================================================
   Noldmi Systems — design tokens
   ========================================================================== */
:root {
  --ink: #10131A;
  --ink-soft: #4A5164;
  --ink-faint: #8A90A0;
  --paper: #F3F4F6;
  --surface: #FFFFFF;
  --signal: #1FAE7D;
  --signal-dark: #158A63;
  --signal-tint: #E5F6EF;
  --indigo: #1B2140;
  --indigo-soft: #2A2F6D;
  --indigo-line: #383F6E;
  --line: #E2E4E9;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 10px;
  --transition: 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-tint);
  flex-shrink: 0;
}

.eyebrow.on-dark { color: #7FE0BE; }
.eyebrow.on-dark::before { box-shadow: 0 0 0 3px rgba(127,224,190,0.18); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--signal-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark {
  background: var(--signal);
  color: var(--indigo);
}
.btn-on-dark:hover { background: #34c98f; }

.btn-ghost-on-dark {
  background: transparent;
  color: #fff;
  border-color: var(--indigo-line);
}
.btn-ghost-on-dark:hover { border-color: #fff; }

:focus-visible {
  outline: 2px solid var(--signal-dark);
  outline-offset: 2px;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--signal);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links .btn-primary { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary.desktop-only { display: none; }
}

@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* Sections ----------------------------------------------------------------- */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 14px; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }

.section-dark {
  background: var(--indigo);
  color: #EDEFF9;
}
.section-dark .ink-soft-dark { color: #B7BBDD; }

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #C7CAD6;
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid #2A2E3B;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; color: #8B8FA0; font-size: 14.5px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6F82;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: #C7CAD6;
  padding: 6px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 28px;
  font-size: 13px;
  color: #6B6F82;
  font-family: var(--font-mono);
}
.footer-legal-links a {
  color: #6B6F82;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links .sep { padding: 0 6px; color: #3A3E4E; }

@media (max-width: 640px) {
  .footer-top, .footer-bottom { flex-direction: column; }
}

/* Diagnostic CTA sizing ----------------------------------------------------- */
.site-header .nav-cta .btn-primary {
  font-size: 13.5px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 1080px) and (min-width: 861px) {
  .nav-links { gap: 22px; }
  .site-header .nav-cta .btn-primary { font-size: 12.5px; padding-left: 12px; padding-right: 12px; }
}
