/**
* Jasiri Technologies — Landing page
* Bespoke, clean corporate styling for the M-Chama product site.
* Brand accent: #00B3F7  ·  Headings: Nunito  ·  Body: Inter
*/

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
  --brand        : #00B3F7;
  --brand-600    : #0098da;
  --brand-700    : #007cb4;
  --brand-tint   : #e9f7fe;
  --brand-tint-2 : #f4fbff;

  --ink          : #14273b;
  --heading      : #1d3551;
  --body         : #51637a;
  --muted        : #8193a8;

  --line         : #e7eef6;
  --line-strong  : #d7e3ef;
  --bg           : #ffffff;
  --bg-soft      : #f5faff;
  --bg-navy      : #0e2236;

  --radius-lg    : 18px;
  --radius       : 14px;
  --radius-sm    : 10px;

  --shadow-sm    : 0 1px 2px rgba(20, 39, 59, .06), 0 1px 1px rgba(20, 39, 59, .04);
  --shadow-md    : 0 14px 34px -16px rgba(20, 39, 59, .22);
  --shadow-card  : 0 1px 3px rgba(20, 39, 59, .06), 0 8px 24px -18px rgba(20, 39, 59, .25);

  --font-head    : "Nunito", system-ui, sans-serif;
  --font-body    : "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h     : 76px;
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
* { box-sizing: border-box; }

html, body.index-page { overflow-x: hidden; max-width: 100%; }

body.index-page {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--heading);
  margin: 0 0 .4em;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}

p { margin: 0 0 1rem; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-600); }

img { max-width: 100%; height: auto; }

.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* Section heading block */
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
  margin-bottom: 14px;
}
.section-head p { font-size: 1.06rem; color: var(--body); margin: 0; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-tint);
  border: 1px solid #cfeefc;
  padding: 6px 14px;
  border-radius: 999px;
}
.eyebrow i { font-size: .95rem; }

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.j-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.j-btn i { font-size: 1.05rem; }
.j-btn:active { transform: translateY(1px); }

.j-btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.j-btn--primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }

.j-btn--ghost {
  background: #fff;
  color: var(--heading);
  border-color: var(--line-strong);
}
.j-btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-tint-2); }

.j-btn--light {
  background: #fff;
  color: var(--brand-700);
}
.j-btn--light:hover { background: #eef9ff; color: var(--brand-700); transform: translateY(-1px); }

.j-btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.j-btn--block { width: 100%; }

/*--------------------------------------------------------------
# Header / Navigation
--------------------------------------------------------------*/
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
body.scrolled .header {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 39, 59, .35);
  background: rgba(255, 255, 255, .92);
}
.header .header-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo img { height: 34px; width: auto; display: block; }
.logo .brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1;
}
.logo .brand-name span { color: var(--brand); }

.navmenu ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.navmenu a {
  display: block;
  font-weight: 500;
  font-size: .96rem;
  color: var(--heading);
  padding: 9px 14px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.navmenu a:hover { color: var(--brand-700); background: var(--brand-tint-2); }
.navmenu a.active { color: var(--brand-700); }

.header-cta { display: inline-flex; align-items: center; gap: 14px; }
.mobile-nav-toggle { display: none; font-size: 28px; color: var(--ink); cursor: pointer; }

@media (max-width: 991px) {
  .header-cta .j-btn { display: none; }
  .mobile-nav-toggle { display: block; position: relative; z-index: 1101; }

  /* Backdrop — only shown when active. The toggle stays visible. */
  .navmenu::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(14, 34, 54, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1099;
  }
  /* Slide-in panel */
  .navmenu ul {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 92px 18px 24px;
    box-shadow: -20px 0 50px -25px rgba(20, 39, 59, .4);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    z-index: 1100;
  }
  .navmenu a { font-size: 1.05rem; padding: 13px 14px; }
  body.mobile-nav-active { overflow: hidden; }
  body.mobile-nav-active .navmenu::before { opacity: 1; visibility: visible; }
  body.mobile-nav-active .navmenu ul { transform: translateX(0); visibility: visible; }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  padding: calc(var(--header-h) + 72px) 0 84px;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--brand-tint-2) 0%, rgba(244, 251, 255, 0) 55%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--brand); }
