/* ==========================================================
   XZLENZ — COMPLIANCE AUTOMATION PAGE
   Page-specific styles only.
   Global navbar / closing CTA / footer stay in styles.css.
   ========================================================== */

:root {
  --ca-ink: #071b45;
  --ca-ink-2: #0b2b59;
  --ca-muted: #687b9c;
  --ca-blue: #2178ff;
  --ca-cyan: #13c8ff;
  --ca-purple: #805cff;
  --ca-teal: #22c7a6;
  --ca-border: #dbe7f6;
  --ca-soft: #f7fbff;
  --ca-soft-blue: #f2f8ff;
  --ca-shadow: 0 18px 55px rgba(18, 56, 105, 0.08);
  --ca-radius: 22px;
}

.ca-page {
  overflow-x: hidden;
  background: #fff;
  color: var(--ca-ink);
}

.ca-page *,
.ca-page *::before,
.ca-page *::after {
  box-sizing: border-box;
}

.ca-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.ca-narrow {
  width: min(850px, calc(100% - 48px));
  margin-inline: auto;
}

.ca-section {
  position: relative;
  padding: 88px 0;
}

.ca-kicker {
  display: inline-block;
  color: #43ccff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ca-kicker-blue {
  color: #3a79ff;
}

.ca-section-head {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.ca-section-head h2,
.ca-narrow h2,
.ca-framework-copy h2 {
  margin: 10px 0 12px;
  color: var(--ca-ink);
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ca-section-head p,
.ca-narrow p {
  margin: 0 auto;
  color: var(--ca-muted);
  font-size: 16px;
  line-height: 1.72;
}

.ca-primary-cta {
  gap: 14px;
}

.ca-primary-cta span {
  font-size: 1.2em;
}

/* ==========================================================
   HERO
   ========================================================== */

.ca-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 38%, rgba(30, 126, 255, 0.17), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(0, 211, 255, 0.08), transparent 24%),
    linear-gradient(118deg, #03142d 0%, #062650 54%, #031832 100%);
}

.ca-hero::before,
.ca-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -2;
}

.ca-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 91% 70%, rgba(37, 116, 255, 0.16), transparent 18%),
    repeating-linear-gradient(168deg, transparent 0 66px, rgba(53, 135, 255, 0.045) 66px 68px, transparent 68px 116px);
  opacity: 0.8;
}

.ca-hero::after {
  width: 900px;
  height: 900px;
  right: -330px;
  top: -345px;
  border: 1px solid rgba(78, 142, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 120px rgba(18, 89, 219, 0.025),
    0 0 0 240px rgba(18, 89, 219, 0.018);
}

.ca-hero-glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(28px);
}

.ca-hero-glow-one {
  width: 320px;
  height: 320px;
  right: 10%;
  top: 15%;
  background: rgba(17, 113, 255, 0.15);
}

.ca-hero-glow-two {
  width: 280px;
  height: 280px;
  left: 18%;
  bottom: -120px;
  background: rgba(0, 212, 255, 0.08);
}

.ca-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(620px, 1.12fr);
  align-items: center;
  gap: 34px;
  padding: 40px 0 94px;
}

.ca-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 650px;
}

.ca-hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ca-kicker-line {
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, #25d9ff, rgba(37, 217, 255, 0));
}

.ca-hero-copy h1 {
  margin: 26px 0 28px;
  color: #fff;
  font-size: clamp(48px, 4vw, 94px);
  font-weight: 760;
  line-height: 0.93;
  letter-spacing: -0.058em;
}

.ca-hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(90deg, #23d5ff 0%, #238cff 43%, #735fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 12px 30px rgba(49, 113, 255, 0.08));
}

.ca-hero-copy p {
  max-width: 640px;
  margin: 0 0 34px;
  color: #d1dced;
  font-size: 16px;
  line-height: 1.72;
}

.ca-hero-copy .btn {
  min-height: 64px;
  padding-inline: 30px;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(30, 106, 255, 0.2);
}

