/* ============================================================
   SERVICE PAGE MASTER TEMPLATE — VisionForge Technologies
   Used by every individual service page (Custom Web Development,
   Mobile App Development, UI/UX Design, API Integration,
   Cloud & DevOps, Maintenance & Support).

   This file is self-contained on purpose (like legal.css) so a
   new service page only needs ONE stylesheet link plus its own
   content — never new CSS.

   Section prefixes:
   sp-hero      1. Service Hero
   sp-overview  2. Service Overview
   sp-benefits  3. Key Benefits
   (Key Features reuses the GLOBAL .service-card / .services__grid
    components already defined in style.css — no CSS here.)
   sp-process   5. Development Process (adapted from services.css .dp-*)
   sp-stack     6. Technology Stack
   sp-cases     7. Related Case Studies (adapted from case-study.css .cs-related-*)
   sp-faq       8. FAQ (adapted from technologies.css .tfaq-*)
   ============================================================ */

/* ─────────────────────────────────────────────
   SECTION 1 — SERVICE HERO
   Prefix: sp-hero
   Same 55/45 two-column anatomy as the Services
   page hero (.sv-hero) — only the illustration
   markup inside .sp-hero__visual changes per page.
───────────────────────────────────────────── */

.sp-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--header-top-offset) + var(--space-10));
  padding-bottom: var(--space-10);
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * clamp(1rem, 5vw, 5rem));
  max-width: var(--container-max);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 30%,
    rgba(255, 255, 255, 0.07) 70%,
    transparent 100%
  );
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sp-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sp-glow--tl {
  width: 680px;
  height: 680px;
  top: -200px;
  left: -180px;
  background: radial-gradient(circle, rgba(27, 142, 248, 0.09) 0%, transparent 65%);
}

.sp-glow--br {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(27, 142, 248, 0.06) 0%, transparent 65%);
}

.sp-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
}

.sp-hero__container {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-12);
  align-items: start;
  position: relative;
  z-index: 1;
}

.sp-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.sp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  background: var(--color-brand-faint);
  border: 1px solid var(--color-border-brand);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-brand-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.sp-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  box-shadow: 0 0 0 2px rgba(27, 142, 248, 0.25);
  animation: sp-dot-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes sp-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(27, 142, 248, 0.25); }
  50%       { box-shadow: 0 0 0 4px rgba(27, 142, 248, 0.10); }
}

.sp-hero__heading {
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}

.sp-hero__heading-accent {
  background: var(--gradient-text-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-hero__desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-3);
}

.sp-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Illustration slot — every service page fills this with its
   own floating glass card(s); only .sp-hero__visual itself
   (dimensions + ambient glow) is fixed. */
.sp-hero__visual {
  position: relative;
  height: 400px;
}

.sp-hero__visual-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(27, 142, 248, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Reusable floating glass card base — reuse for any hero
   illustration element (same anatomy as sv-hero / nf-hero / 404). */
.sp-glass-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  background: rgba(13, 24, 41, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.50),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
  animation: sp-card-float 6s ease-in-out infinite;
}

@keyframes sp-card-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-8px); }
}

/* Reusable floating chip — for secondary illustration accents */
.sp-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(13, 24, 41, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4;
  animation: sp-chip-float 5.5s ease-in-out infinite;
}

.sp-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-light);
  flex-shrink: 0;
}

@keyframes sp-chip-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ─────────────────────────────────────────────
   SHARED SECTION HEADER
   (label + heading + desc) — used by Overview,
   Benefits, Features, Process, Stack, Cases, FAQ.
   Identical anatomy to .sg-section__header on the
   Services page.
───────────────────────────────────────────── */

.sp-section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
}

.sp-section__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-brand-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.sp-section__label-line {
  width: 24px;
  height: 1.5px;
  background: var(--color-brand-primary);
  border-radius: 1px;
  flex-shrink: 0;
}

