:root {
  --bg: #f7f1ff;
  --ink: #1e1045;
  --muted: #4b3a78;
  --accent: #8f28ff;
  --accent-2: #b874ff;
  --grid: rgba(111, 73, 153, 0.12);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 9999;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(111, 73, 153, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(38, 22, 80, 0.14);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to right, rgba(143, 40, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 40, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: 0 32px;
  z-index: -1;
  pointer-events: none;
}

.subpage {
  background-color: #f7f1ff;
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

.subpage .header-compact,
.subpage .page-hero {
  position: relative;
}

.subpage .header-compact::after,
.subpage .page-hero::after {
  content: none;
}


.hero-bg {
  position: absolute;
  inset: -20% 0 -20% 0;
  background: url("hero.png");
  background-size: cover;
  background-position: center;
  transform: translateY(0);
  will-change: transform;
  z-index: 0;
}

.header-compact {
  position: relative;
  background: transparent;
}

.header-compact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.subpage .nav {
  padding: 22px 7vw;
}

.nav {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 7vw;
  gap: 24px;
}

.brand {
  position: relative;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  height: 64px;
  padding-left: 260px;
  margin-left: 0;
  left: 140px;
  line-height: 1;
}

.brand-logo {
  position: absolute;
  left: 0;
  top: 50%;
  width: 250px;
  height: 250px;
  transform: translateY(calc(-50% + 22px));
  object-fit: contain;
  pointer-events: none;
}

.brand span {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 1.2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.dropdown-toggle {
  border: none;
  background: transparent;
  font: inherit;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  transform: translateY(2px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 14px;
  padding: 12px 10px;
  display: grid;
  gap: 8px;
  box-shadow: 0 18px 30px rgba(38, 22, 80, 0.12);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.dropdown-menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  background: rgba(143, 40, 255, 0.08);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-cta {
  border: none;
  background: var(--accent);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(143, 40, 255, 0.25);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 73, 153, 0.2);
  border-radius: 12px;
  background: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: none;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 460px);
  gap: 40px;
  align-items: center;
  padding: 40px 7vw 80px;
}

.hero-text h1 {
  font-size: 90px;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-text p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.primary {
  border: none;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.hero-visual {
  display: none;
}

.wave-layer {
  position: absolute;
  inset: 0;
  border-radius: 120px 120px 0 0;
  background: linear-gradient(180deg, rgba(143, 40, 255, 0.55), rgba(143, 40, 255, 0.92));
  transform: translateY(40%);
  filter: blur(0.5px);
}

.wave-back {
  background: linear-gradient(180deg, rgba(183, 116, 255, 0.4), rgba(143, 40, 255, 0.65));
  transform: translateY(55%) scale(1.08);
  opacity: 0.8;
}

.wave-mid {
  background: linear-gradient(180deg, rgba(159, 70, 255, 0.65), rgba(143, 40, 255, 0.85));
  transform: translateY(48%) scale(1.02);
}

.wave-front {
  background: linear-gradient(180deg, rgba(124, 25, 242, 0.75), rgba(120, 0, 240, 0.95));
  transform: translateY(40%);
}

.wave-line {
  position: absolute;
  height: 4px;
  width: 80%;
  left: 10%;
  top: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  filter: blur(0.2px);
}

.wave-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  top: 47%;
  left: 55%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.section {
  padding: 45px 7vw;
  text-align: center;
  background: #ffffff;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(280px, 560px);
  gap: 32px;
  align-items: start;
  padding: 120px 7vw 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.subpage .page-hero {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.page-hero.alt-hero {
  grid-template-columns: minmax(280px, 520px) minmax(240px, 320px);
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin: 16px 0 18px;
  color: var(--ink);
}

.page-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card {
  background: #ffffff;
  border: 1px solid rgba(143, 40, 255, 0.18);
  padding: 24px;
  border-radius: 20px;
  max-width: 320px;
  box-shadow: 0 18px 40px rgba(76, 40, 140, 0.12);
  z-index: 1;
}

.cta-box {
  background: #ffffff;
  border: 1px solid rgba(143, 40, 255, 0.18);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(76, 40, 140, 0.12);
  max-width: 360px;
  justify-self: center;
  align-self: center;
  display: grid;
  gap: 14px;
}

.cta-box h3 {
  font-size: 1.3rem;
  color: var(--ink);
}

.cta-box p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.bullet-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 24px;
}

.service-body {
  text-align: left;
  background: #ffffff;
}

.service-body.alt {
  background: #f7f1ff;
}

.service-body .section-head,
.service-faq .section-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: left;
}

.service-body .page-grid {
  max-width: 1100px;
  margin: 0 auto;
}

.service-faq {
  text-align: left;
  background: #ffffff;
}

.analytics-hero .hero-card {
  max-width: 360px;
}

.analytics-metrics {
  text-align: left;
  background: #ffffff;
}

.analytics-metric-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
}

.analytics-metric-card {
  background: linear-gradient(180deg, #ffffff, #f8f2ff);
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(68, 38, 120, 0.08);
}

.analytics-metric-card strong {
  font-size: 1.35rem;
  color: var(--ink);
}

.analytics-metric-card span {
  color: var(--muted);
  line-height: 1.45;
}

.analytics-layout {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
  background: #f7f1ff;
}

.analytics-priority {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.14);
  border-radius: 20px;
  padding: 26px;
}

.analytics-priority h2 {
  margin-bottom: 16px;
}

.analytics-priority-list {
  display: grid;
  gap: 14px;
}

.analytics-priority-item {
  border: 1px solid rgba(111, 73, 153, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fcf9ff;
}

.analytics-priority-item h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.02rem;
}

.analytics-priority-item p {
  color: var(--muted);
  line-height: 1.5;
}

.analytics-stack-card {
  background: #17133c;
  color: #ffffff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 14px 24px rgba(18, 12, 42, 0.28);
}

.analytics-stack-card .section-label {
  color: rgba(255, 255, 255, 0.72);
}

.analytics-stack-card h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.analytics-stack-card .bullet-list {
  color: rgba(255, 255, 255, 0.88);
}

.analytics-stack-card .bullet-list li::before {
  color: #b874ff;
}

.smallbiz-metrics {
  text-align: left;
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.smallbiz-metrics .section-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: left;
}

.smallbiz-metric-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
}

.smallbiz-metric-card {
  background: linear-gradient(180deg, #ffffff, #f8f2ff);
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(68, 38, 120, 0.08);
}

.smallbiz-metric-card strong {
  font-size: 1.35rem;
  color: var(--ink);
}

.smallbiz-metric-card span {
  color: var(--muted);
  line-height: 1.45;
}

.smallbiz-layout {
  text-align: left;
  background: #f7f1ff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.smallbiz-layout-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.smallbiz-priority {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.14);
  border-radius: 20px;
  padding: 26px;
}

.smallbiz-priority h2 {
  margin-bottom: 14px;
}

.smallbiz-priority p {
  color: var(--muted);
  line-height: 1.55;
}

.smallbiz-priority-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.smallbiz-priority-item {
  border: 1px solid rgba(111, 73, 153, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fcf9ff;
}

.smallbiz-priority-item h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.02rem;
}

.smallbiz-priority-item p {
  color: var(--muted);
  line-height: 1.5;
}

.smallbiz-starter-card {
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(184, 116, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(111, 73, 153, 0.18), transparent 58%),
    #17133c;
  color: #ffffff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 14px 24px rgba(18, 12, 42, 0.28);
}

.smallbiz-starter-card .section-label {
  color: rgba(255, 255, 255, 0.72);
}

.smallbiz-starter-card h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.smallbiz-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.smallbiz-checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}

.smallbiz-checklist li::before {
  content: "✓";
  color: #b874ff;
  font-weight: 800;
  transform: translateY(1px);
}

.smallbiz-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.smallbiz-badge {
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.agency-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.agency-split {
  text-align: left;
}

.agency-split {
  padding-top: 64px;
  padding-bottom: 64px;
}

.agency-split .split {
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.agency-split .split-panels {
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 18px;
}

.agency-split .split-copy {
  max-width: 520px;
}

.agency-matrix {
  text-align: left;
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.agency-matrix .section-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: left;
}

.agency-map .section-head,
.agency-cases .section-head {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: left;
}

.agency-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 320px));
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
}

.agency-ops {
  display: block;
}

.agency-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.agency-matrix-card {
  background: #fcf9ff;
  border: 1px solid rgba(111, 73, 153, 0.14);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(68, 38, 120, 0.08);
}

.agency-matrix-card h3 {
  color: var(--ink);
}

.agency-matrix-card p {
  color: var(--muted);
  line-height: 1.55;
}

.agency-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.agency-chip {
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(111, 73, 153, 0.14);
  background: #ffffff;
  color: var(--muted);
}

.ecommerce-kpis {
  text-align: left;
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.ecommerce-kpi-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
}

.ecommerce-kpi-card {
  background: linear-gradient(180deg, #ffffff, #f8f2ff);
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(68, 38, 120, 0.08);
}

.ecommerce-kpi-card strong {
  font-size: 1.25rem;
  color: var(--ink);
}

.ecommerce-kpi-card span {
  color: var(--muted);
  line-height: 1.5;
}

.ecommerce-loop {
  text-align: left;
  background: #17133c;
  padding-top: 64px;
  padding-bottom: 64px;
}

.ecommerce-loop .section-head h2,
.ecommerce-loop .section-head p {
  color: #ffffff;
}

.ecommerce-loop .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.ecommerce-loop-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

.ecommerce-loop-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 18px;
}

.ecommerce-loop-card h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.ecommerce-loop-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.ecommerce-stack {
  text-align: left;
  background: #f7f1ff;
  padding-top: 56px;
  padding-bottom: 72px;
}

.ecommerce-stack-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
}

.ecommerce-kpis .section-head,
.ecommerce-loop .section-head,
.ecommerce-stack .section-head {
  margin-bottom: 22px;
}

.health-command {
  text-align: left;
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.health-command-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.health-lanes {
  display: grid;
  gap: 14px;
}

.health-lane-card {
  background: #fcf9ff;
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(68, 38, 120, 0.08);
}

.health-lane-card h3 {
  color: var(--ink);
  margin-bottom: 8px;
}

.health-lane-card p {
  color: var(--muted);
  line-height: 1.55;
}

.health-lane-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(111, 73, 153, 0.16);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.health-pulse-card {
  background: #17133c;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 24px rgba(18, 12, 42, 0.28);
}

.health-pulse-card h3 {
  color: #ffffff;
  margin-bottom: 16px;
}

.health-pulse-metric {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
}

.health-pulse-metric + .health-pulse-metric {
  margin-top: 10px;
}

.health-pulse-metric strong {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
}

.health-pulse-metric span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.health-journey {
  text-align: left;
  background: #17133c;
  padding-top: 64px;
  padding-bottom: 64px;
}

.health-journey .section-head h2 {
  color: #ffffff;
}

.health-journey .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.health-journey-track {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.health-journey-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 16px;
}

.health-journey-step span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(143, 40, 255, 0.35);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}

.health-journey-step h3 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 1rem;
}

.health-journey-step p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.health-system-strip {
  text-align: left;
  background: #f7f1ff;
  padding-top: 56px;
  padding-bottom: 72px;
}

.health-system-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
}

