/* ==========================================================================
   AAGENTO — SERVICES & PRODUCT PAGES DESIGN SYSTEM
   Matches Aagento Core Theme + Modern Enterprise SaaS Aesthetics
   ========================================================================== */

/* ── Typography & Tokens inherited from style.css ── */
:root {
  --sp-primary: #0f172a;
  --sp-secondary: #475569;
  --sp-muted: #64748b;
  --sp-accent: #325ff4;
  --sp-accent-rgb: 50, 95, 244;
  --sp-accent-start: #2f55d4;
  --sp-accent-mid: #4282b0;
  --sp-accent-end: #60c578;
  --sp-gradient: linear-gradient(110deg, #2f55d4 0%, #4282b0 45%, #60c578 100%);
  --sp-gradient-soft: linear-gradient(135deg, rgba(47, 85, 212, 0.08) 0%, rgba(66, 130, 176, 0.05) 50%, rgba(96, 197, 120, 0.08) 100%);
  --sp-card-bg: #ffffff;
  --sp-card-border: rgba(50, 95, 244, 0.12);
  --sp-card-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  --sp-radius: 16px;
  --sp-radius-sm: 10px;
}

/* ── Global Service Page Wrapper ── */
.sp-page {
  padding-top: 85px;
  background: #ffffff;
  color: var(--sp-primary);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

.sp-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Breadcrumbs ── */
.sp-breadcrumb-wrap {
  padding: 20px 0 10px;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--sp-muted);
  flex-wrap: wrap;
}

.sp-breadcrumb a {
  color: var(--sp-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.sp-breadcrumb a:hover {
  color: var(--sp-accent);
}

.sp-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 12px;
}

.sp-breadcrumb-current {
  color: var(--sp-accent);
  font-weight: 500;
}

/* ── Eyebrow Pill Badge ── */
.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(50, 95, 244, 0.08);
  border: 1px solid rgba(50, 95, 244, 0.22);
  color: var(--sp-accent);
  margin-bottom: 20px;
}

.sp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60c578;
  box-shadow: 0 0 8px #60c578;
  animation: spPulse 2s infinite;
}

@keyframes spPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.25);
  }
}

/* ── Hero Section ── */
.sp-hero {
  padding: 24px 0 60px;
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(50, 95, 244, 0.08) 0%, rgba(96, 197, 120, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.sp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sp-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--sp-primary);
  margin-bottom: 16px;
}

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

.sp-hero-sub {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 16px;
  line-height: 1.5;
}

.sp-hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sp-secondary);
  margin-bottom: 28px;
}

.sp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.sp-btn-primary {
  background: var(--sp-gradient);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(47, 85, 212, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.sp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(47, 85, 212, 0.38);
}

.sp-btn-secondary {
  background: #ffffff;
  color: var(--sp-primary) !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(50, 95, 244, 0.22);
  transition: all 0.2s ease;
}

.sp-btn-secondary:hover {
  background: rgba(50, 95, 244, 0.05);
  border-color: var(--sp-accent);
  color: var(--sp-accent) !important;
}

/* Trust / Standards Pills */
.sp-hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.sp-trust-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sp-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sp-secondary);
}

/* ── Hero Right: Simulated Tech Console ── */
.sp-tech-console {
  background: #0f172a;
  border-radius: var(--sp-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 0 40px rgba(50, 95, 244, 0.15);
  overflow: hidden;
  color: #f8fafc;
  position: relative;
}

.sp-console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-console-dots {
  display: flex;
  gap: 6px;
}

.sp-console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.sp-console-dots span:nth-child(1) {
  background: #ef4444;
}

.sp-console-dots span:nth-child(2) {
  background: #f59e0b;
}

.sp-console-dots span:nth-child(3) {
  background: #10b981;
}

.sp-console-tag {
  font-size: 11px;
  font-family: monospace;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-console-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.sp-console-body {
  padding: 24px;
}

.sp-console-graphic {
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.sp-console-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.sp-console-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #4ade80, transparent);
  box-shadow: 0 0 10px #38bdf8;
  animation: spScan 3s linear infinite;
}

@keyframes spScan {
  0% {
    top: 0;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.sp-console-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.sp-console-metric-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-console-metric-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.sp-console-metric-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #38bdf8;
}

.sp-console-log {
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 11.5px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sp-log-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-log-success {
  color: #4ade80;
}

/* ── Section Header Component ── */
.sp-section {
  padding: 80px 0;
}

.sp-section-alt {
  background: #f8fbff;
  border-top: 1px solid rgba(50, 95, 244, 0.08);
  border-bottom: 1px solid rgba(50, 95, 244, 0.08);
}

.sp-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.sp-section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-accent);
  margin-bottom: 10px;
}

.sp-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sp-primary);
  margin-bottom: 14px;
  line-height: 1.25;
}

