/* ============================================================
   SignalMatrix AI — /ai-agents/ Intelligent Automation page
   Page-specific styles. Foundations come from colors_and_type.css.
   Pillar accent for this page: Intelligent Automation (cyan),
   referred to as "Light Blue" in the design brief.
   ============================================================ */

/* Nav pillar theming — set by js/main.js from <body data-active-solution="...">
   so partials/nav.html can be reused unmodified across AEO / Automation / CRM pages. */
:root {
  --current-pillar: var(--pillar-automation);
  --current-pillar-tint: var(--pillar-automation-tint);

  /* Fluid overrides of colors_and_type.css foundations — scale smoothly with
     viewport instead of holding a fixed pixel value until a breakpoint snaps it. */
  --gutter-outer: clamp(20px, 5.5vw, 80px);
  --section-y: clamp(48px, 8vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; overflow-x: hidden; }
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button { font-family: inherit; }

::selection { background: rgba(0, 212, 255, 0.4); color: var(--fg); }

*:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-outer);
}

.eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow-rule__bar {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--pillar-automation);
}
.eyebrow-rule__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5xl);
  align-items: end;
  margin-bottom: var(--space-4xl);
}
.section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin: 24px 0 0;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0;
  padding-bottom: 8px;
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke-1);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding: 18px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.wordmark-img {
  height: 28px;
  width: auto;
  display: block;
}
.wordmark-img--lg { height: 28px; }

/* Hamburger toggle — hidden on desktop, shown at the mobile breakpoint below */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius-md);
  color: var(--fg);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle__icon { width: 20px; height: 20px; }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links {
  display: flex;
  gap: var(--space-2xl);
  justify-content: flex-end;
  align-items: center;
}
.nav-item { position: relative; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-mute);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  background: none;
  border: 0;
  transition: color 200ms var(--ease-out);
}
.nav-link:hover { color: var(--fg); }
.nav-link--active { color: var(--current-pillar); }
.nav-link--active:hover { color: var(--current-pillar); }
.nav-link svg { width: 14px; height: 14px; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  min-width: 240px;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stroke-1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 160ms;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: background 200ms var(--ease-out);
}
.nav-dropdown a:hover { background: var(--navy-700); }
.nav-dropdown a.is-active {
  color: var(--current-pillar);
  background: var(--current-pillar-tint);
}
.nav-dropdown a.is-active:hover { background: var(--current-pillar-tint); }
.nav-dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--current-pillar);
  box-shadow: 0 0 8px var(--current-pillar);
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-family: inherit;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  white-space: nowrap;
  border: 0;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand-green); color: #001F11; }
.btn--primary:hover { filter: brightness(1.10); transform: translateY(-2px); }
.btn--primary:active { filter: brightness(0.95); transform: scale(0.98); }
.btn--secondary {
  background: transparent;
  color: var(--brand-green);
  border: 1.5px solid var(--brand-green);
}
.btn--secondary:hover { background: var(--brand-green-tint); }
.btn--ghost {
  background: transparent;
  color: var(--brand-green);
  padding: 8px 0;
  font-size: 14px;
}
.btn--ghost:hover svg { transform: translateX(4px); }
.btn--ghost svg { transition: transform 200ms var(--ease-out); }
.btn--lg { padding: 16px 24px; font-size: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 72px);
}
.hero__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.04;
}
.hero__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(0, 212, 255, 0.12), transparent 60%);
}
.hero__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__inner { max-width: 920px; }
.hero__eyebrow { margin-bottom: 32px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--pillar-automation); }
.hero p {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--fg-mute);
  max-width: 720px;
  text-wrap: pretty;
}
.hero__ctas {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  border-top: 1px solid var(--stroke-3);
  border-bottom: 1px solid var(--stroke-3);
}
.trust-bar__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.trust-bar__track {
  display: flex;
  width: max-content;
  padding: 24px 0;
  animation: trust-bar-scroll 30s linear infinite;
  will-change: transform;
}
.trust-bar__marquee:hover .trust-bar__track { animation-play-state: paused; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  flex-shrink: 0;
  white-space: nowrap;
}
@keyframes trust-bar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-distance, -50%)); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-bar__track { animation: none; }
}
.trust-item svg { width: 16px; height: 16px; color: var(--pillar-automation); }
.trust-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-mute);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ============================================================
   PROBLEM / STAT BOXES
   ============================================================ */
