:root {
  --primary: #f07fb3;
  --secondary: #2e3a8c;
  --body-text: #64748b;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --bg-soft: #f8fafc;
  --font-main: "Quicksand", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--body-text);
  background: var(--white);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section-space {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.title-center {
  text-align: center;
  margin-bottom: 30px;
}

.title-center h2 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
}

.title-center p {
  margin: 0 auto;
  max-width: 760px;
}

.service-detail-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 140px 0 95px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(46, 58, 140, 0.87), rgba(46, 58, 140, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-content .section-tag {
  color: #ffd7e9;
}

.hero-content h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  max-width: 760px;
}

.hero-content p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 700px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.intro-text h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(1.75rem, 2.7vw, 2.45rem);
}

.intro-text p {
  margin: 0;
  line-height: 1.75;
  font-size: 1.03rem;
}

.intro-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(46, 58, 140, 0.18);
}

.core-services {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.core-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.core-service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(46, 58, 140, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.core-service-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 4px;
  border-radius: 99px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.core-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(46, 58, 140, 0.14);
  border-color: rgba(240, 127, 179, 0.4);
}

.core-service-card:hover::after {
  transform: scaleX(1);
}

.icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #de5fa0);
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.core-service-card h3 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 1.15rem;
}

.core-service-card p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.97rem;
}

.advanced-tech {
  background: #f1f5f9;
}

.tech-points {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tech-point-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
}

.tech-point-card h3 {
  margin: 0 0 7px;
  color: var(--secondary);
  font-size: 1.1rem;
}

.tech-point-card p {
  margin: 0;
}

.tech-images {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.tech-images img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 10px 24px rgba(46, 58, 140, 0.15);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  box-shadow: 0 8px 20px rgba(46, 58, 140, 0.08);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--white);
  background: var(--secondary);
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
}

.service-cta-banner {
  background: transparent;
  color: var(--white);
  padding-top: 34px;
  padding-bottom: 86px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(125deg, var(--secondary), #223173);
  border-radius: 22px;
  padding: 38px 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 42px rgba(34, 49, 115, 0.28);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(240, 127, 179, 0.9), rgba(240, 127, 179, 0.25));
}

.cta-inner h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  max-width: 720px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 11px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(240, 127, 179, 0.38);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
}

@media (max-width: 1024px) {
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .core-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}

@media (max-width: 680px) {
  .section-space {
    padding: 64px 0;
  }

  .service-detail-hero {
    min-height: 54vh;
    padding-top: 120px;
  }

  .service-cta-banner {
    padding-top: 18px;
    padding-bottom: 68px;
  }

  .core-services-grid,
  .tech-points,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tech-images {
    flex-wrap: wrap;
  }

  .tech-images img {
    width: 92px;
    height: 92px;
  }
}