.sp-section-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sp-secondary);
}

/* ── Performance Stat Strip ── */
.sp-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.sp-stat-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: var(--sp-radius-sm);
  border: 1px solid rgba(50, 95, 244, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(50, 95, 244, 0.10);
  border-color: rgba(50, 95, 244, 0.28);
}

.sp-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--sp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.sp-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-primary);
  margin-bottom: 4px;
}

.sp-stat-desc {
  font-size: 11.5px;
  color: var(--sp-muted);
}

/* ── Bento Grid: Key Features ── */
.sp-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp-bento-card {
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  padding: 32px 28px;
  box-shadow: var(--sp-card-shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sp-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(50, 95, 244, 0.12);
  border-color: rgba(50, 95, 244, 0.35);
}

.sp-bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(50, 95, 244, 0.08);
  color: var(--sp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sp-bento-card:hover .sp-bento-icon {
  background: var(--sp-accent);
  color: #ffffff;
  transform: scale(1.06);
}

.sp-bento-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--sp-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.sp-bento-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sp-secondary);
}

/* ── Who Can Benefit: Audience Grid ── */
.sp-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sp-audience-card {
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.12);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s ease;
}

.sp-audience-card:hover {
  border-color: var(--sp-accent);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(50, 95, 244, 0.08);
  transform: translateY(-2px);
}

.sp-audience-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(47, 85, 212, 0.12), rgba(96, 197, 120, 0.12));
  color: var(--sp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-audience-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sp-primary);
  margin-bottom: 6px;
}

.sp-audience-info p {
  font-size: 13px;
  color: var(--sp-secondary);
  line-height: 1.55;
}

/* ── Ecosystem: Related Services ── */
.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp-related-card {
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.12);
  border-radius: var(--sp-radius);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sp-related-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sp-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sp-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 95, 244, 0.28);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.sp-related-card:hover::after {
  opacity: 1;
}

.sp-related-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sp-accent);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.sp-related-title,
.sp-related-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sp-primary);
  margin-bottom: 10px;
}