.problem { padding: var(--section-y) 0; }
.problem h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin: 24px 0 0;
  max-width: 920px;
  text-wrap: balance;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: 56px;
}
.stat-box {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 32px 32px 32px 36px;
  border: 1px solid var(--stroke-1);
  border-left: 4px solid var(--pillar-automation);
  position: relative;
}
.stat-box__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.stat-box__value--green { color: var(--brand-green); }
.stat-box__value--purple { color: var(--pillar-crm); }
.stat-box h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 20px 0 12px;
  line-height: 1.3;
}
.stat-box p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0;
  text-wrap: pretty;
}
.stat-box__source {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  line-height: 1.5;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: var(--section-y) 0;
  background: rgba(0, 212, 255, 0.02);
  border-top: 1px solid var(--stroke-3);
  border-bottom: 1px solid var(--stroke-3);
}
.steps { position: relative; }
.steps__line {
  position: absolute;
  left: 71px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.4), rgba(0, 212, 255, 0.13));
  z-index: 0;
}
.steps__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}
.step {
  display: grid;
  grid-template-columns: clamp(56px, 10vw, 144px) 56px 1fr;
  gap: 0;
  align-items: start;
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 36px);
  transition: all 200ms var(--ease-out);
}
.step:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 32px var(--pillar-automation-glow);
}
.step__number {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--pillar-automation);
  line-height: 0.9;
  text-shadow: 0 0 24px var(--pillar-automation-glow);
}
.step__icon {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.step__icon-badge {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--pillar-automation-tint);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
}
.step__icon-badge svg { width: 18px; height: 18px; color: var(--pillar-automation); }
.step__body { padding-left: 24px; }
.step__body h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 12px;
}
.step__body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-mute);
  margin: 0;
  text-wrap: pretty;
  max-width: 760px;
}

/* ============================================================
   AGENT LIBRARY
   ============================================================ */
.agent-library { padding: var(--section-y) 0; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-4xl);
}
.filter-tab {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--stroke-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms var(--ease-out);
}
.filter-tab:hover { background: var(--brand-green-tint); border-color: rgba(0, 255, 136, 0.4); }
.filter-tab__count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--navy-700);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.filter-tab.is-active {
  background: var(--brand-green);
  color: var(--navy-900);
  border-color: var(--brand-green);
}
.filter-tab.is-active:hover { background: var(--brand-green); border-color: var(--brand-green); }
.filter-tab.is-active .filter-tab__count {
  background: rgba(0, 31, 17, 0.18);
  color: var(--navy-900);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  animation: sm-fade 280ms var(--ease-out);
}
.agent-card {
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 240ms var(--ease-out);
  box-shadow: 0 0 0 rgba(0, 212, 255, 0);
}
.agent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.18);
}
.agent-card.is-hidden { display: none; }
.agent-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--navy-700);
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.08);
}
.agent-card__icon svg { width: 22px; height: 22px; color: var(--pillar-automation); }
.agent-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
  line-height: 1.3;
}
.agent-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0;
  text-wrap: pretty;
  flex: 1;
}
.agent-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.agent-tag--all { background: rgba(0, 255, 136, 0.15); color: var(--brand-green); }
.agent-tag--healthcare { background: rgba(0, 212, 255, 0.15); color: var(--pillar-automation); }
.agent-tag--education { background: rgba(167, 139, 250, 0.15); color: var(--pillar-crm); }
.agent-tag--service { background: rgba(0, 255, 136, 0.15); color: var(--brand-green); }
.agent-tag--product { background: rgba(245, 181, 68, 0.15); color: var(--amber); }

