/* eCommerce development page — modern light theme with dark accent sections */
.ecom-page {
  --ec-ink: #0f172a;
  --ec-muted: #5b6478;
  --ec-line: #e6e8f0;
  --ec-bg: #ffffff;
  --ec-soft: #f5f6fc;
  --ec-indigo: #4f46e5;
  --ec-violet: #7c3aed;
  --ec-sky: #0ea5e9;
  --ec-mint: #10b981;
  --ec-amber: #f3c843;
  --ec-dark: #0b1026;
  --ec-grad: linear-gradient(120deg, #4f46e5, #7c3aed 55%, #0ea5e9);
  --ec-radius: 22px;
  --ec-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  background: var(--ec-bg);
  color: var(--ec-ink);
}
.ec-main {
  overflow: hidden;
  font-family: var(--font-secondary, Inter, system-ui, sans-serif);
}
.ec-main h1,
.ec-main h2,
.ec-main h3 {
  font-family: var(--font-primary, inherit);
  color: inherit;
}
.ec-main p,
.ec-main ul,
.ec-main ol {
  margin-bottom: 0;
}
.ec-wrap {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}
.ec-section {
  position: relative;
  padding: clamp(80px, 9vw, 128px) 0;
}
.ec-soft {
  background: var(--ec-soft);
}

/* Labels + headings */
.ec-badge,
.ec-label,
.ec-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ec-indigo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ec-label::before,
.ec-head > span::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ec-grad);
}
.ec-head {
  margin-bottom: 56px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.ec-head > span {
  flex-basis: 100%;
}
.ec-head h2,
.ec-section h2 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.ec-head > p {
  max-width: 400px;
  margin: 0;
  color: var(--ec-muted);
  font-size: 16px;
  line-height: 1.7;
}
.ec-main h1 em,
.ec-main h2 em {
  font-style: normal;
  background: var(--ec-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ec-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ec-indigo);
  background: linear-gradient(140deg, #eef0ff, #f4ecff);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.12);
}

/* Buttons */
.ec-btn {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.ec-btn:hover {
  transform: translateY(-2px);
}
/* .ec-btn-primary keeps the site-wide gold CTA from buttons-black.css; secondary variants override it. */
.ecom-page .ec-main a.ec-btn-ghost,
.ecom-page .ec-main a.ec-btn-ghost:hover,
.ecom-page .ec-main a.ec-btn-ghost:focus-visible {
  color: var(--ec-ink) !important;
  background: #fff !important;
  border-color: var(--ec-line) !important;
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.25) !important;
}
.ecom-page .ec-main a.ec-btn-ghost::before {
  border-color: rgba(79, 70, 229, 0.18);
}
.ecom-page .ec-main a.ec-btn-dark,
.ecom-page .ec-main a.ec-btn-dark:hover,
.ecom-page .ec-main a.ec-btn-dark:focus-visible {
  color: #fff !important;
  background: var(--ec-ink) !important;
  border-color: var(--ec-ink) !important;
  box-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.6) !important;
}
.ecom-page .ec-main a.ec-btn-dark::before {
  border-color: rgba(255, 255, 255, 0.22);
}
.ec-btn-dark {
  margin-top: 28px;
}

/* Hero */
.ec-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 100px);
  background: linear-gradient(180deg, #f7f7ff 0%, #ffffff 100%);
}
.ec-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 60% 40%,
    #000 30%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 70% at 60% 40%,
    #000 30%,
    transparent 75%
  );
}
.ec-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ec-hero-bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: ec-blob 14s ease-in-out infinite alternate;
}
.ec-hero-bg i:nth-child(1) {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -80px;
  background: #c7d2fe;
}
.ec-hero-bg i:nth-child(2) {
  width: 380px;
  height: 380px;
  right: -80px;
  top: 40px;
  background: #e9d5ff;
  animation-delay: -5s;
}
.ec-hero-bg i:nth-child(3) {
  width: 300px;
  height: 300px;
  left: 40%;
  bottom: -140px;
  background: #bae6fd;
  animation-delay: -9s;
}
@keyframes ec-blob {
  to {
    transform: translate(40px, 30px) scale(1.12);
  }
}
.ec-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.ec-badge {
  padding: 8px 14px;
  border: 1px solid #dcdffb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  letter-spacing: 0.08em;
}
.ec-hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ec-ink);
}
.ec-hero h1 em {
  display: inline;
}
.ec-hero-copy > p {
  max-width: 560px;
  color: var(--ec-muted);
  font-size: 18px;
  line-height: 1.7;
}
.ec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.ec-mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.ec-mini-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: #fff;
  color: #3f475a;
  font-size: 13px;
  font-weight: 600;
}
.ec-mini-proof svg {
  width: 16px;
  height: 16px;
  color: var(--ec-mint);
}
.ec-hero-visual {
  position: relative;
}
.ec-hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.5)
  );
  border: 1px solid rgba(79, 70, 229, 0.14);
  box-shadow: 0 40px 80px -30px rgba(49, 46, 129, 0.35);
}
.ec-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 20px;
  animation: ec-drift 14s ease-in-out infinite alternate;
}
@keyframes ec-drift {
  to {
    transform: scale(1.05);
  }
}
.ec-float {
  position: absolute;
  z-index: 2;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  color: var(--ec-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.3);
  animation: ec-float 5s ease-in-out infinite;
}
.ec-float svg {
  width: 18px;
  height: 18px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 9px;
  color: #fff;
  background: var(--ec-indigo);
}
.ec-float-b svg {
  background: var(--ec-mint);
}
.ec-float-a {
  left: -28px;
  top: 14%;
}
.ec-float-b {
  right: -18px;
  top: 46%;
  animation-delay: -2.5s;
}
@keyframes ec-float {
  50% {
    transform: translateY(-10px);
  }
}
.ec-flow-card {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: -34px;
  width: min(300px, 80%);
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ec-dark);
  color: #fff;
  box-shadow: 0 24px 50px -16px rgba(11, 16, 38, 0.6);
}
.ec-flow-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;
}
.ec-flow {
  display: flex;
  align-items: center;
}
.ec-flow span {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
}
.ec-flow span:last-child {
  color: #6ee7b7;
}
.ec-flow i {
  position: relative;
  flex: 1;
  height: 2px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.ec-flow i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #a5b4fc, transparent);
  animation: ec-flow 1.8s linear infinite;
}
.ec-flow i:nth-of-type(2)::after {
  animation-delay: 0.9s;
}
@keyframes ec-flow {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
.ec-flow-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.ec-flow-labels b {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* Marquee rail */
.ec-commerce-rail {
  overflow: hidden;
  background: var(--ec-dark);
  color: #fff;
}
.ec-commerce-rail > div {
  width: max-content;
  min-height: 56px;
  display: flex;
  align-items: center;
  animation: ec-marquee 30s linear infinite;
}
.ec-commerce-rail span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.ec-commerce-rail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ec-amber);
}
@keyframes ec-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Sticky sub-navigation */
.ec-subnav {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--ec-line);
  backdrop-filter: blur(14px);
}
.ec-subnav > div {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ec-subnav > div::-webkit-scrollbar {
  display: none;
}
.ec-subnav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: #5b6478;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}
.ec-subnav a:hover {
  color: var(--ec-indigo);
  background: #eef0ff;
}

/* Proof counters */
.ec-proof {
  padding: 56px 0 0;
}
.ec-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ec-stat {
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  background: #fff;
  box-shadow: var(--ec-shadow);
  overflow: hidden;
}
.ec-stat strong {
  display: block;
  font-family: var(--font-primary, inherit);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--ec-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ec-stat span {
  display: block;
  margin-top: 10px;
  color: var(--ec-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ec-stat-bar {
  display: block;
  height: 6px;
  margin-top: 18px;
  border-radius: 6px;
  background: #eef0f7;
  overflow: hidden;
  position: relative;
}
.ec-stat-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--ec-grad);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.ec-stat.is-in .ec-stat-bar::after,
.ec-main:not(.ec-motion) .ec-stat-bar::after {
  transform: scaleX(1);
}

/* Store types */
.ec-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ec-type-grid article {
  position: relative;
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.ec-type-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ec-grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ec-type-grid article > * {
  position: relative;
  z-index: 1;
}
.ec-type-grid article:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 30px 60px -24px rgba(79, 70, 229, 0.5);
  color: #fff;
}
.ec-type-grid article:hover::before {
  opacity: 1;
}
.ec-type-grid article:hover p {
  color: rgba(255, 255, 255, 0.82);
}
.ec-type-grid article:hover .ec-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
}
.ec-type-no {
  position: absolute !important;
  right: 22px;
  top: 16px;
  font-family: var(--font-primary, inherit);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: rgba(79, 70, 229, 0.08);
  transition: color 0.35s;
}
.ec-type-grid article:hover .ec-type-no {
  color: rgba(255, 255, 255, 0.18);
}
.ec-type-grid h3 {
  margin: auto 0 10px;
  padding-top: 40px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ec-type-grid p {
  color: var(--ec-muted);
  font-size: 14px;
  line-height: 1.65;
  transition: color 0.35s;
}
.ec-type-go {
  margin-top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ec-line);
  transition: 0.35s;
}
.ec-type-grid article:hover .ec-type-go {
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(-45deg);
}

/* Features */
.ec-feature-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.ec-feature-layout > div:first-child > p,
.ec-ai-grid > div:last-child > p,
.ec-check-intro > p,
.ec-faq-grid > div:first-child > p {
  margin-top: 20px;
  color: var(--ec-muted);
  font-size: 17px;
  line-height: 1.7;
}
.ec-readiness {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ec-line);
  box-shadow: var(--ec-shadow);
}
.ec-readiness > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.ec-readiness span {
  color: var(--ec-mint);
  font-weight: 800;
}
.ec-readiness em {
  display: block;
  height: 10px;
  margin-top: 12px;
  border-radius: 10px;
  background: #eef0f7;
  overflow: hidden;
}
.ec-readiness em i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ec-mint), #34d399);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}
.ec-reveal.is-in .ec-readiness em i,
.ec-main:not(.ec-motion) .ec-readiness em i {
  transform: scaleX(1);
}
.ec-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ec-feature-grid div {
  min-height: 64px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ec-line);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.ec-feature-grid div:hover {
  transform: translateX(4px);
  border-color: #c7cbf5;
  box-shadow: var(--ec-shadow);
}
.ec-feature-grid svg {
  width: 26px;
  height: 26px;
  flex: none;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--ec-mint);
}

