/* ============================================================
   E-Commerce Solutions Layout — Dark Theme Adapted
   Namespace: ec-  (no conflicts with global styles)
   ============================================================ */

/* ── SHARED LABEL ── */
.ec-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
}
.ec-label::before { content: '◆'; font-size: 14px; }

.ec-heading {
  font-size: clamp(30px, 3.5vw, 42px); font-weight: 700;
  line-height: 1.15; color: var(--text-primary);
  margin-bottom: 20px; letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

/* ── HERO ── */
.ec-hero {
  padding: 180px 0 100px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.ec-hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ec-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
  border-radius: var(--radius-pill); padding: 6px 16px;
  font-size: 12px; color: var(--text-secondary); margin-bottom: 24px;
}
.ec-hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ec-hero h1 {
  font-size: clamp(38px, 4.5vw, 52px); font-weight: 700; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 22px; letter-spacing: -0.02em;
  font-family: var(--font-heading);
}
.ec-hero h1 em { font-style: normal; color: var(--accent); }
.ec-hero-desc {
  font-size: 16px; line-height: 1.8; color: var(--text-secondary);
  margin-bottom: 40px; max-width: 460px;
}
.ec-hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Hero right visual */
.ec-hero-visual {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 20px;
}
.ec-hero-visual-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ec-hero-visual-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.ec-hero-visual-stat { font-size: 32px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); letter-spacing: -0.02em; }
.ec-trend-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(0,185,244,0.08); border: 1px solid rgba(0,185,244,0.15); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.ec-bar-track { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.ec-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), rgba(0,185,244,0.5)); border-radius: 3px; width: 72%; }
.ec-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ec-mini-stat {
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 18px;
}
.ec-mini-stat-val { font-size: 24px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); }
.ec-mini-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.ec-hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-hero-pill {
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-pill); padding: 8px 18px;
  font-size: 12px; color: var(--text-secondary);
}

/* ── TRUST STRIP ── */
.ec-trust-strip {
  padding: 32px 0; border-bottom: 1px solid var(--border-color); background: var(--bg-primary);
}
.ec-trust-strip .container { display: flex; align-items: center; gap: 40px; }
.ec-trust-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.ec-trust-logos { display: flex; gap: 16px; flex-wrap: wrap; }
.ec-trust-logo {
  height: 36px; padding: 0 18px; border-radius: 8px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  display: flex; align-items: center; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); white-space: nowrap;
}

/* ── SECTION ── */
.ec-section { padding: 120px 0; border-bottom: 1px solid var(--border-color); }

/* ── OVERVIEW ── */
.ec-overview .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ec-overview p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 32px; }
.ec-check-list { display: flex; flex-direction: column; gap: 14px; }
.ec-check-item {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
}
.ec-check-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,185,244,0.08); border: 1px solid rgba(0,185,244,0.2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-top: 2px;
}
.ec-check-icon svg { width: 12px; height: 12px; }
.ec-overview-visual {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.ec-ov-header { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ec-ov-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 16px 18px;
  transition: var(--transition);
}
.ec-ov-row:hover { border-color: var(--accent); }
.ec-ov-row-left { display: flex; align-items: center; gap: 14px; }
.ec-ov-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.ec-ov-icon svg { width: 16px; height: 16px; }
.ec-ov-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.ec-ov-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ec-ov-badge {
  font-size: 11px; padding: 4px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0,185,244,0.3); color: var(--accent); background: rgba(0,185,244,0.05);
  white-space: nowrap;
}