.agent-demo-btn {
  width: 100%;
  padding: 11px 14px;
  margin-top: 4px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--pillar-automation);
  border: 1.5px solid var(--pillar-automation);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms var(--ease-out);
}
.agent-demo-btn svg { width: 12px; height: 12px; }
.agent-card:hover .agent-demo-btn {
  background: var(--pillar-automation);
  color: var(--navy-900);
}

.agent-callout {
  margin-top: var(--space-3xl);
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}
.agent-callout__left {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.agent-callout__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--pillar-automation-tint);
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.agent-callout__icon svg { width: 20px; height: 20px; color: var(--pillar-automation); }
.agent-callout p {
  font-size: 16px;
  color: var(--fg);
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
  max-width: 760px;
}
.agent-callout .btn--ghost svg { width: 14px; height: 14px; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries { padding: var(--section-y) 0; border-top: 1px solid var(--stroke-3); }
.vertical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.vertical-card {
  display: block;
  text-decoration: none;
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 240ms var(--ease-out);
  border: 1.5px solid;
}
.vertical-card:hover { transform: translateY(-2px); }
.vertical-card__glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  pointer-events: none;
}
.vertical-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vertical-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vertical-card__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid;
}
.vertical-card__icon svg { width: 26px; height: 26px; }
.vertical-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.vertical-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
  line-height: 1.25;
}
.vertical-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-mute);
  margin: 0;
  max-width: 520px;
  text-wrap: pretty;
}
.vertical-card__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 200ms var(--ease-out);
}
.vertical-card__cta svg { width: 16px; height: 16px; }
.vertical-card:hover .vertical-card__cta { transform: translateX(4px); }

.vertical-card--healthcare { border-color: rgba(0, 212, 255, 0.3); box-shadow: 0 0 24px rgba(0, 212, 255, 0.10); }
.vertical-card--healthcare:hover { border-color: rgba(0, 212, 255, 0.6); box-shadow: 0 0 48px rgba(0, 212, 255, 0.22); }
.vertical-card--healthcare .vertical-card__glow { background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%); }
.vertical-card--healthcare .vertical-card__icon { background: rgba(0, 212, 255, 0.12); border-color: rgba(0, 212, 255, 0.4); color: var(--pillar-automation); }
.vertical-card--healthcare .vertical-card__badge { color: var(--pillar-automation); background: rgba(0, 212, 255, 0.10); border-color: rgba(0, 212, 255, 0.3); }
.vertical-card--healthcare .vertical-card__cta { color: var(--pillar-automation); }

.vertical-card--education { border-color: rgba(167, 139, 250, 0.3); box-shadow: 0 0 24px rgba(167, 139, 250, 0.10); }
.vertical-card--education:hover { border-color: rgba(167, 139, 250, 0.6); box-shadow: 0 0 48px rgba(167, 139, 250, 0.22); }
.vertical-card--education .vertical-card__glow { background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 70%); }
.vertical-card--education .vertical-card__icon { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.4); color: var(--pillar-crm); }
.vertical-card--education .vertical-card__badge { color: var(--pillar-crm); background: rgba(167, 139, 250, 0.10); border-color: rgba(167, 139, 250, 0.3); }
.vertical-card--education .vertical-card__cta { color: var(--pillar-crm); }

.vertical-card--service { border-color: rgba(0, 255, 136, 0.3); box-shadow: 0 0 24px rgba(0, 255, 136, 0.10); }
.vertical-card--service:hover { border-color: rgba(0, 255, 136, 0.6); box-shadow: 0 0 48px rgba(0, 255, 136, 0.22); }
.vertical-card--service .vertical-card__glow { background: radial-gradient(circle, rgba(0, 255, 136, 0.18), transparent 70%); }
.vertical-card--service .vertical-card__icon { background: rgba(0, 255, 136, 0.12); border-color: rgba(0, 255, 136, 0.4); color: var(--brand-green); }
.vertical-card--service .vertical-card__badge { color: var(--brand-green); background: rgba(0, 255, 136, 0.10); border-color: rgba(0, 255, 136, 0.3); }
.vertical-card--service .vertical-card__cta { color: var(--brand-green); }