/* Platforms (dark) */
.ec-platforms {
  color: #fff;
  background: var(--ec-dark);
  isolation: isolate;
}
.ec-platforms-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 16, 38, 0.86), rgba(11, 16, 38, 0.96)),
    url("/assets/images/marketplace-ai-operations-hero.webp") center/cover
      no-repeat;
}
.ec-platforms-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(124, 58, 237, 0.35),
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(14, 165, 233, 0.25),
      transparent 40%
    );
}
.ec-head-light > span {
  color: #a5b4fc;
}
.ec-head-light > p {
  color: rgba(255, 255, 255, 0.66);
}
.ec-head-light h2 {
  color: #fff;
}
.ec-platforms h2 em,
.ec-cta h2 em {
  background: linear-gradient(120deg, #a5b4fc, #c4b5fd 50%, #7dd3fc) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.ec-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ec-platform-grid article {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ec-radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s;
}
.ec-platform-grid article::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 2px;
  background: var(--ec-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.ec-platform-grid article:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(165, 180, 252, 0.35);
}
.ec-platform-grid article:hover::after {
  transform: scaleX(1);
}
.ec-platform-grid b {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(165, 180, 252, 0.14);
  color: #c7d2fe;
  font-size: 13px;
}
.ec-platform-grid h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 700;
}
.ec-platform-grid p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
}
.ec-stack {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ec-stack span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: 0.25s;
}
.ec-stack span:hover {
  background: #fff;
  color: var(--ec-dark);
}

