/* =========================================================
   API DEVELOPMENT & INTEGRATION - LIGHT THEME
   ========================================================= */

:root {
  --api-dev-bg: var(--clr-surface);
  --api-dev-bg-alt: var(--clr-surface-2);
  --api-dev-card: #ffffff;
  --api-dev-card-border: var(--clr-border);
  --api-dev-accent: var(--clr-accent);
  --api-dev-accent-light: var(--clr-accent-pale);
  --api-dev-primary: var(--clr-primary);
  --api-dev-text: var(--clr-text);
  --api-dev-text-muted: var(--clr-text-muted);
  --api-dev-shadow: 0 4px 16px rgba(26,46,68,0.04);
  --api-dev-shadow-hover: 0 12px 30px rgba(26,46,68,0.08);
}

body[data-back-url] {
  background-color: var(--api-dev-bg);
  color: var(--api-dev-text);
}

/* HERO SECTION */
.api-dev-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 60px;
  background: linear-gradient(135deg, var(--api-dev-bg) 0%, var(--api-dev-bg-alt) 100%);
  text-align: center;
  border-bottom: 1px solid var(--api-dev-card-border);
}

.api-dev-hero-inner {
  max-width: 750px;
  margin: 0 auto;
}

.api-dev-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  background: var(--api-dev-card);
  border: 1px solid var(--api-dev-card-border);
  color: var(--api-dev-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: var(--api-dev-shadow);
}

.api-dev-hero-eyebrow i {
  color: var(--api-dev-accent);
}

.api-dev-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--api-dev-primary);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.api-dev-hero-desc {
  font-size: 1.1rem;
  color: var(--api-dev-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.api-dev-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: var(--api-dev-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26,46,68,0.15);
}
.api-dev-btn-primary:hover {
  background: var(--clr-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,46,68,0.25);
}

/* SECTION GLOBAL */
.api-dev-section {
  padding: 70px 5%;
}

.api-dev-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.api-dev-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.api-dev-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--api-dev-primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.api-dev-section-desc {
  color: var(--api-dev-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 1. SOLUTIONS OVERVIEW */
.api-dev-overview {
  background: var(--api-dev-bg);
}

.api-dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.api-dev-card {
  background: var(--api-dev-card);
  border: 1px solid var(--api-dev-card-border);
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--api-dev-shadow);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.api-dev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--api-dev-shadow-hover);
  border-color: rgba(181, 36, 106, 0.2);
}

.api-dev-card-icon {
  font-size: 2rem;
  color: var(--api-dev-accent);
  background: var(--api-dev-accent-light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.api-dev-card-content h3 {
  color: var(--api-dev-primary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.api-dev-card-content p {
  color: var(--api-dev-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 2. FEATURES & CAPABILITIES */
.api-dev-features {
  background: var(--api-dev-bg-alt);
  border-top: 1px solid var(--api-dev-card-border);
  border-bottom: 1px solid var(--api-dev-card-border);
}

.api-dev-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.api-dev-feature-box {
  background: var(--api-dev-card);
  border: 1px solid var(--api-dev-card-border);
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--api-dev-shadow);
  transition: border-color 0.3s;
}
.api-dev-feature-box:hover {
  border-color: var(--api-dev-accent);
}

.api-dev-feature-box i {
  color: var(--api-dev-accent);
  font-size: 1.8rem;
}

.api-dev-feature-box div h4 {
  color: var(--api-dev-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.api-dev-feature-box div p {
  color: var(--api-dev-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 3. DEVELOPMENT PROCESS */
.api-dev-process {
  background: var(--api-dev-bg);
}

.api-dev-process-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.api-dev-process-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: var(--api-dev-card-border);
}

.api-dev-process-node {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  background: var(--api-dev-card);
  border: 1px solid var(--api-dev-card-border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  box-shadow: var(--api-dev-shadow);
  transition: transform 0.3s;
}
.api-dev-process-node:hover {
  transform: translateX(5px);
  border-color: var(--api-dev-accent-light);
}

.api-dev-process-num {
  width: 40px;
  height: 40px;
  background: var(--api-dev-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--api-dev-bg);
  margin-left: -15px;
}

.api-dev-process-content h4 {
  color: var(--api-dev-primary);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.api-dev-process-content p {
  color: var(--api-dev-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 4. CTA SECTION */
.api-dev-cta {
  background: var(--api-dev-bg-alt);
  padding: 70px 5%;
  text-align: center;
  border-top: 1px solid var(--api-dev-card-border);
}

.api-dev-cta-inner {
  max-width: 650px;
  margin: 0 auto;
}

.api-dev-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--api-dev-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.api-dev-cta-desc {
  color: var(--api-dev-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .api-dev-hero {
    padding: 100px 5% 50px;
  }
  .api-dev-features-grid {
    grid-template-columns: 1fr;
  }
  .api-dev-process-track::before {
    display: none;
  }
  .api-dev-process-node {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .api-dev-process-num {
    margin-left: 0;
    box-shadow: none;
  }
}
