/* ============================================
   Service page — atmosphere + contact-matching hero
   ============================================ */

.service-page {
  position: relative;
  background: var(--purple-900);
  color: var(--white);
  scroll-behavior: smooth;
  isolation: isolate;
}

/* ---------- Quiet starfield (no neon plasma) ---------- */
.service-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: var(--purple-900);
}

.service-bg-stars {
  position: absolute;
  inset: 0;
}

.service-bg-stars .star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: none;
  animation: serviceStarTwinkle 3.5s ease-in-out infinite;
}

@keyframes serviceStarTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .service-bg-stars .star {
    animation: none;
    opacity: 0.55;
  }
}

.service-page > header.site-header {
  z-index: 1000;
}

.service-page > main,
.service-page > footer {
  position: relative;
  z-index: 1;
}

/* ---------- Hero = full first viewport (like About / Demo) ---------- */
.svc-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-xl)) var(--container-padding) var(--space-3xl);
  text-align: center;
  overflow: hidden;
  background: transparent;
}

.svc-hero .container {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0;
}

.svc-hero .section-label {
  justify-content: center;
}

.svc-hero .section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: var(--space-md);
  color: var(--white);
}

.svc-hero .section-subtitle {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--purple-200);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* Keep content blocks readable over the animated bg */
.service-audiences-section,
.service-overview-section,
.service-details-section {
  position: relative;
  z-index: 1;
}

.service-page .service-overview-section {
  background: transparent;
  overflow: hidden;
}

.service-page .audience-card,
.service-page .overview-card,
.service-page .node-box {
  background: rgba(20, 10, 35, 0.92) !important;
  backdrop-filter: blur(10px);
}

/* ---------- Redesigned Comparison Table ---------- */
.service-comparison-table {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Headers row - only visible on desktop */
.comparison-table-header {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 2.5rem;
  padding: 1rem 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(160, 114, 230, 0.2);
}

.comparison-row {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 2.5rem;
  align-items: center;
  background: rgba(34, 16, 64, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(160, 114, 230, 0.15);
  border-radius: var(--radius-lg, 12px);
  padding: 2.5rem;
  transition: all var(--transition-spring, 0.4s cubic-bezier(0.15, 0.85, 0.35, 1.2));
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 30px);
}

.comparison-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.comparison-row:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 200, 114, 0.45);
  box-shadow: 0 15px 35px rgba(124, 69, 212, 0.2), inset 0 0 15px rgba(160, 114, 230, 0.1);
  background: rgba(34, 16, 64, 0.65);
}

/* Column styles */
.col-phase {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phase-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-gold);
  opacity: 0.8;
  line-height: 1;
}

.phase-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  word-break: keep-all;
}

.col-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.col-details p {
  font-size: 0.95rem;
  color: var(--purple-200);
  line-height: 1.75;
  margin: 0;
}

.col-details .process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.col-details .process-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: var(--white);
  line-height: 1.7;
}

.col-details .process-list li:last-child {
  margin-bottom: 0;
}

.col-details .process-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.col-price-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.price-box {
  background: rgba(232, 200, 114, 0.08);
  border: 1px solid rgba(232, 200, 114, 0.25);
  color: var(--accent-gold);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: 100%;
}

.col-price-action .btn {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--purple-400);
  background: transparent;
  color: var(--purple-100);
  transition: all var(--transition-base, 0.3s ease);
  text-decoration: none;
}

.comparison-row:hover .col-price-action .btn {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--purple-900);
  box-shadow: 0 4px 15px rgba(232, 200, 114, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .comparison-table-header {
    display: none; /* Hide header row on mobile/tablet */
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem;
  }

  .col-phase {
    border-bottom: 1px solid rgba(160, 114, 230, 0.2);
    padding-bottom: 0.75rem;
  }

  .col-price-action {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .price-box {
    width: auto;
    display: inline-block;
  }

  .col-price-action .btn {
    width: auto;
    min-width: 160px;
  }
}