.sp-section__heading {
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.sp-section__heading-accent {
  background: var(--gradient-text-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-section__desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* ─────────────────────────────────────────────
   SECTION 2 — SERVICE OVERVIEW
   Prefix: sp-overview
   Left: description column. Right: 3-4 highlight
   cards reusing the global .card component.
───────────────────────────────────────────── */

.sp-overview {
  position: relative;
  padding-block: var(--space-12) var(--space-16);
  overflow: hidden;
}

.sp-overview__grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: var(--space-12);
  align-items: start;
}

.sp-overview__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-brand-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.sp-overview__label-line {
  width: 24px;
  height: 1.5px;
  background: var(--color-brand-primary);
  border-radius: 1px;
  flex-shrink: 0;
}

.sp-overview__heading {
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.sp-overview__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.sp-overview__text:last-child {
  margin-bottom: 0;
}

/* Highlight cards grid — reuses the global .card component */
.sp-overview__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* Use when a service only needs 3 highlight cards instead of 4 —
   avoids a lone orphaned card in a 2-column grid. */
.sp-overview__cards--three {
  grid-template-columns: 1fr;
}

/* ─────────────────────────────────────────────
   SECTION 3 — KEY BENEFITS
   Prefix: sp-benefits
   Four value blocks — icon + title + desc,
   hairline divider. Same anatomy as the Services
   page "Why Choose VisionForge" list (.wcv-item).
───────────────────────────────────────────── */

.sp-benefits {
  position: relative;
  padding-block: var(--space-12) var(--space-16);
  overflow: hidden;
}

.sp-benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * clamp(1rem, 5vw, 5rem));
  max-width: var(--container-max);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 30%,
    rgba(255, 255, 255, 0.07) 70%,
    transparent 100%
  );
}

.sp-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-8);
}

.sp-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding-left var(--duration-moderate) var(--ease-out);
}

.sp-benefit:hover {
  padding-left: var(--space-1);
}

.sp-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-brand-faint);
  border: 1px solid rgba(27, 142, 248, 0.14);
  border-radius: var(--radius-lg);
  color: var(--color-brand-primary);
  transition:
    background   var(--duration-moderate) var(--ease-out),
    border-color var(--duration-moderate) var(--ease-out),
    transform    var(--duration-moderate) var(--ease-bounce);
}

.sp-benefit:hover .sp-benefit__icon {
  background: rgba(27, 142, 248, 0.12);
  border-color: rgba(27, 142, 248, 0.30);
  transform: scale(1.06);
}

.sp-benefit__body {
  flex: 1;
  padding-top: 2px;
}

.sp-benefit__title {
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  margin: 0 0 4px;
}

.sp-benefit__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ─────────────────────────────────────────────
   SECTION 4 — KEY FEATURES (section shell only)
   Prefix: sp-features-section
   The cards themselves reuse the GLOBAL
   .service-card / .services__grid component
   (style.css) — no card CSS is defined here.
───────────────────────────────────────────── */

.sp-features-section {
  position: relative;
  padding-block: var(--space-12) var(--space-16);
  overflow: hidden;
}

.sp-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * clamp(1rem, 5vw, 5rem));
  max-width: var(--container-max);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 30%,
    rgba(255, 255, 255, 0.07) 70%,
    transparent 100%
  );
}

/* ─────────────────────────────────────────────
   SECTION 5 — DEVELOPMENT PROCESS
   Prefix: sp-process
   Identical to the Services page process track
   (.dp-process) — Discovery → Planning → Design →
   Development → Testing → Deployment.
───────────────────────────────────────────── */

.sp-process-section {
  position: relative;
  padding-block: var(--space-12) var(--space-16);
  overflow: hidden;
}

.sp-process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * clamp(1rem, 5vw, 5rem));
  max-width: var(--container-max);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 30%,
    rgba(255, 255, 255, 0.07) 70%,
    transparent 100%
  );
}

