/* ============================================================
   NAT Solutions Inc. — design tokens
   Ink navy + off-white paper, single LED-green signal accent.
   Display: Fraunces / Body: IBM Plex Sans / Utility: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #0a121c;
  --ink-2: #0e1826;
  --panel: #101c2b;
  --paper: #f4f5f1;
  --paper-2: #eceee8;
  --ink-text: #14202b;
  --slate: #5c6b7d;
  --slate-light: #9aa7b5;
  --line: #223247;
  --line-soft: #d9dbd3;
  --led: #43d17a;
  --led-dim: #2a5f43;
  --amber: #f2a93b;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; }

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

/* ---------- eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--led);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.on-paper { color: var(--led-dim); }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 3px rgba(67, 209, 122, 0.15);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

/* ---------- header ---------- */
header.site {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: #fff;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo .mark {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--led);
  border: 1px solid var(--led-dim);
  border-radius: 3px;
  padding: 2px 5px;
  letter-spacing: 0.08em;
}
nav.links {
  display: flex;
  gap: 34px;
  font-size: 14.5px;
  color: #cfd6dd;
}
nav.links a { position: relative; padding: 4px 0; }
nav.links a:hover, nav.links a[aria-current="page"] { color: #fff; }
nav.links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--led);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--led);
  padding: 9px 16px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-cta:hover { background: #5ee08c; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  width: 40px;
  height: 36px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ---------- status ticker (signature strip) ---------- */
.status-strip {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.status-strip .wrap {
  display: flex;
  gap: 34px;
  padding: 9px 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-strip .wrap::-webkit-scrollbar { display: none; }
.status-strip span { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.status-strip .dot { width: 6px; height: 6px; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  padding: 84px 28px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--led);
}
.hero p.lede {
  font-size: 17.5px;
  color: #c3ccd4;
  max-width: 46ch;
  margin: 0 0 32px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn.primary { background: var(--led); color: var(--ink); }
.btn.primary:hover { background: #5ee08c; }
.btn.ghost { border-color: var(--line); color: #fff; }
.btn.ghost:hover { border-color: var(--slate-light); }

/* topology graphic */
.topo { position: relative; }
.topo svg { width: 100%; height: auto; }
.topo-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-light);
  letter-spacing: 0.06em;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.topo-node { fill: var(--ink); stroke: var(--led); stroke-width: 1.4; }
.topo-node.dim { stroke: #3a4d63; }
.topo-line { stroke: #2a3a4d; stroke-width: 1; }
.topo-line.live { stroke: var(--led); stroke-width: 1.2; opacity: 0.85; }
.topo-pulse { animation: travel 3.5s linear infinite; }
@keyframes travel {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) { .topo-pulse { animation: none; } }

/* ---------- section basics ---------- */
section { padding: 84px 0; }
section.on-ink { background: var(--ink); color: #fff; }
section.on-panel { background: var(--panel); color: #fff; }
.section-head { max-width: 640px; margin: 0 0 46px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--slate); font-size: 16px; max-width: 56ch; }
.on-ink .section-head p, .on-panel .section-head p { color: #b7c0c9; }

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stats .stat {
  padding: 30px 24px;
  border-left: 1px solid var(--line-soft);
}
.stats .stat:first-child { border-left: none; }
.stats .num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--ink-text);
}
.stats .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ---------- services grid ---------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.svc-card {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.svc-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--led-dim);
  text-transform: uppercase;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}
.svc-card p { color: var(--slate); font-size: 14.8px; margin: 0; flex: 1; }
.svc-card .more {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-text);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: auto;
}
.svc-card:hover { background: #eef0ea; }
.svc-card .more::after { content: " →"; color: var(--led-dim); }

/* ---------- approach / list ---------- */
.approach {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.approach ol { list-style: none; margin: 0; padding: 0; }
.approach li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.approach li:last-child { border-bottom: 1px solid var(--line); }
.approach .step-id { font-family: var(--font-mono); color: var(--led); font-size: 13px; padding-top: 3px; }
.approach h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.approach p { margin: 0; color: #b7c0c9; font-size: 14.8px; }

/* ---------- testimonial ---------- */
.testimonial {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  padding: 46px 48px;
  border-radius: 4px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.4;
  margin: 0 0 20px;
  color: var(--ink-text);
  font-weight: 500;
}
.testimonial cite {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
  font-style: normal;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--led);
  color: var(--ink);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 52px 28px;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: 0;
  max-width: 20ch;
}
.cta-band .btn.primary { background: var(--ink); color: #fff; }
.cta-band .btn.primary:hover { background: #1a2636; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink);
  color: #8b97a3;
  border-top: 1px solid var(--line);
}
footer.site .wrap {
  padding: 56px 28px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
footer.site .logo { margin-bottom: 12px; }
footer.site p { font-size: 13.5px; max-width: 34ch; }
footer.site h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd6dd;
  margin: 0 0 14px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
footer.site a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #5c6b7d;
  display: flex;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
}

/* ---------- generic content sections (about/services/contact) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--line);
  padding: 60px 0 54px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  margin: 14px 0 10px;
}
.page-hero p { color: #c3ccd4; max-width: 60ch; font-size: 16.5px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.prose p { color: var(--slate); font-size: 16px; margin: 0 0 16px; }
.prose h3 { font-family: var(--font-display); font-size: 22px; margin: 28px 0 10px; }

.value-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-text);
}
.value-list li .bullet {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--led);
  border-radius: 50%;
}
.value-list li span.text { flex: 1; }

/* full service detail rows */
.svc-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 42px 0;
  border-top: 1px solid var(--line-soft);
}
.svc-detail:last-child { border-bottom: 1px solid var(--line-soft); }
.svc-detail .tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--led-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.svc-detail h3 { font-family: var(--font-display); font-size: 25px; margin: 10px 0 0; font-weight: 600; }
.svc-detail .body p { color: var(--slate); margin: 0 0 12px; }
.svc-detail ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-detail ul li { font-size: 14.5px; line-height: 1.55; color: var(--ink-text); display: flex; align-items: flex-start; gap: 10px; }
.svc-detail ul li .bullet { flex: none; width: 6px; height: 6px; margin-top: 6px; background: var(--led); border-radius: 50%; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: #fff;
  color: var(--ink-text);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--led); }
.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 34px 30px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 18px; }
.contact-line { display: grid; gap: 3px; margin-bottom: 20px; }
.contact-line .k { font-family: var(--font-mono); font-size: 11px; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-line .v { font-size: 15px; color: #fff; }
.contact-line a:hover { color: var(--led); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .topo { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(3) { border-left: none; }
  .grid-services { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 900px) {
  nav.links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    padding: 20px 28px 26px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
}
