/* NBS Technologies — nbstech.ai
   One stylesheet, design tokens on :root, light and dark. */

:root {
  --ink:        #1B1F1D;
  --ink-soft:   #4F5652;
  --ink-faint:  #858B86;
  --bg:         #FBFAF7;
  --bg-alt:     #F3F1EB;
  --line:       #E4E0D6;
  --accent:     #1E5B4F;
  --accent-dk:  #154239;
  --accent-bg:  #E6EFEB;
  --on-accent:  #FFFFFF;
  --serif:      Newsreader, Georgia, "Times New Roman", serif;
  --sans:       Inter, system-ui, -apple-system, sans-serif;
  --radius:     10px;
  --wrap:       1060px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:       #ECEAE4;
    --ink-soft:  #B3B7B1;
    --ink-faint: #7C827D;
    --bg:        #111413;
    --bg-alt:    #171B19;
    --line:      #29302C;
    --accent:    #7CC3AE;
    --accent-dk: #A6D8C8;
    --accent-bg: #1A2A25;
    --on-accent: #0F1A17;
  }
}
:root[data-theme="dark"] {
  --ink: #ECEAE4; --ink-soft: #B3B7B1; --ink-faint: #7C827D;
  --bg: #111413; --bg-alt: #171B19; --line: #29302C;
  --accent: #7CC3AE; --accent-dk: #A6D8C8; --accent-bg: #1A2A25; --on-accent: #0F1A17;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; display: block; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: var(--bg); }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand-name span { font-weight: 400; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }
.nav .nav-cta {
  background: var(--accent); color: var(--on-accent); padding: 8px 15px;
  border-radius: 6px; font-weight: 600;
}
.nav .nav-cta:hover { background: var(--accent-dk); color: var(--on-accent); }
@media (max-width: 360px) { .brand-name span { display: none; } }
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
}

/* ── Sections ───────────────────────────────────────────── */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 96px 0 80px; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 22px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 16px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; margin: 0 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
p { margin: 0 0 16px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px;
  font-weight: 600; font-size: .96rem; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dk); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Grid / cards ───────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--bg);
}
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--accent); margin-bottom: 10px; display: block;
}

/* ── Lists ──────────────────────────────────────────────── */
ul.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-soft); }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; }
dl.facts dt { color: var(--ink-faint); font-size: .86rem; font-weight: 600; }
dl.facts dd { margin: 0; font-size: .92rem; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; gap: 2px 0; } dl.facts dd { margin-bottom: 10px; } }

/* ── Stack / prose ──────────────────────────────────────── */
.prose { max-width: 68ch; }
/* When .prose sits on the page wrapper itself, the narrower max-width would win
   and .wrap's `margin: 0 auto` would centre the whole block — leaving it out of
   line with the left-aligned hero above. Keep the wrapper at full width and
   constrain its children instead. */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 68ch; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 26px; }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 600;
  color: var(--ink-soft); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 4px; margin: 0 6px 6px 0;
}

/* ── Contact form ───────────────────────────────────────── */
.contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 22px; }
.form h3 { margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.hint { font-size: .86rem; color: var(--ink-soft); margin: 8px 0 0; }
.form .btn { border: 0; cursor: pointer; font-family: inherit; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.footer-muted { color: var(--ink-faint); font-size: .86rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); font-size: .9rem; }

/* ── Draft marker: remove once content is signed off ────── */
.draft {
  border-left: 3px solid #F59E0B; background: #FFFBEB;
  color: #7C2D12; padding: 10px 14px; border-radius: 0 8px 8px 0;
  font-size: .86rem; margin: 0 0 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .draft { background: #2A2010; color: #FCD34D; }
}
