/* Ekonbee — iPaaS page styles (token-driven; dark mode inherits via tokens) */
.iph-why { padding: 64px 0 10px; }
.iph-head { max-width: 780px; margin-bottom: 34px; }
.iph-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.015em; margin: 6px 0 12px; }
.iph-head p { font-size: 16px; line-height: 1.7; color: var(--fg-muted); margin: 0; }

.iph-vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.iph-val { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.iph-val i { font-size: 26px; color: var(--ekb-purple); }
.iph-val h3 { font-size: 16px; margin: 12px 0 6px; }
.iph-val p { font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

.iph-platforms { padding: 56px 0 64px; }
.iph-list { display: grid; gap: 22px; }

.iph-plat {
  scroll-margin-top: 150px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; display: grid; gap: 18px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.iph-plat:target {
  border-color: var(--ekb-purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ekb-purple), transparent 82%);
}
.iph-plat__head { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; }
.iph-plat__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  box-shadow: 0 8px 18px -10px rgba(26,21,19,.4);
}
.iph-plat__head h2 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
.iph-plat__tag { margin: 4px 0 0; color: var(--fg-muted); font-size: 14px; }
.iph-plat__num { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--fg-muted); align-self: start; }
.iph-plat__desc { margin: 0; line-height: 1.7; font-size: 15.5px; max-width: 860px; }
.iph-plat__caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; max-width: 760px; }
.iph-plat__caps li { font-size: 14px; line-height: 1.5; display: flex; gap: 9px; align-items: baseline; }
.iph-plat__caps li::before { content: "✔"; color: var(--ekb-orange); font-size: 13px; flex: none; }
.iph-plat__cta {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  font-family: var(--font-nav); font-size: 13.5px; font-weight: 600;
  color: var(--ekb-purple); text-decoration: none; transition: gap .22s ease;
}
.iph-plat__cta:hover { gap: 12px; color: var(--ekb-red); }

.iph-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.iph-chips a {
  font-family: var(--font-nav); font-size: 13px; font-weight: 500;
  color: var(--fg); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: 50px;
  padding: 7px 16px; background: var(--surface);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.iph-chips a:hover { color: var(--ekb-purple); border-color: var(--ekb-purple); transform: translateY(-1px); }

.iph-fineprint { margin: 26px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--fg-muted); max-width: 860px; }

