/* =============================================================================
   Services Pages CSS — High-End Creative Light Theme matching main site
   - Typography: Space Grotesk (Headings), DM Sans & Montserrat (Body)
   - Interactive Filter Chips
   - Staggered Scroll Reveals, Subtle Card Tilt, Floating Glass Badges
   ========================================================================== */

:root {
  --sp-font-display: Anton, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  --sp-font-body: 'DM Sans', 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sp-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --sp-bg-main: #f8fafc;
  --sp-bg-card: #ffffff;
  
  --sp-border: rgba(226, 232, 240, 0.85);
  --sp-border-hover: rgba(148, 163, 184, 0.5);

  --sp-text-main: #0f172a;
  --sp-text-sub: #475569;
  --sp-text-muted: #94a3b8;

  --sp-coral: #F92C53;
  --sp-blue: #2563EB;
  --sp-emerald: #059669;

  --sp-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --sp-shadow-hover: 0 22px 45px -10px rgba(15, 23, 42, 0.12), 0 8px 18px -4px rgba(15, 23, 42, 0.06);
}

.sp-page {
  background: #ffffff;
  color: var(--sp-text-main);
  font-family: var(--sp-font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------------------------------------------------------- hero section -- */

.sp-hero {
  position: relative;
  padding: 190px 24px 120px;
  background: radial-gradient(circle at 50% 0%, rgba(241, 245, 249, 0.8) 0%, #ffffff 70%);
  border-bottom: 1px solid var(--sp-border);
  text-align: center;
  overflow: hidden;
}

.sp-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(226, 232, 240, 0.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 60%, transparent 100%);
  pointer-events: none;
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--sp-border);
  font-family: 'Space Grotesk', var(--sp-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sp-text-sub);
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.sp-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sp-coral);
  animation: pulse-dot 2s infinite;
}

.is-tech .sp-eyebrow-dot { background: var(--sp-blue); }
.is-growth .sp-eyebrow-dot { background: var(--sp-emerald); }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.sp-hero-title {
  font-family: var(--sp-font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--sp-text-main);
  margin: 0 0 32px;
}

.sp-hero-title .sp-gradient {
  background: linear-gradient(135deg, #0f172a 20%, var(--sp-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.is-tech .sp-hero-title .sp-gradient {
  background: linear-gradient(135deg, #0f172a 20%, var(--sp-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.is-growth .sp-hero-title .sp-gradient {
  background: linear-gradient(135deg, #0f172a 20%, var(--sp-emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-hero-sub {
  font-family: var(--sp-font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--sp-text-sub);
  max-width: 700px;
  margin: 12px auto 0;
  font-weight: 400;
}

/* -------------------------------------------------------- Filter Chips -- */

.sp-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.sp-filter-btn {
  appearance: none;
  border: 1px solid var(--sp-border);
  background: #ffffff;
  color: var(--sp-text-sub);
  font-family: 'Space Grotesk', var(--sp-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.sp-filter-btn:hover {
  border-color: #cbd5e1;
  color: var(--sp-text-main);
  transform: translateY(-1px);
}

.sp-filter-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.is-tech .sp-filter-btn.is-active { background: var(--sp-blue); border-color: var(--sp-blue); }
.is-growth .sp-filter-btn.is-active { background: var(--sp-emerald); border-color: var(--sp-emerald); }

/* -------------------------------------------------------- services grid -- */

.sp-services {
  padding: 80px 0 100px;
  background: var(--sp-bg-main);
}

.sp-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.sp-section-label {
  font-family: 'Space Grotesk', var(--sp-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sp-text-muted);
  margin-bottom: 12px;
  display: block;
}

.sp-section-title {
  font-family: var(--sp-font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--sp-text-main);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.sp-section-desc {
  font-family: var(--sp-font-body);
  max-width: 640px;
  margin: 0 auto;
  color: var(--sp-text-sub);
  font-size: 16px;
  line-height: 1.6;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1000px;
}

/* --------------------------------------------------------- service card -- */

.sp-card {
  position: relative;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--sp-shadow);
  transition: transform 0.4s var(--sp-ease), box-shadow 0.4s var(--sp-ease), border-color 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}

.sp-card.is-hidden {
  display: none !important;
}

.sp-card:hover {
  box-shadow: var(--sp-shadow-hover);
  border-color: var(--sp-border-hover);
}

/* Card Image Container */
.sp-card-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f1f5f9;
}

.sp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--sp-ease);
}

.sp-card:hover .sp-card-img img {
  transform: scale(1.09);
}

.sp-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.55) 100%);
  pointer-events: none;
}