.vertical-card--product { border-color: rgba(245, 181, 68, 0.3); box-shadow: 0 0 24px rgba(245, 181, 68, 0.10); }
.vertical-card--product:hover { border-color: rgba(245, 181, 68, 0.6); box-shadow: 0 0 48px rgba(245, 181, 68, 0.22); }
.vertical-card--product .vertical-card__glow { background: radial-gradient(circle, rgba(245, 181, 68, 0.18), transparent 70%); }
.vertical-card--product .vertical-card__icon { background: rgba(245, 181, 68, 0.12); border-color: rgba(245, 181, 68, 0.4); color: var(--amber); }
.vertical-card--product .vertical-card__badge { color: var(--amber); background: rgba(245, 181, 68, 0.10); border-color: rgba(245, 181, 68, 0.3); }
.vertical-card--product .vertical-card__cta { color: var(--amber); }

/* ============================================================
   PROMISE
   ============================================================ */
.promise {
  padding: var(--section-y) 0;
  background: rgba(0, 212, 255, 0.02);
  border-top: 1px solid var(--stroke-3);
  border-bottom: 1px solid var(--stroke-3);
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.promise-card {
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.promise-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--pillar-automation-tint);
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.promise-card__icon svg { width: 22px; height: 22px; color: var(--pillar-automation); }
.promise-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.promise-card p { font-size: 15px; line-height: 1.6; color: var(--fg-mute); margin: 0; text-wrap: pretty; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: var(--section-y) 0; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-card--popular {
  border: 1.5px solid var(--pillar-automation);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.18);
}
.price-card__badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--pillar-automation);
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}
.price-card__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.price-card__price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-card__price strong {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.price-card__price span { font-size: 14px; color: var(--fg-mute); font-weight: 500; }
.price-card__list {
  list-style: none;
  margin: 0; padding: 20px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--stroke-3);
}
.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-mute);
  line-height: 1.5;
}
.price-card__list svg { width: 14px; height: 14px; margin-top: 4px; flex-shrink: 0; color: var(--brand-green); }
.price-card--popular .price-card__list svg { color: var(--pillar-automation); }
.price-card__cta {
  margin-top: auto;
  padding: 12px 16px;
  background: var(--brand-green);
  color: var(--navy-900);
  border: 0;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 200ms var(--ease-out);
  text-align: center;
  text-decoration: none;
  display: block;
}
.price-card__cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   AUDIT BANNER
   ============================================================ */
.audit { padding: var(--section-y) 0; }
.audit__border {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(120deg, var(--brand-green), var(--pillar-automation), var(--brand-green));
  background-size: 200% 200%;
  animation: sm-gradient 8s linear infinite;
}
.audit__panel {
  background: var(--navy-900);
  border-radius: 14px;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 7vw, 72px);
  position: relative;
  overflow: hidden;
}
.audit__texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.04;
  pointer-events: none;
}
.audit__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.audit h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg);
  margin: 20px 0 0;
  text-wrap: balance;
}
.audit p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 640px;
  text-wrap: pretty;
}
.audit__cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.audit__reassure {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.audit__reassure svg { margin-top: 3px; flex-shrink: 0; }
.audit__reassure svg { width: 14px; height: 14px; color: var(--brand-green); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: var(--section-y) 0; border-top: 1px solid var(--stroke-3); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg);
  margin: 20px 0 0;
  text-wrap: balance;
}
.contact__intro {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 480px;
}
.contact__details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-detail__icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail__icon svg { width: 16px; height: 16px; color: var(--pillar-automation); }
.contact-detail__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.contact-detail__value { font-size: 15px; color: var(--fg); font-weight: 500; margin-top: 2px; }

