/* ==========================================================================
   Code Regime Technologies - AI eCommerce Website Development Services
   Design Theme: Modern, High-Converting SaaS & Retail AI Aesthetic
   ========================================================================== */

:root {
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --secondary-color: #555555;
  --accent-color: #0051C8;
  --accent-light: #eff6ff;
  --success-color: #10b981;
  --success-light: #ecfdf5;
  --purple-accent: #7c3aed;
  --purple-light: #f5f3ff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --heading-color: #1E2460;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 30px -10px rgba(0, 81, 200, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-family);
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Section Headers & Shared Components
   ========================================================================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-family: var(--header-family);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.section-tag.purple {
  background-color: var(--purple-light);
  color: var(--purple-accent);
}

.section-tag.success {
  background-color: var(--success-light);
  color: var(--success-color);
}

.section-title {
  font-size: 36px;
  line-height: 1.25;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 48px auto;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.ecom-hero {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 140px 0 80px 0;
  overflow: hidden;
  text-align: center;
}

.ecom-hero .hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.ecom-hero .container {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: var(--accent-color);
  font-family: var(--header-family);
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 81, 200, 0.08);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 20px;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1E2460 0%, #0051C8 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-h2 {
  font-size: 22px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 22px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto 36px auto;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0051C8 0%, #007bff 100%);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 10px;
  font-family: var(--header-family);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 81, 200, 0.25);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0041a8 0%, #0062cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 81, 200, 0.35);
  color: var(--white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: var(--heading-color);
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--header-family);
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: #f8fafc;
  transform: translateY(-2px);
}

/* ==========================================================================
   Trust Metrics & Proof Bar
   ========================================================================== */
.metrics-section {
  background: #ffffff;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.metric-card {
  padding: 14px;
  position: relative;
}

.metric-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18%;
  right: 0;
  height: 64%;
  width: 1px;
  background: var(--border-color);
}

.metric-num {
  font-family: var(--header-family);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ==========================================================================
   Next-Gen eCommerce & Mobile Architecture (Section 1)
   ========================================================================== */
.mach-section {
  padding: 90px 0;
  background: var(--bg-light);
}

.mach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.mach-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0051C8, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mach-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: #bfdbfe;
}

.mach-card:hover::before {
  opacity: 1;
}

.mach-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.mach-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.mach-card p {
  font-size: 14.5px;
  line-height: 1.65;
}

/* ==========================================================================
   AI-Powered eCommerce Website Development (Section 2)
   ========================================================================== */
.ai-features-section {
  padding: 95px 0;
  background: #ffffff;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.ai-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.ai-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
  border-color: #c4b5fd;
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.08);
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ai-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple-light);
  color: var(--purple-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-card h3 {
  font-size: 19px;
  color: var(--heading-color);
}

.ai-card p {
  font-size: 14.5px;
  line-height: 1.65;
}

/* ==========================================================================
   High-Scale Marketplace & Clone Script Development (Section 3)
   ========================================================================== */
.marketplace-section {
  padding: 95px 0;
  background: var(--bg-light);
}

.clone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.clone-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.clone-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: var(--card-shadow-hover);
}

.clone-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.clone-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.clone-card p {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.clone-features-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.clone-features-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clone-features-box li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 6px;
}

.clone-features-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 800;
}

.flagship-on-demand-box {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: var(--card-shadow);
}

.flagship-on-demand-box h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.flagship-on-demand-box p {
  font-size: 15.5px;
  margin-bottom: 24px;
}

.flagship-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.flagship-link-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s ease;
}

.flagship-link-card:hover {
  background: #eff6ff;
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.flagship-link-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--heading-color);
}

.flagship-link-card p {
  font-size: 13.5px;
  margin-bottom: 12px;
}

.flagship-action-link {
  font-family: var(--header-family);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Leading eCommerce Platforms & Integrations (Section 4)
   ========================================================================== */
.platforms-section {
  padding: 90px 0;
  background: #ffffff;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.platform-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.3s ease;
}

.platform-card:hover {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
}

.platform-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   Custom eCommerce Development & Enterprise Solutions (Section 5)
   ========================================================================== */
.enterprise-section {
  padding: 95px 0;
  background: var(--bg-light);
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.enterprise-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.enterprise-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: var(--card-shadow-hover);
}

.enterprise-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.enterprise-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.enterprise-card p {
  font-size: 14.5px;
  line-height: 1.65;
}

/* ==========================================================================
   Global Delivery & Cost Efficiency (Section 6)
   ========================================================================== */
.global-delivery-section {
  padding: 90px 0;
  background: #ffffff;
}

.global-delivery-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.global-delivery-header {
  max-width: 900px;
  margin-bottom: 36px;
}

.global-delivery-header h3 {
  font-size: 28px;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.global-delivery-header p {
  font-size: 16px;
  line-height: 1.75;
}

.delivery-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.delivery-col-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px;
}

.delivery-col-card h4 {
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-col-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   5-Stage Development Process (Section 7)
   ========================================================================== */
.lifecycle-section {
  padding: 90px 0;
  background: var(--bg-light);
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.lifecycle-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px 22px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: all 0.3s ease;
}

.lifecycle-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: var(--card-shadow-hover);
}

.lifecycle-step-num {
  font-family: var(--header-family);
  font-size: 30px;
  font-weight: 800;
  color: #bfdbfe;
  margin-bottom: 10px;
  line-height: 1;
}

.lifecycle-card h3 {
  font-size: 17px;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.lifecycle-card p {
  font-size: 13.5px;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Accordion Section (Section 8)
   ========================================================================== */
.faq-section {
  padding: 95px 0;
  background: #ffffff;
}

.faq-wrapper {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: #93c5fd;
}

.faq-item.active {
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(0, 81, 200, 0.08);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--header-family);
  font-size: 17px;
  font-weight: 600;
  color: var(--heading-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-color);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  padding: 0 26px 24px 26px;
  max-height: 480px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

/* ==========================================================================
   Final Conversion Banner (Section 9)
   ========================================================================== */
.conversion-section {
  padding: 95px 0;
  background: linear-gradient(135deg, #1E2460 0%, #0051C8 50%, #7c3aed 100%);
  color: #ffffff;
  text-align: center;
}

.conversion-section h2 {
  color: #ffffff;
  font-size: 38px;
  margin-bottom: 16px;
}

.conversion-section .conversion-subtitle {
  color: #e2e8f0;
  font-size: 18px;
  max-width: 780px;
  margin: 0 auto 36px auto;
}

.conversion-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--heading-color);
  padding: 16px 36px;
  border-radius: 10px;
  font-family: var(--header-family);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-white:hover {
  background: #f8fafc;
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--header-family);
  font-size: 16px;
  font-weight: 600;
}

.btn-cta-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }
  .section-title {
    font-size: 30px;
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric-card:nth-child(3)::after {
    display: none;
  }
  .global-delivery-box {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .ecom-hero {
    padding: 110px 0 60px 0;
  }
  .hero-title {
    font-size: 29px;
  }
  .hero-lead-h2 {
    font-size: 18px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-card:not(:last-child)::after {
    display: none;
  }
  .flagship-on-demand-box {
    padding: 24px 20px;
  }
  .conversion-section h2 {
    font-size: 28px;
  }
}

