/* ===== CSS VARIABLES ===== */
:root {
  --accent: #7048e8;
  --accent-hover: #5f3dc4;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --text-light: #ffffff;
  --card-bg: #ffffff;
  --bg-light: #f3f0ff;
  --bg-lighter: #faf9ff;
  --border-color: #e4e4ec;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.services-hero {
  background: linear-gradient(135deg, #eceaff, #f5f3ff);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 72, 232, 0.1), transparent);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.services-hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 102, 255, 0.08), transparent);
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}

.services-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.services-hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .services-hero {
    padding: 40px 20px;
  }

  .services-hero h1 {
    font-size: 32px;
  }

  .services-hero p {
    font-size: 16px;
  }

  .services-hero::before,
  .services-hero::after {
    display: none;
  }
}

/* ===== SERVICE OVERVIEW SECTION ===== */
.service-overview {
  padding: 80px 24px;
  background-color: var(--bg-lighter);
  text-align: center;
}

.service-overview h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-overview > p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .service-overview {
    padding: 60px 20px;
  }

  .service-overview h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px 16px;
  }
}

/* ===== APPS SHOWCASE SECTION ===== */
.ms-apps-included {
  padding: 80px 24px;
  background-color: var(--bg-light);
  text-align: center;
}

.ms-apps-included h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text-dark);
}

.apps-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.app-item {
  background-color: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.app-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.app-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 0;
}

.app-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .ms-apps-included {
    padding: 60px 20px;
  }

  .ms-apps-included h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .apps-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-item {
    padding: 20px 16px;
  }
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: 80px 24px;
  background-color: var(--bg-light);
  text-align: center;
}

.pricing h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text-dark);
}

.pricing-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto 48px;
}

.pricing-card {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  width: 320px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.highlight {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.pricing-card.highlight:hover {
  transform: scale(1.05) translateY(-12px);
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.price {
  font-size: 42px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--text-dark);
}

.pricing-card > p:nth-of-type(2) {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 15px;
  text-align: left;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-card ul li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  .pricing {
    padding: 60px 20px;
  }

  .pricing h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .pricing-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 32px;
    width: 100%;
  }

  .pricing-card {
    width: 90%;
    max-width: 340px;
    margin: 0 auto;
  }

  .pricing-card.highlight {
    transform: scale(1);
  }

  .pricing-card.highlight:hover {
    transform: translateY(-12px);
  }
}

/* ===== WHY SECTION ===== */
.why-ringcentral {
  padding: 80px 24px;
  background-color: var(--bg-lighter);
  text-align: center;
}

.why-ringcentral h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.why-ringcentral > p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-list li {
  font-size: 16px;
  color: var(--text-dark);
  padding: 16px 24px;
  margin-bottom: 12px;
  background-color: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.benefits-list li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.benefits-list strong {
  color: var(--accent);
}

@media (max-width: 768px) {
  .why-ringcentral {
    padding: 60px 20px;
  }

  .why-ringcentral h2 {
    font-size: 28px;
  }

  .benefits-list li {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ===== IMPLEMENTATION PROCESS SECTION ===== */
.implementation-process {
  padding: 80px 24px;
  background-color: var(--bg-light);
  text-align: center;
}

.implementation-process h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text-dark);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding-top: 60px;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--accent);
  opacity: 0.2;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--text-light);
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .implementation-process {
    padding: 60px 20px;
  }

  .implementation-process h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step {
    padding-top: 0;
  }

  .step::before {
    display: none;
  }
}

/* ===== CTA SECTION ===== */
.ctabutton {
  padding: 32px 24px;
  text-align: center;
}

.cta {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--accent);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.cta:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta.secondary {
  background-color: transparent;
  color: var(--accent);
}

.cta.secondary:hover {
  background-color: var(--bg-light);
}

@media (max-width: 768px) {
  .ctabutton {
    padding: 24px 16px;
  }

  .cta {
    padding: 14px 32px;
    font-size: 14px;
  }
}