.sp-related-desc,
.sp-related-card p {
  font-size: 13.5px;
  color: var(--sp-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.sp-related-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.sp-related-card:hover .sp-related-link {
  gap: 10px;
}

/* ── Pre-Footer CTA Banner ── */
.sp-cta-wrap {
  padding: 60px 0 50px;
}

.sp-cta-banner {
  background: linear-gradient(135deg, #0b1528 0%, #172554 60%, #0f172a 100%);
  border-radius: 20px;
  padding: 56px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.sp-cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 197, 120, 0.25) 0%, rgba(47, 85, 212, 0.20) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.sp-cta-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.sp-cta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 12px;
}

.sp-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.sp-cta-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.sp-cta-action {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sp-cta-btn {
  background: var(--sp-gradient);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 36px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(47, 85, 212, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.sp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(47, 85, 212, 0.60);
}

.sp-cta-card {
  width: 100%;
}

.sp-cta-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.sp-cta-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.sp-cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Bento Card Extensions: Step Numbers & Lists ── */
.sp-bento-step,
.sp-bento-card .sp-bento-step {
  position: absolute !important;
  top: 26px !important;
  right: 28px !important;
  left: auto !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(50, 95, 244, 0.20);
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  z-index: 5 !important;
}

.sp-bento-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-bento-list li {
  font-size: 13.5px;
  color: var(--sp-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.sp-bento-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Console Code Snippet Block ── */
.sp-console-code {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 11.5px;
  line-height: 1.65;
  color: #cbd5e1;
  overflow-x: auto;
}

.sp-code-comment {
  color: #64748b;
  font-style: italic;
}

.sp-code-kw {
  color: #c084fc;
  font-weight: 600;
}

.sp-code-fn {
  color: #38bdf8;
}

.sp-code-str {
  color: #4ade80;
}

.sp-code-bool {
  color: #f59e0b;
}

/* ── Section Eyebrow Badges ── */
.sp-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(50, 95, 244, 0.08);
  color: var(--sp-accent);
  border: 1px solid rgba(50, 95, 244, 0.20);
  margin-bottom: 14px;
}

.sp-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: spPulse 2s infinite;
}

/* ── Parallel 2D & 3D Engineering Viewport Suite ── */
.sp-viewport-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(50, 95, 244, 0.04) 0%, transparent 65%);
}

.sp-sync-connector-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.sp-sync-conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(50, 95, 244, 0.25);
  box-shadow: 0 4px 16px rgba(50, 95, 244, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.sp-sync-conn-arrows {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(50, 95, 244, 0.12);
  color: #325ff4;
  font-size: 14px;
  font-weight: 800;
  animation: spArrowsPulse 2s infinite alternate;
}

@keyframes spArrowsPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
    color: #10b981;
  }
}

.sp-sync-conn-chip {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.sp-viewport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.sp-viewport-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(50, 95, 244, 0.16);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(50, 95, 244, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.sp-viewport-card:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 95, 244, 0.40);
  box-shadow: 0 22px 52px rgba(50, 95, 244, 0.14), 0 2px 10px rgba(15, 23, 42, 0.04);
}

.sp-viewport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sp-viewport-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-viewport-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sp-viewport-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.sp-viewport-dots span:nth-child(1) {
  background: #ef4444;
}

.sp-viewport-dots span:nth-child(2) {
  background: #f59e0b;
}

.sp-viewport-dots span:nth-child(3) {
  background: #10b981;
}

.sp-viewport-tab-pill {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-viewport-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(50, 95, 244, 0.08);
  color: #325ff4;
  border: 1px solid rgba(50, 95, 244, 0.22);
}

.sp-viewport-badge.green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.22);
}

.sp-viewport-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: spPulse 2s infinite;
}

.sp-viewport-screen {
  position: relative;
  background: #080d1a;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.sp-viewport-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-hud-pill-tl {
  position: absolute;
  top: 12px;
  left: 14px;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-hud-pill-tl .hud-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.sp-hud-pill-tr {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}

.sp-viewport-info {
  padding: 22px 24px 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sp-viewport-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sp-viewport-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(50, 95, 244, 0.08);
  color: #325ff4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-viewport-icon-circle.green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.sp-viewport-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sp-viewport-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.sp-viewport-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.sp-viewport-spec-item {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.sp-viewport-spec-label {
  font-size: 9.5px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  font-weight: 700;
}

.sp-viewport-spec-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Bi-Directional Synchronization Status Banner ── */
.sp-viewport-sync-banner {
  background: linear-gradient(135deg, rgba(50, 95, 244, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1.5px solid rgba(50, 95, 244, 0.24);
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(50, 95, 244, 0.05);
}

.sp-sync-banner-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-sync-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #325ff4;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(50, 95, 244, 0.35);
}

.sp-sync-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.sp-sync-subtitle {
  font-size: 12.5px;
  color: #64748b;
}

.sp-sync-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  border: 1px solid rgba(50, 95, 244, 0.16);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sp-sync-pill:hover {
  transform: translateY(-2px);
  border-color: #325ff4;
}

.sp-sync-pill span {
  color: #10b981;
  font-weight: 800;
  font-size: 14px;
}

/* ── Benchmark Comparison Section ── */
.sp-benchmark-section {
  background: radial-gradient(circle at 50% 15%, rgba(50, 95, 244, 0.05) 0%, transparent 65%), #f8fbff;
  border-top: 1px solid rgba(50, 95, 244, 0.08);
  border-bottom: 1px solid rgba(50, 95, 244, 0.08);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.sp-benchmark-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(50, 95, 244, 0.09) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.sp-benchmark-section::after {
  content: '';
  position: absolute;
  bottom: 8%;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-30px) scale(1.08);
  }
}

/* Benchmark KPI Highlights Strip */
.sp-benchmark-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}