.sp-card-num {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Space Grotesk', monospace;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 1px;
}

.sp-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 3px 10px;
  border-radius: 100px;
}

.sp-card-icon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.sp-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--sp-text-main);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.is-tech .sp-card:hover .sp-card-icon svg { stroke: var(--sp-blue); }
.is-growth .sp-card:hover .sp-card-icon svg { stroke: var(--sp-emerald); }

.sp-card-body {
  padding: 0 4px 4px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sp-card-title {
  font-family: var(--sp-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-text-main);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.sp-card-desc {
  font-family: var(--sp-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--sp-text-sub);
  margin: 0 0 20px;
  flex-grow: 1;
}

/* Feature tags */
.sp-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.sp-card-feat {
  font-family: var(--sp-font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: background 0.2s ease, color 0.2s ease;
}

.sp-card:hover .sp-card-feat {
  background: #e2e8f0;
  color: #0f172a;
}

/* ----------------------------------------------------- process section -- */

.sp-process {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
}

.sp-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.sp-process-card {
  background: #f8fafc;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}

.sp-process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow-hover);
  background: #ffffff;
}

.sp-process-num {
  font-family: var(--sp-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sp-coral);
  margin-bottom: 12px;
}

.is-tech .sp-process-num { color: var(--sp-blue); }
.is-growth .sp-process-num { color: var(--sp-emerald); }

.sp-process-title {
  font-family: var(--sp-font-display);
  font-size: 1.2rem;
  color: var(--sp-text-main);
  margin: 0 0 8px;
  font-weight: 700;
}

.sp-process-desc {
  font-family: var(--sp-font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sp-text-sub);
  margin: 0;
}

/* ---------------------------------------------------------- stats strip -- */

.sp-stats {
  padding: 80px 0;
  background: #f8fafc;
}

.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sp-stat {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
}

.sp-stat:hover {
  transform: translateY(-2px);
}

.sp-stat-num {
  font-family: var(--sp-font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--sp-text-main);
  display: block;
}

.is-tech .sp-stat-num { color: var(--sp-blue); }
.is-growth .sp-stat-num { color: var(--sp-emerald); }

.sp-stat-label {
  font-family: var(--sp-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sp-text-sub);
  margin-top: 6px;
  line-height: 1.4;
}

/* ------------------------------------------------------------ CTA strip -- */

.sp-cta {
  padding: 100px 0;
  background: #ffffff;
  text-align: center;
}

.sp-cta-content {
  max-width: 680px;
  margin: 0 auto;
}

.sp-cta-title {
  font-family: var(--sp-font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--sp-text-main);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.sp-cta-desc {
  font-family: var(--sp-font-body);
  font-size: 16px;
  color: var(--sp-text-sub);
  margin: 0 0 36px;
  line-height: 1.6;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--sp-font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.sp-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.22);
}

.sp-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.sp-btn--outline {
  background: transparent;
  color: var(--sp-text-main);
  border: 1px solid var(--sp-border);
  box-shadow: none;
  margin-left: 12px;
}

.sp-btn--outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
  .sp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-process-grid, .sp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sp-grid, .sp-process-grid, .sp-stats-grid {
    grid-template-columns: 1fr;
  }
  .sp-hero {
    padding: 140px 16px 60px;
  }
  .sp-btn--outline {
    margin-left: 0;
    margin-top: 12px;
  }
}

/* =============================================================================
   Added with the copy rewrite: the hero fact strip, the three lead cards, the
   plain capability rows, the schedule table and the "not a fit" block.
   The nine-identical-cards grid is gone — that uniformity was most of why the
   page read as generated.
   ========================================================================== */

/* ---------------------------------------------------- hero fact strip -- */

.sp-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 40px auto 0;
  max-width: 900px;
}

