/* ═══════════════════════════════════════════════
   LOW VOLTAGE NYC — Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ── */
:root {
  --ink:      #09090E;
  --ink-2:    #3C3D4A;
  --ink-3:    #8A8B9A;
  --bg:       #F5F4F0;
  --surface:  #FFFFFF;
  --border:   #E3E2DB;
  --border-2: #CCCBC4;

  --blue:     #1A4FFF;
  --blue-dk:  #0038E0;
  --blue-lt:  #EBF0FF;
  --blue-mid: #C0D2FF;

  --dark:     #09090E;
  --dark-2:   #12131C;
  --dark-3:   #1C1E2C;
  --dark-4:   #262839;

  --green:    #047857;
  --green-lt: #ECFDF5;
  --red:      #B91C1C;
  --red-lt:   #FEF2F2;
  --amber:    #B45309;
  --amber-lt: #FFFBEB;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-h: 68px;
  --max-w: 1200px;
  --px:    clamp(20px, 4vw, 48px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }
.section-dark { background: var(--dark); }
.section-surface { background: var(--surface); }
.section-tint { background: var(--blue-lt); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: currentColor;
}
.eyebrow-blue { color: var(--blue); }
.eyebrow-white { color: rgba(255,255,255,.5); }

h1, .h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.07; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
h3, .h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
h4, .h4 { font-size: 16px; font-weight: 600; line-height: 1.35; }
h5, .h5 { font-size: 13px; font-weight: 600; letter-spacing: .02em; }

.lead { font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7; color: var(--ink-2); }
.lead-white { color: rgba(255,255,255,.7); }
.text-white { color: #fff; }
.text-muted { color: var(--ink-3); }
.text-blue { color: var(--blue); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; letter-spacing: .04em; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  transition: all .18s ease; white-space: nowrap; cursor: pointer;
}
.btn-lg { padding: 15px 32px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 11px; }

.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

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

.btn-dark {
  background: var(--dark); color: #fff; border-color: var(--dark);
}
.btn-dark:hover { background: var(--dark-2); }

.btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

.btn-ghost {
  background: transparent; border-color: transparent; color: var(--blue);
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--blue-dk); }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Arrow CTA link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue);
  transition: gap .18s;
}
.link-arrow::after { content: '→'; transition: transform .18s; }
.link-arrow:hover { gap: 10px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.badge-blue { background: var(--blue-lt); color: var(--blue); }
.badge-dark { background: var(--dark-3); color: rgba(255,255,255,.8); }
.badge-green { background: var(--green-lt); color: var(--green); }
.badge-amber { background: var(--amber-lt); color: var(--amber); }
.badge-outline { background: transparent; border: 1px solid var(--border-2); color: var(--ink-3); }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.98);
}
.nav.dark {
  background: rgba(9,9,14,.92);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav.dark.scrolled {
  background: rgba(9,9,14,.98);
}

.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
}

.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-mark {
  width: 34px; height: 34px;
  background: var(--blue); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.nav-mark svg { width: 18px; height: 18px; fill: #fff; }
.nav-brand-name {
  font-size: 14px; font-weight: 700;
  letter-spacing: .01em; line-height: 1.2;
}
.nav-brand-tag {
  font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1;
}
.nav.dark .nav-brand-name { color: #fff; }
.nav.dark .nav-brand-tag { color: rgba(255,255,255,.45); }

.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-link {
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: var(--ink-2); transition: color .15s, background .15s;
  position: relative; display: flex; align-items: center; gap: 4px;
}
.nav-link:hover { color: var(--ink); background: var(--bg); }
.nav.dark .nav-link { color: rgba(255,255,255,.65); }
.nav.dark .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }

.nav-link svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-link:hover svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  transition: background .12s;
}
.nav-dropdown-item:hover { background: var(--bg); }
.nav-dropdown-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--blue-lt); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.nav-dropdown-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.nav-dropdown-text { line-height: 1.35; }
.nav-dropdown-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.nav-dropdown-desc { font-size: 11px; color: var(--ink-3); margin-top: 1px; }