@media (max-width: 900px) {
  .iph-vals { grid-template-columns: 1fr 1fr; }
  .iph-plat__caps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .iph-vals { grid-template-columns: 1fr; }
  .iph-plat { padding: 22px; }
  .iph-plat__head { grid-template-columns: 48px 1fr; }
  .iph-plat__num { display: none; }
  .iph-plat__icon { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
}

/* ============================ iPaaS hero art ============================
   Hub-and-spoke: gradient hex core, seven platform nodes popping in,
   honey dash-flow on the spokes, two data packets orbiting the hub.
   ======================================================================= */
.pgh-art--ipaas .ipx-node text,
.pgh-art--ipaas .ipx-core-label {
  font: 800 20px var(--font-heading, "Raleway", sans-serif);
  fill: #fff; text-anchor: middle;
}
.pgh-art--ipaas .ipx-core-label { font-size: 21px; letter-spacing: .02em; }

.pgh-art--ipaas .ipx-core {
  transform-origin: center; transform-box: fill-box;
  animation: ipx-core-in .7s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes ipx-core-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.pgh-art--ipaas .ipx-core-hex {
  transform-origin: center; transform-box: fill-box;
  filter: drop-shadow(0 10px 28px rgba(238,144,2,.35));
  animation: ipx-core-pulse 4s ease-in-out 1s infinite;
}
@keyframes ipx-core-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.pgh-art--ipaas .ipx-ring {
  transform-origin: center; transform-box: fill-box;
  animation: ipx-ring-spin 16s linear infinite;
}
@keyframes ipx-ring-spin { to { transform: rotate(360deg); } }

.pgh-art--ipaas .ipx-node {
  opacity: 0;
  transform-origin: center; transform-box: fill-box;
  animation: ipx-node-in .65s cubic-bezier(.2,.9,.3,1.3) forwards;
}
.pgh-art--ipaas .ipx-node:nth-of-type(1) { animation-delay: .15s; }
.pgh-art--ipaas .ipx-node:nth-of-type(2) { animation-delay: .28s; }
.pgh-art--ipaas .ipx-node:nth-of-type(3) { animation-delay: .41s; }
.pgh-art--ipaas .ipx-node:nth-of-type(4) { animation-delay: .54s; }
.pgh-art--ipaas .ipx-node:nth-of-type(5) { animation-delay: .67s; }
.pgh-art--ipaas .ipx-node:nth-of-type(6) { animation-delay: .8s; }
.pgh-art--ipaas .ipx-node:nth-of-type(7) { animation-delay: .93s; }
@keyframes ipx-node-in {
  0%   { opacity: 0; transform: scale(.4) rotate(-10deg); }
  60%  { opacity: 1; transform: scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.pgh-art--ipaas .ipx-node polygon {
  transform-origin: center; transform-box: fill-box;
  animation: ipx-node-breathe 4.5s ease-in-out infinite;
}
.pgh-art--ipaas .ipx-node:nth-of-type(2) polygon { animation-delay: .6s; }
.pgh-art--ipaas .ipx-node:nth-of-type(3) polygon { animation-delay: 1.2s; }
.pgh-art--ipaas .ipx-node:nth-of-type(4) polygon { animation-delay: 1.8s; }
.pgh-art--ipaas .ipx-node:nth-of-type(5) polygon { animation-delay: 2.4s; }
.pgh-art--ipaas .ipx-node:nth-of-type(6) polygon { animation-delay: 3.0s; }
.pgh-art--ipaas .ipx-node:nth-of-type(7) polygon { animation-delay: 3.6s; }
@keyframes ipx-node-breathe {
  0%, 100% { filter: drop-shadow(0 6px 16px rgba(238,144,2,.16)); }
  50%      { filter: drop-shadow(0 10px 26px rgba(193,38,140,.32)); }
}

.pgh-art--ipaas .ipx-link {
  stroke-dasharray: 3 9;
  opacity: 0;
  animation: ipx-link-in .8s ease-out .5s forwards, ipx-flow 1.4s linear 1.3s infinite;
}
@keyframes ipx-link-in { to { opacity: .4; } }
@keyframes ipx-flow { to { stroke-dashoffset: -24; } }

.pgh-art--ipaas .ipx-web { opacity: 0; animation: ipx-web-in 1s ease-out .9s forwards; }
@keyframes ipx-web-in { to { opacity: 1; } }

.pgh-art--ipaas .ipx-packet {
  opacity: 0;
  offset-path: circle(185px at 270px 270px);
  filter: drop-shadow(0 0 6px rgba(253,184,19,.8));
}
.pgh-art--ipaas .ipx-packet--1 { animation: ipx-packet-in .5s ease-out 1.4s forwards, ipx-orbit 16s linear 1.4s infinite; }
.pgh-art--ipaas .ipx-packet--2 {
  filter: drop-shadow(0 0 6px rgba(45,182,250,.8));
  animation: ipx-packet-in .5s ease-out 1.8s forwards, ipx-orbit 16s linear -6.6s infinite;
}
@keyframes ipx-packet-in { to { opacity: 1; } }
@keyframes ipx-orbit { to { offset-distance: 100%; } }

.pgh-art--ipaas .ipx-pollen .p {
  transform-origin: center; transform-box: fill-box;
  animation: ipx-twinkle 3.5s ease-in-out infinite;
}
.pgh-art--ipaas .ipx-pollen .p:nth-of-type(2) { animation-delay: .6s; }
.pgh-art--ipaas .ipx-pollen .p:nth-of-type(3) { animation-delay: 1.2s; }
.pgh-art--ipaas .ipx-pollen .p:nth-of-type(4) { animation-delay: 1.8s; }
.pgh-art--ipaas .ipx-pollen .p:nth-of-type(5) { animation-delay: 2.4s; }
.pgh-art--ipaas .ipx-pollen .p:nth-of-type(6) { animation-delay: 3.0s; }
@keyframes ipx-twinkle {
  0%, 100% { opacity: .25; transform: scale(.6); }
  50%      { opacity: .9;  transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .pgh-art--ipaas .ipx-core, .pgh-art--ipaas .ipx-core-hex, .pgh-art--ipaas .ipx-ring,
  .pgh-art--ipaas .ipx-node, .pgh-art--ipaas .ipx-node polygon, .pgh-art--ipaas .ipx-link,
  .pgh-art--ipaas .ipx-web, .pgh-art--ipaas .ipx-packet, .pgh-art--ipaas .ipx-pollen .p { animation: none !important; }
  .pgh-art--ipaas .ipx-node, .pgh-art--ipaas .ipx-web { opacity: 1; }
  .pgh-art--ipaas .ipx-link { opacity: .4; }
  .pgh-art--ipaas .ipx-packet { display: none; }
}