.sp-fact {
  flex: 1 1 220px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--sp-border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

.sp-fact dt {
  font-family: var(--sp-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sp-text-main);
}

.sp-fact dd {
  margin: 5px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--sp-text-sub);
}

/* ---------------------------------------------------------- lead cards -- */

.sp-grid--lead {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.sp-card--lead .sp-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* What actually ships, rather than four keyword pills that said nothing. */
.sp-ships {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sp-ships li {
  position: relative;
  padding-left: 26px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sp-text-sub);
}

.sp-ships li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sp-blue);
  opacity: 0.75;
}

.sp-card-meta {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--sp-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sp-text-muted);
}

/* ------------------------------------------------------- plain rows -- */

.sp-sub-head {
  margin: 0 0 22px;
  font-family: var(--sp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sp-text-muted);
}

.sp-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  border-top: 1px solid var(--sp-border);
}

.sp-line {
  padding: 24px 0;
  border-bottom: 1px solid var(--sp-border);
}

.sp-line.is-hidden {
  display: none;
}

.sp-line-title {
  margin: 0 0 6px;
  font-family: var(--sp-font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sp-text-main);
}

.sp-line-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sp-text-sub);
}

/* ------------------------------------------------------------- table -- */

.sp-table {
  margin-top: 44px;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--sp-bg-card);
  box-shadow: var(--sp-shadow);
}

.sp-tr {
  display: grid;
  grid-template-columns: 1.1fr 1fr 2.2fr;
  gap: 20px;
  padding: 20px 26px;
  border-top: 1px solid var(--sp-border);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--sp-text-sub);
}

.sp-tr:first-child {
  border-top: 0;
}

.sp-tr--head {
  background: var(--sp-bg-main);
  font-family: var(--sp-font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-text-muted);
}

.sp-tr b {
  color: var(--sp-text-main);
  font-weight: 700;
}

.sp-note {
  margin: 26px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--sp-blue);
  border-radius: 0 12px 12px 0;
  background: rgba(37, 99, 235, 0.05);
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--sp-text-sub);
}

.sp-note b {
  color: var(--sp-text-main);
}

/* ------------------------------------------------------- what's included -- */

.sp-stats-head {
  text-align: center;
  margin-bottom: 34px;
}

.sp-stats-title {
  margin: 0;
  font-family: var(--sp-font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sp-text-main);
}

/* --------------------------------------------------------- not a fit -- */

.sp-limits {
  padding: 90px 0;
  background: var(--sp-bg-main);
}

.sp-limits-inner {
  max-width: 820px;
  margin: 0 auto;
}

.sp-limits-title {
  margin: 0 0 26px;
  font-family: var(--sp-font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sp-text-main);
}

.sp-limits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-limits-list li {
  position: relative;
  padding: 20px 0 20px 42px;
  border-top: 1px solid var(--sp-border);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sp-text-sub);
}

.sp-limits-list li:last-child {
  border-bottom: 1px solid var(--sp-border);
}

/* A struck-through dash rather than a tick: these are the ones we decline. */
.sp-limits-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 31px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sp-coral);
}

/* --------------------------------------------------------- cta buttons -- */

.sp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* ------------------------------------------------------------ mobile -- */

@media (max-width: 1000px) {
  .sp-grid--lead {
    grid-template-columns: 1fr;
  }

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

  .sp-tr {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sp-tr--head {
    display: none;
  }

  .sp-tr span:nth-child(2) {
    font-weight: 600;
    color: var(--sp-text-main);
  }
}

@media (max-width: 768px) {
  .sp-hero {
    padding: 130px 20px 70px !important;
  }

  .sp-hero-title {
    margin-top: 16px !important;
    margin-bottom: 24px !important;
  }
}