.ca-hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ca-flow-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.ca-wire,
.ca-wire-main {
  fill: none;
  stroke: url(#ca-wire-grad);
  stroke-width: 4;
  stroke-linecap: round;
  filter: url(#ca-wire-glow);
}

.ca-wire-main {
  opacity: 0.84;
}

.ca-wire-dot {
  fill: #e9fbff;
  stroke: #1e8fff;
  stroke-width: 8;
  filter: url(#ca-wire-glow);
}

.ca-flow-hub {
  position: absolute;
  z-index: 4;
  left: 28.5%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(104, 187, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(37, 109, 216, 0.98) 0 50%, rgba(9, 50, 109, 0.95) 51% 100%);
  box-shadow:
    0 0 0 10px rgba(39, 131, 255, 0.10),
    0 0 28px rgba(28, 148, 255, 0.9),
    inset 0 0 20px rgba(27, 173, 255, 0.28);
}

.ca-flow-hub span {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, transparent, rgba(45, 207, 255, 0.72), transparent 38%, rgba(116, 90, 255, 0.75), transparent 74%);
  filter: blur(8px);
  opacity: 0.72;
  z-index: -1;
}

.ca-flow-hub svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ca-flow-stack {
  position: relative;
  z-index: 3;
  width: min(520px, 72%);
  display: grid;
  gap: 18px;
  margin-left: auto;
}

.ca-flow-node {
  min-height: 104px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 22px;
  padding: 16px 18px 16px 22px;
  border: 1px solid rgba(69, 141, 255, 0.63);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(29, 75, 139, 0.94), rgba(11, 49, 103, 0.96));
  box-shadow:
    0 18px 42px rgba(1, 12, 35, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ca-flow-node:hover {
  transform: translateX(6px);
  border-color: rgba(75, 184, 255, 0.92);
  box-shadow:
    0 22px 52px rgba(1, 12, 35, 0.42),
    0 0 26px rgba(36, 129, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ca-flow-reporting {
  border-color: rgba(100, 97, 255, 0.82);
  box-shadow:
    0 18px 42px rgba(1, 12, 35, 0.34),
    0 0 28px rgba(104, 84, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ca-flow-node b {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ca-flow-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65, 166, 255, 0.75);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(31, 108, 238, 0.7), rgba(11, 46, 98, 0.88));
  box-shadow:
    0 8px 24px rgba(1, 12, 35, 0.28),
    inset 0 0 18px rgba(40, 153, 255, 0.08);
}

.ca-flow-reporting .ca-flow-icon {
  border-color: rgba(119, 100, 255, 0.85);
  background: linear-gradient(145deg, rgba(75, 79, 238, 0.76), rgba(27, 41, 116, 0.9));
}

.ca-flow-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ca-flow-chevron {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: rgba(34, 96, 177, 0.55);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
}

/* ==========================================================
   PROBLEM
   ========================================================== */

.ca-problem {
  text-align: center;
  background: #fff;
}

.ca-problem .ca-narrow {
  max-width: 900px;
}

/* ==========================================================
   HOW AUTOMATION WORKS
   ========================================================== */

.ca-how {
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #f8fbff, #eef7ff) border-box;
}

.ca-how::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background:
    radial-gradient(circle at 50% 20%, rgba(67, 141, 255, 0.11), transparent 30%);
}

.ca-steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.ca-step {
  position: relative;
  min-height: 390px;
  padding: 42px 34px 30px;
  border: 1px solid var(--ca-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ca-shadow);
  text-align: center;
}

.ca-step-number {
  position: absolute;
  top: 22px;
  left: 22px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding-inline: 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #155fd4;
  font-size: 12px;
  font-weight: 800;
}

.ca-step-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(34, 100, 224, 0.13);
}

.ca-step-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ca-step-blue {
  background: linear-gradient(135deg, #3a8cff, #1766e8);
}

.ca-step-purple {
  background: linear-gradient(135deg, #a56cff, #7552e9);
}

.ca-step-green {
  background: linear-gradient(135deg, #33d6bd, #17b89f);
}

.ca-step h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.16;
}

.ca-step p {
  margin: 0 auto 18px;
  color: var(--ca-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ca-step-arrow {
  display: grid;
  place-items: center;
  color: #183c77;
  font-size: 32px;
  font-weight: 300;
}

.ca-framework-mini {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  text-align: left;
}

.ca-framework-mini span {
  padding: 7px 10px;
  border: 1px solid #e0e9f7;
  border-radius: 10px;
  background: #fafcff;
  color: #476284;
  font-size: 12px;
}

.ca-status-list {
  display: grid;
  gap: 8px;
  width: fit-content;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: #566b8b;
  font-size: 13px;
}

.ca-status-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ca-status-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ca-status-list .met { background: #20c778; }
.ca-status-list .not-met { background: #ff5b66; }
.ca-status-list .partial { background: #ffba36; }
.ca-status-list .na { background: #8d9db7; }

.ca-posture-mini {
  margin-top: 20px;
}

.ca-posture-label {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px auto;
  padding: 7px 10px;
  border: 1px solid #d7e8fa;
  border-radius: 999px;
  background: #f8fcff;
  color: #506883;
  font-size: 10px;
  font-weight: 700;
}

.ca-posture-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21c97b;
}

.ca-posture-mini svg {
  width: 100%;
  height: 90px;
}

.ca-posture-mini .grid {
  fill: none;
  stroke: #e4eef8;
  stroke-width: 1;
}

.ca-posture-mini .line {
  fill: none;
  stroke: #3284ff;
  stroke-width: 3;
  stroke-linecap: round;
}

/* ==========================================================
   EVIDENCE
   ========================================================== */

.ca-evidence {
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.ca-evidence .ca-section-head {
  max-width: 920px;
}

.ca-cloud-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.ca-cloud-brand {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e0e9f4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 58, 103, 0.055);
  color: #17345f;
  text-align: center;
}

.ca-cloud-brand b {
  font-size: 14px;
}

.ca-cloud-brand small {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ca-cloud-brand i {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.ca-cloud-brand.aws {
  flex-direction: column;
  gap: 1px;
}

.ca-cloud-brand.aws b {
  font-size: 24px;
  letter-spacing: -0.08em;
}

.ca-cloud-brand.aws span {
  width: 40px;
  height: 9px;
  display: block;
  border-bottom: 3px solid #ff9a00;
  border-radius: 0 0 50% 50%;
  transform: rotate(-5deg);
}

.ca-cloud-brand.azure i {
  background: linear-gradient(145deg, transparent 48%, #1889f5 49%) left / 53% 100% no-repeat,
              linear-gradient(215deg, transparent 48%, #0b67c2 49%) right / 53% 100% no-repeat;
}

.ca-cloud-brand.gcp i {
  border: 6px solid #3c8cff;
  border-top-color: #ef4a43;
  border-left-color: #ffbd20;
  border-bottom-color: #2ebf72;
  border-radius: 50%;
}

.ca-cloud-brand.ibm i {
  border: 2px solid #1892e6;
  border-top: 0;
  border-radius: 40% 40% 50% 50%;
}

.ca-cloud-brand.oracle {
  flex-direction: column;
  color: #ef3439;
}

.ca-cloud-brand.oracle b {
  font-size: 18px;
}

.ca-cloud-brand.oracle small {
  color: #263753;
}

.ca-cloud-brand.digitalocean i {
  border: 6px solid #1c78ff;
  border-left-color: transparent;
  border-radius: 50%;
}

.ca-cloud-brand.vercel i {
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #111;
}

/* ==========================================================
   CORE CAPABILITIES
   ========================================================== */

.ca-capabilities {
  background: #fff;
}

.ca-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ca-cap-card {
  min-height: 188px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--ca-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 56, 101, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ca-cap-card:hover {
  transform: translateY(-4px);
  border-color: #bfd3f1;
  box-shadow: 0 20px 46px rgba(20, 56, 101, 0.09);
}

.ca-cap-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef4ff;
  color: #2c79ff;
}

.ca-cap-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ca-cap-purple {
  color: #934ef8;
  background: #f7efff;
}

.ca-cap-orange {
  color: #ff9f25;
  background: #fff5e7;
}

.ca-cap-teal {
  color: #18bda8;
  background: #eafbfa;
}

.ca-cap-card h3 {
  margin: 3px 0 8px;
  color: var(--ca-ink);
  font-size: 17px;
  line-height: 1.15;
}

.ca-cap-card p {
  margin: 0;
  color: var(--ca-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ==========================================================
   FRAMEWORK FLEXIBILITY
   ========================================================== */

.ca-framework-flex {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0;
  background:
    radial-gradient(circle at 80% 46%, rgba(31, 130, 255, 0.20), transparent 31%),
    linear-gradient(112deg, #031a3a 0%, #07356d 100%);
}

.ca-framework-flex::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 400px;
  right: -250px;
  top: -130px;
  border: 1px solid rgba(58, 149, 255, 0.18);
  border-radius: 50%;
  z-index: -1;
}

.ca-framework-flex-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  align-items: center;
  gap: 70px;
}

.ca-framework-copy {
  max-width: 570px;
}

.ca-framework-copy h2 {
  color: #fff;
  margin-bottom: 14px;
}

.ca-framework-copy p {
  margin: 0 0 26px;
  color: #d0dcef;
  font-size: 16px;
  line-height: 1.64;
}

.ca-framework-copy strong {
  color: #fff;
}

.ca-builder-visual {
  position: relative;
  width: min(100%, 550px);
  margin-left: auto;
  color: #fff;
}

.ca-builder-top {
  position: relative;
  z-index: 3;
  width: 230px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
  margin-right: 56px;
  padding: 0 22px;
  border: 1px solid rgba(87, 159, 255, 0.72);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(25, 73, 139, 0.98), rgba(9, 42, 87, 0.98));
  box-shadow: 0 14px 34px rgba(0, 10, 34, 0.24);
}

.ca-builder-window {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 230px;
  margin-top: -8px;
  padding: 22px;
  border: 1px solid rgba(84, 146, 230, 0.55);
  border-radius: 17px;
  background: rgba(10, 42, 87, 0.82);
  box-shadow: 0 22px 52px rgba(0, 8, 27, 0.24);
  backdrop-filter: blur(12px);
}

.ca-builder-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid rgba(156, 190, 235, 0.18);
}

.ca-builder-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9cbe5;
  font-size: 11px;
}

.ca-builder-list span:first-child {
  color: #fff;
}

.ca-builder-list i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(61, 132, 246, 0.16);
  color: #8fbfff;
  font-style: normal;
  font-size: 9px;
}

.ca-builder-form {
  display: grid;
  align-content: start;
  gap: 11px;
  padding-left: 22px;
}

.ca-builder-form label {
  display: grid;
  gap: 6px;
  color: #c4d4ea;
  font-size: 10px;
  font-weight: 700;
}

.ca-builder-form label span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(135, 177, 231, 0.23);
  border-radius: 7px;
  color: #6e91ba;
  font-weight: 500;
}

.ca-builder-form label .textarea {
  min-height: 64px;
  align-items: flex-start;
  padding-top: 10px;
}

.ca-builder-form button {
  width: 145px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #5f5cff, #00b9f3);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.ca-builder-orb {
  position: absolute;
  right: -24px;
  bottom: -18px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2267ff, #0baaf6);
  box-shadow: 0 14px 28px rgba(0, 126, 255, 0.35);
  font-size: 34px;
  font-weight: 300;
}

/* ==========================================================
   POLICIES
   ========================================================== */

.ca-policies {
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.ca-policy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ca-policy-item {
  min-height: 205px;
  padding: 6px 24px;
  text-align: center;
}

.ca-policy-item + .ca-policy-item {
  border-left: 1px solid #dfe8f4;
}

.ca-policy-item > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  color: #1475ff;
}

.ca-policy-item svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ca-policy-item h3 {
  margin: 0 auto 11px;
  max-width: 170px;
  font-size: 15px;
  line-height: 1.22;
}

.ca-policy-item p {
  margin: 0 auto;
  max-width: 175px;
  color: var(--ca-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ==========================================================
   REVEAL
   ========================================================== */

.ca-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.ca-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 1080px) {
  .ca-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .ca-flow-node {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    min-height: 82px;
    padding: 12px 18px;
  }

  .ca-flow-node b {
    font-size: 19px;
  }

  .ca-flow-icon {
    width: 46px;
    height: 46px;
  }

  .ca-cloud-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ca-policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 0;
  }

  .ca-policy-item:nth-child(4) {
    border-left: 0;
  }

  .ca-framework-flex-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 820px) {
  .ca-container,
  .ca-narrow {
    width: min(100% - 32px, 680px);
  }

  .ca-section {
    padding: 68px 0;
  }

  .ca-hero {
    min-height: auto;
  }

  .ca-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 58px 0 54px;
  }

  .ca-hero-copy {
    max-width: none;
  }

  .ca-hero-copy h1 {
    max-width: 640px;
    font-size: clamp(50px, 12vw, 72px);
  }

  .ca-hero-copy p {
    max-width: 640px;
  }

  .ca-hero-visual {
    min-height: 380px;
    justify-content: center;
  }

  .ca-hero-lines {
    width: min(670px, 132%);
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .ca-flow-stack {
    width: min(430px, 82vw);
    margin: 0 auto;
  }

  .ca-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ca-step {
    min-height: 0;
    padding: 34px 30px 28px;
  }

  .ca-step-arrow {
    height: 28px;
    transform: rotate(90deg);
  }

  .ca-cloud-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ca-cap-grid {
    grid-template-columns: 1fr;
  }

  .ca-cap-card {
    min-height: 0;
  }

  .ca-framework-flex-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ca-framework-copy {
    max-width: 640px;
  }

  .ca-builder-visual {
    margin: 0 auto;
  }

  .ca-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ca-policy-item {
    border-left: 0 !important;
    border-top: 1px solid #e2eaf5;
    padding-top: 24px;
  }

  .ca-policy-item:nth-child(1),
  .ca-policy-item:nth-child(2) {
    border-top: 0;
  }
}

/* ==========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================== */

@media (max-width: 540px) {
  .ca-container,
  .ca-narrow {
    width: min(100% - 24px, 500px);
  }

  .ca-section {
    padding: 58px 0;
  }

  .ca-kicker {
    font-size: 10px;
  }

  .ca-section-head {
    margin-bottom: 30px;
  }

  .ca-section-head h2,
  .ca-narrow h2,
  .ca-framework-copy h2 {
    font-size: 31px;
  }

  .ca-section-head p,
  .ca-narrow p {
    font-size: 14px;
  }

  .ca-hero-grid {
    padding-top: 44px;
  }

  .ca-hero-copy h1 {
    font-size: clamp(44px, 14vw, 60px);
    margin-top: 14px;
  }

  .ca-hero-copy p {
    font-size: 15px;
  }

  .ca-hero-copy .btn {
    width: 100%;
    justify-content: center;
  }

  .ca-hero-visual {
    min-height: 320px;
  }

  .ca-flow-stack {
    width: min(330px, 88vw);
    gap: 10px;
  }

  .ca-flow-node {
    min-height: 66px;
    grid-template-columns: 42px 1fr;
    padding: 10px 14px;
  }

  .ca-flow-node b {
    font-size: 17px;
  }

  .ca-flow-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .ca-flow-icon svg {
    width: 22px;
    height: 22px;
  }

  .ca-hero-lines {
    width: 560px;
  }

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

  .ca-cloud-brand {
    min-height: 70px;
  }

  .ca-cap-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .ca-cap-icon {
    width: 46px;
    height: 46px;
  }

  .ca-framework-flex {
    padding: 58px 0;
  }

  .ca-builder-window {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ca-builder-list {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(156, 190, 235, 0.18);
  }

  .ca-builder-form {
    padding-left: 0;
  }

  .ca-builder-top {
    margin-right: 20px;
  }

  .ca-builder-orb {
    right: -4px;
  }

  .ca-policy-grid {
    grid-template-columns: 1fr;
  }

  .ca-policy-item {
    min-height: auto;
    padding: 22px 10px;
    border-top: 1px solid #e2eaf5 !important;
  }

  .ca-policy-item:first-child {
    border-top: 0 !important;
  }
}


/* ==========================================================
   HERO RESPONSIVE OVERRIDES — FINAL
   ========================================================== */

@media (max-width: 1180px) {
  .ca-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    gap: 22px;
  }

  .ca-flow-stack {
    width: min(470px, 74%);
    gap: 14px;
  }

  .ca-flow-node {
    min-height: 88px;
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    gap: 15px;
    padding: 12px 14px 12px 16px;
  }

  .ca-flow-node b {
    font-size: 21px;
  }

  .ca-flow-icon {
    width: 48px;
    height: 48px;
  }

  .ca-flow-chevron {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .ca-flow-hub {
    left: 27%;
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 900px) {
  .ca-hero {
    min-height: auto;
  }

  .ca-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 66px 0 64px;
  }

  .ca-hero-copy {
    max-width: 700px;
  }

  .ca-hero-copy h1 {
    max-width: 700px;
    font-size: clamp(56px, 10vw, 78px);
  }

  .ca-hero-copy p {
    max-width: 660px;
  }

  .ca-hero-visual {
    min-height: 280px;
  }

  .ca-flow-wires,
  .ca-flow-hub {
    display: none;
  }

  .ca-flow-stack {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
  }

  .ca-flow-node {
    min-height: 90px;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .ca-hero-grid {
    gap: 34px;
    padding: 50px 0 48px;
  }

  .ca-hero-kicker-row {
    gap: 12px;
  }

  .ca-kicker-line {
    width: 36px;
  }

  .ca-hero-copy h1 {
    font-size: clamp(46px, 14vw, 62px);
    line-height: 0.96;
    margin: 18px 0 22px;
  }

  .ca-hero-copy p {
    font-size: 15px;
    line-height: 1.62;
    margin-bottom: 26px;
  }

  .ca-hero-copy .btn {
    width: 100%;
    min-height: 58px;
    justify-content: center;
  }

  .ca-hero-visual {
    min-height: 0;
  }

  .ca-flow-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ca-flow-node {
    min-height: 72px;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .ca-flow-node b {
    font-size: 18px;
  }

  .ca-flow-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .ca-flow-icon svg {
    width: 22px;
    height: 22px;
  }

  .ca-flow-chevron {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ca-cap-card {
    transition: none;
  }
}

/* ==========================================================
   COMPLIANCE AUTOMATION — HERO FLOW ALIGNMENT FIX
   Keeps the hub, connector spine and all four cards aligned.
   This block intentionally sits LAST so it overrides earlier
   hero-flow positioning rules.
   ========================================================== */

@media (min-width: 901px) {

  /*
   * Use one stable coordinate system:
   *   [ hub / connector lane ][ flow cards ]
   *
   * The previous version positioned the hub with a percentage
   * while the cards used a capped width, so their alignment
   * changed as the viewport changed.
   */
  .ca-hero-visual {
    --ca-connector-lane: 120px;
    --ca-spine-x: 60px;

    position: relative;
    min-height: 540px;

    display: flex;
    align-items: center;

    padding-left: var(--ca-connector-lane);
  }

  /* The SVG wires used a different coordinate system from the cards.
     Replace them with CSS connectors that are anchored directly to
     the card stack, so they stay aligned at every desktop width. */
  .ca-flow-wires {
    display: none !important;
  }

  .ca-flow-stack {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 520px;

    margin: 0 0 0 auto;

    display: grid;
    gap: 18px;
  }

  /* Vertical connector spine. It begins/ends at the centre of the
     first and last cards rather than extending beyond the stack. */
  .ca-flow-stack::before {
    content: "";
    position: absolute;
    z-index: 0;

    left: calc(-1 * (var(--ca-connector-lane) - var(--ca-spine-x)));
    top: 52px;
    bottom: 52px;

    width: 2px;

    background: linear-gradient(
      180deg,
      rgba(38, 196, 255, 0.38) 0%,
      rgba(38, 196, 255, 0.95) 18%,
      rgba(47, 135, 255, 0.95) 52%,
      rgba(95, 92, 255, 0.78) 100%
    );

    box-shadow:
      0 0 10px rgba(36, 158, 255, 0.55),
      0 0 20px rgba(36, 117, 255, 0.20);

    pointer-events: none;
  }

  .ca-flow-node {
    position: relative;
    z-index: 2;
  }

  /* Horizontal connector from the common spine to each card. */
  .ca-flow-node::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: 50%;
    left: calc(-1 * (var(--ca-connector-lane) - var(--ca-spine-x)));

    width: calc(var(--ca-connector-lane) - var(--ca-spine-x));
    height: 2px;

    transform: translateY(-50%);

    background: linear-gradient(
      90deg,
      rgba(35, 190, 255, 0.96) 0%,
      rgba(46, 138, 255, 0.82) 72%,
      rgba(70, 139, 255, 0.38) 100%
    );

    box-shadow: 0 0 10px rgba(35, 157, 255, 0.42);

    pointer-events: none;
  }

  /* Small illuminated junction at every card connection. */
  .ca-flow-node::after {
    content: "";
    position: absolute;
    z-index: 3;

    top: 50%;
    left: calc(-1 * (var(--ca-connector-lane) - var(--ca-spine-x)) - 5px);

    width: 10px;
    height: 10px;

    transform: translateY(-50%);

    border: 2px solid rgba(132, 218, 255, 0.95);
    border-radius: 50%;

    background: #178cff;

    box-shadow:
      0 0 0 4px rgba(33, 142, 255, 0.14),
      0 0 14px rgba(28, 168, 255, 0.72);

    pointer-events: none;
  }

  /* Hub is centred exactly on the same connector spine. */
  .ca-flow-hub {
    left: var(--ca-spine-x);
    top: 50%;

    width: 88px;
    height: 88px;

    transform: translate(-50%, -50%);
  }

  /* Keep the hub visually above the spine, while the connectors
     remain visible as they enter the card stack. */
  .ca-flow-hub::after {
    content: "";
    position: absolute;
    inset: 10px;

    border: 1px solid rgba(176, 226, 255, 0.28);
    border-radius: 50%;

    pointer-events: none;
  }
}


/* Medium desktop / small laptop */
@media (min-width: 901px) and (max-width: 1180px) {

  .ca-hero-visual {
    --ca-connector-lane: 96px;
    --ca-spine-x: 48px;

    min-height: 490px;
    padding-left: var(--ca-connector-lane);
  }

  .ca-flow-stack {
    max-width: 455px;
    gap: 14px;
  }

  .ca-flow-stack::before {
    top: 44px;
    bottom: 44px;
  }

  .ca-flow-hub {
    width: 74px;
    height: 74px;
  }
}


/* Tablet/mobile: retain the simplified card layout and remove the
   decorative wiring so nothing can overlap or become cramped. */
@media (max-width: 900px) {

  .ca-hero-visual {
    padding-left: 0;
  }

  .ca-flow-wires,
  .ca-flow-hub,
  .ca-flow-stack::before,
  .ca-flow-node::before,
  .ca-flow-node::after {
    display: none !important;
  }

  .ca-flow-stack {
    max-width: none;
  }
}