.hero .lead {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
}
.hero-assurance span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assurance i { color: var(--brand); font-size: 1.05rem; }

/* Hero visual — device frame */
.hero-visual { position: relative; display: flex; justify-content: center; }
.device {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow-md);
}
.device::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 6px;
  background: #e3ebf3;
  border-radius: 999px;
}
.device img { display: block; width: 100%; border-radius: 28px; }

.hero-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-badge .hb-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero-badge .hb-text strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
.hero-badge .hb-text small { color: var(--muted); font-size: .78rem; }
.hero-badge.badge-a { left: -28px; top: 30%; }
.hero-badge.badge-b { right: -22px; bottom: 14%; }
.hb-green { background: #16a571; }
.hb-blue  { background: var(--brand); }

@media (max-width: 991px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-assurance { justify-content: center; }
  .hero-badge.badge-a { left: 0; }
  .hero-badge.badge-b { right: 0; }
}
@media (max-width: 480px) {
  .hero-badge { display: none; }
}

/*--------------------------------------------------------------
# Trust / value band (about)
--------------------------------------------------------------*/
.value { background: var(--bg); }
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.value-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px;
}
.value-media img { display: block; margin: 0 auto; max-height: 340px; }
.value h2 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.2rem); margin: 16px 0 16px; }
.value > .container > .value-grid .value-copy p { font-size: 1.05rem; }

.value-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.value-points li { display: flex; gap: 13px; }
.value-points .vp-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--brand-tint);
  color: var(--brand-700);
  display: grid; place-items: center;
  font-size: .9rem;
  margin-top: 2px;
}
.value-points strong { color: var(--heading); font-family: var(--font-head); font-weight: 700; }

@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr; gap: 36px; }
  .value-media { order: -1; }
}

/*--------------------------------------------------------------
# Features grid
--------------------------------------------------------------*/
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.feature-card .fc-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { font-size: .95rem; margin: 0; color: var(--body); }

.fc-blue   { background: var(--brand-tint); color: var(--brand-700); }
.fc-green  { background: #e6f7f0; color: #15916a; }
.fc-amber  { background: #fff3e0; color: #d98513; }
.fc-violet { background: #eef0ff; color: #5d63d6; }

@media (max-width: 991px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features-grid { grid-template-columns: 1fr; } }

/*--------------------------------------------------------------
# Showcase (app + feature list)
--------------------------------------------------------------*/
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
}
.showcase-phone { display: flex; justify-content: center; }
.showcase-phone .device { width: 270px; }

.showcase-item { margin-bottom: 34px; }
.showcase-item:last-child { margin-bottom: 0; }
.showcase-item .si-head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.showcase-col.is-right .si-head { flex-direction: row; }
.showcase-col.is-left .si-head { flex-direction: row-reverse; text-align: right; }
.showcase-col.is-left .showcase-item p { text-align: right; }
.si-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.showcase-item h3 { font-size: 1.08rem; margin: 0; }
.showcase-item p { font-size: .94rem; margin: 0; color: var(--body); }

@media (max-width: 991px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 14px; }
  .showcase-phone { order: -1; margin-bottom: 18px; }
  .showcase-col.is-left .si-head,
  .showcase-col.is-right .si-head { flex-direction: row; text-align: left; }
  .showcase-col.is-left .showcase-item p { text-align: left; }
}

/*--------------------------------------------------------------
# How it works
--------------------------------------------------------------*/
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
}
.step .step-num {
  counter-increment: step;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.step .step-num::before { content: counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .95rem; margin: 0; color: var(--body); }

@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

/*--------------------------------------------------------------
# FAQ
--------------------------------------------------------------*/
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.faq-intro h2 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.2rem); margin: 14px 0 14px; }
.faq-intro p { color: var(--body); }
.faq-intro .faq-help {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--brand-tint-2);
  border: 1px solid #d6eefc;
  border-radius: var(--radius);
  font-size: .95rem;
}