.sp-benchmark-kpi-card {
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.14);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(50, 95, 244, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sp-benchmark-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(50, 95, 244, 0.12);
  border-color: rgba(50, 95, 244, 0.35);
}

.sp-benchmark-kpi-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #2f55d4 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.sp-benchmark-kpi-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.sp-benchmark-kpi-sub {
  font-size: 12px;
  color: #64748b;
}

/* ── Interactive Live Step Progress Tracker ── */
.sp-step-tracker {
  position: relative;
  max-width: 960px;
  margin: 0 auto 34px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(50, 95, 244, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(50, 95, 244, 0.04);
  z-index: 2;
}

.sp-step-tracker-line {
  position: absolute;
  top: 50%;
  left: 54px;
  right: 54px;
  height: 3px;
  background: rgba(50, 95, 244, 0.12);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 99px;
}

.sp-step-tracker-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #325ff4 0%, #06b6d4 50%, #10b981 100%);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(50, 95, 244, 0.5);
}

.sp-step-track-items {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-track-pill {
  background: #ffffff;
  border: 1.5px solid rgba(50, 95, 244, 0.18);
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.sp-track-pill:hover {
  transform: translateY(-2px);
  border-color: #325ff4;
  box-shadow: 0 6px 18px rgba(50, 95, 244, 0.18);
}

.sp-track-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s ease;
}

.sp-track-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  transition: color 0.28s ease;
  white-space: nowrap;
}

.sp-track-pulse {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 1.4s infinite;
}

.sp-track-pill.active {
  background: #ffffff;
  border-color: #325ff4;
  box-shadow: 0 8px 22px rgba(50, 95, 244, 0.22);
  transform: translateY(-2px) scale(1.04);
}

.sp-track-pill.active .sp-track-badge {
  background: #325ff4;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(50, 95, 244, 0.45);
}

.sp-track-pill.active .sp-track-label {
  color: #1e3a8a;
  font-weight: 700;
}

.sp-track-pill.active .sp-track-pulse {
  display: block;
}

.sp-track-pill.completed .sp-track-badge {
  background: #10b981;
  color: #ffffff;
}

.sp-track-pill.completed .sp-track-label {
  color: #065f46;
}

/* Executive Comparison Matrix */
.sp-matrix-wrap {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(50, 95, 244, 0.16);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  position: relative;
  z-index: 2;
}

.sp-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 14px;
}

.sp-matrix-table thead th {
  padding: 20px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(50, 95, 244, 0.14);
}

.sp-matrix-th-stage {
  width: 22%;
  background: #f8fafc;
  color: #0f172a;
  border-top-left-radius: 18px;
}

.sp-matrix-th-traditional {
  width: 32%;
  background: #f1f5f9;
  color: #64748b;
}

.sp-matrix-th-traditional .th-sub {
  display: block;
  font-size: 11px;
  text-transform: none;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 3px;
}

.sp-matrix-th-aagento {
  width: 32%;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border-left: 2px solid #3b82f6;
  border-right: 2px solid #3b82f6;
  position: relative;
}

.sp-matrix-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, #325ff4 0%, #60a5fa 50%, #325ff4 100%);
  background-size: 200% 100%;
  animation: aiBadgeShimmer 3.5s infinite linear;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(50, 95, 244, 0.35);
}

@keyframes aiBadgeShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.sp-matrix-th-impact {
  width: 14%;
  background: #f8fafc;
  color: #059669;
  text-align: right;
  border-top-right-radius: 18px;
}

