/* ── CONNECTORS & INTEGRATIONS SECTION ─────────────────── */
.ci { position: relative; overflow: hidden; padding: 120px 0 140px; border-top: 1px solid var(--hair); }
.ci__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% 12%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(700px 500px at 20% 88%, rgba(59,130,246,0.06), transparent 60%);
}
.ci .container { position: relative; z-index: 1; }

/* Hero */
.ci__hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 140px;
}
.ci__copy h2.ci__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink-100);
  margin: 18px 0 22px;
}
.ci__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 560px;
  margin-bottom: 32px;
}
.ci__lead strong { color: var(--ink-100); font-weight: 600; }
.ci__sig {
  display: flex;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  margin-bottom: 24px;
}
.ci__sig-item { flex: 1; padding-right: 22px; }
.ci__sig-item + .ci__sig-item { border-left: 1px solid var(--hair); padding-left: 22px; }
.ci__sig-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  line-height: 1;
}
.ci__sig-lab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-top: 8px;
}
.ci__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ci__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-80);
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
}
.ci__chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: ci-dot 1.8s ease-in-out infinite;
}
.ci__chip:nth-child(2) .ci__chip-dot { animation-delay: 0.3s; }
.ci__chip:nth-child(3) .ci__chip-dot { animation-delay: 0.6s; }
.ci__chip:nth-child(4) .ci__chip-dot { animation-delay: 0.9s; }
@keyframes ci-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Motion panel — connector hub */
.ci__motion { position: relative; padding: 14px; zoom: 0.8; }
.ci__panel {
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,13,24,0.96), rgba(8,13,24,0.86));
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(59,130,246,0.10),
    inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}
.ci__panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  background: rgba(255,255,255,0.02);
}
.ci__panel-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ci__panel-dot--r { background: #ff5f57; }
.ci__panel-dot--y { background: #febc2e; }
.ci__panel-dot--g { background: #28c840; }
.ci__panel-name {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-70);
}
.ci__panel-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #28c840;
  border: 1px solid rgba(40,200,64,0.4);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ci__panel-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #28c840; box-shadow: 0 0 8px #28c840;
  animation: ci-pulse 1.6s ease-out infinite;
}
@keyframes ci-pulse { 0%,100% {opacity:1;} 50% {opacity:0.4;} }

/* Live integration flow — elegant Stripe-style diagram */
.ci__diagram {
  position: relative;
  padding: 14px 18px 4px;
  background: radial-gradient(620px 320px at 50% 50%, rgba(59,130,246,0.06), transparent 70%);
}
.ci__diagram-svg { display: block; width: 100%; height: auto; }

/* Soft hub glow */
.ci__diagram .glow { fill: url(#ci-glow); }

/* Curved data paths */
.ci__diagram .path {
  fill: none;
  stroke: rgba(96,165,250,0.18);
  stroke-width: 1;
}
.ci__diagram .path-in  { stroke: url(#ci-line-in);  stroke-width: 1.1; }
.ci__diagram .path-out { stroke: url(#ci-line-out); stroke-width: 1.1; }

/* Traveling pulse particles */
.ci__diagram .dot-in  { fill: #7dd3fc; filter: drop-shadow(0 0 4px rgba(125,211,252,0.8)); }
.ci__diagram .dot-out { fill: #93c5fd; filter: drop-shadow(0 0 4px rgba(147,197,253,0.8)); }

/* Central INNFINI card */
.ci__diagram .hub-card {
  fill: rgba(8,13,24,0.92);
  stroke: rgba(96,165,250,0.45);
  stroke-width: 1.2;
}
.ci__diagram .hub-ring {
  fill: none;
  stroke: rgba(96,165,250,0.3);
  stroke-width: 1;
}
.ci__diagram .hub-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  fill: var(--ink-100);
  letter-spacing: -0.01em;
}
.ci__diagram .hub-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  fill: var(--ink-60);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* HTML pills positioned over the SVG */
.ci__pills {
  position: absolute;
  inset: 14px 18px 4px;
  pointer-events: none;
}
.ci__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(96,165,250,0.22);
  border-radius: 999px;
  background: rgba(8,13,24,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-90, var(--ink-80));
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.5);
  transform: translate(var(--x, 0), var(--y, 0));
}
.ci__pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
}
.ci__pill-dot--warn { background: #fcd34d; box-shadow: 0 0 6px #fcd34d; }
.ci__pill-name {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.ci__pill-sub {
  font-size: 9px;
  color: var(--ink-70);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}



.ci__panel-foot {
  display: flex; gap: 22px;
  padding: 14px 20px;
  border-top: 1px solid var(--hair);
  background: rgba(255,255,255,0.015);
  flex-wrap: wrap;
}
.ci__metric { display: flex; flex-direction: column; gap: 2px; }
.ci__metric-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); }
.ci__metric-v { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-90, var(--ink-80)); }

.ci__float {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-80);
  background: rgba(8,13,24,0.92);
  border: 1px solid rgba(96,165,250,0.30);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6);
  z-index: 2;
  animation: ci-float 5s ease-in-out infinite;
}
.ci__float--tl { top: -4px; right: -10px; }
.ci__float--tr { top: 38px; left: -14px; animation-delay: 1.6s; }
.ci__float--bl { bottom: 4px; right: -8px; animation-delay: 3s; }
@keyframes ci-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Section heads */
.ci__section-head { margin: 0 0 56px; max-width: 880px; }
.ci__section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* Pipeline (6 stages — wider than 5-stage variants) */
.ci__pipe {
  list-style: none; padding: 0; margin: 0 0 140px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8,13,24,0.4), rgba(8,13,24,0.15));
  position: relative;
}
.ci__stage {
  padding: 28px 22px 28px;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column;
  position: relative;
  transition: background 280ms ease;
}
.ci__stage:hover { background: rgba(59,130,246,0.04); }
.ci__stage:last-child { border-right: 0; }
.ci__stage-mark {
  width: 36px; height: 36px;
  border: 1px solid rgba(96,165,250,0.28);
  background: rgba(8,13,24,0.92);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  color: var(--accent);
}
.ci__stage-mark svg { width: 22px; height: 22px; display: block; }
.ci__stage-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ci__stage h4 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink-100);
  margin: 0 0 10px;
  line-height: 1.2;
}
.ci__stage p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0;
}
.ci__stage p em { font-style: normal; color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; }

