/*--------------------------------------------------------------
# Spygar — shared page enhancements (all inner pages)
--------------------------------------------------------------*/

/* Page hero */
.sp-page-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(99, 91, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 60% at 100% 100%, rgba(139, 92, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(99, 91, 255, 0.1);
}

.sp-page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sp-page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.sp-page-hero-orb--1 {
  width: 240px;
  height: 240px;
  top: -60px;
  right: 10%;
  background: rgba(99, 91, 255, 0.28);
}

.sp-page-hero-orb--2 {
  width: 180px;
  height: 180px;
  bottom: -50px;
  left: 5%;
  background: rgba(167, 139, 250, 0.2);
}

.sp-page-hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(rgba(99, 91, 255, 0.35) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.sp-page-hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.sp-page-hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.16);
}

.sp-page-hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sp-page-hero-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sp-page-hero-subtitle {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.sp-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sp-page-hero-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.sp-page-hero-breadcrumbs ol li + li {
  padding-left: 10px;
}

.sp-page-hero-breadcrumbs ol li + li::before {
  content: "/";
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 55%);
}

.sp-page-hero-breadcrumbs a {
  color: var(--accent-color);
}

/* Section shell + header */
.sp-page-section {
  position: relative;
  overflow: hidden;
}

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

.sp-page-section-bg::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(99, 91, 255, 0.08);
  filter: blur(50px);
}

.sp-page-section .container {
  position: relative;
  z-index: 1;
}

.sp-section-header {
  margin-bottom: 40px;
}

.sp-section-header--center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sp-section-header-kicker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sp-section-header-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.16);
}

.sp-section-header-kicker-line {
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.sp-section-header-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sp-section-header-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sp-section-header-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
}

.sp-alt-services-section .sp-section-header {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* CTA band */
.sp-cta-band {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    linear-gradient(135deg, #635bff 0%, #7c3aed 50%, #5b21b6 100%);
  color: #fff;
}

.sp-cta-band-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sp-cta-band-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  top: -120px;
  right: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(40px);
}

.sp-cta-band .container {
  position: relative;
  z-index: 1;
}

.sp-cta-band-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.sp-cta-band-lead {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}

.sp-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
}

.sp-cta-band-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, gap 0.2s ease;
}

.sp-cta-band-btn--primary {
  background: #fff;
  color: var(--accent-color);
}

.sp-cta-band-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.sp-cta-band-btn:hover {
  transform: translateY(-2px);
  gap: 12px;
  color: inherit;
}

.sp-cta-band-btn--primary:hover {
  color: var(--accent-color);
}

.sp-cta-band-btn--ghost:hover {
  color: #fff;
}

/* FAQ */
.sp-faq-section .faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.sp-faq-section .sp-faq-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  border-bottom: 2px solid rgba(99, 91, 255, 0.15);
  width: 100%;
}

.sp-faq-section .sp-faq-group-title:first-child {
  margin-top: 0;
}

.sp-faq-section .faq-item {
  margin-bottom: 12px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-faq-section .faq-item:hover,
.sp-faq-section .faq-item.faq-active {
  border-color: rgba(99, 91, 255, 0.28);
  box-shadow: 0 14px 36px rgba(99, 91, 255, 0.1);
}

.sp-faq-section .faq-item h4 {
  font-size: 17px;
  font-weight: 700;
}

.sp-faq-section .faq-icon {
  color: var(--accent-color);
}

.sp-faq-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.sp-faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(99, 91, 255, 0.28);
}

.sp-faq-cta:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Team */
.sp-team-section .sp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.sp-team-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  background: #fff;
  box-shadow: 0 18px 44px rgba(99, 91, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(99, 91, 255, 0.16);
}

.sp-team-card .member-img {
  position: relative;
  overflow: hidden;
}

.sp-team-card .member-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sp-team-card:hover .member-img img {
  transform: scale(1.05);
}

.sp-team-card .member-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 30, 0.55) 100%);
  pointer-events: none;
}

.sp-team-card .social {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 2;
}

.sp-team-card .member-info {
  padding: 20px 22px 22px;
  text-align: center;
}