.nav-cta { flex-shrink: 0; }

/* Mobile toggle */
.nav-mobile-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
  cursor: pointer;
}
.nav-mobile-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all .2s;
}
.nav.dark .nav-mobile-btn span { background: #fff; }

/* ── HERO ── */
.hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 72px) 0 80px;
  position: relative; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,79,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media {
  position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  display: flex; align-items: center; justify-content: center;
}

/* Trust chips */
.trust-chips { display: flex; flex-direction: column; gap: 10px; }
/* Mobile-only trust chips duplicate (hidden on desktop) */
.hero-trust-mobile { display: none; }
.trust-chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); padding: 12px 16px;
  backdrop-filter: blur(8px); width: 220px;
}
.trust-chip-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(26,79,255,.25);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.trust-chip-icon svg { width: 18px; height: 18px; stroke: #7AA5FF; fill: none; stroke-width: 1.8; }
.trust-chip-label { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.trust-chip-sub { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }

/* ── SECTION LABEL ── */
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 32px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-label-dark { color: rgba(255,255,255,.35); }
.section-label-dark::after { background: rgba(255,255,255,.1); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-bar-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  text-align: center; padding: 0 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.stat-num-blue { color: var(--blue); }
.stat-label {
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 6px;
}

/* ── AUDIENCE TABS ── */
.audience-tabs {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.audience-tab {
  padding: 24px; cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background .15s;
  position: relative;
}
.audience-tab:last-child { border-right: none; }
.audience-tab::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--blue);
  transform: scaleX(0); transition: transform .2s;
}
.audience-tab.active, .audience-tab:hover { background: var(--bg); }
.audience-tab.active::after { transform: scaleX(1); }
.audience-tab-icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--blue-lt); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.audience-tab-icon svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.audience-tab h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.audience-tab p { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card-img {
  height: 200px; background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.service-card-img-icon {
  width: 64px; height: 64px; opacity: .25;
}
.service-card-img-icon svg { width: 64px; height: 64px; stroke: #fff; fill: none; stroke-width: 1; }
.service-card-badge {
  position: absolute; top: 16px; left: 16px;
}
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; flex: 1; }
.service-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.service-card-footer {
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; align-items: center; justify-content: flex-end;
  margin-top: auto;
}

/* ── FEATURE CARDS ── */
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feat-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.feat-card h4 { margin-bottom: 6px; }
.feat-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* Dark variant */
.feat-card-dark {
  background: var(--dark-2); border-color: rgba(255,255,255,.08); color: #fff;
}
.feat-card-dark .feat-icon { background: rgba(26,79,255,.2); }
.feat-card-dark p { color: rgba(255,255,255,.6); }

/* ── CASE STUDY CARD ── */
.cs-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.cs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cs-card-img {
  height: 180px; background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cs-card-img-placeholder {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.cs-card-body { padding: 24px; }
.cs-card-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.cs-card-body h3 { font-size: 17px; margin-bottom: 8px; }
.cs-card-body p { font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.cs-stat-row {
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; gap: 20px;
}
.cs-mini-stat .cs-num { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.cs-mini-stat .cs-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 20px; right: 24px;
  font-size: 64px; line-height: 1; color: var(--border);
  font-family: Georgia, serif;
}
.testimonial-card blockquote {
  font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 20px;
  font-style: italic; position: relative; z-index: 1;
}
.testimonial-cite { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--blue);
  flex-shrink: 0;
}
.testimonial-name { font-size: 13px; font-weight: 600; }
.testimonial-role { font-size: 11px; color: var(--ink-3); margin-top: 1px; }

/* ── PLATFORM CARDS ── */
.platform-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .2s, background .2s;
}
.platform-card:hover {
  background: var(--dark-3); border-color: rgba(26,79,255,.4);
}
.platform-card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(26,79,255,.2); border: 1px solid rgba(26,79,255,.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.platform-card-icon svg { width: 24px; height: 24px; stroke: #7AA5FF; fill: none; stroke-width: 1.8; }
.platform-card h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.platform-card p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 16px; }
.platform-card-features { display: flex; flex-direction: column; gap: 6px; }
.platform-card-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.65);
}
.platform-card-feature::before {
  content: '';
  width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%; background: rgba(26,79,255,.25);
  border: 1px solid rgba(26,79,255,.4);
  display: flex; align-items: center; justify-content: center;
}

/* ── PAIN / VALUE GRID ── */
.pv-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.pv-header {
  padding: 12px 20px; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.pv-header-pain { background: var(--red-lt); color: var(--red); border-bottom: 1px solid #FECACA; }
.pv-header-value { background: var(--green-lt); color: var(--green); border-bottom: 1px solid #A7F3D0; }
.pv-body { padding: 20px; }
.pv-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
  margin-bottom: 10px;
}
.pv-item:last-child { margin-bottom: 0; }
.pv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; margin-top: 7px;
}
.pain-dot { background: var(--red); }
.value-dot { background: var(--green); }

/* ── PROCESS STEPS ── */
.steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute;
  top: 20px; left: 10%; right: 10%; height: 1px;
  background: var(--border); z-index: 0;
}
.step { text-align: center; padding: 0 8px; position: relative; z-index: 1; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--ink-3);
  margin: 0 auto 12px;
  transition: all .2s;
}
.step.active .step-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.step h5 { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 11px; color: var(--ink-3); line-height: 1.4; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--dark); padding: 72px 0;
}
.cta-banner-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.cta-banner h2 { color: #fff; max-width: 520px; }
.cta-banner p { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 10px; max-width: 480px; }
.cta-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 8px; color: var(--ink);
}
.form-hint { font-size: 11px; color: var(--ink-3); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,255,.12);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238A8B9A' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px; cursor: pointer;
}
.form-textarea { min-height: 100px; resize: vertical; }