/* AI */
.ec-ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.ec-ai-art {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.45);
}
.ec-ai-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.ec-ai-art:hover img {
  transform: scale(1.04);
}
.ec-ai-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ec-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ec-ai-chip svg {
  color: var(--ec-violet);
}
.ec-ai-pulse {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 14px;
  height: 14px;
}
.ec-ai-pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
}
.ec-ai-pulse i:nth-child(n + 2) {
  animation: ec-ping 2.4s ease-out infinite;
}
.ec-ai-pulse i:nth-child(3) {
  animation-delay: 1.2s;
}
@keyframes ec-ping {
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}
.ec-ai-grid ul {
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
}
.ec-ai-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ec-line);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: 0.25s;
}
.ec-ai-grid li:hover {
  border-color: #c7cbf5;
  box-shadow: var(--ec-shadow);
}
.ec-ai-grid li b {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1edff;
  color: var(--ec-violet);
  font-size: 12px;
}

/* Integrations hub */
.ec-integrations {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.ec-hub {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-left: auto;
}
.ec-hub > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ec-hub circle {
  fill: none;
  stroke: #d6d9f5;
  stroke-width: 0.3;
  stroke-dasharray: 1.2 1.2;
  vector-effect: non-scaling-stroke;
}
.ec-hub line {
  stroke: #a5b4fc;
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
  animation: ec-dash 1.6s linear infinite;
}
@keyframes ec-dash {
  to {
    stroke-dashoffset: -20;
  }
}
.ec-hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 50%;
  color: #fff;
  background: var(--ec-grad);
  box-shadow:
    0 0 0 12px rgba(79, 70, 229, 0.1),
    0 0 0 26px rgba(79, 70, 229, 0.05),
    0 24px 50px -10px rgba(79, 70, 229, 0.6);
}
.ec-hub-core b {
  font-size: 14px;
}
.ec-hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--ec-shadow);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.ec-hub-node:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 18px 30px -12px rgba(79, 70, 229, 0.4);
}
.ec-hub-node svg {
  color: var(--ec-indigo);
}

