/* ===========================
   HAKUSO - Service Article Enhanced Design
   Visually rich, geometric, matching brand identity
   =========================== */

/* --- Article Container with Decorative Context --- */
.service-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0 80px;
  position: relative;
}

/* Large decorative background shapes */
.service-article::before {
  content: '';
  position: absolute;
  top: 200px;
  right: -180px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108,60,225,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.service-article::after {
  content: '';
  position: absolute;
  top: 900px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,201,167,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* --- Lead Paragraph with Decorative Quote --- */
.sa-lead {
  font-size: 17px;
  line-height: 2.1;
  color: #444;
  margin-bottom: 48px;
  font-weight: 400;
  position: relative;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(108,60,225,0.02), rgba(0,201,167,0.02));
  border-radius: 20px;
  border: 1px solid rgba(108,60,225,0.06);
}
.sa-lead::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  left: 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 80px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.12;
  pointer-events: none;
}
.sa-lead strong {
  color: var(--primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Tags with Animated Hover --- */
.sa-tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.sa-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 24px;
  background: rgba(108,60,225,0.06);
  color: var(--primary);
  border: 1px solid rgba(108,60,225,0.1);
  transition: all 0.4s var(--ease-out-expo);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.sa-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}
.sa-tag:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,60,225,0.2);
}
.sa-tag:hover::before { opacity: 1; }
.sa-tag span, .sa-tag { position: relative; z-index: 1; }

/* --- Section Base --- */
.sa-section {
  margin-bottom: 80px;
  position: relative;
}

/* Section label with animated line */
.sa-section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sa-section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Section title with gradient underline */
.sa-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  padding-bottom: 20px;
  position: relative;
  border-bottom: none;
}
.sa-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.6s var(--ease-out-expo);
}
.sa-section:hover .sa-section-title::after {
  width: 160px;
}

.sa-text {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin-bottom: 20px;
}

/* --- Feature Cards: Full-width Endless Slider --- */
.sa-features {
  display: flex;
  gap: 24px;
  margin: 36px 0;
  /* Break out of article container to full viewport width */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.sa-features.is-slider {
  display: block;
}
.sa-features-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: featureSlide 40s linear infinite;
  will-change: transform;
}
.sa-features-track:hover {
  animation-play-state: paused;
}
@keyframes featureSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Side nav buttons */
.sa-features-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(108,60,225,0.15);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--primary, #6C3CE1);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  opacity: 0;
  pointer-events: none;
}
.sa-features.is-slider:hover .sa-features-nav,
.sa-features.is-slider .sa-features-nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.sa-features-nav:hover {
  background: var(--primary, #6C3CE1);
  color: #fff;
  border-color: var(--primary, #6C3CE1);
  box-shadow: 0 8px 28px rgba(108,60,225,0.25);
  transform: translateY(-50%) scale(1.1);
}
.sa-features-nav:active {
  transform: translateY(-50%) scale(0.95);
}
.sa-features-nav--prev { left: 2%; }
.sa-features-nav--next { right: 2%; }
@media (max-width: 768px) {
  .sa-features-nav { width: 40px; height: 40px; font-size: 15px; }
  .sa-features-nav--prev { left: 3%; }
  .sa-features-nav--next { right: 3%; }
  /* Always visible on mobile (no hover) */
  .sa-features.is-slider .sa-features-nav {
    opacity: 0.7;
    pointer-events: auto;
  }
}
@media (max-width: 480px) {
  .sa-features-nav { width: 36px; height: 36px; font-size: 14px; }
}
.sa-feature {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(108,60,225,0.08);
  border-radius: 20px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
}
/* Decorative corner shape */
.sa-feature::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(108,60,225,0.06), rgba(0,201,167,0.06));
  border-radius: 50%;
  transition: all 0.5s var(--ease-out-expo);
}
.sa-feature::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s;
}
.sa-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(108,60,225,0.12);
  border-color: rgba(108,60,225,0.15);
}
.sa-feature:hover::before {
  transform: scale(2);
  opacity: 0.8;
}
.sa-feature:hover::after { opacity: 1; }

