:root {
  color-scheme: light;
  --navy-950: #06293b;
  --navy-900: #0c3b54;
  --navy-800: #124b66;
  --blue-700: #0d7897;
  --blue-600: #1294b9;
  --blue-500: #22a9cb;
  --blue-100: #ddf4f7;
  --blue-50: #eff9fa;
  --orange-600: #f06b1f;
  --orange-500: #ff853d;
  --orange-100: #ffe8da;
  --green-700: #24743d;
  --green-100: #dff3e5;
  --page: #f4f7f8;
  --surface: #ffffff;
  --ink: #102532;
  --text: #425b68;
  --muted: #718590;
  --line: #d9e2e6;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(6, 41, 59, 0.08);
  --shadow-md: 0 28px 75px rgba(6, 41, 59, 0.15);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --font-sans: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-integrations {
  padding-top: 68px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  color: var(--white);
  background: var(--blue-600);
}

:focus-visible {
  outline: 3px solid rgba(18, 148, 185, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: 20px auto 0;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 72px) 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(34, 169, 203, 0.13), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fbfc 55%, #edf8fa 100%);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  max-width: 890px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #82d6e8;
}

.hero h1 {
  margin-top: 18px;
  color: var(--navy-950);
  font-size: clamp(48px, 7.2vw, 92px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 span {
  color: var(--blue-700);
}

.hero-lead {
  max-width: 780px;
  margin: 28px auto 0;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 780;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background 180ms ease;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 12px 28px rgba(6, 41, 59, 0.2);
}

.button-primary:hover {
  box-shadow: 0 16px 36px rgba(6, 41, 59, 0.26);
}

.text-link {
  color: var(--blue-700);
  border-bottom: 1px solid rgba(13, 120, 151, 0.28);
  font-size: 14px;
  font-weight: 760;
}

.integration-stage {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(60px, 0.4fr) minmax(230px, 1.2fr) minmax(60px, 0.4fr) minmax(190px, 1fr);
  min-height: 340px;
  align-items: center;
  margin-top: clamp(50px, 7vw, 78px);
  padding: clamp(24px, 4vw, 44px);
  background: var(--navy-950);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.stage-source,
.stage-gate,
.stage-targets article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.stage-source {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.stage-kicker,
.stage-source small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-source strong {
  margin: 4px 0;
  font-size: 29px;
  line-height: 1.1;
}

.stage-rail {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(130, 214, 232, 0.22);
}

.stage-rail::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(130, 214, 232, 0.85), transparent);
  content: "";
  transform: translateX(-100%);
  animation: rail-flow 2.8s linear infinite;
}

.packet {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -8px;
  width: 9px;
  height: 9px;
  background: var(--orange-500);
  border: 2px solid var(--navy-950);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 133, 61, 0.16);
  animation: packet-flow 3.8s linear infinite;
}

.packet-two,
.packet-four {
  animation-delay: -1.9s;
}

.stage-gate {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 230px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px;
  color: var(--ink);
  background: var(--white);
  border-color: rgba(34, 169, 203, 0.4);
  border-radius: 24px;
}

.stage-gate::before,
.stage-gate::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(34, 169, 203, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: gate-pulse 3.8s ease-out infinite;
}

.stage-gate::after {
  animation-delay: -1.9s;
}

.stage-gate img {
  position: relative;
  z-index: 1;
  width: 52px;
}

.stage-gate > span,
.stage-gate > strong {
  position: relative;
  z-index: 1;
}

.stage-gate > span {
  margin-top: 12px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 830;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-gate > strong {
  margin-top: 3px;
  font-size: 21px;
  text-align: center;
}

.gate-rules {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.gate-rules span {
  padding: 6px 9px;
  color: var(--navy-800);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
}

.stage-targets {
  display: grid;
  gap: 8px;
}

.stage-targets article {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 58px;
  align-items: center;
  padding: 9px 14px 9px 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.stage-targets span {
  color: #83d8e9;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.stage-targets strong {
  font-size: 13px;
  line-height: 1.3;
}

.stage-targets .target-ai {
  border-color: rgba(255, 133, 61, 0.42);
  background: rgba(255, 133, 61, 0.1);
}

.stage-targets .target-ai span {
  color: #ffac7d;
}

.stage-targets .target-ai strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.stage-targets .target-ai small {
  padding: 3px 6px;
  color: #ffc4a3;
  background: rgba(255, 133, 61, 0.12);
  border: 1px solid rgba(255, 172, 125, 0.3);
  border-radius: 999px;
  font-size: 7px;
  font-weight: 820;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-note {
  display: flex;
  max-width: 830px;
  align-items: flex-start;
  gap: 10px;
  margin: 25px auto 0;
  color: var(--text);
  font-size: 13px;
  text-align: center;
}

.hero-note span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: var(--orange-500);
  border-radius: 50%;
}

.control-section {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: clamp(90px, 11vw, 150px) auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  column-gap: clamp(40px, 8vw, 110px);
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin-top: 18px;
  color: var(--navy-950);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 570px;
  padding-bottom: 7px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.control-grid > article {
  min-height: 360px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.card-index {
  color: var(--orange-600);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.control-grid h3 {
  margin-top: 13px;
  color: var(--navy-950);
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.control-grid article > p {
  max-width: 520px;
  margin-top: 15px;
  color: var(--text);
}

.mini-visual {
  min-height: 100px;
  margin-top: 34px;
  color: var(--navy-900);
  background: #f5f9fa;
  border: 1px solid #e1eaed;
  border-radius: 18px;
}

.mini-scope {
  display: grid;
  grid-template-columns: 78px 1fr 1.55fr;
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  gap: 8px 16px;
  padding: 17px;
}

.scope-key {
  display: grid;
  grid-row: 1 / 3;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 12px;
  font-weight: 780;
}

.mini-scope i {
  grid-row: 1 / 3;
  width: 100%;
  height: 1px;
  background: var(--blue-500);
}

.scope-role {
  padding: 8px 10px;
  background: var(--green-100);
  border: 1px solid #bfe5ca;
  border-radius: 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 730;
}

.scope-role.is-muted {
  color: var(--muted);
  background: #edf1f2;
  border-color: #dfe6e8;
  text-decoration: line-through;
}

.mini-secret {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  padding: 18px;
}

.mini-secret > span {
  grid-column: 1 / -1;
  padding: 10px 13px;
  overflow: hidden;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
}

.mini-secret i {
  width: 8px;
  height: 8px;
  background: var(--green-700);
  border-radius: 50%;
}

.mini-secret strong {
  justify-self: start;
  font-size: 12px;
}

.mini-lifecycle {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.mini-lifecycle span {
  font-size: 11px;
  font-weight: 760;
}

.mini-lifecycle span.is-active {
  padding: 7px 10px;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 999px;
}

.mini-lifecycle i {
  height: 1px;
  background: var(--line);
}

.mini-audit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.mini-audit > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mini-audit small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-audit strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uses-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(400px, 1fr);
  gap: clamp(50px, 8vw, 110px);
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: 0 auto;
  padding: clamp(50px, 7vw, 85px);
  color: var(--white);
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 169, 203, 0.16), transparent 32%),
    var(--navy-950);
  border-radius: 32px;
}

.uses-copy {
  align-self: center;
}

.uses-copy h2 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 710;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.uses-copy > p:last-child {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.7;
}

.uses-stack {
  display: grid;
  gap: 10px;
}

.uses-stack article {
  padding: 25px 27px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out);
}

.uses-stack article:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(130, 214, 232, 0.32);
  transform: translateX(-5px);
}

.uses-stack span {
  color: #82d6e8;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.uses-stack h3 {
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.2;
}

.uses-stack p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.cta-section {
  display: flex;
  width: min(100% - var(--gutter) * 2, var(--container));
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin: clamp(90px, 11vw, 150px) auto;
  padding: clamp(38px, 6vw, 68px);
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-700), var(--navy-900));
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.cta-section .eyebrow {
  color: #a2e4ef;
}

.cta-section h2 {
  max-width: 750px;
  margin-top: 14px;
  font-size: clamp(39px, 5vw, 66px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.cta-section p:last-child {
  max-width: 670px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.68);
}

.button-light {
  flex: 0 0 auto;
  color: var(--navy-950);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 41, 59, 0.16);
}

@keyframes rail-flow {
  to {
    transform: translateX(100%);
  }
}

@keyframes packet-flow {
  from {
    left: -8px;
  }
  to {
    left: calc(100% + 8px);
  }
}

@keyframes gate-pulse {
  from {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.52);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@media (max-width: 980px) {
  .integration-stage {
    grid-template-columns: minmax(130px, 0.8fr) 40px minmax(210px, 1.15fr) 40px minmax(165px, 1fr);
    padding: 26px;
  }

  .stage-targets article {
    grid-template-columns: 48px 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p:last-child {
    margin-top: 24px;
  }

  .uses-section {
    grid-template-columns: 1fr;
  }

  .uses-copy {
    max-width: 720px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .hero {
    margin-top: 8px;
    padding: 46px 18px 20px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .text-link {
    align-self: center;
  }

  .integration-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding: 18px;
  }

  .stage-source {
    min-height: 112px;
    text-align: center;
  }

  .stage-rail {
    width: 2px;
    height: 42px;
    justify-self: center;
  }

  .stage-rail::after {
    background: linear-gradient(180deg, transparent, rgba(130, 214, 232, 0.85), transparent);
    transform: translateY(-100%);
    animation-name: rail-flow-vertical;
  }

  .packet {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation-name: packet-flow-vertical;
  }

  .stage-gate {
    min-height: 210px;
  }

  .stage-targets {
    width: 100%;
  }

  .hero-note {
    text-align: left;
  }

  .control-section {
    margin-top: 92px;
    margin-bottom: 92px;
  }

  .section-heading h2 {
    font-size: clamp(39px, 11vw, 54px);
  }

  .section-heading > p:last-child {
    font-size: 16px;
  }

  .control-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .control-grid > article {
    min-height: 330px;
  }

  .mini-lifecycle {
    gap: 8px;
    padding: 14px;
  }

  .mini-lifecycle span {
    font-size: 9px;
  }

  .uses-section {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 36px;
    padding: 42px 20px;
    border-radius: 24px;
  }

  .uses-copy h2 {
    font-size: clamp(39px, 11vw, 54px);
  }

  .uses-copy > p:last-child {
    font-size: 15px;
  }

  .uses-stack article:hover {
    transform: none;
  }

  .cta-section {
    margin-top: 92px;
    margin-bottom: 92px;
    padding: 38px 24px;
    border-radius: 24px;
  }

  .button-light {
    width: 100%;
  }

}

@media (max-width: 420px) {
  .mini-scope {
    grid-template-columns: 58px 1fr 1.75fr;
    gap: 8px;
    padding: 12px;
  }

  .scope-role {
    padding: 7px;
    font-size: 10px;
  }

  .mini-audit {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes rail-flow-vertical {
  to {
    transform: translateY(100%);
  }
}

@keyframes packet-flow-vertical {
  from {
    top: -8px;
  }
  to {
    top: calc(100% + 8px);
  }
}