/* Operations */
.ec-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ec-operation-grid article {
  position: relative;
  padding: 30px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  background: #fff;
  overflow: hidden;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.ec-operation-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ec-grad);
}
.ec-operation-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.3);
}
.ec-operation-grid article:nth-child(4) {
  color: #fff;
  background: var(--ec-dark);
  border-color: var(--ec-dark);
}
.ec-operation-grid article:nth-child(4) .ec-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  box-shadow: none;
}
.ec-operation-grid article:nth-child(4) li {
  color: rgba(255, 255, 255, 0.72);
}
.ec-operation-grid article:nth-child(4) small {
  color: #6ee7b7;
}
.ec-operation-grid header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.ec-operation-grid h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ec-operation-grid small {
  color: var(--ec-indigo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ec-operation-grid ul {
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  list-style: none;
}
.ec-operation-grid li {
  display: flex;
  gap: 9px;
  color: #4b5366;
  font-size: 14px;
  line-height: 1.5;
}
.ec-operation-grid li svg {
  flex: none;
  margin-top: 3px;
  color: var(--ec-mint);
}

/* Checklist */
.ec-checklist {
  background: linear-gradient(180deg, var(--ec-soft), #fff);
}
.ec-check-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.ec-check-intro {
  position: sticky;
  top: 150px;
}
.ec-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin-top: 36px;
}
.ec-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ec-ring circle {
  fill: none;
  stroke-width: 10;
}
.ec-ring circle:first-child {
  stroke: #e6e8f5;
}
.ec-ring circle:last-child {
  stroke: var(--ec-indigo);
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}
.ec-check-intro.is-in .ec-ring circle:last-child,
.ec-main:not(.ec-motion) .ec-ring circle:last-child {
  stroke-dashoffset: 0;
}
.ec-ring > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ec-ring strong {
  font-family: var(--font-primary, inherit);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.ec-ring span {
  max-width: 100px;
  color: var(--ec-muted);
  font-size: 12px;
  font-weight: 600;
}
.ec-check-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ec-check-wall span {
  min-height: 60px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ec-line);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
}
.ec-check-wall span:hover {
  border-color: #c7cbf5;
  box-shadow: var(--ec-shadow);
}
.ec-check-wall b {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef0ff;
  color: var(--ec-indigo);
  font-size: 12px;
}
.ec-check-wall svg {
  margin-left: auto;
  flex: none;
  color: var(--ec-mint);
  opacity: 0;
  transform: scale(0.4);
  transition: 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--d, 0ms) + 300ms);
}
.ec-check-wall span.is-in svg,
.ec-main:not(.ec-motion) .ec-check-wall svg {
  opacity: 1;
  transform: none;
}

