/* ============================================================
   KiVaan Solutions — Global Stylesheet
   Modern corporate design system
   ============================================================ */

:root {
  --navy-900: #0a1f44;
  --navy-800: #102a5c;
  --navy-700: #1a3a7a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --accent: #00c2a8;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.06);
  --shadow-lg: 0 18px 40px rgba(10,31,68,.12), 0 4px 12px rgba(10,31,68,.08);
  --container: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--slate-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.78); }
.section-muted { background: var(--slate-50); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--accent); }

.lead {
  font-size: 1.15rem;
  color: var(--slate-700);
  max-width: 720px;
}
.section-dark .lead { color: rgba(255,255,255,.85); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--navy-900); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--blue-600);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-800); color: white; box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-300);
}
.btn-ghost:hover { background: var(--slate-50); color: var(--navy-900); }
.btn-light {
  background: white;
  color: var(--navy-900);
}
.btn-light:hover { background: var(--slate-100); color: var(--navy-900); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: white;
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: white; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #f8fbff 0%, #eef4ff 100%);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(37,99,235,.18), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(0,194,168,.16), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; margin-bottom: 28px; }
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  align-items: center;
  color: var(--slate-500);
  font-size: .9rem;
}
.hero-trust strong { color: var(--navy-900); }

.hero-visual {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: white;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(400px 200px at 20% 100%, rgba(0,194,168,.30), transparent 60%);
}
.hero-visual .badge {
  position: relative;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .04em;
}
.hero-visual .badge .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,194,168,.25);
}
.hero-visual .stack {
  position: relative;
  display: grid;
  gap: 12px;
}
.hero-card {
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: .92rem;
  backdrop-filter: blur(6px);
}
.hero-card .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-card small { display: block; color: rgba(255,255,255,.7); font-size: .78rem; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: white;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.card .icon-tile {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p  { margin: 0; }

.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  color: var(--slate-700);
  font-size: .95rem;
  border-top: 1px dashed var(--slate-100);
}
.feature-list li:first-child { border-top: 0; }
.feature-list li::before {
  content: "✓";
  color: var(--blue-600);
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: left;
}
.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.section-dark .stat .num { color: white; }
.stat .lbl { color: var(--slate-500); font-size: .9rem; }
.section-dark .stat .lbl { color: rgba(255,255,255,.7); }

/* ---------- Process / Timeline ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--slate-100);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px; left: 20px;
  background: var(--navy-900);
  color: white;
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 8px;
}
.step h4 { margin: 12px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--blue-600));
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: white; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: white;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: white; }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
}

/* ---------- Page headers ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-900), var(--blue-600));
  color: white;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 250px at 90% 10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(500px 250px at 10% 90%, rgba(0,194,168,.16), transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; }
.page-header h1 { color: white; max-width: 800px; }
.page-header p.lead { color: rgba(255,255,255,.85); }
.page-header .eyebrow { color: var(--accent); }
.breadcrumb {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: white; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  background: white;
  color: var(--slate-900);
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
textarea { min-height: 140px; resize: vertical; }

/* ---------- Misc ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--blue-600);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.divider { height: 1px; background: var(--slate-100); margin: 32px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.faq details {
  background: white;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--blue-600);
  font-size: 1.3rem;
  font-weight: 600;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .95rem;
  opacity: .9;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .stats, .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
  .page-header { padding: 72px 0 56px; }
  .hero { padding: 72px 0 56px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2, .stats, .steps, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--slate-100);
    gap: 14px;
  }
  .nav.open .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .section { padding: 56px 0; }
}
