/* ==========================================================================
   ShaPay Modern Fintech Public Frontend Styles
   Brand Palette: Cobalt Blue (#011DAC), Electric Cyan (#08F5FF), Vault Night (#0B132B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --sp-primary: #011DAC;
  --sp-primary-hover: #001585;
  --sp-primary-soft: #EEF2FF;
  --sp-cyan: #08F5FF;
  --sp-night: #0B132B;
  --sp-text: #0F172A;
  --sp-text-secondary: #334155;
  --sp-text-muted: #64748B;
  --sp-border: #E2E8F0;
  --sp-surface: #FFFFFF;
  --sp-bg-soft: #F8FAFC;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--sp-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.section-header p,
.navbar a {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Accessible Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sp-primary) !important;
  outline-offset: 2px;
}

/* Header & Navigation */
.header {
  padding: 14px 0;
  transition: all 0.22s ease;
}

.header.header-scrolled {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(1, 29, 172, 0.05) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar a,
.navbar a:focus {
  color: #1E293B;
  font-weight: 600;
  font-size: 14.5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--sp-primary) !important;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  background: linear-gradient(135deg, #011DAC 0%, #1435E0 100%) !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(1, 29, 172, 0.25);
}

.navbar .getstarted:hover {
  background: linear-gradient(135deg, #001585 0%, #011DAC 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Section Headers */
.section-header h2 {
  display: inline-block;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  font-weight: 800 !important;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sp-primary-soft);
  color: var(--sp-primary) !important;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--sp-text) !important;
  font-size: 34px !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

@media (max-width: 768px) {
  .section-header p {
    font-size: 26px !important;
  }
}

/* 1. "We Offer" Bento SVG Cards (#about) */
.values .sp-offer-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  padding: 30px 28px;
  text-align: left;
  height: 100%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), 0 10px 26px rgba(1, 29, 172, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.values .sp-offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 29, 172, 0.28);
  box-shadow: 0 12px 32px rgba(1, 29, 172, 0.09);
}

.sp-offer-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EEF2FF 0%, rgba(8, 245, 255, 0.16) 100%);
  border: 1px solid rgba(1, 29, 172, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-primary);
  margin-bottom: 20px;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.values .sp-offer-card:hover .sp-offer-icon {
  background: linear-gradient(135deg, #011DAC 0%, #1535DF 100%);
  color: #08F5FF;
  transform: scale(1.04);
}

.values .sp-offer-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--sp-text);
  margin-bottom: 10px;
}

.values .sp-offer-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sp-text-muted);
  margin: 0;
}

/* 2. Counts Metrics Strip (#counts) */
.counts {
  padding: 40px 0 60px;
}

.counts .count-box {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), 0 8px 22px rgba(1, 29, 172, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
}

.counts .sp-count-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EEF2FF 0%, rgba(8, 245, 255, 0.16) 100%);
  color: var(--sp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.counts .count-box span.purecounter {
  font-size: 30px;
  font-weight: 800;
  color: var(--sp-text);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.counts .count-box p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-text-muted);
  margin-top: 2px;
}

/* 3. Features & Bespoke Webhook Pipeline Visual (#features) */
.sp-pipeline-card {
  background: linear-gradient(160deg, #0B132B 0%, #091747 58%, #011DAC 100%);
  border-radius: 24px;
  padding: 28px;
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(1, 29, 172, 0.2);
  border: 1px solid rgba(8, 245, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.sp-pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-pipeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(8, 245, 255, 0.14);
  border: 1px solid rgba(8, 245, 255, 0.35);
  color: #08F5FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sp-pipeline-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.sp-pipeline-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(8, 245, 255, 0.15);
  color: #08F5FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-pipeline-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px;
}

.sp-pipeline-step p {
  font-size: 12.5px;
  color: #CBD5E1;
  margin: 0;
}

.sp-pipeline-code {
  margin-top: 14px;
  background: rgba(5, 10, 25, 0.72);
  border: 1px solid rgba(8, 245, 255, 0.2);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #E2E8F0;
}

.features .feature-box {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  padding: 18px 18px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  gap: 12px;
  transition: all 0.2s ease;
}

.features .feature-box:hover {
  border-color: rgba(1, 29, 172, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 29, 172, 0.07);
}

.features .feature-box .sp-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sp-primary-soft);
  color: var(--sp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.features .feature-box:hover .sp-feat-icon {
  background: var(--sp-primary);
  color: var(--sp-cyan);
}

.features .feature-box h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--sp-text) !important;
}

/* 4. Cohesive Services Grid (#services) */
.services .sp-service-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  padding: 32px 28px;
  height: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), 0 10px 24px rgba(1, 29, 172, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.services .sp-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #011DAC, #08F5FF);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.services .sp-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 29, 172, 0.28);
  box-shadow: 0 14px 32px rgba(1, 29, 172, 0.09);
}

.services .sp-service-card:hover::before {
  opacity: 1;
}

.services .sp-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sp-primary-soft);
  color: var(--sp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.services .sp-service-card:hover .sp-service-icon {
  background: var(--sp-primary);
  color: var(--sp-cyan);
}

.services .sp-service-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--sp-text);
  margin-bottom: 10px;
}

.services .sp-service-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sp-text-muted);
  margin: 0;
}

/* 5. Modern Fintech Pricing Cards (#pricing) */
.pricing .box {
  padding: 32px 26px !important;
  border-radius: 20px !important;
  border: 1px solid var(--sp-border) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  text-align: left !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing .box:hover {
  transform: translateY(-5px) !important;
  border-color: var(--sp-primary) !important;
  box-shadow: 0 16px 36px rgba(1, 29, 172, 0.1) !important;
}

.pricing .box.sp-featured-plan {
  border: 2px solid var(--sp-primary) !important;
  box-shadow: 0 16px 40px rgba(1, 29, 172, 0.12) !important;
}

.pricing .box h3 {
  color: var(--sp-primary) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
}

.pricing .price {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--sp-text) !important;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.pricing .price span {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--sp-text-muted) !important;
}

.pricing ul {
  text-align: left !important;
  margin: 16px 0 24px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--sp-border);
  flex: 1;
}

.pricing ul li {
  font-size: 14px !important;
  color: var(--sp-text-secondary) !important;
  padding-bottom: 10px !important;
}

.pricing .btn-buy {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 24px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: var(--sp-primary) !important;
  border: 1.5px solid var(--sp-primary) !important;
  background: transparent;
}

.pricing .box.sp-featured-plan .btn-buy,
.pricing .btn-buy:hover {
  background: linear-gradient(135deg, #011DAC 0%, #1535DF 100%) !important;
  border-color: #011DAC !important;
  color: #FFFFFF !important;
}

/* 6. Contact Cards (#contact) */
.contact .info-box {
  background: var(--sp-surface) !important;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  padding: 26px 24px !important;
  height: 100%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.contact .sp-contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sp-primary-soft);
  color: var(--sp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.contact .info-box h3 {
  color: var(--sp-text) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