/* Range slider */
.form-range-wrap { padding: 4px 0; }
.form-range {
  width: 100%; height: 4px; border-radius: 4px;
  background: var(--border); outline: none; -webkit-appearance: none;
  cursor: pointer;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--blue);
  box-shadow: 0 1px 4px rgba(26,79,255,.35);
  cursor: pointer; transition: transform .15s;
}
.form-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-readout {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.range-value {
  font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--blue-lt); padding: 2px 10px;
  border-radius: 4px; letter-spacing: -.01em;
}
.range-bounds { font-size: 11px; color: var(--ink-3); }

/* Checkboxes */
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--blue); cursor: pointer;
}
.form-check-label { font-size: 13px; color: var(--ink-2); }

/* Form grid */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── COMPARISON TABLE ── */
.comparison-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.comparison-table th {
  padding: 14px 20px; text-align: left;
  background: var(--bg); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.comparison-table th.col-unifi { background: var(--blue); color: #fff; text-align: center; }
.comparison-table th.col-legacy { background: var(--dark-3); color: rgba(255,255,255,.7); text-align: center; }
.comparison-table td {
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--ink-2);
}
.comparison-table td.col-unifi, .comparison-table td.col-legacy {
  text-align: center; font-weight: 600;
}
.comparison-table td.col-unifi { color: var(--green); }
.comparison-table td.col-legacy { color: var(--red); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg); }

/* Check / X icons */
.check-yes::before { content: '✓'; color: var(--green); font-weight: 700; }
.check-no::before { content: '✕'; color: var(--red); }