.health-command .section-head,
.health-journey .section-head,
.health-system-strip .section-head {
  margin-bottom: 22px;
}

.ai-chatflow {
  text-align: left;
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.ai-chat-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
}

.ai-chat-card {
  background: #fcf9ff;
  border: 1px solid rgba(111, 73, 153, 0.14);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 20px rgba(68, 38, 120, 0.08);
}

.ai-chat-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.ai-chat-card p {
  color: var(--muted);
  line-height: 1.55;
}

.ai-guardrails {
  text-align: left;
  background: #17133c;
  padding-top: 64px;
  padding-bottom: 64px;
}

.ai-guardrails .section-head h2,
.ai-guardrails .section-head p {
  color: #ffffff;
}

.ai-guardrails .section-label {
  color: rgba(255, 255, 255, 0.74);
}

.ai-guardrail-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

.ai-guardrail-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
}

.ai-guardrail-item h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.ai-guardrail-item p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.ai-outcomes {
  text-align: left;
  background: #f7f1ff;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 20px;
  align-items: stretch;
  padding-top: 56px;
  padding-bottom: 72px;
}

.ai-chatflow .section-head,
.ai-guardrails .section-head,
.ai-outcomes .section-head {
  margin-bottom: 22px;
}

.integrations-map {
  text-align: left;
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.integrations-map-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.integrations-node {
  background: linear-gradient(180deg, #ffffff, #f6eeff);
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(68, 38, 120, 0.08);
}

.integrations-node h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.integrations-node p {
  color: var(--muted);
  line-height: 1.55;
}

.integrations-cases {
  text-align: left;
  background: #17133c;
  padding-top: 64px;
  padding-bottom: 64px;
}

.integrations-cases .section-head h2,
.integrations-cases .section-head p {
  color: #ffffff;
}

.integrations-cases .section-label {
  color: rgba(255, 255, 255, 0.74);
}

.integrations-case-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.integrations-case-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
}

.integrations-case-item h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.integrations-case-item p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.integrations-ops {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  background: #f7f1ff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.integrations-ops.agency-ops {
  display: flex;
  justify-content: center;
}

.integrations-ops.agency-ops .agency-ops-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  justify-content: center;
}

