/* =========================================================
   Nexcore Path — Site Stylesheet
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
/* Prevent display rules from overriding the HTML hidden attribute */
[hidden] { display: none !important; }

/* ---------- Skip-to-content link (a11y, item 42) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Design Tokens ---------- */
:root {
  --hero-bg: #0a0f1e;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --accent: #60a5fa;
  --accent-warm: #f59e0b;        /* secondary warm accent (item 24) */
  --accent-warm-soft: rgba(245, 158, 11, 0.14);
  --body-bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;              /* bumped from #64748b for AA contrast (item 25) */
  --border: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.08);
  --text-dark: #e2e8f0;
  --muted-dark: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

  --container: 1280px;           /* widened from 1200px (item 8) */
  --section-pad-y: 96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base Typography ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p  { margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: var(--section-pad-y) 0; }
.section-light { background: var(--surface); }
.section-grey  { background: var(--body-bg); }
.section-dark  { background: var(--hero-bg); color: var(--text-dark); }

.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-lede {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--body-bg); }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 12px 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 30px; height: 30px; animation: spin-pulse 10s ease-in-out infinite; }
@keyframes spin-pulse {
  0%   { transform: rotate(0deg)   scale(1);    }
  16%  { transform: rotate(58deg)  scale(1.2);  }
  33%  { transform: rotate(119deg) scale(1);    }
  50%  { transform: rotate(180deg) scale(1.2);  }
  66%  { transform: rotate(238deg) scale(1);    }
  83%  { transform: rotate(299deg) scale(1.2);  }
  100% { transform: rotate(360deg) scale(1);    }
}
.brand-mark path { fill: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

/* Animated underline on nav links (item 15) — also drives active state (item 19) */
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease-out);
  border-radius: 1px;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { transform: scaleX(1); }
.nav-links a:not(.btn).active { color: #fff; }

.nav-cta { font-size: 14px; padding: 10px 18px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: #fff;
  padding: 180px 0 120px;
  isolation: isolate;
}
/* Angular-line diagonal texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 22px
  );
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  z-index: -2;
}
/* Blue radial glow — slow breathing animation (item 10) */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 900px; height: 700px;
  transform: translate(-50%, -50%) scale(1);
  background: radial-gradient(closest-side, rgba(96, 165, 250, 0.35), rgba(29, 78, 216, 0.12) 45%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: glow-breathe 9s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 0.85; }
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .hl {
  background: linear-gradient(90deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero pill — white text with warm-accent pulsing dot (items 11, 27) */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.9);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.45); opacity: 0.55; }
}

/* Staggered hero entry (item 14) */
.hero-pill, .hero-inner h1, .hero-sub, .hero-cta {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 0.75s var(--ease-out) forwards;
}
.hero-pill   { animation-delay: 0.05s; }
.hero-inner h1 { animation-delay: 0.16s; }
.hero-sub    { animation-delay: 0.30s; }
.hero-cta    { animation-delay: 0.44s; }
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Compact page hero (Services) */
.hero-compact { padding: 150px 0 80px; }
.hero-compact h1 { font-size: clamp(36px, 5vw, 52px); }
.hero-compact .hero-sub { margin-bottom: 0; }

/* ---------- Trust Bar (item 18) ---------- */
.trust-bar {
  padding: 56px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.trust-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
  filter: grayscale(100%);
  transition: color 0.2s ease, filter 0.2s ease;
}
.trust-logo:hover { color: var(--text); filter: grayscale(0%); }
.trust-sub {
  text-align: center;
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Services Overview Cards — 3+2 grid (item 1) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.cards-grid .service-card:nth-child(1),
.cards-grid .service-card:nth-child(2),
.cards-grid .service-card:nth-child(3) { grid-column: span 2; }
.cards-grid .service-card:nth-child(4),
.cards-grid .service-card:nth-child(5) { grid-column: span 3; }

@media (max-width: 1023px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .cards-grid .service-card:nth-child(1),
  .cards-grid .service-card:nth-child(2),
  .cards-grid .service-card:nth-child(3),
  .cards-grid .service-card:nth-child(4) { grid-column: span 2; }
  .cards-grid .service-card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid .service-card { grid-column: 1 !important; }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 78, 216, 0.25);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary);
  transition: transform 0.25s var(--ease-out);    /* item 16 */
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon {              /* item 16 */
  transform: scale(1.1) rotate(-3deg);
}
.service-card h3 { font-size: 17px; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.service-card .link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .link::after {
  content: "→";
  color: var(--accent-warm);
  transition: transform 0.2s ease;
}
.service-card:hover .link::after { transform: translateX(4px); }

/* ---------- Why Choose Us — 2x2 with icons (item 23) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 8px;
}
.why-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.10), rgba(96, 165, 250, 0.16));
  color: var(--primary);
  display: inline-flex;
  align-items: center; justify-content: center;
}
.why-icon svg { width: 28px; height: 28px; }
.why-text h3 { font-size: 18px; margin-bottom: 8px; }
.why-text p  { color: var(--muted); font-size: 15px; }

/* ---------- How We Work — stepper with connecting line (item 23) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 12.5%; right: 12.5%;
  top: 32px;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(29, 78, 216, 0.35) 0, rgba(29, 78, 216, 0.35) 5px,
    transparent 5px, transparent 12px
  );
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.step-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.14);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- About Section ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy h2 { text-align: left; margin-bottom: 16px; }
.about-copy p { color: var(--muted); margin-bottom: 12px; font-size: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.about-stat-mini { padding: 16px; background: var(--body-bg); border-radius: var(--radius-md); }
.about-stat-mini .n { font-size: 22px; font-weight: 700; color: var(--primary); }
.about-stat-mini .l { font-size: 13px; color: var(--muted); }

.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.1);  /* ~90% zoom — shows less of the image, tighter crop */
}

