/* Platform development pages (Shopify, Magento, …) — builds on ecommerce-modern.css.
   Each page sets a theme class on <body> that defines its palette below. */

/* ---------- Themes ---------- */
.ecom-page.shopify-page {
  --ec-indigo: #047857;
  --ec-violet: #0f766e;
  --ec-mint: #16a34a;
  --ec-soft: #f3f8f5;
  --ec-dark: #06201a;
  --ec-grad: linear-gradient(120deg, #047857, #10b981 55%, #65a30d);
  --sp-tint: #e9f7ef;
  --sp-tint-line: #b9e4cb;
  --sp-hi: #6ee7b7;
  --sp-hi2: #bef264;
  --sp-hi-rgb: 110, 231, 183;
  --sp-hero-top: #f2faf5;
  --sp-grid-rgb: 4, 120, 87;
  --sp-blob1: #bbf7d0;
  --sp-blob2: #d9f99d;
  --sp-blob3: #a7f3d0;
  --sp-dark-rgb: 6, 32, 26;
  --sp-glow1: rgba(16, 185, 129, 0.3);
  --sp-glow2: rgba(132, 204, 22, 0.2);
  --sp-bar-a: #6ee7b7;
  --sp-bar-b: #059669;
  --sp-bar-c: #d9f99d;
  --sp-bar-d: #65a30d;
  --sp-float-a: #047857;
  --sp-float-b: #65a30d;
  --sp-ring: #dcefe4;
}
.ecom-page.magento-page {
  --ec-indigo: #c2410c;
  --ec-violet: #9a3412;
  --ec-mint: #ea580c;
  --ec-soft: #fbf6f1;
  --ec-dark: #16120f;
  --ec-grad: linear-gradient(120deg, #c2410c, #f97316 55%, #f59e0b);
  --sp-tint: #fff0e6;
  --sp-tint-line: #fdcfae;
  --sp-hi: #fdba74;
  --sp-hi2: #fcd34d;
  --sp-hi-rgb: 251, 146, 60;
  --sp-hero-top: #fdf6ef;
  --sp-grid-rgb: 194, 65, 12;
  --sp-blob1: #fed7aa;
  --sp-blob2: #fde68a;
  --sp-blob3: #fecaca;
  --sp-dark-rgb: 22, 18, 15;
  --sp-glow1: rgba(249, 115, 22, 0.28);
  --sp-glow2: rgba(245, 158, 11, 0.18);
  --sp-bar-a: #fdba74;
  --sp-bar-b: #ea580c;
  --sp-bar-c: #fde68a;
  --sp-bar-d: #f59e0b;
  --sp-float-a: #c2410c;
  --sp-float-b: #f59e0b;
  --sp-ring: #f6e3d4;
}
.ecom-page.opencart-page {
  --ec-indigo: #0369a1;
  --ec-violet: #075985;
  --ec-mint: #0ea5e9;
  --ec-soft: #f2f8fc;
  --ec-dark: #0a1a2f;
  --ec-grad: linear-gradient(120deg, #0369a1, #0ea5e9 55%, #22c55e);
  --sp-tint: #e6f4fc;
  --sp-tint-line: #b6dcf2;
  --sp-hi: #7dd3fc;
  --sp-hi2: #86efac;
  --sp-hi-rgb: 56, 189, 248;
  --sp-hero-top: #eef7fd;
  --sp-grid-rgb: 3, 105, 161;
  --sp-blob1: #bae6fd;
  --sp-blob2: #bbf7d0;
  --sp-blob3: #c7d2fe;
  --sp-dark-rgb: 10, 26, 47;
  --sp-glow1: rgba(14, 165, 233, 0.3);
  --sp-glow2: rgba(34, 197, 94, 0.18);
  --sp-bar-a: #7dd3fc;
  --sp-bar-b: #0284c7;
  --sp-bar-c: #bbf7d0;
  --sp-bar-d: #22c55e;
  --sp-float-a: #0284c7;
  --sp-float-b: #22c55e;
  --sp-ring: #dbeef9;
}

/* ---------- Palette overrides for hard-coded tints in the shared theme ---------- */
.platform-page .ec-hero {
  background: linear-gradient(180deg, var(--sp-hero-top) 0%, #ffffff 100%);
}
.platform-page .ec-hero::before {
  background-image:
    linear-gradient(rgba(var(--sp-grid-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--sp-grid-rgb), 0.07) 1px, transparent 1px);
}
.platform-page .ec-hero-bg i:nth-child(1) {
  background: var(--sp-blob1);
}
.platform-page .ec-hero-bg i:nth-child(2) {
  background: var(--sp-blob2);
}
.platform-page .ec-hero-bg i:nth-child(3) {
  background: var(--sp-blob3);
}
.platform-page .ec-badge {
  border-color: var(--sp-tint-line);
}
.platform-page .ec-hero-frame {
  border-color: rgba(var(--sp-grid-rgb), 0.18);
  box-shadow: 0 40px 80px -30px rgba(var(--sp-dark-rgb), 0.45);
}
.platform-page .ec-icon,
.platform-page .ec-check-wall b,
.platform-page .ec-faq-grid summary span {
  background: var(--sp-tint);
  box-shadow: inset 0 0 0 1px rgba(var(--sp-grid-rgb), 0.12);
}
.platform-page .ec-subnav a:hover {
  background: var(--sp-tint);
}
.platform-page .ec-faq-grid details[open],
.platform-page .ec-check-wall span:hover {
  border-color: var(--sp-tint-line);
}
.platform-page .ec-ring circle:first-child {
  stroke: var(--sp-ring);
}
.platform-page .ec-platforms h2 em,
.platform-page .ec-cta h2 em {
  background: linear-gradient(120deg, var(--sp-hi), var(--sp-hi2)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.platform-page .ec-head-light > span,
.platform-page .ec-label-light {
  color: var(--sp-hi);
}
.platform-page .ec-platforms-bg {
  background:
    linear-gradient(
      180deg,
      rgba(var(--sp-dark-rgb), 0.9),
      rgba(var(--sp-dark-rgb), 0.97)
    ),
    url("/assets/images/marketplace-ai-operations-hero.webp") center/cover
      no-repeat;
}
.platform-page .ec-platforms-bg::after {
  background:
    radial-gradient(circle at 12% 10%, var(--sp-glow1), transparent 40%),
    radial-gradient(circle at 90% 85%, var(--sp-glow2), transparent 40%);
}
.platform-page .ec-cta-bg {
  background:
    linear-gradient(
      90deg,
      rgba(var(--sp-dark-rgb), 0.97) 30%,
      rgba(var(--sp-dark-rgb), 0.8)
    ),
    url("/assets/images/api-ai-integration.webp") center/cover no-repeat;
}
.platform-page .ec-form input:focus,
.platform-page .ec-form select:focus,
.platform-page .ec-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(var(--sp-grid-rgb), 0.14);
}
.platform-page .ec-float svg {
  background: var(--sp-float-a);
}
.platform-page .ec-float-b svg {
  background: var(--sp-float-b);
}

/* ---------- Breadcrumb ---------- */
.sp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ec-muted);
}
.sp-crumbs a {
  color: var(--ec-muted);
  font-weight: 600;
}
.sp-crumbs a:hover {
  color: var(--ec-indigo);
}
.sp-crumbs span {
  opacity: 0.5;
}
.sp-crumbs b {
  color: var(--ec-ink);
  font-weight: 700;
}

/* ---------- Hero infographic card ---------- */
.sp-pulse-card {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: -36px;
  width: min(280px, 78%);
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ec-dark);
  color: #fff;
  box-shadow: 0 24px 50px -16px rgba(var(--sp-dark-rgb), 0.6);
}
.sp-pulse-card small {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sp-bars {
  height: 46px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.sp-bars i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--sp-bar-a), var(--sp-bar-b));
  transform-origin: bottom;
  animation: sp-bar 2.6s ease-in-out infinite alternate;
}
.sp-bars i:nth-child(1) {
  height: 35%;
  animation-delay: -0.2s;
}
.sp-bars i:nth-child(2) {
  height: 50%;
  animation-delay: -0.6s;
}
.sp-bars i:nth-child(3) {
  height: 44%;
  animation-delay: -1s;
}
.sp-bars i:nth-child(4) {
  height: 66%;
  animation-delay: -1.4s;
}
.sp-bars i:nth-child(5) {
  height: 72%;
  animation-delay: -1.8s;
}
.sp-bars i:nth-child(6) {
  height: 86%;
  animation-delay: -2.2s;
}
.sp-bars i:nth-child(7) {
  height: 100%;
  background: linear-gradient(180deg, var(--sp-bar-c), var(--sp-bar-d));
  animation-delay: -2.4s;
}
@keyframes sp-bar {
  from {
    transform: scaleY(0.72);
  }
  to {
    transform: scaleY(1);
  }
}
.sp-pulse-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.sp-pulse-tags b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sp-hi);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Why the platform ---------- */
.sp-why {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.sp-why-intro {
  position: sticky;
  top: 150px;
}
.sp-why-intro > p {
  margin-top: 18px;
  color: var(--ec-muted);
  font-size: 17px;
  line-height: 1.7;
}
.sp-why-art {
  position: relative;
  margin: 30px 0 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(var(--sp-dark-rgb), 0.5);
}
.sp-why-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10/7;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.sp-why-art:hover img {
  transform: scale(1.05);
}
.sp-why-art figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ec-ink);
  font-size: 13px;
  font-weight: 700;
}
.sp-why-art figcaption svg {
  width: 16px;
  height: 16px;
  color: var(--ec-indigo);
}
.sp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sp-benefit-grid article {
  position: relative;
  padding: 22px;
  border: 1px solid var(--ec-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.sp-benefit-grid article::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--ec-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.sp-benefit-grid article:hover {
  transform: translateY(-6px);
  border-color: var(--sp-tint-line);
  box-shadow: 0 24px 44px -24px rgba(var(--sp-grid-rgb), 0.45);
}
.sp-benefit-grid article:hover::after {
  transform: scaleX(1);
}
.sp-benefit-grid article:hover .ec-icon {
  color: #fff;
  background: var(--ec-grad);
  box-shadow: none;
}
.sp-benefit-grid .ec-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  transition: 0.3s;
}
.sp-benefit-grid h3 {
  margin: 18px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.sp-benefit-grid p {
  color: var(--ec-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Services (dark) ---------- */
.sp-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sp-service-grid article {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition:
    transform 0.3s,
    background 0.3s;
}
.sp-service-grid article::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(var(--sp-hi-rgb), 0.75),
    transparent 45%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}
.sp-service-grid article:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}
.sp-service-grid article:hover::before {
  opacity: 1;
}
.sp-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sp-service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(var(--sp-hi-rgb), 0.14);
  color: var(--sp-hi);
}
.sp-service-top b {
  font-family: var(--font-primary, inherit);
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
}
.sp-service-grid h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.sp-service-grid p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
}
.sp-service-grid small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--sp-hi2);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Included features ---------- */
.sp-included .ec-check-intro h2 {
  max-width: 460px;
}
.sp-chip-wall {
  grid-template-columns: repeat(3, 1fr);
}
.sp-chip-wall span {
  min-height: 54px;
  padding: 10px 14px;
  font-size: 13.5px;
}
.sp-chip-wall span svg {
  order: -1;
  margin-left: 0;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--ec-mint);
}

/* ---------- Form extras ---------- */
.sp-form-sub {
  margin: -12px 0 20px !important;
  color: var(--ec-muted);
  font-size: 14px;
  line-height: 1.6;
}
.sp-form-sub span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sp-tint);
  color: var(--ec-indigo);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ec-form label em {
  font-style: normal;
  color: #9aa1b1;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .sp-service-grid,
  .sp-chip-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .sp-why {
    grid-template-columns: 1fr;
  }
  .sp-why-intro {
    position: static;
  }
  .sp-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .sp-pulse-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
  }
  .sp-service-grid,
  .sp-chip-wall {
    grid-template-columns: 1fr;
  }
  .sp-benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sp-benefit-grid article {
    padding: 16px;
  }
  .sp-benefit-grid h3 {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp-bars i {
    animation: none;
  }
}