.integrations-map .section-head,
.integrations-cases .section-head,
.integrations-ops .section-head {
  margin-bottom: 22px;
}

.integrations-ops .panel {
  height: 100%;
}

.consulting-sprint {
  text-align: left;
  background: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.consulting-sprint-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

.consulting-sprint-card {
  background: #fcf9ff;
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(68, 38, 120, 0.08);
}

.consulting-sprint-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.consulting-sprint-card p {
  color: var(--muted);
  line-height: 1.55;
}

.consulting-priority {
  text-align: left;
  background: #17133c;
  padding-top: 64px;
  padding-bottom: 64px;
}

.consulting-priority .section-head h2,
.consulting-priority .section-head p {
  color: #ffffff;
}

.consulting-priority .section-label {
  color: rgba(255, 255, 255, 0.74);
}

.consulting-priority-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.consulting-priority-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
}

.consulting-priority-item h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.consulting-priority-item p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.consulting-outcomes {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  background: #f7f1ff;
  padding-top: 56px;
  padding-bottom: 72px;
}

.consulting-sprint .section-head,
.consulting-priority .section-head,
.consulting-outcomes .section-head {
  margin-bottom: 22px;
}

.consulting-outcomes .panel {
  height: 100%;
}


.panel {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.12);
  padding: 22px;
  border-radius: 16px;
  color: var(--muted);
}