/* ── Matrix Table Rows: Base, Hover & Active States ── */
.sp-matrix-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.sp-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.sp-matrix-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 18px;
}

.sp-matrix-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 18px;
}

/* Row Hover State: Vibrant Highlight */
.sp-matrix-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(50, 95, 244, 0.05) 0%, rgba(255, 255, 255, 0.98) 35%, rgba(16, 185, 129, 0.05) 100%) !important;
  box-shadow: inset 4px 0 0 #325ff4, 0 12px 28px rgba(50, 95, 244, 0.12);
  transform: translateY(-2px);
  z-index: 5;
}

.sp-matrix-table tbody tr:hover .sp-matrix-col-aagento {
  background: rgba(50, 95, 244, 0.09) !important;
  border-left-color: #2563eb;
  border-right-color: #2563eb;
}

.sp-matrix-table tbody tr:hover .sp-matrix-check {
  transform: scale(1.22);
  color: #059669;
}

.sp-matrix-table tbody tr:hover .sp-matrix-gain-tag {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
  border-color: #10b981;
}

.sp-matrix-table tbody tr:hover .sp-matrix-impact-badge {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Row Active Step (Scroll-Spy) State: Distinct Active Indicator */
.sp-matrix-table tbody tr.is-active-step {
  background: linear-gradient(90deg, rgba(50, 95, 244, 0.08) 0%, rgba(255, 255, 255, 0.98) 35%, rgba(16, 185, 129, 0.07) 100%) !important;
  box-shadow: inset 5px 0 0 #2563eb, 0 14px 34px rgba(50, 95, 244, 0.14);
}

.sp-matrix-table tbody tr.is-active-step .sp-stage-live-badge {
  display: inline-flex;
}

.sp-matrix-table tbody tr.is-active-step .sp-matrix-stage-num {
  color: #2563eb;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.sp-matrix-table tbody tr.is-active-step .sp-matrix-col-aagento {
  background: rgba(50, 95, 244, 0.09) !important;
  border-left: 2.5px solid #2563eb;
  border-right: 2.5px solid #2563eb;
}

.sp-matrix-table tbody tr.is-active-step .sp-matrix-gain-tag {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.sp-matrix-td {
  padding: 22px 24px;
  vertical-align: top;
  line-height: 1.6;
}

.sp-matrix-col-stage {
  color: #0f172a;
}

.sp-matrix-stage-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sp-matrix-stage-num {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #325ff4;
  display: inline-block;
  transition: all 0.25s ease;
}

.sp-stage-live-badge {
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #059669;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  animation: fadeInPill 0.3s ease-out;
}

.sp-stage-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes fadeInPill {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sp-matrix-stage-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.sp-matrix-col-traditional {
  color: #64748b;
  font-size: 13.5px;
}

.sp-matrix-cost-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  margin-top: 10px;
}

.sp-matrix-col-aagento {
  background: rgba(50, 95, 244, 0.035);
  border-left: 2px solid #3b82f6;
  border-right: 2px solid #3b82f6;
  color: #1e293b;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sp-matrix-aagento-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sp-matrix-check {
  color: #10b981;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sp-matrix-gain-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  margin-top: 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: all 0.25s ease;
}

.sp-matrix-col-impact {
  text-align: right;
  vertical-align: middle;
}

.sp-matrix-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Responsive Rules ── */
@media (max-width: 1024px) {
  .sp-step-tracker {
    overflow-x: auto;
    border-radius: 16px;
    padding: 10px 14px;
    -webkit-overflow-scrolling: touch;
  }

  .sp-step-tracker-line {
    display: none;
  }

  .sp-step-track-items {
    min-width: 620px;
  }

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

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

  .sp-matrix-table {
    min-width: 720px;
  }

  .sp-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .sp-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
    margin-bottom: 40px;
  }

  .sp-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
  }
}