.contact-form {
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: block; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--navy-600);
  color: var(--fg);
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms var(--ease-out);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--pillar-automation); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__submit {
  margin-top: 8px;
  padding: 14px 20px;
  background: var(--brand-green);
  color: var(--navy-900);
  border: 0;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms var(--ease-out);
}
.contact-form__submit svg { width: 16px; height: 16px; }
.contact-form__submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.contact-form__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.contact-form__trust svg { width: 12px; height: 12px; }

.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  text-align: center;
}
.contact-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--pillar-automation-tint);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--pillar-automation);
}
.contact-success__icon svg { width: 28px; height: 28px; color: var(--pillar-automation); }
.contact-success h3 { font-size: 24px; font-weight: 700; color: var(--fg); margin: 0; }
.contact-success p { font-size: 15px; color: var(--fg-mute); max-width: 360px; margin: 0; }
.contact-form.is-submitted .field,
.contact-form.is-submitted .contact-form__submit,
.contact-form.is-submitted .contact-form__trust { display: none; }
.contact-form .contact-success { display: none; }
.contact-form.is-submitted .contact-success { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--stroke-1);
  padding: 72px 0 32px;
  background: var(--navy-1000);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--space-4xl);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.6;
  max-width: 340px;
}
.footer-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  border: 1px solid var(--stroke-1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.footer-badge svg { width: 11px; height: 11px; color: var(--pillar-automation); }
.footer-contact {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-mute);
}
.footer-contact a { color: var(--fg-mute); text-decoration: none; transition: color 150ms; }
.footer-contact a:hover { color: var(--pillar-automation); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--stroke-2);
  display: grid; place-items: center;
  color: var(--fg-mute);
  text-decoration: none;
  transition: color 150ms, background 150ms, border-color 150ms;
}
.footer-social a:hover { color: var(--navy-1000); background: var(--pillar-automation); border-color: var(--pillar-automation); }
.footer-social i[data-lucide], .footer-social svg { width: 16px; height: 16px; }
.footer-cta-desc { margin: 0 0 18px; font-size: 13px; line-height: 1.55; color: var(--fg-mute); }
.footer-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 14px;
  font-size: 13px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 16px;
}
.footer-cta-col .footer-col-title { color: var(--fg); }
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--fg-mute);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a.is-active { color: var(--current-pillar); font-weight: 600; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke-1);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-bottom__links { display: inline-flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom__links a { color: var(--fg-dim); text-decoration: none; }
.footer-bottom__links a:hover { color: var(--fg-mute); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes sm-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sm-gradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes sm-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

/* ============================================================
   RESPONSIVE — margins and type scale fluidly via clamp() above;
   these breakpoints handle structural reflow (grid columns,
   nav collapse) that clamp() can't do on its own.
   ============================================================ */
@media (max-width: 1200px) {
  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 960px) {
  /* Mobile nav — hamburger replaces the inline link row */
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
    background: var(--navy-900);
    border-bottom: 1px solid var(--stroke-1);
    padding: var(--space-lg) var(--gutter-outer) var(--space-2xl);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 4px; }
  .nav-item { width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms var(--ease-out);
  }
  .nav-item.is-open .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    max-height: 300px;
    padding: 4px 0 8px 12px;
  }
  .nav-cta { width: 100%; justify-content: center; }

  .section-head, .audit__grid, .contact__grid { grid-template-columns: 1fr; }
  .stat-grid, .vertical-grid, .promise-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .agent-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; text-align: left; }

  .step {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: left;
  }
  .step__icon { justify-content: flex-start; }
  .step__body { padding-left: 0; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__svg { opacity: 0.35; }
  .hero__wash { opacity: 0.6; }

  .audit__cta-col { align-items: stretch; }
  .audit__cta-col .btn { justify-content: center; }

  .agent-callout { flex-direction: column; align-items: flex-start; }
  .agent-callout .btn--ghost { align-self: flex-start; }
}