.panel h3 {
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.process {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.12);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 12px 24px rgba(68, 38, 120, 0.08);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(143, 40, 255, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px;
  gap: 40px;
  align-items: start;
  position: relative;
}

.timeline-content {
  display: grid;
  gap: 26px;
  text-align: left;
}

.timeline-step {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.12);
  border-radius: 18px;
  padding: 40px 24px 120px;
  box-shadow: 0 12px 24px rgba(68, 38, 120, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.timeline-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:first-child {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step h3 {
  margin-bottom: 10px;
  color: var(--ink);
}

.timeline-step p {
  color: var(--muted);
  line-height: 1.6;
}

.timeline-rail {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 220px;
  display: block;
  padding: 80px 0;
  box-sizing: border-box;
}

.timeline-rail .rail {
  position: absolute;
  left: 50%;
  width: 4px;
  top: 80px;
  bottom: 80px;
  height: auto;
  background: rgba(143, 40, 255, 0.18);
  border-radius: 999px;
}

.timeline-rail .rail-fill {
  position: absolute;
  left: 50%;
  width: 4px;
  top: 80px;
  bottom: 80px;
  height: auto;
  background: rgba(143, 40, 255, 0.65);
  border-radius: 999px;
  transform-origin: top;
  transform: scaleY(0);
}

.timeline-rail .rail-dot {
  position: absolute;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(143, 40, 255, 0.35);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  transform: translate(-50%, -50%);
}

.timeline-rail .rail-dot.active {
  background: rgba(143, 40, 255, 0.12);
  box-shadow: 0 0 0 8px rgba(143, 40, 255, 0.15);
  transform: scale(1.06);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  text-align: left;
}

.faq-list details {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.12);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--muted);
  box-shadow: 0 12px 24px rgba(68, 38, 120, 0.08);
}

.faq-list summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 12px;
  line-height: 1.6;
}