.sp-process {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.sp-process__connector {
  position: absolute;
  top: 46px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1.5px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 0;
}

.sp-process__connector-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--color-brand-primary) 0%,
    var(--color-brand-light) 50%,
    var(--color-brand-dark) 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.sp-process__connector-fill.is-drawn {
  transform: scaleX(1);
}

.sp-process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-1);
  position: relative;
  z-index: 1;
}

/* Keep steps at their layout position so the connector always
   passes through icon centers, even with the reveal animation */
.sp-process__step.reveal,
.sp-process__step.reveal.is-visible {
  transform: none;
}

.sp-process__step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.sp-process__step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-brand-primary);
  opacity: 0.65;
  letter-spacing: 0.06em;
  height: 18px;
  line-height: 18px;
}

.sp-process__step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-surface);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.50);
  position: relative;
  z-index: 1;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}

.sp-process__step:hover .sp-process__step-icon {
  background:
    linear-gradient(rgba(27, 142, 248, 0.12), rgba(27, 142, 248, 0.12)),
    var(--color-bg-surface);
  border-color: rgba(27, 142, 248, 0.40);
  color: var(--color-brand-light);
  box-shadow: 0 0 18px rgba(27, 142, 248, 0.22);
  transform: translateY(-2px);
}

.sp-process__step-title {
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.sp-process__step-desc {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  /* #868992, not --color-text-tertiary (#777a81) — #777a81 fails WCAG AA 4.5:1 at this font size on dark backgrounds */
  color: #868992;
  max-width: 130px;
}

.sp-process__note {
  text-align: center;
  font-size: var(--text-sm);
  /* #868992, not --color-text-tertiary (#777a81) — #777a81 fails WCAG AA 4.5:1 at this font size on dark backgrounds */
  color: #868992;
  margin: 0;
  margin-top: var(--space-10);
}

/* ─────────────────────────────────────────────
   SECTION 6 — TECHNOLOGY STACK
   Prefix: sp-stack
   Reusable chip — accepts ANY technology name;
   never hardcode a fixed list length.
───────────────────────────────────────────── */

.sp-stack-section {
  position: relative;
  padding-block: var(--space-12) var(--space-16);
  overflow: hidden;
}

.sp-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.sp-stack__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  transition:
    background     var(--duration-moderate) var(--ease-out),
    border-color   var(--duration-moderate) var(--ease-out),
    transform       var(--duration-moderate) var(--ease-out),
    box-shadow      var(--duration-moderate) var(--ease-out);
}

.sp-stack__chip:hover {
  background: var(--color-brand-faint);
  border-color: var(--color-border-brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-xs), var(--shadow-sm);
}

.sp-stack__chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-brand-light);
}

/* ─────────────────────────────────────────────
   SECTION 7 — RELATED CASE STUDIES
   Prefix: sp-cases
   Identical card design to the case-study pages'
   "Related Projects" (.cs-related-card). Exactly
   3 cards per service page.
───────────────────────────────────────────── */

.sp-cases-section {
  position: relative;
  padding-block: var(--space-12) var(--space-16);
  overflow: hidden;
}

.sp-cases-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * clamp(1rem, 5vw, 5rem));
  max-width: var(--container-max);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 30%,
    rgba(255, 255, 255, 0.07) 70%,
    transparent 100%
  );
}

.sp-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.sp-cases__cta-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .service-card--centered {
    grid-column: 2;
  }
}

.sp-case-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition:
    transform var(--duration-moderate) var(--ease-out),
    border-color var(--duration-moderate) var(--ease-out),
    box-shadow var(--duration-moderate) var(--ease-out);
}

.sp-case-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-default);
  box-shadow: var(--shadow-xl);
}

.sp-case-card:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 3px;
}

.sp-case-card__thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-case-card__thumb-bg {
  position: absolute;
  inset: 0;
}

.sp-case-card__thumb-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-surface);
  opacity: 0.6;
}

