/* =====================================================================
   NetShields LLC — Design System
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ns-navy-950: #06121f;
  --ns-navy-900: #0a1b33;
  --ns-navy-800: #0e2546;
  --ns-navy-700: #143159;

  --ns-blue-600: #1d5fe0;
  --ns-blue-500: #2f6fe8;
  --ns-blue-100: #dbe7fb;
  --ns-blue-50: #eef4fd;

  --ns-teal-500: #14b8a6;
  --ns-teal-600: #0d9488;
  --ns-cyan-400: #22d3ee;

  --ns-ink: #0f1f33;
  --ns-slate: #46586f;
  --ns-slate-light: #64748b;

  --ns-surface: #ffffff;
  --ns-bg: #f5f7fb;
  --ns-bg-soft: #eef2f8;
  --ns-border: #e2e8f1;
  --ns-border-strong: #cbd5e1;

  --ns-success: #15803d;
  --ns-warning: #b45309;

  --ns-shadow-sm: 0 1px 2px rgba(10, 27, 51, 0.06);
  --ns-shadow: 0 6px 24px rgba(10, 27, 51, 0.08);
  --ns-shadow-lg: 0 18px 48px rgba(10, 27, 51, 0.12);

  --ns-radius: 14px;
  --ns-radius-sm: 9px;
  --ns-radius-lg: 22px;

  --ns-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "Roboto", sans-serif;
  --ns-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --ns-max: 1180px;
  --ns-header-h: 72px;

  --ns-focus: 0 0 0 3px rgba(29, 95, 224, 0.35);

  --ns-gradient: linear-gradient(135deg, #1d5fe0 0%, #22d3ee 100%);
  --ns-gradient-soft: linear-gradient(135deg, rgba(29, 95, 224, 0.10), rgba(34, 211, 238, 0.10));
  --ns-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ns-dur: 0.35s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ns-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ns-ink);
  background: var(--ns-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ns-blue-600); text-decoration: none; }
a:hover { color: var(--ns-blue-500); }

h1, h2, h3, h4, p, li, a, td, th, .note, .lede, .muted, .price, .faq__a {
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  color: var(--ns-navy-900);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.lede { font-size: 1.15rem; color: var(--ns-slate); }
.muted { color: var(--ns-slate); }
.small { font-size: 0.9rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--ns-max); margin-inline: auto; padding-inline: 1.25rem; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--ns-bg); }
.section--navy { background: var(--ns-navy-900); color: #cbd7e8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .muted, .section--navy .lede { color: #a9b8cc; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ns-blue-600);
  margin-bottom: 0.75rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { left: 160%; }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ns-blue-600); color: #fff; }
.btn--primary:hover { background: var(--ns-blue-500); color: #fff; box-shadow: var(--ns-shadow); }

.btn--teal { background: var(--ns-teal-500); color: #04110f; }
.btn--teal:hover { background: #2fd0bd; color: #04110f; }

.btn--outline { background: transparent; color: var(--ns-blue-600); border-color: var(--ns-blue-600); }
.btn--outline:hover { background: var(--ns-blue-50); color: var(--ns-blue-600); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: #fff; }

.btn--ghost { background: transparent; color: var(--ns-blue-600); }
.btn--ghost:hover { background: var(--ns-blue-50); color: var(--ns-blue-600); }

.btn--block { width: 100%; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ns-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--ns-header-h);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ns-navy-900); flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand span { font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .brand__logo { width: auto; height: 32px; border-radius: 0; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ns-slate);
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ns-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover { color: var(--ns-blue-600); background: var(--ns-blue-50); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ns-blue-600); font-weight: 600; }

.nav__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: var(--ns-blue-50);
  border: 1px solid var(--ns-border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ns-navy-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(29, 95, 224, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(20, 184, 166, 0.10), transparent 55%),
    var(--ns-navy-900);
  color: #cbd7e8;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { color: #fff; }
.hero .lede { color: #b7c6db; font-size: 1.18rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

.hero__pricing {
  margin-top: 2rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--ns-radius);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.hero__pricing .price { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero__pricing .unit { color: #b7c6db; }

.hero__panel {
  background: var(--ns-surface);
  color: var(--ns-ink);
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow-lg);
  padding: 1.75rem;
}
.hero__panel .price-big { font-size: 2.6rem; font-weight: 800; color: var(--ns-navy-900); line-height: 1; }
.hero__panel .price-sub { color: var(--ns-slate); }
.hero__panel ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.hero__panel li { padding: 0.4rem 0; border-bottom: 1px solid var(--ns-border); display: flex; gap: 0.5rem; }
.hero__panel li:last-child { border-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  padding: 1.75rem;
  box-shadow: var(--ns-shadow-sm);
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.card:hover { box-shadow: var(--ns-shadow); transform: translateY(-2px); border-color: var(--ns-border-strong); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ns-blue-50);
  color: var(--ns-blue-600);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card ul { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding: 0.22rem 0 0.22rem 1.35rem; color: var(--ns-slate); font-size: 0.95rem; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--ns-teal-600); font-weight: 700; }

/* ---------- Feature / value props ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__mark {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ns-blue-50); color: var(--ns-blue-600);
  display: flex; align-items: center; justify-content: center;
}
.feature__mark svg { width: 21px; height: 21px; }
.feature h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ns-slate); font-size: 0.96rem; }

/* ---------- Checklist ---------- */
.checklist { columns: 2; column-gap: 2.5rem; }
.checklist ul { margin: 0; padding: 0; list-style: none; }
.checklist h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.checklist li { padding: 0.28rem 0 0.28rem 1.5rem; position: relative; color: var(--ns-slate); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ns-teal-600); font-weight: 700; }
.checklist__group { break-inside: avoid; margin-bottom: 1.5rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 1.5rem; }
.pricing-card {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-lg);
  padding: 2rem;
  box-shadow: var(--ns-shadow);
}
.pricing-card--featured { border: 2px solid var(--ns-blue-600); position: relative; box-shadow: 0 20px 50px rgba(29, 95, 224, 0.16); }
.pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ns-blue-600); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.price { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--ns-navy-900); line-height: 1.1; overflow-wrap: anywhere; }
.price .currency { font-size: 1.5rem; vertical-align: 0.9rem; font-weight: 700; }
.price-unit { color: var(--ns-slate); font-size: 0.9rem; font-weight: 600; }