.faq-hero {
  grid-template-columns: minmax(320px, 560px) minmax(260px, 380px);
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.faq-content .faq-list {
  max-width: 1120px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.12);
  padding: 20px;
  border-radius: 14px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 40px;
  align-items: center;
}

.split-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
}

.split-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 20px;
}

.solutions-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 40px;
  align-items: start;
}

.solution-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.solution-card h3 {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.solution-icon {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.image-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}

.blob-a {
  width: 64px;
  height: 64px;
  background: rgba(143, 40, 255, 0.85);
  left: 14px;
  top: 10px;
}

.blob-b {
  width: 72px;
  height: 72px;
  background: rgba(183, 116, 255, 0.45);
  right: 14px;
  bottom: 6px;
}

.dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f0a2a;
  right: 20px;
  bottom: 20px;
}

.solution-icon.check .check-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 12px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  transform: rotate(45deg);
}

.solution-icon.squares .square {
  position: absolute;
  width: 42px;
  height: 42px;
}

.square-a {
  background: rgba(143, 40, 255, 0.85);
  left: 18px;
  top: 14px;
}

.square-b {
  background: rgba(183, 116, 255, 0.4);
  right: 18px;
  bottom: 18px;
}

.stats {
  background: #17133c;
  color: #ffffff;
  text-align: center;
  padding: 80px 7vw 110px;
  position: relative;
}

.stats h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  margin-bottom: 40px;
}

.stat-number {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
}

.stat-label {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #ffffff;
  align-items: stretch;
}

.about .section-label {
  text-align: left;
  margin-bottom: 20px;
}

.about-copy h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--ink);
}

.about-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.about-copy {
  padding: 90px 10vw 90px 7vw;
}

.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  background: url("stock.png");
  background-size: cover;
  background-position: 50% 90%;
  border-radius: 0;
  min-height: 420px;
  overflow: hidden;
  will-change: background-position;
}

.chart {
  display: none;
}

.testimonials {
  background: #9648ff;
  color: #ffffff;
  text-align: center;
  padding: 90px 7vw 80px;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.75);
}

.testimonial-slider {
  position: relative;
  max-width: 980px;
  min-height: 290px;
  margin: 26px auto 10px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(10%);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.testimonial-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-slide blockquote {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto 14px;
  font-weight: 600;
}

.testimonial-byline {
  display: inline-block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  font-weight: 600;
}

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pager span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.pager span.is-active {
  background: #ffffff;
  transform: scale(1.25);
}

.clients {
  background: #f7f1ff;
  padding: 60px 7vw 30px;
  text-align: center;
  border-bottom: 1px solid rgba(111, 73, 153, 0.08);
}

.client-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  color: #2a1a52;
  font-weight: 600;
}

.contact {
  background: #f7f1ff;
  padding: 80px 7vw 100px;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--ink);
}

.contact-cta {
  border: none;
  background: #4a4fd1;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(74, 79, 209, 0.35);
  align-self: center;
}