.sa-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(108,60,225,0.2);
  transition: transform 0.4s var(--ease-out-expo);
}
.sa-feature:hover .sa-feature-icon {
  transform: scale(1.08) rotate(-3deg);
}
.sa-feature h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.sa-feature p {
  font-size: 14px;
  line-height: 1.85;
  color: #666;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* --- Comparison Table --- */
.sa-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.sa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.7;
  min-width: 640px;
}
.sa-table thead th {
  background: linear-gradient(135deg, var(--primary), #5028c6);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 18px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.sa-table thead th:first-child {
  background: var(--dark);
  border-radius: 16px 0 0 0;
  text-align: left;
  min-width: 130px;
}
.sa-table thead th:last-child {
  border-radius: 0 16px 0 0;
}
.sa-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(108,60,225,0.06);
  color: #444;
  vertical-align: top;
}
.sa-table tbody td:first-child {
  background: rgba(108,60,225,0.03);
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.sa-table tbody tr:hover td {
  background: rgba(108,60,225,0.04);
}
.sa-table tbody tr:hover td:first-child {
  background: rgba(108,60,225,0.08);
}
.sa-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
}
.sa-table tbody tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
}
.sa-table tbody tr:last-child td {
  border-bottom: none;
}
.sa-table .rating {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 12px;
  margin-left: 6px;
}
.sa-table .tool-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sa-table .tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
@media (max-width: 768px) {
  .sa-table { font-size: 13px; }
  .sa-table thead th { padding: 12px 12px; font-size: 13px; }
  .sa-table tbody td { padding: 10px 12px; }
}

/* --- Stats Section: Full-width Immersive Dark Panel --- */
.sa-stats-dark {
  /* Break out to full viewport */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--dark);
  border-radius: 0;
  padding: 80px 0 72px;
  margin-top: 56px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
/* Animated mesh gradient background */
.sa-stats-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(108,60,225,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(0,201,167,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(108,60,225,0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: statsBgShift 12s ease-in-out infinite alternate;
}
@keyframes statsBgShift {
  0% { opacity: 1; transform: scale(1) translate(0, 0); }
  100% { opacity: 0.7; transform: scale(1.15) translate(3%, -2%); }
}
/* Horizontal light streak */
.sa-stats-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,201,167,0.5), rgba(108,60,225,0.5), transparent);
  animation: statStreak 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes statStreak {
  0% { left: -60%; }
  100% { left: 100%; }
}
/* Grid line decorations via JS-injected canvas (.sa-stats-grid-lines) */
.sa-stats-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
}
/* Inner container for content */
.sa-stats-dark-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}
.sa-stats-dark .sa-section-label { color: var(--secondary); }
.sa-stats-dark .sa-section-label::before { background: linear-gradient(90deg, var(--secondary), var(--primary)); }
.sa-stats-dark .sa-section-title {
  color: #fff;
}
.sa-stats-dark .sa-section-title::after {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}
.sa-stats-dark .sa-text { color: rgba(255,255,255,0.65); }

.sa-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 36px;
}
.sa-stat {
  text-align: center;
  border-radius: 24px;
  padding: 44px 24px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.5s;
}
/* Default light style */
.sa-stat {
  background: linear-gradient(135deg, rgba(108,60,225,0.04), rgba(0,201,167,0.04));
  border: 1px solid rgba(108,60,225,0.08);
}
.sa-stat:hover { transform: translateY(-6px); }