/* ---------- Stats strip (item 26) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  background: var(--accent-warm);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.stat .n {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);                              /* solid, more emphatic */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { text-align: left; margin-bottom: 16px; }
.contact-info p  { color: var(--muted); margin-bottom: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
}
.contact-list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-list .label { font-weight: 600; display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list .val { color: var(--text); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status {
  font-size: 14px;
  min-height: 20px;
}
.form-status.success { color: #15803d; }
.form-status.error   { color: #b91c1c; }

/* Privacy note under submit (item 34) */
.form-privacy {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

/* Form success card — replaces form after successful submit (item 35) */
.form-success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.form-success-card .success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.form-success-card .success-icon svg { width: 26px; height: 26px; }
.form-success-card h3 { margin-bottom: 4px; font-size: 22px; }
.form-success-card p { color: var(--muted); max-width: 340px; margin: 0 0 8px; }

/* Google Maps embed (item 37) */
.map-embed {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--hero-bg);
  color: var(--text-dark);
  padding: 64px 0 28px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 22px
  );
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}
.footer .container { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-tag { color: var(--muted-dark); font-size: 14.5px; max-width: 280px; }
.footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted-dark); font-size: 14.5px; transition: color 0.15s ease; }
.footer a:hover { color: #fff; }
.footer-contact li { color: var(--muted-dark); font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-dark);
}

/* =========================================================
   Services Page
   ========================================================= */

/* Sticky tab strip — with right-edge fade mask on small screens (item 5) */
.svc-tabs {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.svc-tabs .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.svc-tabs .container::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .svc-tabs .container {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
}

/* Tab — sliding underline indicator (item 13) */
.svc-tab {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.svc-tab:hover { color: var(--text); background: var(--body-bg); }
.svc-tab::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease-out);
  border-radius: 2px;
}
.svc-tab.active { color: var(--primary); }
.svc-tab.active::after { transform: scaleX(1); }

/* Services section padding now uses the token + bigger mobile scroll offset (items 4, 6) */
.svc-section { padding: var(--section-pad-y) 0; scroll-margin-top: 140px; }

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.svc-row.reverse .svc-media { order: 2; }
.svc-row.reverse .svc-copy  { order: 1; }

.svc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.svc-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.svc-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.svc-copy h2 { text-align: left; margin-bottom: 14px; }
.svc-copy > p { color: var(--muted); font-size: 16.5px; margin-bottom: 20px; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.svc-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  margin-top: 2px;
}

/* Use-case chips (item 22) */
.svc-cases {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.cases-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.cases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.06);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(29, 78, 216, 0.18);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.brand-row span:first-child {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.brand-row .brands { display: flex; gap: 18px; }
.brand-row .brands span {
  font-weight: 700;
  font-size: 16px;
  color: #94a3b8;
}

/* ---------- CTA Banner (Services bottom) ---------- */
.cta-banner {
  background: var(--hero-bg);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 22px
  );
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cta-banner::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 600px; height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(96, 165, 250, 0.28), transparent 70%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255, 255, 255, 0.78); margin-bottom: 28px; font-size: 17px; }

/* =========================================================
   Scroll-reveal (item 9)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  :root { --section-pad-y: 72px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(14px);
    padding: 16px 24px 20px;
    gap: 16px;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav.menu-open .nav-cta { align-self: stretch; text-align: center; }
  /* mobile menu underline behavior: hide the slide-underline, use color shift only */
  .nav.menu-open .nav-links a:not(.btn)::after { display: none; }

  .hero { padding: 140px 0 88px; }

  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-item { padding: 4px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }                  /* hide the connecting line on mobile (item 23) */

  /* About — visual first on mobile (item 7) */
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about .about-visual { order: -1; }
  .about .about-copy   { order: 1; }
  .about-visual { max-width: 480px; margin: 0 auto; width: 100%; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }

  .svc-row { grid-template-columns: 1fr; gap: 32px; }
  .svc-row.reverse .svc-media { order: 0; }
  .svc-row.reverse .svc-copy  { order: 0; }

  .svc-section { scroll-margin-top: 160px; }         /* item 6 */

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .svc-tabs { top: 60px; }
}

@media (max-width: 560px) {
  h1 { font-size: 38px; }
  .trust-logos { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* Hero CTAs full-width on small screens (item 2) */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-cta .btn { width: 100%; }
}

/* =========================================================
   Reduced-motion support (respects user preference)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .hero-pill, .hero-inner h1, .hero-sub, .hero-cta {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero::after { animation: none !important; }
  .hero-pill .dot { animation: none !important; }
}
