/* ============================================================
   NODE STRATEGIES — Shared Stylesheet
   Bootstrap 5 + dark techy aesthetic
   ============================================================ */

:root {
  --ns-font-reading: 'Inter', system-ui, sans-serif;
  --ns-font-display: 'Syne', system-ui, sans-serif;
  --ns-type-hero: 3.5rem;
  --ns-type-section: 2.25rem;
  --ns-type-article: 2.625rem;
  --ns-bg:       #050e12;
  --ns-bg-2:     #071519;
  --ns-bg-3:     #091c21;
  --ns-bg-card:  #0a1e24;
  --ns-border:   #0e3038;
  --ns-teal:     #00cfc8;
  --ns-teal-lt:  #33ddd7;
  --ns-teal-dim: #007f7a;
  --ns-blue:     #0099cc;
  --ns-blue-lt:  #33bbdd;
  --ns-white:    #e8f8f7;
  --ns-text:     #7ab8b5;
  --ns-muted:    #94b5b5;
  --ns-gold:     #f59e0b;
  --ns-grad:     linear-gradient(135deg, #00cfc8 0%, #0099cc 100%);
}

/* ---- NETWORK CANVAS ---- */
#ns-network {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

body > *:not(#ns-network) { position: relative; z-index: 1; }

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ns-bg);
  color: var(--ns-text);
  font-family: var(--ns-font-reading);
  font-size: 1rem;
  line-height: 1.7;
  font-kerning: normal;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  margin: 0;
}