.rate-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.rate-table th, .rate-table td { padding: 0.65rem 0.9rem; text-align: left; border-bottom: 1px solid var(--ns-border); }
.rate-table th { color: var(--ns-slate); font-weight: 600; font-size: 0.9rem; }
.rate-table td:last-child, .rate-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.rate-table tr:last-child td { border-bottom: 0; }

/* ---------- Calculator ---------- */
.calc {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow-lg);
  padding: 2rem;
}
.calc__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
.calc__field { margin-bottom: 1.4rem; }
.calc__field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.calc__field .hint { color: var(--ns-slate); font-size: 0.85rem; }
.calc__row { display: flex; align-items: center; gap: 0.75rem; }
.calc__input {
  width: 90px; font-size: 1.05rem; font-weight: 600; text-align: center;
  padding: 0.6rem; border: 1.5px solid var(--ns-border-strong); border-radius: 10px;
  color: var(--ns-navy-900);
}
.calc__input:focus { outline: none; border-color: var(--ns-blue-600); box-shadow: var(--ns-focus); }

.calc__toggle { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; cursor: pointer; }
.calc__toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--ns-blue-600); }

.calc__total {
  background: var(--ns-navy-900);
  color: #fff; border-radius: var(--ns-radius);
  padding: 1.75rem; align-self: start; position: sticky; top: calc(var(--ns-header-h) + 1rem);
}
.calc__total .label { color: #a9b8cc; font-size: 0.9rem; }
.calc__total .amount { font-size: 2.8rem; font-weight: 800; line-height: 1.05; margin: 0.35rem 0 0.35rem; }
.calc__total .amount small { font-size: 1.1rem; font-weight: 600; color: #cbd7e8; }
.calc__total .row { display: flex; justify-content: space-between; color: #cbd7e8; font-size: 0.9rem; padding: 0.2rem 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form__field { display: flex; flex-direction: column; gap: 0.35rem; }
.form__field label { font-weight: 600; font-size: 0.95rem; }
.form__field .req { color: var(--ns-blue-600); }
.form__field input, .form__field select, .form__field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ns-ink);
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--ns-border-strong);
  border-radius: 10px; background: #fff;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--ns-blue-600); box-shadow: var(--ns-focus);
}
.form__field .err { color: #b91c1c; font-size: 0.85rem; display: none; }
.form__field.has-error input, .form__field.has-error select, .form__field.has-error textarea { border-color: #b91c1c; }
.form__field.has-error .err { display: block; }
.form__note { font-size: 0.86rem; color: var(--ns-slate); background: var(--ns-bg); border-radius: 10px; padding: 0.9rem 1rem; }
.cf-turnstile { margin: 0 0 1rem; }
.cf-turnstile iframe { border-radius: 10px; }
.form__status { display: none; padding: 0.9rem 1rem; border-radius: 10px; font-weight: 500; }
.form__status--ok { background: #dcfce7; color: #166534; }
.form__status--err { background: #fee2e2; color: #991b1b; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--ns-border); border-radius: var(--ns-radius); margin-bottom: 0.9rem; background: var(--ns-surface); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.15rem 1.4rem; font-family: inherit; font-size: 1.02rem; font-weight: 600;
  color: var(--ns-navy-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q .ind { flex: 0 0 auto; color: var(--ns-blue-600); font-size: 1.5rem; line-height: 1; transition: transform 0.16s ease; }
.faq__item[open] .ind { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.2rem; color: var(--ns-slate); }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(29, 95, 224, 0.22), transparent 60%),
    var(--ns-navy-900);
  color: #cbd7e8;
  border-radius: var(--ns-radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .price-line { font-size: 1.25rem; color: #fff; font-weight: 700; }
.cta-band .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 1.5rem; }

/* ---------- Disclaimer boxes ---------- */
.note {
  background: var(--ns-bg-soft);
  border-left: 4px solid var(--ns-blue-600);
  border-radius: 0 var(--ns-radius-sm) var(--ns-radius-sm) 0;
  padding: 0.9rem 1.1rem;
  color: var(--ns-slate);
  font-size: 0.92rem;
}
.note--warn { border-left-color: var(--ns-warning); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ns-navy-950); color: #9fb0c6; padding-top: 4rem; }
.site-footer .container { padding-bottom: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer a { color: #9fb0c6; }
.site-footer a:hover { color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; margin-bottom: 0.9rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.4rem; margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center;
  font-size: 0.86rem; color: #7c8ea6;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  z-index: 1000; width: min(560px, calc(100% - 2.5rem));
  background: var(--ns-surface); border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-lg); box-shadow: var(--ns-shadow-lg);
  padding: 1.4rem 1.5rem; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cookie-banner p { font-size: 0.9rem; color: var(--ns-slate); margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Cookie preferences modal ---------- */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(6, 18, 31, 0.6);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal__panel {
  background: var(--ns-surface); border-radius: var(--ns-radius-lg);
  max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; padding: 1.75rem;
}
.cookie-modal__panel h3 { margin-bottom: 0.4rem; }
.cookie-modal__cat { border: 1px solid var(--ns-border); border-radius: var(--ns-radius-sm); padding: 1rem; margin-bottom: 0.9rem; }
.cookie-modal__cat label { display: flex; gap: 0.75rem; font-weight: 600; }
.cookie-modal__cat p { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--ns-slate); }
.cookie-modal__cat input { accent-color: var(--ns-blue-600); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--ns-blue-600); outline-offset: 2px; border-radius: 4px; }
a.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ns-blue-600); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 0;
}
a.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--ns-navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ns-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
    background 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ns-blue-600); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- Header scroll shadow ---------- */
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(10, 27, 51, 0.08);
}

/* ---------- Hero ambient orbs ---------- */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.hero::before {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(29, 95, 224, 0.55), transparent 70%);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 380px;
  height: 380px;
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.45), transparent 70%);
  animation: hero-drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes hero-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.12); }
}

/* ---------- Section eyebrow gradient rule ---------- */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-head .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ns-gradient);
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ns-gradient);
  border-radius: 2px;
}

/* ---------- Card gradient accent ---------- */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ns-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover::before { opacity: 1; }

/* ---------- Responsive ---------- */
/* Nav collapses earlier than the content grids: 8 links + CTA is ~1056px wide. */
@media (max-width: 1120px) {
  .nav { 
    position: fixed; inset: var(--ns-header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--ns-surface); border-bottom: 1px solid var(--ns-border);
    padding: 1rem 1.25rem 1.5rem; gap: 0.15rem;
    box-shadow: var(--ns-shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 0.7rem 0.85rem; font-size: 1.02rem; }
  .nav__cta { margin: 0.5rem 0 0; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
  .calc__total { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .rate-table { font-size: 0.9rem; }
  .hero__pricing { display: flex; flex-direction: column; gap: 0.15rem; }
}
