/* LipaKitu — corporate static site */
:root {
  --navy: #0c2340;
  --navy-mid: #123b69;
  --blue: #0b5cad;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --ink: #1a1a2e;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f7f9fc;
  --bg-soft: #f1f5f9;
  --white: #ffffff;
  --green: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 20px 60px rgba(12, 35, 64, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --max: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy-mid) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 1rem;
  font-weight: 800;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
}

.nav-desktop a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--accent);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--navy-mid);
  color: white !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--white);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  z-index: 99;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.85rem 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background: linear-gradient(160deg, var(--navy) 0%, #0f3460 45%, var(--navy-mid) 100%);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(11, 92, 173, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero h1 span {
  background: linear-gradient(90deg, #93c5fd, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: white;
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); }

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.stat-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
}

.hero-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.channel-pill {
  padding: 0.35rem 0.75rem;
  background: rgba(37, 99, 235, 0.25);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #bfdbfe;
}

/* ── Sections ── */
section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 3rem;
}

/* ── Products ── */
.products { background: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

.product-icon.payments { background: #dbeafe; }
.product-icon.wallet   { background: #dcfce7; }
.product-icon.sacco    { background: #fef3c7; }
.product-icon.gps      { background: #e0e7ff; }
.product-icon.ai       { background: #f3e8ff; }
.product-icon.fuel     { background: #ffedd5; }
.product-icon.admin    { background: #f1f5f9; }
.product-icon.ussd     { background: #ccfbf1; }

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.product-card p {
  font-size: 0.925rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.payment-rails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.payment-rails-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  width: 100%;
  margin-bottom: 0.15rem;
}

.payment-rails-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.payment-rails-logos img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.payment-rails-logos img.pesalink-logo {
  height: 22px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  border: 1px solid var(--border);
}

.tag.live { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.tag.pilot { background: #fef3c7; color: #b45309; border-color: #fde68a; }

/* ── Platform ── */
.platform { background: var(--bg); }

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.platform-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.platform-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.platform-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.975rem;
  margin-bottom: 0.2rem;
}

.platform-list span {
  font-size: 0.875rem;
  color: var(--muted);
}

.diagram-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.flow-node {
  padding: 0.6rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-mid);
  text-align: center;
  min-width: 90px;
}

.flow-node.highlight {
  background: linear-gradient(135deg, var(--accent), var(--navy-mid));
  color: white;
  border: none;
}

.flow-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.flow-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── About ── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.value-cards {
  display: grid;
  gap: 1rem;
}

.value-card {
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.value-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.value-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Contact ── */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
}

.contact .section-label { color: #93c5fd; }
.contact .section-title { color: white; }
.contact .section-lead { color: rgba(255, 255, 255, 0.75); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.contact-card a:hover { color: #bfdbfe; }

/* ── Footer ── */
.site-footer {
  background: #071525;
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover { color: white; }

/* ── Privacy page ── */
.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.legal-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin-inline: auto;
}

.legal-card h1 {
  font-family: var(--font-display);
  color: var(--navy-mid);
  margin-top: 0;
}

.legal-card h2 {
  color: var(--navy-mid);
  font-size: 1.15rem;
  margin-top: 2rem;
}

.legal-card .updated { color: var(--muted); font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid,
  .platform-grid,
  .about-grid { grid-template-columns: 1fr; }

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

  .hero-visual { order: -1; }
}

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }

  .product-grid { grid-template-columns: 1fr; }

  .hero { padding-bottom: 3.5rem; }
  .hero-stats { grid-template-columns: 1fr; }

  section { padding: 3.5rem 0; }
}