@media (max-width: 768px) {
  .sp-step-tracker {
    margin-bottom: 24px;
  }

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

  .sp-viewport-sync-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-sync-pills {
    width: 100%;
  }

  .sp-sync-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .sp-comp-table th,
  .sp-comp-table td {
    padding: 12px 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .sp-container {
    padding: 0 16px;
  }

  .sp-hero {
    padding: 16px 0 40px;
  }

  .sp-hero-content h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.3rem);
    margin-bottom: 12px;
  }

  .sp-hero-sub {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .sp-hero-desc {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }

  .sp-console-body {
    padding: 16px;
  }

  .sp-console-graphic {
    padding: 12px;
  }

  .sp-pillar-card {
    padding: 22px 16px;
  }

  .sp-pillar-title {
    font-size: 1.15rem;
  }

  .sp-pillar-desc {
    font-size: 13.5px;
  }

  .sp-pillar-detail-item {
    font-size: 12.5px;
    padding: 10px 12px;
  }

  .sp-cta-wrap {
    padding: 36px 0 30px;
  }

  .sp-cta-banner {
    padding: 30px 18px;
    border-radius: 16px;
  }

  .sp-cta-title {
    font-size: 1.45rem;
  }

  .sp-cta-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .sp-cta-action,
  .sp-cta-btn {
    width: 100%;
    justify-content: center;
  }

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

  .sp-viewport-sync-banner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .sp-stats-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 32px;
  }

  .sp-stat-card {
    padding: 18px 16px;
  }

  .sp-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-btn-primary,
  .sp-btn-secondary {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sp-console-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sp-pillar-header {
    gap: 12px;
  }

  .sp-pillar-icon {
    width: 44px;
    height: 44px;
  }

  .sp-pillar-icon svg {
    width: 20px;
    height: 20px;
  }

  .sp-breadcrumb {
    font-size: 12px;
  }
}


.sp-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.sp-stagger-1 {
  transition-delay: 0.08s;
}

.sp-stagger-2 {
  transition-delay: 0.16s;
}

.sp-stagger-3 {
  transition-delay: 0.24s;
}

.sp-stagger-4 {
  transition-delay: 0.32s;
}

.sp-stagger-5 {
  transition-delay: 0.40s;
}

.sp-stagger-6 {
  transition-delay: 0.48s;
}

/* ── 8. Interactive Cursor Spotlight on Cards ── */
.sp-spotlight-card,
.sp-bento-card,
.workflow-card-services,
.feature-card,
.info-card,
.sp-audience-card,
.sp-stat-card,
.sp-related-card,
.sp-spec-card {
  position: relative;
  overflow: hidden;
}

.sp-spotlight-card::before,
.sp-bento-card::before,
.workflow-card-services::before,
.feature-card::before,
.info-card::before,
.sp-audience-card::before,
.sp-stat-card::before,
.sp-related-card::before,
.sp-spec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(50, 95, 244, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.sp-spotlight-card:hover::before,
.sp-bento-card:hover::before,
.workflow-card-services:hover::before,
.feature-card:hover::before,
.info-card:hover::before,
.sp-audience-card:hover::before,
.sp-stat-card:hover::before,
.sp-related-card:hover::before,
.sp-spec-card:hover::before {
  opacity: 1;
}

/* Ensure contents stay above spotlight */
.sp-bento-card>*:not(.sp-bento-step),
.workflow-card-services>*,
.feature-card>*,
.info-card>*,
.sp-audience-card>*,
.sp-stat-card>*,
.sp-related-card>*,
.sp-spec-card>* {
  position: relative;
  z-index: 2;
}

/* ── 9. Subtle CAD Grid Watermark for AI Engineering feel ── */
.sp-cad-grid-bg {
  background-image:
    linear-gradient(to right, rgba(50, 95, 244, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(50, 95, 244, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* ── 10. AI Alignment Interactive Console Tabs & Views ── */
.sp-console-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.sp-console-tab,
.sp-console-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sp-console-tab:hover,
.sp-console-tab-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.sp-console-tab.active,
.sp-console-tab-btn.active {
  background: rgba(50, 95, 244, 0.3);
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.sp-console-tab span,
.sp-console-tab-btn span {
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
}

.sp-console-view {
  display: none;
  animation: spFadeIn 0.3s ease forwards;
}

.sp-console-view.active {
  display: block;
}

@keyframes spFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 11. Technical Pillar Cards & Formula Blocks ── */
.sp-pillar-grid,
.sp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.sp-pillar-card {
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.14);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sp-pillar-card:hover {
  border-color: var(--sp-accent);
  box-shadow: 0 20px 48px rgba(50, 95, 244, 0.12);
  transform: translateY(-3px);
}

.sp-pillar-card-full {
  grid-column: 1 / -1;
}

.sp-pillar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.sp-pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(50, 95, 244, 0.08);
  color: var(--sp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-pillar-card:hover .sp-pillar-icon {
  background: var(--sp-accent);
  color: #ffffff;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.sp-pillar-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-accent);
  margin-bottom: 4px;
}

.sp-pillar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-primary);
  line-height: 1.3;
}

.sp-pillar-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--sp-secondary);
  margin-bottom: 20px;
}

.sp-pillar-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px;
}

.sp-pillar-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sp-secondary);
  background: #f8fbff;
  border: 1px solid rgba(50, 95, 244, 0.08);
  border-left: 3px solid var(--sp-accent);
  border-radius: 8px;
  padding: 12px 14px;
}