/* Capabilities (3×2) */
.ci__caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 140px;
}
.ci__cap {
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 26px 24px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 280ms ease, background 280ms ease;
}
.ci__cap:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(180deg, rgba(59,130,246,0.06), rgba(59,130,246,0.015));
}
.ci__cap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ci__cap-mo {
  width: 36px; height: 36px;
  border: 1px solid rgba(96,165,250,0.28);
  background: rgba(59,130,246,0.05);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
}
.ci__cap-mo svg { width: 24px; height: 24px; display: block; }
.ci__cap:hover .ci__cap-mo { border-color: rgba(96,165,250,0.55); background: rgba(59,130,246,0.12); }
.ci__cap-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.ci__cap h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-100);
  margin: 0 0 10px;
  line-height: 1.2;
}
.ci__cap p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0 0 16px;
}
.ci__cap-meta { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--hair); padding-top: 14px; }
.ci__cap-meta span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  padding: 4px 9px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}

/* Business value */
.ci__value {
  border: 1px solid var(--hair);
  border-radius: 14px;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(59,130,246,0.08), transparent 60%),
    linear-gradient(180deg, rgba(8,13,24,0.6), rgba(8,13,24,0.3));
  padding: 48px 48px 40px;
  margin-bottom: 32px;
}
.ci__value-head { margin-bottom: 36px; max-width: 720px; }
.ci__value-head h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  margin: 14px 0 0;
}
.ci__value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ci__vcell { padding: 0 24px; border-right: 1px solid var(--hair); }
.ci__vcell:last-child { border-right: 0; }
.ci__vcell:first-child { padding-left: 0; }
.ci__vnum {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-100);
  margin-bottom: 10px;
}
.ci__vname {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.ci__vcell p { font-size: 13.5px; line-height: 1.55; color: var(--ink-70); margin: 0; }

.ci__closing { font-size: 15.5px; line-height: 1.65; color: var(--ink-70); max-width: 900px; margin: 0; }
.ci__closing strong { color: var(--ink-100); font-weight: 500; }

/* Responsive */
@media (max-width: 1080px) {
  .ci__hero { grid-template-columns: 1fr; gap: 40px; }
  .ci__pipe { grid-template-columns: repeat(3, 1fr); }
  .ci__pipe::before { display: none; }
  .ci__stage { border-bottom: 1px solid var(--hair); }
  .ci__stage:nth-child(3n) { border-right: 0; }
  .ci__caps { grid-template-columns: repeat(2, 1fr); }
  .ci__value-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .ci__vcell:nth-child(2) { border-right: 0; }
  .ci__vcell:nth-child(3), .ci__vcell:nth-child(4) { padding-left: 0; padding-top: 0; }
}
@media (max-width: 640px) {
  .ci { padding: 80px 0 90px; }
  .ci__pipe { grid-template-columns: 1fr; }
  .ci__stage { border-right: 0; border-bottom: 1px solid var(--hair); }
  .ci__stage:last-child { border-bottom: 0; }
  .ci__caps { grid-template-columns: 1fr; }
  .ci__sig { flex-wrap: wrap; gap: 20px 0; }
  .ci__sig-item + .ci__sig-item { border-left: 0; padding-left: 0; }
  .ci__value { padding: 32px 24px 24px; }
  .ci__value-grid { grid-template-columns: 1fr; }
  .ci__vcell { border-right: 0; padding: 0 0 18px; border-bottom: 1px solid var(--hair); }
  .ci__vcell:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ci__chip-dot, .ci__panel-pill::before, .ci__float { animation: none !important; opacity: 1 !important; transform: none !important; }
  .ci__hub * { animation: none !important; }
}