.sp-case-card__thumb-screen {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 75%;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sp-case-card__industry {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.sp-case-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.sp-case-card__title {
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

.sp-case-card__desc {
  font-size: var(--text-sm);
  /* #868992, not --color-text-tertiary (#777a81) — #777a81 fails WCAG AA 4.5:1 at this font size on dark backgrounds */
  color: #868992;
  margin: 0;
  line-height: var(--leading-relaxed);
  flex: 1;
}

.sp-case-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-brand-light);
  text-decoration: none;
  transition: gap var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
  margin-top: auto;
}

.sp-case-card:hover .sp-case-card__cta {
  gap: 11px;
  color: var(--color-text-primary);
}

.sp-case-card__cta svg {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   SECTION 8 — FAQ
   Prefix: sp-faq
   Identical accordion to the Technologies page
   FAQ (.tfaq-*) — one item open at a time.
───────────────────────────────────────────── */

.sp-faq-section {
  position: relative;
  padding-block: var(--space-12) var(--space-16);
}

.sp-faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * clamp(1rem, 5vw, 5rem));
  max-width: var(--container-max);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent 100%);
  pointer-events: none;
}

.sp-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.sp-faq__item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}

.sp-faq__item:hover {
  border-color: var(--color-border-default);
}

.sp-faq__item.is-open {
  border-color: rgba(27, 142, 248, 0.28);
  box-shadow: 0 0 28px rgba(27, 142, 248, 0.06), var(--shadow-sm);
}

.sp-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.sp-faq__trigger:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: -2px;
  border-radius: var(--radius-xl);
}

.sp-faq__question {
  font-family: 'Manrope', var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.sp-faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 142, 248, 0.07);
  border: 1px solid rgba(27, 142, 248, 0.16);
  color: var(--color-brand-light);
  transition: transform 0.25s var(--ease-out),
              background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
}

.sp-faq__item.is-open .sp-faq__icon {
  transform: rotate(45deg);
  background: rgba(27, 142, 248, 0.14);
  border-color: rgba(27, 142, 248, 0.30);
}

.sp-faq__body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-out);
}

.sp-faq__item.is-open .sp-faq__body-wrap {
  grid-template-rows: 1fr;
}

.sp-faq__body {
  min-height: 0;
  overflow: hidden;
}

.sp-faq__answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.sp-faq__item.is-open .sp-faq__trigger {
  border-bottom: 1px solid var(--color-border-faint);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   Breakpoints match the rest of the site: ≤479, 480–767,
   768–1023, 1024–1279.
═══════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  .sp-hero {
    padding-top: calc(var(--header-height) + var(--header-top-offset) + var(--space-4));
    padding-bottom: var(--space-10);
  }
  .sp-hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    min-height: auto;
  }
  .sp-hero__heading { font-size: var(--text-3xl); }
  .sp-hero__desc { max-width: 100%; }
  .sp-hero__actions { flex-direction: column; align-items: stretch; gap: var(--space-1-5); }
  .sp-hero__visual { display: none; }

  .sp-overview { padding-block: var(--space-10) var(--space-12); }
  .sp-overview__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .sp-overview__cards { grid-template-columns: 1fr; }
  .sp-overview__heading { font-size: var(--text-2xl); }

  .sp-benefits { padding-block: var(--space-10) var(--space-12); }
  .sp-benefits__grid { grid-template-columns: 1fr; gap: 0; }

  .sp-process-section { padding-block: var(--space-10) var(--space-12); }
  .sp-process { flex-direction: column; align-items: flex-start; gap: 0; }
  .sp-process__connector { display: none; }
  /* Step-node/title/desc are separate flex siblings of .sp-process__step, not
     a shared text column — flex-direction:row (the old approach) put title
     and desc side by side with no line break between them. Keep the step a
     plain block so title/desc stack in normal flow, and pull the icon node
     out with position:absolute so the text column only needs left padding
     to clear it. */
  .sp-process__step {
    display: block;
    text-align: left;
    padding: 0 0 var(--space-5) 68px;
    width: 100%;
    position: relative;
  }
  .sp-process__step:last-child {
    padding-bottom: 0;
  }
  .sp-process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 68px;
    left: 22px;
    width: 1.5px;
    height: calc(100% - 68px + 16px);
    background: linear-gradient(to bottom, rgba(27, 142, 248, 0.35), rgba(27, 142, 248, 0.06));
  }
  .sp-process__step-node {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }
  .sp-process__step-title {
    margin-bottom: 6px;
  }
  .sp-process__step-desc {
    max-width: 100%;
  }

  .sp-stack-section { padding-block: var(--space-10) var(--space-12); }

  .sp-cases-section { padding-block: var(--space-10) var(--space-12); }
  .sp-cases__grid { grid-template-columns: 1fr; }

  .sp-faq-section { padding-block: var(--space-10) var(--space-12); }
  .sp-faq__trigger { padding: var(--space-4) var(--space-5); }
  .sp-faq__answer { padding: 0 var(--space-5) var(--space-4); }

  .sp-section__heading { font-size: var(--text-3xl); }
}