.sp-pillar-detail-item strong {
  color: var(--sp-primary);
  font-weight: 600;
}

.sp-detail-bullet {
  color: var(--sp-accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
}

.sp-detail-bullet::before {
  content: '▸';
  color: var(--sp-accent);
  font-weight: 700;
  font-size: 13px;
}

.sp-formula-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--sp-accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: monospace;
}

.sp-formula-math {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.sp-formula-desc {
  font-size: 12px;
  color: #64748b;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}

.sp-pill-list,
.sp-pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.sp-feature-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.sp-feature-pill:hover {
  background: rgba(50, 95, 244, 0.08);
  color: var(--sp-accent);
  border-color: rgba(50, 95, 244, 0.25);
}

/* ── 12. Interactive Alignment Simulation Sandbox ── */
.sp-sandbox-wrap {
  background: #0b1120;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(50, 95, 244, 0.2);
  overflow: hidden;
  color: #f8fafc;
  margin: 40px 0;
}

.sp-sandbox-header {
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.sp-sandbox-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-sandbox-header p {
  color: #94a3b8;
  font-size: 13.5px;
  margin-top: 4px;
}

.sp-mode-selector {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-mode-btn.active {
  background: var(--sp-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(50, 95, 244, 0.35);
}

.sp-sandbox-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  padding: 32px;
}

.sp-calc-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.sp-calc-val {
  color: #38bdf8;
  font-family: monospace;
}

.sp-calc-range {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.sp-calc-hint {
  font-size: 11px;
  color: #64748b;
}

.sp-calc-results {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-results-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sp-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.sp-result-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.sp-result-val {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: #4ade80;
}

.sp-result-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.sp-result-badge.pass {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.sp-result-badge.info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.sp-sandbox-canvas-wrap {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.sp-sandbox-canvas-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 13. Comparison & Compliance Table ── */
.sp-table-wrap,
.sp-comp-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(50, 95, 244, 0.15);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  margin-top: 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sp-comp-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
  font-size: 13.5px;
}

.sp-comp-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--sp-accent);
}

.sp-comp-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--sp-secondary);
}

.sp-comp-table tr:hover td {
  background: #f8fbff;
}

.sp-table-highlight {
  font-weight: 700;
  color: var(--sp-accent);
}

.sp-code-pill {
  display: inline-block;
  font-family: 'DM Sans', monospace, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(50, 95, 244, 0.08);
  color: #2563eb;
  border: 1px solid rgba(50, 95, 244, 0.22);
  white-space: nowrap;
}

/* ── Responsive Adjustments ── */
@media (max-width: 991px) {
  .sp-pillar-grid,
  .sp-pillars-grid {
    grid-template-columns: 1fr;
  }
  .sp-sandbox-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sp-result-grid {
    grid-template-columns: 1fr;
  }
  .sp-sandbox-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sp-mode-selector {
    width: 100%;
    overflow-x: auto;
  }
}