/* ── TOOLKIT CARD ── */
.toolkit-card {
  background: var(--surface); border: 1.5px solid var(--blue-mid);
  border-radius: var(--r-lg); padding: 24px;
}
.toolkit-card .tk-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.toolkit-card h4 { font-size: 16px; margin-bottom: 6px; }
.toolkit-card p { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.toolkit-card .toolkit-includes {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px;
}
.toolkit-include-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2);
}
.toolkit-include-item::before {
  content: '';
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-lt); border: 1px solid #A7F3D0;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ── ROI CALCULATOR ── */
.roi-shell {
  display: grid; grid-template-columns: 400px 1fr;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.roi-inputs {
  background: var(--bg); border-right: 1px solid var(--border);
  padding: 36px 32px;
}
.roi-inputs h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-3);
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.roi-results { padding: 36px 32px; }
.roi-results h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-3);
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

/* Results hero */
.roi-hero-card {
  background: var(--dark); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 20px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.roi-metric-num {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.025em; color: #fff; line-height: 1;
}
.roi-metric-num.positive { color: #4ADE80; }
.roi-metric-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.45); margin-top: 4px;
}
.roi-divider { width: 1px; background: rgba(255,255,255,.1); }

/* Breakdown grid */
.roi-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.roi-breakdown-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
}
.roi-breakdown-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); margin-bottom: 4px;
}
.roi-breakdown-val {
  font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--ink);
}
.roi-breakdown-val.savings { color: var(--green); }
.roi-breakdown-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* Chart */
.roi-chart-wrap {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px; margin-bottom: 20px;
}
.roi-chart-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); margin-bottom: 16px;
}
.roi-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.roi-bar-col { flex: 1; display: flex; flex-direction: column; }
.roi-bar {
  border-radius: 3px 3px 0 0; min-height: 4px;
  transition: height .4s ease;
}
.roi-bar.negative { background: #FECACA; }
.roi-bar.positive { background: #A7F3D0; }
.roi-bar-yr {
  text-align: center; font-size: 10px; color: var(--ink-3);
  letter-spacing: .04em; padding-top: 5px;
}
.roi-chart-legend {
  display: flex; gap: 16px; margin-top: 10px;
}
.roi-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.roi-legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.roi-note { font-size: 10px; color: var(--ink-3); margin-top: 12px; line-height: 1.6; }

/* Lead capture */
.roi-lead-card {
  background: var(--blue-lt); border: 1.5px solid var(--blue-mid);
  border-radius: var(--r-lg); padding: 24px;
}
.roi-lead-card h4 { font-size: 16px; margin-bottom: 6px; }
.roi-lead-card > p { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.roi-lead-privacy { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* ── PORTFOLIO FILTER ── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  background: var(--dark); padding: calc(var(--nav-h) + 56px) 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { max-width: 600px; }
.page-hero-meta { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { padding-right: 24px; }
.footer-brand-name {
  font-size: 14px; font-weight: 700; color: #fff;
  letter-spacing: .01em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.footer-mark {
  width: 28px; height: 28px; background: var(--blue);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.footer-mark svg { width: 14px; height: 14px; fill: #fff; }
.footer-brand p {
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-certs { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-cert {
  padding: 4px 10px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm);
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.footer-col h5 {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-left { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom-right { display: flex; gap: 16px; }
.footer-bottom-right a { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom-right a:hover { color: rgba(255,255,255,.7); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color .15s; }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb-sep { color: rgba(255,255,255,.25); }

/* ── UTILITY ── */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

.text-center { text-align: center; }
.max-600 { max-width: 600px; }
.max-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.divider { height: 1px; background: var(--border); margin: 0; }
.divider-dark { background: rgba(255,255,255,.08); }

/* Page offset for fixed nav */
.page-body { padding-top: var(--nav-h); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-media { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .comparison-table { font-size: 12px; }
  .roi-shell { grid-template-columns: 1fr; }
  .roi-inputs { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  :root { --px: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .audience-tabs { grid-template-columns: 1fr 1fr; }
  .cta-banner-inner { flex-direction: column; }
  .cta-banner-actions { width: 100%; flex-direction: column; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: flex; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .steps::before { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .roi-hero-card { grid-template-columns: 1fr; }
  .roi-breakdown { grid-template-columns: 1fr; }

  /* Comparison table — horizontal scroll on small screens */
  .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Page hero h1 */
  .page-hero h1 { font-size: clamp(26px, 6vw, 42px); }
  .hero h1 { font-size: clamp(28px, 7vw, 52px); }

  /* Service cards padding */
  .service-card-body { padding: 16px; }

  /* ── Case study cards ──
     Override inline grid-template-columns: 280px 1fr on homepage featured card.
     Stack image above body on mobile. */
  .cs-card { display: flex !important; flex-direction: column !important; }
  .cs-card .cs-card-img {
    height: 160px !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  /* Mini stats: 2×2 wrap instead of 4-in-a-row */
  .cs-stat-row { flex-wrap: wrap; gap: 12px; }
  .cs-mini-stat { flex: 1 1 calc(50% - 6px); min-width: 80px; }
  .cs-mini-stat .cs-num { font-size: 20px; }

  /* Portfolio card body padding tighter on mobile */
  .cs-card-body { padding: 16px !important; }

  /* Hero: collapse 2-col grid on mobile; hide original sidebar trust chips */
  .hero-inner { display: block !important; }
  .hero-inner > .trust-chips { display: none; }
  /* Show inline trust chips (with links) between lead text and CTA */
  .hero-trust-mobile { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 24px; }
  .hero-trust-mobile .trust-chip { width: 100%; text-decoration: none; }

  /* Stats bar — tighter vertical padding and cell padding on mobile */
  .stats-bar { padding: 24px 0; }
  .stat-item { padding: 12px 8px; }
}

/* ── MOBILE NAV OPEN STATE ──
   backdrop-filter on .nav creates a containing block, so position:fixed on
   children gets clipped. Fix: expand the nav element itself to full screen.
── */
.nav.mobile-open {
  height: 100dvh;
  height: 100vh; /* fallback */
  overflow-y: auto;
  background: var(--dark-2) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.mobile-open .nav-inner {
  height: var(--nav-h);
  flex-wrap: wrap;
  align-content: flex-start;
  padding-bottom: 32px;
}

.nav.mobile-open .nav-links {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  gap: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  /* full-width row below brand + toggle */
  order: 10;
  flex-basis: 100%;
}

.nav.mobile-open .nav-cta {
  display: block !important;
  width: 100%;
  text-align: center;
  order: 11;
  flex-basis: 100%;
  margin-top: 16px;
}

.nav.mobile-open .nav-link {
  display: block;
  color: rgba(255,255,255,.85) !important;
  font-size: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav.mobile-open .nav-dropdown { position: static; }

.nav.mobile-open .nav-dropdown-menu {
  position: static;
  transform: none !important;
  background: rgba(255,255,255,.04);
  box-shadow: none;
  border-radius: 8px;
  padding: 6px 8px;
  margin: 0;
  min-width: 0;
  /* Collapsed by default — expanded via .mobile-expanded on parent */
  display: none;
  flex-direction: column;
  gap: 0;
}

/* Expand sub-menu when parent has .mobile-expanded */
.nav.mobile-open .nav-dropdown.mobile-expanded .nav-dropdown-menu {
  display: flex;
  margin: 6px 0 10px;
}

/* Hide the icon blocks inside dropdown items on mobile */
.nav.mobile-open .nav-dropdown-icon { display: none; }

/* Animate chevron arrow in the dropdown trigger link */
.nav.mobile-open .nav-link svg { transition: transform .2s ease; }
.nav.mobile-open .nav-dropdown.mobile-expanded > .nav-link svg { transform: rotate(180deg); }

.nav.mobile-open .nav-dropdown-item { padding: 10px 8px; }
.nav.mobile-open .nav-dropdown-label { color: rgba(255,255,255,.85); }
.nav.mobile-open .nav-dropdown-desc  { color: rgba(255,255,255,.4); }

/* Hamburger → X when open */
.nav.mobile-open .nav-mobile-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.mobile-open .nav-mobile-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.mobile-open .nav-mobile-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Prevent body scroll when nav open */
body.nav-open { overflow: hidden; }