.sp-team-card .member-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sp-team-card .member-info span {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Blog listing */
.sp-blog-section .sp-blog-grid article {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  background: #fff;
  box-shadow: 0 14px 36px rgba(99, 91, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-blog-section .sp-blog-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(99, 91, 255, 0.14);
}

.sp-blog-section .post-img {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.sp-blog-section .post-img img {
  transition: transform 0.45s ease;
}

.sp-blog-section article:hover .post-img img {
  transform: scale(1.04);
}

.sp-blog-section .post-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  background: rgba(99, 91, 255, 0.1);
}

.sp-blog-section .title {
  font-size: 1.15rem;
  line-height: 1.35;
}

.sp-blog-section .title a {
  color: inherit;
  text-decoration: none;
}

.sp-blog-section .title a:hover {
  color: var(--accent-color);
}

/* Pricing */
.sp-pricing-section .pricing-item {
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  box-shadow: 0 16px 40px rgba(99, 91, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-pricing-section .pricing-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(99, 91, 255, 0.14);
}

.sp-pricing-section .pricing-item.featured {
  border-color: rgba(99, 91, 255, 0.35);
  box-shadow: 0 24px 56px rgba(99, 91, 255, 0.18);
}

.sp-pricing-section .btn-buy {
  border-radius: 999px;
  font-weight: 700;
}

/* Service details */
.sp-service-details-section .services-list {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(99, 91, 255, 0.12);
  box-shadow: 0 14px 36px rgba(99, 91, 255, 0.08);
}

.sp-service-details-section .services-list a {
  font-weight: 600;
}

.sp-service-details-section .services-list a.active {
  background: linear-gradient(135deg, var(--accent-color) 0%, #7c3aed 100%);
}

.sp-service-details-section .sp-service-content-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  background: #fff;
  box-shadow: 0 18px 44px rgba(99, 91, 255, 0.08);
}

.sp-service-details-section .services-img {
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 20px 48px rgba(99, 91, 255, 0.12);
}

.sp-service-details-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(99, 91, 255, 0.05);
}

.sp-service-details-section ul li i {
  color: var(--accent-color);
  margin-top: 2px;
}

/* Portfolio */
.sp-portfolio-section .portfolio-filters li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(99, 91, 255, 0.14);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: all 0.2s ease;
}

.sp-portfolio-section .portfolio-filters li:hover,
.sp-portfolio-section .portfolio-filters li.filter-active {
  background: linear-gradient(135deg, var(--accent-color) 0%, #7c3aed 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 91, 255, 0.28);
}

.sp-portfolio-section .portfolio-card {
  border-radius: 18px;
  border: 1px solid rgba(99, 91, 255, 0.1);
  box-shadow: 0 16px 40px rgba(99, 91, 255, 0.1);
}

.sp-portfolio-section .portfolio-links a {
  background: linear-gradient(135deg, var(--accent-color) 0%, #7c3aed 100%);
  color: #fff;
}

.sp-portfolio-section .portfolio-overlay-content .category {
  color: #fde68a;
}

/* Booking */
.sp-booking-section .sp-booking-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  background: #fff;
  box-shadow: 0 24px 56px rgba(99, 91, 255, 0.12);
}

.sp-booking-section .sp-booking-card iframe {
  border-radius: 16px;
  min-height: 720px;
}

/* 404 */
.sp-error-section {
  position: relative;
  overflow: hidden;
}

.sp-error-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 32px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(99, 91, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 56px rgba(99, 91, 255, 0.12);
}

.sp-error-code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-color), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* AI page hero alignment */
.ai-page-hero.sp-page-hero,
.page-title.ai-page-hero {
  padding-bottom: 48px;
}

.ai-page-hero .ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.16);
}

.ai-page-hero .ai-lead {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
}

.ai-cap-card {
  height: 100%;
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  background: #fff;
  box-shadow: 0 14px 36px rgba(99, 91, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(99, 91, 255, 0.14);
}

.ai-cap-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-color), #7c3aed);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(99, 91, 255, 0.28);
}

/* Blog details */
.sp-blog-details-section .article {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(99, 91, 255, 0.1);
  background: #fff;
  box-shadow: 0 18px 44px rgba(99, 91, 255, 0.08);
}

.sp-blog-details-section .post-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .sp-page-hero {
    padding: 32px 0 28px;
  }

  .sp-page-hero-breadcrumbs {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-team-card,
  .sp-blog-section article,
  .sp-pricing-section .pricing-item,
  .ai-cap-card,
  .sp-faq-section .faq-item {
    transition: none;
  }
}