h1, h2 {
  font-family: var(--ns-font-display);
  font-weight: 600;
  color: var(--ns-white);
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h3, h4, h5, h6 {
  font-family: var(--ns-font-reading);
  font-weight: 600;
  color: var(--ns-white);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

a { color: var(--ns-teal-lt); text-decoration: none; }
a:hover { color: var(--ns-teal); }

p { color: var(--ns-text); margin-bottom: 1.25rem; }
strong, b { color: var(--ns-white); font-weight: 600; }

a, p, li, label { overflow-wrap: anywhere; }
.row > *, .d-flex > * { min-width: 0; }

img { max-width: 100%; }

/* ---- NAVBAR ---- */
.ns-nav {
  background: rgba(8, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ns-border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ns-nav .brand {
  font-family: var(--ns-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ns-white);
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ns-nav .container > .d-flex { flex-wrap: wrap; gap: .75rem; }
.ns-nav .navbar-collapse { min-width: 0; }
.ns-nav .navbar-nav { row-gap: .5rem !important; }

.ns-nav .brand span { color: var(--ns-teal); }

.ns-nav .nav-link {
  color: var(--ns-text) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.ns-nav .nav-link:hover,
.ns-nav .nav-link.active {
  color: var(--ns-white) !important;
  background: rgba(0,207,200, 0.12);
}

.ns-nav .navbar-toggler {
  border-color: var(--ns-border);
  color: var(--ns-text);
}

.ns-nav .nav-link.btn-nav-cta {
  background: var(--ns-teal);
  color: var(--ns-bg) !important;
  font-weight: 600;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
}

.ns-nav .nav-link.btn-nav-cta:hover,
.ns-nav .nav-link.btn-nav-cta.active {
  background: var(--ns-teal-lt) !important;
  color: var(--ns-bg) !important;
}

/* ---- BUTTONS ---- */
.btn-primary-ns {
  background: var(--ns-grad);
  border: none;
  color: var(--ns-bg);
  font-family: var(--ns-font-reading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  display: inline-block;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
}

.btn-primary-ns:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--ns-bg);
}

.btn-outline-ns {
  background: transparent;
  border: 1px solid var(--ns-border);
  color: var(--ns-text);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline-ns:hover {
  border-color: var(--ns-teal);
  color: var(--ns-teal-lt);
}

.btn-primary-ns, .btn-outline-ns { max-width: 100%; text-align: center; }
.ns-nav a:focus-visible, .btn-primary-ns:focus-visible,
.btn-outline-ns:focus-visible, .ns-input:focus-visible {
  outline: 2px solid var(--ns-teal-lt);
  outline-offset: 3px;
}

/* ---- HERO ---- */
.ns-hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.ns-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,207,200,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ns-hero .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ns-teal);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.ns-hero h1 {
  font-size: var(--ns-type-hero);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.ns-hero h1 .grad {
  background: var(--ns-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ns-hero .lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ns-text);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- SECTION STYLES ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--ns-bg-2); }
.section-dark { background: var(--ns-bg-3); }

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ns-teal);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: var(--ns-type-section);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ns-text);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ---- CARDS ---- */
.ns-card {
  background: var(--ns-bg-card);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ns-card:hover {
  border-color: var(--ns-teal);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,207,200,0.1);
}

.ns-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.ns-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ns-card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ns-card .card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ns-teal-lt);
}

.ns-card .card-link:hover { color: var(--ns-teal); }

/* ---- SERVICE CARDS ---- */
.service-card {
  background: var(--ns-bg-card);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(0,207,200,0.5);
  box-shadow: 0 0 0 1px rgba(0,207,200,0.1), 0 20px 50px rgba(0,207,200,0.08);
}

.service-card .service-num {
  font-family: var(--ns-font-reading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ns-teal);
  background: rgba(0,207,200,0.1);
  border: 1px solid rgba(0,207,200,0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-card ul li {
  color: var(--ns-text);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ns-teal);
}

/* ---- BLOG CARDS ---- */
.blog-card {
  background: var(--ns-bg-card);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--ns-teal);
  transform: translateY(-3px);
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ns-teal-lt);
  background: rgba(0,207,200,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card h3 a { color: var(--ns-white); }
.blog-card h3 a:hover { color: var(--ns-teal-lt); }

.blog-card p {
  font-size: 1rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-meta {
  font-size: 0.9375rem;
  color: var(--ns-muted);
  margin-top: auto;
}

/* ---- BLOG POST ---- */
.blog-post-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--ns-border);
}

.blog-post-hero h1 {
  font-size: var(--ns-type-article);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.post-meta { font-size: 0.9375rem; color: var(--ns-muted); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.post-meta span { margin-right: 0; }

.post-body {
  max-width: 65ch;
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 auto;
  padding: 56px 0;
}

.post-body h2, .post-body h3, .post-body h4,
.contact-form-wrap h2, .ns-card h2 { font-family: var(--ns-font-reading); font-weight: 600; }

.post-body h2 {
  font-size: 1.55rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body li { color: var(--ns-text); margin-bottom: 0.4rem; }

.post-body blockquote {
  border-left: 3px solid var(--ns-blue);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--ns-bg-card);
  border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
  color: var(--ns-white);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0;
}

.inline-cta {
  background: var(--ns-bg-3);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.inline-cta p { margin-bottom: 0.75rem; color: var(--ns-white); font-weight: 500; }

.related-posts {
  border-top: 1px solid var(--ns-border);
  padding-top: 3rem;
  margin-top: 3rem;
}

.related-posts h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ns-muted);
  margin-bottom: 1.5rem;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  background: var(--ns-bg-3);
  border-top: 1px solid var(--ns-border);
  border-bottom: 1px solid var(--ns-border);
  padding: 3rem 0;
}

.stat-item { text-align: center; padding: 0.5rem; }

.stat-number {
  font-family: var(--ns-font-reading);
  font-size: 2.5rem;
  font-weight: 600;
  background: var(--ns-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.stat-label { font-size: 0.9375rem; color: var(--ns-muted); }

/* ---- TESTIMONIAL ---- */
.ns-quote {
  background: var(--ns-bg-card);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
}

.ns-quote::before {
  content: '"';
  font-family: var(--ns-font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--ns-teal);
  opacity: 0.25;
  position: absolute;
  top: 1rem;
  left: 2rem;
}

.ns-quote p {
  font-size: 1.1rem;
  color: var(--ns-white);
  font-style: italic;
  margin-bottom: 1rem;
}

.ns-quote .attribution { font-size: 0.9375rem; color: var(--ns-muted); }

/* ---- CONTACT FORM ---- */
.contact-form-wrap {
  background: var(--ns-bg-card);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 2.5rem;
}

.ns-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ns-white);
  margin-bottom: 0.4rem;
}

.ns-input {
  width: 100%;
  background: var(--ns-bg-2);
  border: 1px solid var(--ns-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--ns-white);
  font-family: var(--ns-font-reading);
  font-size: 1rem;
  min-width: 0;
  transition: border-color 0.15s;
  outline: none;
}

.ns-input:focus { border-color: var(--ns-teal); }
.ns-input::placeholder { color: var(--ns-muted); }

textarea.ns-input { resize: vertical; min-height: 140px; }

select.ns-input option { background: var(--ns-bg-2); }

/* ---- FOOTER ---- */
.ns-footer {
  background: #050a14;
  border-top: 1px solid var(--ns-border);
  padding: 60px 0 30px;
}

.footer-brand {
  font-family: var(--ns-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ns-white);
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}

.footer-brand span { color: var(--ns-teal); }

.footer-desc { font-size: 0.9rem; max-width: 280px; }

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ns-white);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--ns-muted); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--ns-teal-lt); }

.footer-bottom {
  border-top: 1px solid var(--ns-border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ns-muted);
}

/* ---- DIVIDER / UTILS ---- */
.ns-divider {
  border: none;
  border-top: 1px solid var(--ns-border);
  margin: 0;
}

.text-grad {
  background: var(--ns-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-blue { color: var(--ns-teal-lt); }
.text-teal { color: var(--ns-teal); }
.text-muted-ns { color: var(--ns-muted); }

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .ns-nav .navbar-collapse { flex-basis: auto; }
  .ns-nav .navbar-nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 1199px) {
  :root { --ns-type-hero: 3rem; --ns-type-section: 2rem; }
}

@media (max-width: 768px) {
  :root { --ns-type-hero: 2.375rem; --ns-type-section: 1.75rem; --ns-type-article: 2rem; }
  .ns-hero { padding: 70px 0 50px; }
  .section { padding: 56px 0; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .ns-nav .brand { max-width: calc(100% - 3rem); }
  .ns-nav .navbar-toggler { flex: 0 0 auto; padding: .5rem; }
  .ns-nav .navbar-collapse { flex-basis: 100%; }
  .ns-nav .nav-link.btn-nav-cta { margin-left: 0 !important; }
  .service-card, .contact-form-wrap { padding: 1.5rem; }
  .section > .container > .row.g-5 { --bs-gutter-x: 1.5rem; }
}
