/*
 * =========================================================
 * NAV
 * =========================================================
 */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.wordmark-mark {
  color: var(--mpesa-green);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-800);
}

.nav-links a:hover {
  color: var(--mpesa-green-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions .btn-ghost {
  padding: 10px 18px;
}

.nav-actions .btn-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/*
 * =========================================================
 * HERO
 * =========================================================
 */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 166, 81, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-title {
    
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  color: var(--navy-900);
}

.hero-title .accent {
  color: var(--mpesa-green-dark);
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--mpesa-green-dark);
  flex-shrink: 0;
}

/*
 * =========================================================
 * SIGNATURE ELEMENT — the Lipa na Codesphere sticker
 * =========================================================
 */

.sticker-wrap {
  display: flex;
  justify-content: center;
}

.sticker {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  border: 1px solid var(--line);
  animation: sticker-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sticker-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-1.2deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1.2deg) scale(1);
  }
}

.sticker-head {
  background: var(--navy-900);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
}

.sticker-head strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.sticker-channel {
  margin: 12px auto 0;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
}

.sticker-body {
  padding: 22px 24px 20px;
}

.sticker-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.sticker-digits {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.sticker-digit {
  flex: 1;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-900);
  background: var(--navy-050);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  animation: digit-in 0.4s ease forwards;
}

@keyframes digit-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticker-business {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-800);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 4px;
}

.sticker-business span:first-child {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.sticker-business span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.sticker-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.sticker-preview-tag {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 14px;
}

/*
 * =========================================================
 * SECTION SCAFFOLDING
 * =========================================================
 */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy-900);
}

.section-subtitle {
  margin-top: 14px;
  font-size: 1.02rem;
}

/*
 * =========================================================
 * ADVANTAGES
 * =========================================================
 */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.advantage-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--navy-050);
  color: var(--mpesa-green-dark);
  margin-bottom: 16px;
}

.advantage-icon svg {
  width: 22px;
  height: 22px;
}

.advantage-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.advantage-text {
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * =========================================================
 * HOW IT WORKS
 * =========================================================
 */

.steps-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 28px 20px 24px;
  border-top: 3px solid var(--mpesa-green);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mpesa-green-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .steps-rail {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .steps-rail {
    grid-template-columns: 1fr;
  }
}

/*
 * =========================================================
 * PRICING NOTE
 * =========================================================
 */

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  flex-wrap: wrap;
}

.pricing-note-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pricing-note-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

.pricing-note .btn-primary {
  flex-shrink: 0;
}

/*
 * =========================================================
 * FINAL CTA
 * =========================================================
 */

.final-cta {
  text-align: center;
  padding: 96px 0 100px;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--navy-900);
  margin-bottom: 14px;
}

.final-cta p {
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: 1.02rem;
}

/*
 * =========================================================
 * FOOTER
 * =========================================================
 */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--mpesa-green-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 28px;
  }
}
/*
 * =========================================================
 * BRAND TOKENS — override / extend your base theme
 * Shiny enterprise blue as primary, M-PESA green kept only
 * on the physical sticker (that's what makes it read as real)
 * =========================================================
 */

:root {
  --brand-blue: #0a63ff;
  --brand-blue-dark: #0442b8;
  --brand-blue-light: #4d94ff;
  --brand-blue-050: #eef4ff;
  --brand-blue-100: #dbe9ff;
  --brand-gradient: linear-gradient(135deg, #0a63ff 0%, #0442b8 100%);
  --shadow-blue: 0 12px 30px -8px rgba(10, 99, 255, 0.45);
  --shadow-blue-lg: 0 24px 60px -16px rgba(10, 99, 255, 0.4);
}

/*
 * =========================================================
 * NAV — glassy, enterprise
 * =========================================================
 */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark-mark {
  color: var(--brand-blue);
}

.nav-links a:hover {
  color: var(--brand-blue-dark);
}

.landing .btn-primary {
  background: var(--brand-gradient);
  border: none;
  box-shadow: var(--shadow-blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.landing .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-lg);
  filter: brightness(1.05);
}

.landing .btn-ghost {
  border: 1px solid var(--line);
  color: var(--navy-800);
}

.landing .btn-ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
}

/*
 * =========================================================
 * HERO — deeper, more "enterprise infrastructure" feel
 * =========================================================
 */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -200px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(10, 99, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(4, 66, 184, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-blue-050);
  color: var(--brand-blue-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

/*
 * =========================================================
 * STICKER — kept authentic M-PESA green, now framed harder
 * so it pops against the blue brand around it
 * =========================================================
 */

.sticker {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-blue-lg);
  overflow: hidden;
  border: 1px solid var(--brand-blue-100);
  animation: sticker-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sticker-shine {
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
}

.sticker-preview-tag {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 14px;
}

/*
 * =========================================================
 * TRUST BAR — elevated card instead of flat strip
 * =========================================================
 */

.trust-bar {
  background: var(--navy-900);
  padding: 40px 0;
}

.trust-bar-line {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-stat {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-stat:first-child {
  border-left: none;
}

.trust-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fff, var(--brand-blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
  .trust-bar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .trust-stat:nth-child(3) {
    border-left: none;
  }
}

/*
 * =========================================================
 * ADVANTAGES — enterprise card treatment
 * =========================================================
 */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
  border-color: var(--brand-blue-100);
}

.advantage-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #fff;
  margin-bottom: 16px;
}

.advantage-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * =========================================================
 * PLACEMENTS
 * =========================================================
 */

.placements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.placement-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--brand-blue-100);
  background: var(--brand-blue-050);
  font-weight: 600;
  color: var(--navy-800);
}

.placement-emoji {
  font-size: 1.1rem;
}

/*
 * =========================================================
 * HOW IT WORKS
 * =========================================================
 */

.steps-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.step-card {
  position: relative;
  padding: 28px 20px 24px;
  border-top: 3px solid var(--brand-blue);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-blue-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .steps-rail {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .steps-rail {
    grid-template-columns: 1fr;
  }
}

/*
 * =========================================================
 * PRICING NOTE
 * =========================================================
 */

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy-900);
  background-image: radial-gradient(circle at 90% 10%, rgba(10, 99, 255, 0.35), transparent 55%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  flex-wrap: wrap;
}

.pricing-note-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

/*
 * =========================================================
 * FINAL CTA
 * =========================================================
 */

.final-cta {
  text-align: center;
  padding: 96px 0 100px;
  background: var(--brand-blue-050);
}

/*
 * =========================================================
 * FOOTER
 * =========================================================
 */

.footer-col a:hover {
  color: var(--brand-blue-dark);
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 28px;
  }
}