/* Dark panel stats — glass morphism cards */
.sa-stats-dark .sa-stat {
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 48px 28px 40px;
}
/* Glow ring on hover */
.sa-stats-dark .sa-stat::before {
  content: '';
  position: absolute;
  top: -2px; right: -2px; bottom: -2px; left: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(108,60,225,0.4), rgba(0,201,167,0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}
.sa-stats-dark .sa-stat:hover::before { opacity: 1; }
.sa-stats-dark .sa-stat:hover {
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  border-color: transparent;
  box-shadow: 0 12px 48px rgba(108,60,225,0.2), 0 0 60px rgba(108,60,225,0.06);
  transform: translateY(-8px);
}
/* Circular progress ring behind number (injected by JS) */
.sa-stat-ring {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.sa-stat-ring svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  pointer-events: none;
}
.sa-stat-ring-circle {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke: url(#statRingGradient);
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-stat-number {
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}
.sa-stats-dark .sa-stat-number {
  font-size: 60px;
  background: linear-gradient(135deg, #c4b5fd, var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(108,60,225,0.35));
}
/* Animated counter pulse on reveal */
.sa-stats-dark .sa-stat-number.is-counting {
  animation: statPulse 0.6s ease-out;
}
@keyframes statPulse {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.sa-stat-unit {
  font-size: 22px;
  font-weight: 600;
}
.sa-stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 14px;
  line-height: 1.7;
}
.sa-stats-dark .sa-stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.sa-stat-label small {
  display: block;
  font-size: 10px;
  opacity: 0.5;
  margin-top: 6px;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
.sa-stats-dark .sa-stat-label small { opacity: 0.35; }

/* Stat divider lines between cards */
.sa-stats-dark .sa-stat + .sa-stat::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(108,60,225,0.2), rgba(0,201,167,0.2), transparent);
  pointer-events: none;
}

/* --- Callout Box --- */
.sa-callout {
  border-radius: 16px;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
/* Default light callout */
.sa-callout {
  background: rgba(108,60,225,0.03);
  border: 1px solid rgba(108,60,225,0.1);
  border-left: 4px solid var(--primary);
}
/* Dark panel callout */
.sa-stats-dark .sa-callout {
  background: linear-gradient(135deg, rgba(108,60,225,0.12), rgba(0,201,167,0.06));
  border: 1px solid rgba(108,60,225,0.2);
  border-left: 4px solid var(--secondary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sa-callout::before {
  content: '\f05a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.04;
  pointer-events: none;
}
.sa-stats-dark .sa-callout::before { opacity: 0.06; color: var(--secondary); }
.sa-callout p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin: 0;
  position: relative;
  z-index: 1;
}
.sa-stats-dark .sa-callout p { color: rgba(255,255,255,0.7); }
.sa-callout strong { color: var(--dark); }
.sa-stats-dark .sa-callout strong { color: #fff; }

/* --- Process Timeline: Vertical Card Layout --- */
.sa-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 48px 0;
  position: relative;
  padding-left: 56px;
}
/* Vertical connector line */
.sa-process::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
  z-index: 0;
}

.sa-process-step {
  position: relative;
  z-index: 1;
  padding: 24px 32px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: all 0.4s var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sa-process-step:last-child {
  margin-bottom: 0;
}
.sa-process-step:hover {
  border-color: rgba(108,60,225,0.2);
  box-shadow: 0 8px 32px rgba(108,60,225,0.08);
  transform: translateX(4px);
}
.sa-process-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  position: absolute;
  left: -56px;
  top: 24px;
  box-shadow: 0 4px 16px rgba(108,60,225,0.25), 0 0 0 4px #fff;
  transition: all 0.4s var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
  z-index: 2;
}
.sa-process-step:hover .sa-process-num {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(108,60,225,0.3), 0 0 0 5px #fff;
}
.sa-process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.sa-process-step p {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin: 0;
}
/* Step icon */
.sa-process-step .step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(108,60,225,0.06);
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 12px;
}
/* Duration badge */
.sa-process-step .step-duration {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(108,60,225,0.06);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* --- FAQ Accordion with Smooth Animation --- */
.sa-faq { margin: 36px 0; }
.sa-faq-item {
  border: 1px solid #eee;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  background: #fff;
}
.sa-faq-item:hover {
  border-color: rgba(108,60,225,0.15);
  box-shadow: 0 4px 16px rgba(108,60,225,0.04);
}
.sa-faq-item.open {
  border-color: rgba(108,60,225,0.2);
  box-shadow: 0 8px 32px rgba(108,60,225,0.06);
}
.sa-faq-q {
  padding: 22px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.3s;
}
.sa-faq-item.open .sa-faq-q {
  background: rgba(108,60,225,0.02);
}
.sa-faq-q::before {
  content: 'Q';
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}
.sa-faq-q i {
  transition: transform 0.4s var(--ease-out-expo);
  color: #ccc;
  flex-shrink: 0;
  margin-left: 14px;
  font-size: 13px;
}
.sa-faq-item.open .sa-faq-q i {
  transform: rotate(180deg);
  color: var(--primary);
}
.sa-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
  padding: 0 28px 0 70px;
  font-size: 14px;
  line-height: 1.9;
  color: #666;
}
.sa-faq-item.open .sa-faq-a {
  max-height: 300px;
  padding: 0 28px 24px 70px;
}

/* --- CTA Box with Animated Border --- */
.sa-cta {
  text-align: center;
  border-radius: 24px;
  padding: 56px 48px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.sa-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
  background-size: 300% 300%;
  animation: gradient-border 6s ease infinite;
  border-radius: 26px;
  z-index: -1;
}
@keyframes gradient-border {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.sa-cta::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--dark);
  border-radius: 22px;
  z-index: -1;
}
.sa-cta h3 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}
.sa-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  line-height: 1.8;
  position: relative;
}
.sa-cta .btn {
  position: relative;
}