@media (min-width: 480px) and (max-width: 767px) {
  .sp-hero { padding-top: calc(var(--header-height) + var(--header-top-offset) + var(--space-6)); padding-bottom: var(--space-10); }
  .sp-hero__container { grid-template-columns: 1fr; gap: var(--space-8); min-height: auto; }
  .sp-hero__heading { font-size: var(--text-4xl); }
  .sp-hero__desc { max-width: 100%; }
  .sp-hero__visual { display: none; }

  .sp-overview__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .sp-overview__cards { grid-template-columns: repeat(2, 1fr); }

  .sp-benefits__grid { grid-template-columns: 1fr; gap: 0; }

  .sp-process { flex-direction: column; align-items: flex-start; gap: 0; }
  .sp-process__connector { display: none; }
  .sp-process__step {
    display: block;
    text-align: left;
    padding: 0 0 var(--space-5) 68px;
    width: 100%;
    position: relative;
  }
  .sp-process__step:last-child {
    padding-bottom: 0;
  }
  .sp-process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 68px;
    left: 22px;
    width: 1.5px;
    height: calc(100% - 68px + 16px);
    background: linear-gradient(to bottom, rgba(27, 142, 248, 0.35), rgba(27, 142, 248, 0.06));
  }
  .sp-process__step-node { position: absolute; top: 0; left: 0; margin: 0; }
  .sp-process__step-title { margin-bottom: 6px; }
  .sp-process__step-desc { max-width: 100%; }

  .sp-cases__grid { grid-template-columns: 1fr; }

  .sp-section__heading { font-size: var(--text-3xl); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sp-hero__container { grid-template-columns: 1fr; gap: var(--space-8); min-height: auto; }
  .sp-hero__content { align-items: center; text-align: center; }
  .sp-hero__desc { max-width: 540px; }
  .sp-hero__actions { justify-content: center; }
  .sp-hero__visual { height: 380px; max-width: 480px; margin: 0 auto; }

  .sp-overview__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .sp-overview__cards { grid-template-columns: repeat(2, 1fr); }

  .sp-benefits__grid { grid-template-columns: 1fr; gap: 0; }

  .sp-process { flex-wrap: wrap; justify-content: center; gap: var(--space-6) 0; }
  .sp-process__step { flex: 0 0 33.333%; }
  .sp-process__connector { display: none; }

  .sp-cases__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .sp-hero__container { gap: var(--space-8); }
  .sp-hero__heading { font-size: var(--text-4xl); }
  .sp-glass-card { width: 340px; }

  .sp-overview__grid { gap: var(--space-8); }
  .sp-benefits__grid { gap: var(--space-1) var(--space-6); }
  .sp-cases__grid { gap: var(--space-3); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sp-glass-card,
  .sp-chip,
  .sp-hero__badge-dot {
    animation: none;
  }
  .sp-process__connector-fill {
    transition: none;
  }
}