.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item h3 {
  font-size: 1.04rem;
  margin: 0;
  padding: 20px 34px 20px 0;
  position: relative;
  cursor: pointer;
  color: var(--heading);
  font-weight: 700;
}
.faq-item .faq-toggle {
  position: absolute;
  right: 0; top: 22px;
  font-size: 1.1rem;
  color: var(--brand);
  transition: transform .25s ease;
  cursor: pointer;
}
.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item .faq-content p { margin: 0; padding-bottom: 4px; font-size: .96rem; color: var(--body); }
.faq-item.faq-active { box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.faq-item.faq-active .faq-toggle { transform: rotate(90deg); }
.faq-item.faq-active .faq-content { max-height: 420px; padding-bottom: 20px; }

@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } }

/*--------------------------------------------------------------
# Demo request (contact)
--------------------------------------------------------------*/
.demo { background: var(--bg-soft); border-top: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: stretch; }

.demo-info {
  background: var(--bg-navy);
  color: #cdd9e6;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.demo-info h3 { color: #fff; font-size: 1.45rem; margin-bottom: 12px; }
.demo-info > p { color: #a9bacb; margin-bottom: 26px; }
.demo-benefits { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.demo-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.demo-benefits .db-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(0, 179, 247, .16);
  color: #5ccdfb;
  display: grid; place-items: center;
  font-size: 1.15rem;
}
.demo-benefits strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 2px; }
.demo-benefits span { font-size: .9rem; color: #9fb2c5; }
.demo-contact {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  font-size: .94rem;
}
.demo-contact a { color: #5ccdfb; }
.demo-contact .dc-row { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.demo-contact i { color: #5ccdfb; }

.demo-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 38px 36px;
}
.demo-form-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.demo-form-card > p { color: var(--body); margin-bottom: 26px; font-size: .98rem; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .86rem; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: #a7b4c4; }
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 179, 247, .14);
}
textarea.form-control { resize: vertical; min-height: 110px; }
.form-control.is-invalid { border-color: #e0394b; }
.invalid-feedback { display: block; color: #d12c3f; font-size: .82rem; margin-top: 6px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 11px;
  font-size: .94rem;
  font-weight: 500;
  margin-bottom: 22px;
  border: 1px solid transparent;
}
.form-alert i { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.form-alert--success { background: #e7f7ef; border-color: #bfe9d5; color: #14774f; }
.form-alert--error   { background: #fdeced; border-color: #f6c9ce; color: #b62a39; }

@media (max-width: 991px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--bg-navy);
  color: #9fb2c5;
  padding: 56px 0 28px;
}
.footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer .f-brand { max-width: 340px; }
.footer .f-brand .logo { margin-bottom: 14px; }
.footer .f-brand .logo img { filter: brightness(0) invert(1); height: 30px; }
.footer .f-brand .brand-name { color: #fff; }
.footer .f-brand p { color: #93a6ba; font-size: .94rem; margin: 0; }
.footer .f-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .f-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer .f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .f-col a { color: #9fb2c5; font-size: .94rem; }
.footer .f-col a:hover { color: #5ccdfb; }
.footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: .88rem;
  color: #7d92a8;
}
.footer .footer-bottom p { margin: 0; }
.footer .footer-bottom a { color: #9fb2c5; }
.footer .footer-bottom a:hover { color: #5ccdfb; }

@media (max-width: 640px) {
  .footer .footer-top { flex-direction: column; gap: 26px; }
  .footer .f-links { gap: 40px; }
}

/*--------------------------------------------------------------
# Scroll-to-top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 999;
}
.scroll-top i { font-size: 1.4rem; }
.scroll-top:hover { background: var(--brand-600); color: #fff; }
.scroll-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