/* --- Section Divider: Decorative Geometric --- */
.sa-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 64px 0;
  color: rgba(108,60,225,0.15);
}
.sa-divider::before,
.sa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,60,225,0.1), transparent);
}
.sa-divider-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-divider-icon svg {
  width: 24px;
  height: 24px;
  animation: rotate-slow 20s linear infinite;
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Full-width Accent Section Wrapper --- */
.sa-section-accent {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 64px calc(50vw - 50%) 64px;
  background: linear-gradient(180deg, rgba(108,60,225,0.02) 0%, rgba(0,201,167,0.02) 100%);
  border-top: 1px solid rgba(108,60,225,0.06);
  border-bottom: 1px solid rgba(108,60,225,0.06);
  position: relative;
}
.sa-section-accent::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 10%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(108,60,225,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.sa-section-accent::after {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 8%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(0,201,167,0.05);
  transform: rotate(45deg);
  pointer-events: none;
}

/* --- Entrance Animations --- */
.sa-section,
.sa-lead,
.sa-tag-row,
.sa-cta {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.sa-section.is-visible,
.sa-lead.is-visible,
.sa-tag-row.is-visible,
.sa-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.sa-stats .sa-stat,
.sa-process .sa-process-step,
.sa-faq .sa-faq-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
/* Slider features: always visible (animated by CSS slider) */
.sa-features.is-slider .sa-feature {
  opacity: 1 !important;
  transform: none !important;
  transition: box-shadow 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
}
.sa-features.is-slider .sa-feature:hover {
  transform: translateY(-8px) !important;
}
/* Non-slider fallback stagger */
.sa-features:not(.is-slider) .sa-feature {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.sa-section.is-visible .sa-features:not(.is-slider) .sa-feature {
  opacity: 1;
  transform: translateY(0);
}
.sa-section.is-visible .sa-stat,
.sa-section.is-visible .sa-process-step,
.sa-section.is-visible .sa-faq-item {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delay */
.sa-section.is-visible .sa-features:not(.is-slider) .sa-feature:nth-child(1),
.sa-section.is-visible .sa-stat:nth-child(1),
.sa-section.is-visible .sa-process-step:nth-child(1),
.sa-section.is-visible .sa-faq-item:nth-child(1) { transition-delay: 0.05s; }
.sa-section.is-visible .sa-features:not(.is-slider) .sa-feature:nth-child(2),
.sa-section.is-visible .sa-stat:nth-child(2),
.sa-section.is-visible .sa-process-step:nth-child(2),
.sa-section.is-visible .sa-faq-item:nth-child(2) { transition-delay: 0.12s; }
.sa-section.is-visible .sa-features:not(.is-slider) .sa-feature:nth-child(3),
.sa-section.is-visible .sa-stat:nth-child(3),
.sa-section.is-visible .sa-process-step:nth-child(3),
.sa-section.is-visible .sa-faq-item:nth-child(3) { transition-delay: 0.19s; }
.sa-section.is-visible .sa-features:not(.is-slider) .sa-feature:nth-child(4),
.sa-section.is-visible .sa-stat:nth-child(4),
.sa-section.is-visible .sa-process-step:nth-child(4),
.sa-section.is-visible .sa-faq-item:nth-child(4) { transition-delay: 0.26s; }
.sa-section.is-visible .sa-process-step:nth-child(5) { transition-delay: 0.33s; }
.sa-section.is-visible .sa-process-step:nth-child(6) { transition-delay: 0.40s; }
.sa-section.is-visible .sa-process-step:nth-child(7) { transition-delay: 0.47s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .service-article { padding: 40px 0 60px; }
  .sa-lead { font-size: 15px; padding: 24px 20px; }
  .sa-lead::before { font-size: 50px; top: -10px; left: 12px; }
  .sa-section-title { font-size: 22px; }
  .sa-features { gap: 16px; }
  .sa-feature { min-width: 280px; max-width: 320px; }
  .sa-features-track { gap: 16px; }
  .sa-stats { grid-template-columns: 1fr; gap: 20px; }
  .sa-stat-number { font-size: 42px; }
  .sa-stats-dark .sa-stat-number { font-size: 46px; }
  .sa-stats-dark .sa-stat { padding: 36px 24px 30px; }
  .sa-stats-dark .sa-stat + .sa-stat::after { display: none; }
  .sa-stat-ring svg { width: 90px; height: 90px; }
  .sa-process { padding-left: 44px; }
  .sa-process-num { width: 44px; height: 44px; font-size: 10px; left: -44px; top: 20px; }
  .sa-process-step { padding: 20px 20px; }
  .sa-process-step h4 { font-size: 15px; margin-bottom: 6px; }
  .sa-process-step p { font-size: 13px; }
  .sa-process::before { left: 21px; }
  .sa-stats-dark { padding: 56px 0; }
  .sa-stats-dark-inner { padding: 0 24px; }
  .sa-cta { padding: 40px 24px; border-radius: 20px; }
  .sa-cta h3 { font-size: 22px; }
  .sa-faq-a { padding-left: 56px !important; }
  .sa-section-accent {
    margin-left: -20px;
    margin-right: -20px;
    padding: 48px 20px 48px;
  }
}

@media (max-width: 480px) {
  .sa-tag-row { gap: 6px; }
  .sa-tag { font-size: 11px; padding: 5px 12px; }
  .sa-feature { padding: 28px 24px; min-width: 260px; max-width: 290px; }
  .sa-stat { padding: 28px 16px; }
}