.contact-form {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(320px, 560px);
  gap: 32px;
  align-items: start;
  text-align: left;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.contact-form p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-structure {
  display: grid;
  gap: 16px;
}

.contact-notes {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.contact-note {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
}

.contact-note h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-note p {
  font-size: 0.92rem;
}

.contact-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.form-card {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.12);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: 0 12px 24px rgba(68, 38, 120, 0.08);
  overflow: hidden;
}

.form-card.form-box {
  padding: 28px;
  gap: 18px;
  width: 100%;
  max-width: 560px;
  min-width: 0;
}

.form-card label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.form-card input,
.form-card textarea,
.form-card select {
  border: 1px solid rgba(111, 73, 153, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  width: 100%;
  min-width: 0;
}

.form-card textarea {
  width: 100%;
  min-height: 140px;
  max-width: 100%;
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: rgba(143, 40, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(143, 40, 255, 0.15);
}

.form-card select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(30, 16, 69, 0.5) 50%),
    linear-gradient(135deg, rgba(30, 16, 69, 0.5) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 2.5em;
  background-repeat: no-repeat;
}

.field-meta {
  font-size: 0.78rem;
  color: rgba(75, 58, 120, 0.65);
  font-weight: 500;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(111, 73, 153, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  background: #faf7ff;
}

.captcha-box.captcha-real {
  justify-content: flex-start;
  background: #ffffff;
}

.captcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.captcha-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.captcha-logo {
  display: grid;
  gap: 2px;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(30, 16, 69, 0.6);
}

.form-submit {
  justify-self: start;
  min-width: 200px;
}

.contact-next-steps .page-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.success {
  color: #1f7a3f;
}

.form-status.error {
  color: #b42318;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.footer {
  background: #1b1642;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 7vw 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-meta {
  display: grid;
  gap: 8px;
}

.footer-meta span {
  color: rgba(255, 255, 255, 0.7);
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
}

.chart-line {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%);
  clip-path: path("M0,320 C120,300 220,260 300,210 C380,160 450,80 560,20 L560,560 L0,560 Z");
}

.chart-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  top: 24px;
  right: 38px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.chart-labels {
  position: absolute;
  left: 24px;
  top: 20px;
  display: grid;
  gap: 56px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .brand {
    left: 0;
    padding-left: 140px;
    height: 56px;
  }

  .brand-logo {
    width: 140px;
    height: 140px;
    transform: translateY(calc(-50% + 10px));
  }

  .nav-links {
    flex-wrap: wrap;
    font-size: 1rem;
    row-gap: 12px;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: clamp(2.6rem, 8vw, 4rem);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    min-height: 340px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 92px 6vw 56px;
  }

  .faq-hero {
    grid-template-columns: 1fr;
  }

  .page-hero.alt-hero {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .cta-box {
    max-width: 100%;
    width: 100%;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-panels {
    grid-template-columns: 1fr;
  }

  .analytics-metric-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .analytics-layout {
    grid-template-columns: 1fr;
  }

  .smallbiz-metric-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .smallbiz-layout {
    grid-template-columns: 1fr;
  }

  .smallbiz-layout-inner {
    grid-template-columns: 1fr;
  }

  .agency-matrix-grid {
    grid-template-columns: 1fr;
  }

  .agency-split .split-panels {
    grid-template-columns: 1fr;
  }

  .agency-ops-grid {
    grid-template-columns: 1fr;
  }

  .ai-chat-grid {
    grid-template-columns: 1fr;
  }

  .ai-guardrail-grid {
    grid-template-columns: 1fr;
  }

  .ai-outcomes {
    grid-template-columns: 1fr;
  }

  .integrations-map-grid {
    grid-template-columns: 1fr;
  }

  .integrations-ops {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .integrations-map,
  .integrations-cases {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .consulting-sprint-grid,
  .consulting-priority-grid,
  .consulting-outcomes {
    grid-template-columns: 1fr;
  }

  .consulting-sprint,
  .consulting-priority {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .consulting-outcomes {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .ecommerce-kpi-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .health-command-grid {
    grid-template-columns: 1fr;
  }

  .ecommerce-loop-grid,
  .ecommerce-stack-grid {
    grid-template-columns: 1fr;
  }

  .health-journey-track,
  .health-system-strip-inner {
    grid-template-columns: 1fr;
  }

  .ecommerce-kpis,
  .ecommerce-loop {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .health-command,
  .health-journey {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .ecommerce-stack {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .health-system-strip {
    padding-top: 48px;
    padding-bottom: 56px;
  }


  .timeline {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 18px;
  }

  .timeline-rail {
    position: sticky;
    top: 118px;
    height: 58vh;
    min-height: 360px;
    width: 84px;
    margin: 0;
    padding: 0;
    justify-self: end;
  }


  .about {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 320px;
  }

  .about-copy {
    padding: 70px 7vw;
  }

  .client-row {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  .footer {
    grid-template-columns: 1fr;
  }


}

@media (max-width: 640px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav {
    padding: 20px 6vw;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 12px;
    position: relative;
  }

  .brand {
    padding-left: 0;
    height: auto;
    grid-column: 1;
  }

  .brand-logo {
    position: static;
    width: 160px;
    height: 160px;
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px 16px;
    font-size: 0.95rem;
    padding: 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
  }

  .nav-links.open {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 0 0;
    overflow-y: auto;
    pointer-events: auto;
  }

  .nav-links > * {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.open > * {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open > *:nth-child(1) { transition-delay: 0.02s; }
  .nav-links.open > *:nth-child(2) { transition-delay: 0.04s; }
  .nav-links.open > *:nth-child(3) { transition-delay: 0.06s; }
  .nav-links.open > *:nth-child(4) { transition-delay: 0.08s; }
  .nav-links.open > *:nth-child(5) { transition-delay: 0.10s; }
  .nav-links.open > *:nth-child(6) { transition-delay: 0.12s; }
  .nav-links.open > *:nth-child(7) { transition-delay: 0.14s; }
  .nav-links.open > *:nth-child(8) { transition-delay: 0.16s; }

  .nav-cta {
    display: none;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    transform: none;
    box-shadow: none;
    border-radius: 12px;
    display: grid;
    margin-top: 8px;
    padding: 0 12px;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 10px 12px 12px;
  }

  .hero-content {
    padding: 30px 6vw 60px;
  }

  .subpage .page-hero {
    max-width: none;
  }

  .page-hero {
    padding: 82px 6vw 48px;
    gap: 18px;
    overflow: visible;
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.12;
  }

  .page-hero p {
    font-size: 0.97rem;
    line-height: 1.6;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .section {
    padding: 60px 6vw;
  }

  .analytics-metric-grid {
    grid-template-columns: 1fr;
  }

  .ecommerce-kpi-grid {
    grid-template-columns: 1fr;
  }

  .health-journey-track {
    grid-template-columns: 1fr;
  }

  .smallbiz-metric-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    min-height: 380px;
  }

  .form-card.form-box {
    max-width: none;
    width: 100%;
    padding: 20px;
  }

  .contact-form,
  .contact-structure {
    min-width: 0;
  }

  .form-card label {
    min-width: 0;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 12px;
  }

  .timeline-rail {
    top: 102px;
    min-height: 300px;
    height: 52vh;
    width: 70px;
    padding: 0;
  }

  .timeline-rail .rail-dot {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .timeline-rail .rail-dot.active {
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(143, 40, 255, 0.15);
  }
}


.nonprofit-pillars-section {
  background: #ffffff;
}

.nonprofit-pillars-section h2 {
  max-width: 760px;
  margin: 0 auto 34px;
}

.nonprofit-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
  text-align: left;
}

.nonprofit-pillar {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(68, 38, 120, 0.08);
}

.nonprofit-pillar h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.nonprofit-pillar p {
  color: var(--muted);
  line-height: 1.65;
}

.nonprofit-flow-wrap {
  background: #18143d;
  color: #ffffff;
  text-align: left;
}

.nonprofit-flow-head h2 {
  color: #ffffff;
  max-width: 700px;
  margin-bottom: 32px;
}

.nonprofit-flow-wrap .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.nonprofit-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.nonprofit-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 20px;
  min-height: 220px;
}

.nonprofit-step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  background: rgba(143, 40, 255, 0.6);
  margin-bottom: 16px;
}

.nonprofit-step h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.nonprofit-step p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .nonprofit-pillars,
  .nonprofit-flow {
    grid-template-columns: 1fr;
  }

  .nonprofit-step {
    min-height: 0;
  }
}


.nonprofit-usecases {
  background: #ffffff;
}

.nonprofit-usecases h2 {
  max-width: 760px;
  margin: 0 auto 34px;
}

.nonprofit-usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 20px;
  text-align: left;
}

.nonprofit-usecase {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(68, 38, 120, 0.08);
}

.nonprofit-usecase h3 {
  margin-bottom: 10px;
  color: var(--ink);
}

.nonprofit-usecase p {
  color: var(--muted);
  line-height: 1.65;
}

.nonprofit-proof {
  background: #f7f1ff;
}

.nonprofit-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
}

.nonprofit-proof-card {
  background: #ffffff;
  border: 1px solid rgba(111, 73, 153, 0.16);
  border-radius: 16px;
  padding: 22px;
}

.proof-number {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.nonprofit-proof-card p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .nonprofit-usecase-grid,
  .nonprofit-proof-grid {
    grid-template-columns: 1fr;
  }
}