/* Process timeline */
.ec-process-grid {
  position: relative;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 20px;
  list-style: none;
}
.ec-process-grid li {
  position: relative;
  padding: 0 8px 0 0;
}
.ec-process-grid li::before {
  content: "";
  position: absolute;
  left: 56px;
  right: -20px;
  top: 27px;
  height: 2px;
  background: #e3e5f2;
}
.ec-process-grid li::after {
  content: "";
  position: absolute;
  left: 56px;
  right: -20px;
  top: 27px;
  height: 2px;
  background: var(--ec-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease var(--d, 0ms);
}
.ec-process-grid li:nth-child(4n)::before,
.ec-process-grid li:nth-child(4n)::after,
.ec-process-grid li:last-child::before,
.ec-process-grid li:last-child::after {
  display: none;
}
.ec-process-grid b {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--ec-line);
  background: #fff;
  color: var(--ec-indigo);
  font-size: 16px;
  box-shadow: var(--ec-shadow);
  transition:
    background 0.4s ease var(--d, 0ms),
    color 0.4s ease var(--d, 0ms),
    border-color 0.4s ease var(--d, 0ms);
}
.ec-process-grid h3 {
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ec-process-grid.is-in li::after,
.ec-main:not(.ec-motion) .ec-process-grid li::after {
  transform: scaleX(1);
}
.ec-process-grid.is-in b,
.ec-main:not(.ec-motion) .ec-process-grid b {
  color: #fff;
  border-color: transparent;
  background: var(--ec-grad);
}

/* Industries marquee */
.ec-industries {
  padding-bottom: clamp(70px, 8vw, 110px);
  background: var(--ec-soft);
}
.ec-industries .ec-head {
  margin-bottom: 40px;
}
.ec-pill-rows {
  display: grid;
  gap: 14px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.ec-pill-row {
  overflow: hidden;
}
.ec-pill-row > div {
  width: max-content;
  display: flex;
  gap: 12px;
  animation: ec-marquee 40s linear infinite;
}
.ec-pill-row-rev > div {
  animation-direction: reverse;
  animation-duration: 46s;
}
.ec-pill-rows:hover .ec-pill-row > div {
  animation-play-state: paused;
}
.ec-pill-row span {
  padding: 16px 24px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--ec-shadow);
}
.ec-pill-row span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ec-grad);
  vertical-align: middle;
}

/* CTA (dark) */
.ec-cta {
  color: #fff;
  background: var(--ec-dark);
  isolation: isolate;
}
.ec-cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 16, 38, 0.97) 30%, rgba(11, 16, 38, 0.75)),
    url("/assets/images/api-ai-integration.webp") center/cover no-repeat;
}
.ec-cta-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.ec-cta h2 {
  color: #fff;
}
.ec-cta-grid > div > p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.7;
}
.ec-label-light {
  color: #a5b4fc;
}
.ec-form {
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  color: var(--ec-ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.ec-form h3 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 700;
}
.ec-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ec-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #3f475a;
  font-size: 13px;
  font-weight: 600;
}
.ec-form input,
.ec-form select,
.ec-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  background: #f8f9fc;
  color: var(--ec-ink);
  font: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.ec-form input:focus,