/* ── SERVICES ── */
.ec-services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.ec-services-header .ec-heading { max-width: 450px; margin-bottom: 0; }
.ec-services-header-right { font-size: 15px; color: var(--text-secondary); max-width: 300px; text-align: right; line-height: 1.6; padding-bottom: 6px; }
.ec-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-color); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ec-service-card {
  background: var(--bg-primary); padding: 38px 30px;
  display: flex; flex-direction: column; gap: 16px; transition: var(--transition);
}
.ec-service-card:hover { background: var(--bg-secondary); }
.ec-svc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.ec-svc-icon svg { width: 22px; height: 22px; }
.ec-service-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.ec-service-card p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.ec-svc-arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  align-self: flex-start; transition: var(--transition);
}
.ec-service-card:hover .ec-svc-arrow { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

/* ── WHY IT MATTERS ── */
.ec-why .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ec-why-visual { display: flex; flex-direction: column; gap: 16px; }
.ec-why-metric-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 30px;
  display: flex; align-items: center; gap: 24px; transition: var(--transition);
}
.ec-why-metric-card:hover { border-color: var(--accent); }
.ec-why-metric-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.ec-why-metric-icon svg { width: 24px; height: 24px; }
.ec-why-metric-val { font-size: 28px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); }
.ec-why-metric-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.ec-why p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 28px; }
.ec-why-pillars { display: flex; flex-direction: column; gap: 22px; }
.ec-why-pillar { display: flex; gap: 18px; align-items: flex-start; }
.ec-why-pillar-num { font-size: 13px; font-weight: 700; color: var(--accent); width: 22px; flex-shrink: 0; padding-top: 2px; font-family: var(--font-heading); }
.ec-why-pillar-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.ec-why-pillar-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── STATS STRIP ── */
.ec-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-color);
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.ec-stat-item { background: var(--bg-primary); padding: 60px 40px; text-align: center; }
.ec-stat-val { font-size: 44px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; font-family: var(--font-heading); }
.ec-stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

/* ── PROCESS ── */
.ec-process .ec-heading { margin-bottom: 10px; }
.ec-process-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 60px; max-width: 600px; }
.ec-process-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 20px; }
.ec-process-step { position: relative; padding-right: 20px; }
.ec-process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; left: 58px; right: 0;
  height: 1px; border-top: 1px dashed rgba(255,255,255,0.12);
}
.ec-process-num {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--accent);
  margin-bottom: 24px; background: var(--bg-secondary); position: relative; z-index: 1; font-family: var(--font-heading);
}
.ec-process-step h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.ec-process-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── PLATFORMS ── */
.ec-platforms .ec-heading { margin-bottom: 12px; }
.ec-platforms-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 50px; max-width: 600px; }
.ec-platforms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ec-platform-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 40px 36px;
  display: flex; flex-direction: column; gap: 18px; transition: var(--transition);
}
.ec-platform-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,185,244,0.08); }
.ec-platform-logo-box {
  height: 42px; width: auto; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 0 18px; font-size: 15px; font-weight: 700; color: var(--text-primary);
  align-self: flex-start;
}
.ec-platform-logo-box svg { width: 20px; height: 20px; color: var(--accent); }
.ec-platform-card h3 { font-size: 22px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); }
.ec-platform-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.ec-platform-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-platform-tag {
  font-size: 12px; padding: 5px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0,185,244,0.2); color: var(--accent); background: rgba(0,185,244,0.05);
}

/* ── CTA ── */
.ec-cta .container { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.ec-cta .ec-heading { margin-bottom: 16px; }
.ec-cta p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 500px; }
.ec-cta-actions { display: flex; flex-direction: column; gap: 14px; min-width: 280px; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .ec-hero .container, .ec-overview .container, .ec-why .container, .ec-cta .container {
    grid-template-columns: 1fr; gap: 40px;
  }
  .ec-services-grid { grid-template-columns: 1fr; }
  .ec-platforms-grid { grid-template-columns: 1fr; }
  .ec-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .ec-process-steps { grid-template-columns: 1fr 1fr; }
  .ec-services-header, .ec-services-header-right { flex-direction: column; text-align: left; }
  @media (max-width: 600px) {
    .ec-process-steps, .ec-stats-strip, .ec-mini-stats { grid-template-columns: 1fr; }
    .ec-process-step:not(:last-child)::after { display: none; }
  }
}