.ec-form select:focus,
.ec-form textarea:focus {
  outline: none;
  border-color: var(--ec-indigo);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.ec-form button {
  width: 100%;
  border: 0;
}
.ec-form small {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
}

/* FAQ */
.ec-faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.ec-faq-grid details {
  margin-bottom: 12px;
  border: 1px solid var(--ec-line);
  border-radius: 16px;
  background: #fff;
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}
.ec-faq-grid details[open] {
  border-color: #c7cbf5;
  box-shadow: var(--ec-shadow);
}
.ec-faq-grid summary {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}
.ec-faq-grid summary::-webkit-details-marker {
  display: none;
}
.ec-faq-grid summary span {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0ff;
  color: var(--ec-indigo);
  font-size: 18px;
  transition:
    transform 0.3s,
    background 0.3s,
    color 0.3s;
}
.ec-faq-grid details[open] summary span {
  transform: rotate(45deg);
  background: var(--ec-indigo);
  color: #fff;
}
.ec-faq-grid details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--ec-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Scroll reveal (only hidden once the motion script is active) */
.ec-motion .ec-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}
.ec-motion .ec-reveal.is-in {
  opacity: 1;
  transform: none;
}
.ec-motion .ec-process-grid.ec-reveal {
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .ec-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ec-platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ec-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ec-process-grid li:nth-child(4n)::before,
  .ec-process-grid li:nth-child(4n)::after {
    display: block;
  }
  .ec-process-grid li:nth-child(2n)::before,
  .ec-process-grid li:nth-child(2n)::after {
    display: none;
  }
}
@media (max-width: 900px) {
  .ec-hero-grid,
  .ec-feature-layout,
  .ec-ai-grid,
  .ec-integrations,
  .ec-cta-grid,
  .ec-faq-grid,
  .ec-check-layout {
    grid-template-columns: 1fr;
  }
  .ec-hero-visual {
    margin-bottom: 30px;
  }
  .ec-float-a {
    left: 8px;
  }
  .ec-float-b {
    right: 8px;
  }
  .ec-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ec-hub {
    margin: 0 auto;
  }
  .ec-check-intro {
    position: static;
  }
  .ec-operation-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .ec-wrap {
    width: calc(100% - 32px);
  }
  .ec-section {
    padding: 72px 0;
  }
  .ec-hero h1 {
    font-size: 40px;
  }
  .ec-hero-copy > p {
    font-size: 16px;
  }
  .ec-actions .ec-btn {
    flex: 1 1 100%;
  }
  .ec-float {
    font-size: 11px;
    padding: 8px 10px;
  }
  .ec-float svg {
    width: 14px;
    height: 14px;
    padding: 5px;
  }
  .ec-flow-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
  }
  .ec-subnav {
    top: 70px;
  }
  .ec-proof {
    padding-top: 40px;
  }
  .ec-proof-grid {
    gap: 10px;
  }
  .ec-stat {
    padding: 20px 16px 18px;
  }
  .ec-stat span {
    font-size: 11px;
  }
  .ec-type-grid,
  .ec-platform-grid,
  .ec-feature-grid,
  .ec-ai-grid ul,
  .ec-check-wall,
  .ec-form-row,
  .ec-operation-grid ul {
    grid-template-columns: 1fr;
  }
  .ec-type-grid article {
    min-height: 240px;
  }
  .ec-process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ec-process-grid li {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .ec-process-grid li::before,
  .ec-process-grid li::after {
    display: none !important;
  }
  .ec-process-grid h3 {
    margin: 0;
  }
  .ec-hub-node {
    padding: 7px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .ec-hub-node svg {
    width: 14px;
    height: 14px;
  }
  .ec-hub-core {
    width: 96px;
    height: 96px;
  }
  .ec-hub-core b {
    font-size: 12px;
  }
  .ec-operation-grid article,
  .ec-form {
    padding: 22px;
  }
  .ec-pill-row span {
    padding: 12px 18px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ec-hero-bg i,
  .ec-hero-frame img,
  .ec-float,
  .ec-flow i::after,
  .ec-commerce-rail > div,
  .ec-pill-row > div,
  .ec-hub line,
  .ec-ai-pulse i {
    animation: none !important;
  }
  .ec-motion .ec-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
