/* ===== Krishav Tech & Healthcare — Stylesheet ===== */

:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-2: #22d3ee;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --success: #10b981;
  --grad: linear-gradient(135deg, #22d3ee 0%, #2563eb 50%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(139,92,246,0.12));
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 48px rgba(15,23,42,0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; color: var(--text-soft); }

ul { padding: 0; margin: 0; list-style: none; }

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

.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37,99,235,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,99,235,0.4);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.link-arrow {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.link-arrow:hover { gap: 10px; color: var(--accent); }

/* ===== Navigation ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
  text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer .logo-img {
  height: 56px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 12px;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--text); background: var(--surface-soft); }
.nav-links a.active { color: var(--primary); background: rgba(37,99,235,0.08); }
.nav-links .btn { color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: radial-gradient(ellipse at top, #f0f9ff 0%, #ffffff 60%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: -120px; left: -100px;
}
.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -160px; right: -120px;
  opacity: .4;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content .lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 460px;
}
.hero-stats > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.hero-stats strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.4rem;
}
.hero-stats span { color: var(--muted); font-size: .8rem; }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 500px;
}
.hero-orb {
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(50px);
  opacity: .25;
  animation: orb 8s ease-in-out infinite;
}
@keyframes orb {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.card-glass {
  position: absolute;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
}
.card-glass p { margin: 8px 0 4px; font-weight: 600; color: var(--text); font-size: .95rem; }
.card-glass .metric { color: var(--primary); font-weight: 600; font-size: .85rem; }
.card-pulse {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse 1.6s infinite;
  position: absolute; top: 14px; right: 14px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.float-1 { top: 30px; left: 20px; animation: float 6s ease-in-out infinite; }
.float-2 { top: 180px; right: 10px; animation: float 7s ease-in-out infinite reverse; }
.float-3 { bottom: 20px; left: 80px; animation: float 8s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Page Header ===== */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  text-align: center;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { max-width: 800px; margin: 0 auto 16px; }
.page-header .lead { max-width: 720px; margin: 0 auto; font-size: 1.1rem; color: var(--text-soft); }
.page-header .aurora-1 {
  width: 380px; height: 380px;
  top: -100px; left: -80px;
  opacity: .42;
}
.page-header .aurora-2 {
  width: 460px; height: 460px;
  bottom: -180px; right: -120px;
  opacity: .32;
}
.page-header .aurora-3 {
  width: 280px; height: 280px;
  top: 20%; left: 50%;
  opacity: .2;
}
.page-header .particles span {
  width: 5px; height: 5px;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}
.section-alt { background: var(--surface-soft); }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { font-size: 1.05rem; color: var(--text-soft); }

/* ===== Trust strip ===== */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  background: var(--surface-soft);
}
.trust-label { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.trust-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 32px; color: var(--text-soft); font-weight: 600;
}
.trust-grid > div {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .9rem;
}

/* ===== Services Grid (Home) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card-feature {
  background: linear-gradient(180deg, rgba(236,72,153,0.04), rgba(139,92,246,0.04));
  border-color: rgba(139,92,246,0.2);
}
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(15,23,42,0.12);
}
.feature-tag {
  position: absolute;
  top: 24px; right: 24px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-soft);
  aspect-ratio: 1/1;
  max-width: 460px;
}
.check-list { margin: 24px 0 32px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--text-soft);
}
.check-list li span {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
}
.check-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

/* ===== Service detail rows ===== */
.service-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: 0; }
.service-detail.reverse { grid-template-columns: 1fr 100px; }
.service-detail.reverse .service-detail-icon { order: 2; }
.service-detail-icon {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  box-shadow: 0 16px 32px rgba(15,23,42,0.15);
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: block;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; }

/* ===== CTA Banner ===== */
.cta {
  padding: 80px 0;
  background: var(--bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 20%, rgba(34,211,238,0.18), transparent),
    radial-gradient(ellipse 600px 300px at 80% 80%, rgba(139,92,246,0.18), transparent);
}
.cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.7); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.cta .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ===== Jobs ===== */
.jobs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.jobs-count { color: var(--muted); }
.jobs-count strong { color: var(--text); font-size: 1.4rem; margin-right: 4px; }
.jobs-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.job-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.job-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
}
.job-head h3 { margin: 0; font-size: 1.15rem; }
.job-sub { margin: 0; color: var(--muted); font-size: .85rem; }
.job-badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.job-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-soft);
}
.job-points {
  margin: 4px 0 8px 18px;
  list-style: disc;
}
.job-points li { color: var(--text-soft); margin-bottom: 4px; }
.no-jobs {
  text-align: center;
  padding: 48px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: var(--radius);
}

/* ===== Benefits ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.benefit span { font-size: 2rem; display: block; margin-bottom: 12px; }
.benefit h4 { margin-bottom: 6px; }
.benefit p { margin: 0; font-size: .9rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 4px; }
.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-of-type { border-bottom: 0; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
}
.contact-item h4 { margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--text-soft); }
.contact-quick {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form h2 { margin-bottom: 4px; }
.contact-form .muted { margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .9rem;
}
.form-status.success {
  background: rgba(16,185,129,0.1);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.3);
}
.form-status.error {
  background: rgba(239,68,68,0.1);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ===== Map ===== */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.map-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}
.footer .logo { color: #fff; }
.footer .logo:hover { color: #fff; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,0.7); }
.footer ul li a:hover { color: #fff; }
.footer .muted { color: rgba(255,255,255,0.5); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; max-width: 460px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 100%; aspect-ratio: 16/10; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 80px 1fr;
  }
  .service-detail.reverse .service-detail-icon { order: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px; }
  .nav-links .btn { text-align: center; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats > div { padding: 10px; }
  .hero-stats strong { font-size: 1.1rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 24px; }
  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
  }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================== */
/*  REDESIGNED HOME PAGE — v2 styles              */
/* ============================================== */

/* ----- Hero v2 ----- */
.hero-v2 {
  padding: 64px 0 0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 60%);
}
.hero-v2 .hero-grid {
  padding-bottom: 80px;
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .55;
  animation: aurora 16s ease-in-out infinite;
}
.aurora-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: -150px; left: -120px;
}
.aurora-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -200px; right: -180px;
  opacity: .4;
  animation-delay: -4s;
}
.aurora-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  top: 30%; left: 40%;
  opacity: .25;
  animation-delay: -8s;
}
@keyframes aurora {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.1); }
  66% { transform: translate(-30px,40px) scale(.95); }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particles span {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  opacity: .6;
  animation: particle 14s linear infinite;
}
.particles span:nth-child(1) { left: 10%;  top: 20%; animation-delay: 0s;   width: 4px; height: 4px; }
.particles span:nth-child(2) { left: 80%;  top: 30%; animation-delay: -2s;  background: radial-gradient(circle, #8b5cf6, transparent 70%); }
.particles span:nth-child(3) { left: 25%;  top: 70%; animation-delay: -4s;  width: 8px; height: 8px; }
.particles span:nth-child(4) { left: 65%;  top: 80%; animation-delay: -6s;  background: radial-gradient(circle, #ec4899, transparent 70%); }
.particles span:nth-child(5) { left: 50%;  top: 15%; animation-delay: -8s; }
.particles span:nth-child(6) { left: 5%;   top: 50%; animation-delay: -10s; width: 5px; height: 5px; background: radial-gradient(circle, #10b981, transparent 70%); }
.particles span:nth-child(7) { left: 90%;  top: 60%; animation-delay: -1s; }
.particles span:nth-child(8) { left: 40%;  top: 40%; animation-delay: -3s; width: 4px; height: 4px; }
.particles span:nth-child(9) { left: 70%;  top: 25%; animation-delay: -5s; background: radial-gradient(circle, #f59e0b, transparent 70%); }
.particles span:nth-child(10){ left: 15%;  top: 85%; animation-delay: -7s; }
.particles span:nth-child(11){ left: 55%;  top: 65%; animation-delay: -9s; width: 7px; height: 7px; }
.particles span:nth-child(12){ left: 35%;  top: 10%; animation-delay: -11s;}
.particles span:nth-child(13){ left: 85%;  top: 90%; animation-delay: -13s; background: radial-gradient(circle, #06b6d4, transparent 70%); }
.particles span:nth-child(14){ left: 20%;  top: 35%; animation-delay: -2s; width: 5px; height: 5px; }
.particles span:nth-child(15){ left: 75%;  top: 50%; animation-delay: -6s; }

@keyframes particle {
  0%,100% { transform: translateY(0) translateX(0); opacity: .6; }
  50% { transform: translateY(-30px) translateX(20px); opacity: 1; }
}

.eyebrow-glow {
  position: relative;
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(34,211,238,0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.dot-live {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse 1.6s infinite;
}

.grad-anim {
  background: linear-gradient(90deg, #22d3ee, #2563eb, #8b5cf6, #ec4899, #22d3ee);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradMove 6s linear infinite;
}
@keyframes gradMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-meta strong { display: block; font-size: .95rem; color: var(--text); }
.hero-meta .muted { font-size: .85rem; }
.avatar-stack {
  display: flex;
}
.avatar-stack span {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  border: 2px solid #fff;
  margin-left: -10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.avatar-stack span:first-child { margin-left: 0; }

/* Dashboard mockup */
.hero-v2 .hero-visual {
  position: relative;
  height: 540px;
  perspective: 1500px;
}
.dashboard-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(15,23,42,0.18), 0 8px 24px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.06);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform .6s var(--ease);
  animation: dashFloat 6s ease-in-out infinite;
}
.dashboard-card:hover { transform: rotateY(0) rotateX(0); }
@keyframes dashFloat {
  0%,100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
  50%     { transform: rotateY(-6deg) rotateX(4deg) translateY(-12px); }
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fbbf24;
}
.dash-dots i:first-child { background: #ef4444; }
.dash-dots i:last-child { background: #22c55e; }
.dash-title {
  font-size: .85rem;
  color: var(--text-soft);
  font-weight: 600;
  flex: 1;
}
.dash-status {
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #047857;
  font-weight: 600;
}
.dash-body { padding: 20px; }
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-stat {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 14px;
  position: relative;
}
.dash-stat .muted { font-size: .75rem; display: block; }
.dash-stat strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trend {
  position: absolute;
  top: 14px; right: 14px;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.trend.up { background: rgba(34,197,94,0.12); color: #047857; }

.dash-chart {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.dash-chart .small { font-size: .72rem; }
.ecg-svg { width: 100%; height: 80px; margin-top: 6px; }
.ecg-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 2.4s var(--ease) forwards .4s, ecgPulse 4s linear infinite 3s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes ecgPulse {
  0%,100% { filter: drop-shadow(0 0 0 rgba(34,211,238,0)); }
  50%     { filter: drop-shadow(0 0 6px rgba(34,211,238,0.7)); }
}

.dash-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  height: 80px;
}
.bar {
  height: var(--h);
  background: linear-gradient(180deg, rgba(34,211,238,0.7), rgba(139,92,246,0.7));
  border-radius: 6px 6px 2px 2px;
  position: relative;
  animation: barGrow 1.2s var(--ease) forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}
.bar:nth-child(1) { animation-delay: .1s; }
.bar:nth-child(2) { animation-delay: .2s; }
.bar:nth-child(3) { animation-delay: .3s; }
.bar:nth-child(4) { animation-delay: .4s; }
.bar:nth-child(5) { animation-delay: .5s; }
.bar:nth-child(6) { animation-delay: .6s; }
.bar span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  color: var(--muted);
  font-weight: 600;
}
@keyframes barGrow {
  to { transform: scaleY(1); }
}

/* Floating badges around dashboard */
.float-badge {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
  z-index: 2;
}
.float-badge strong { display: block; font-size: .85rem; color: var(--text); }
.float-badge .muted { font-size: .72rem; }
.fb-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
}
.fb-1 { top: -10px; left: -30px; animation: float 6s ease-in-out infinite; }
.fb-2 { top: 50%; right: -50px; animation: float 7s ease-in-out infinite reverse; }
.fb-3 { bottom: -10px; left: 30%; animation: float 8s ease-in-out infinite; }

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  font-size: .95rem;
  letter-spacing: .02em;
}
.marquee-item::before {
  content: "✦";
  margin-right: 16px;
  color: var(--primary);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----- Stats Section ----- */
.stats-section {
  padding: 64px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c1, transparent), var(--c2, transparent));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.1);
}
.stat-card strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ----- Showcase ----- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-grid.reverse .showcase-visual { order: 2; }
.showcase-content h2 { margin-bottom: 16px; }
.showcase-content p { font-size: 1.05rem; margin-bottom: 24px; }

.showcase-visual {
  position: relative;
}
.showcase-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(139,92,246,0.1));
}
.showcase-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.showcase-image:hover img { transform: scale(1.04); }
.showcase-fallback {
  position: absolute;
  inset: 0;
  display: none;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
}
.showcase-image.img-fallback .showcase-fallback { display: block; }

.showcase-stat {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.showcase-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.showcase-stat span { color: var(--text-soft); font-size: .85rem; }
.fb-stat-1 { bottom: -20px; right: -20px; animation: float 6s ease-in-out infinite; }

/* AI feature list */
.ai-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}
.ai-feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ai-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
}
.ai-feat strong { display: block; margin-bottom: 2px; font-size: .95rem; }
.ai-feat p { margin: 0; font-size: .88rem; color: var(--text-soft); }

/* AI Orbit visual */
.ai-orbit {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 0 60px rgba(139,92,246,0.5);
  animation: corePulse 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes corePulse {
  0%,100% { box-shadow: 0 0 60px rgba(139,92,246,0.5); transform: translate(-50%,-50%) scale(1); }
  50% { box-shadow: 0 0 100px rgba(34,211,238,0.7); transform: translate(-50%,-50%) scale(1.05); }
}
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1.5px dashed rgba(139,92,246,0.25);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.r1 { width: 55%; height: 55%; animation: spin 20s linear infinite; }
.r2 { width: 75%; height: 75%; animation: spin 30s linear infinite reverse; }
.r3 { width: 95%; height: 95%; animation: spin 40s linear infinite; }
@keyframes spin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
.orbit-node {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid; place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(15,23,42,0.15);
  z-index: 1;
}
.n1 { top: 10%;  left: 50%; transform: translateX(-50%); }
.n2 { top: 30%;  right: 5%; }
.n3 { bottom: 20%; right: 12%; }
.n4 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.n5 { bottom: 25%; left: 8%; }
.n6 { top: 28%;  left: 10%; }

/* ----- Process timeline (dark) ----- */
.section-dark {
  background: #0b1220;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 10% 0%, rgba(34,211,238,0.15), transparent),
    radial-gradient(ellipse 600px 300px at 90% 100%, rgba(139,92,246,0.15), transparent);
  pointer-events: none;
}
.section-head-light h2,
.section-head-light p { color: #fff; }
.section-head-light p { color: rgba(255,255,255,0.7); }
.section-head-light .eyebrow {
  background: rgba(255,255,255,0.08);
  color: #22d3ee;
  border: 1px solid rgba(255,255,255,0.12);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.timeline-line {
  position: absolute;
  top: 24px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899);
  opacity: .5;
}
.t-step {
  position: relative;
  padding-top: 56px;
  text-align: center;
}
.t-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 0 0 6px rgba(34,211,238,0.15);
}
.t-step:nth-child(2) .t-num { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 0 0 6px rgba(139,92,246,0.15); }
.t-step:nth-child(3) .t-num { background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 0 0 6px rgba(236,72,153,0.15); }
.t-step:nth-child(4) .t-num { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 0 0 6px rgba(245,158,11,0.15); }
.t-step:nth-child(5) .t-num { background: linear-gradient(135deg, #10b981, #22d3ee); box-shadow: 0 0 0 6px rgba(16,185,129,0.15); }
.t-step h4 { color: #fff; margin-bottom: 6px; }
.t-step p { color: rgba(255,255,255,0.7); font-size: .9rem; margin: 0; }

/* ----- Quote Card ----- */
.quote-card {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(34,211,238,0.05), rgba(139,92,246,0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
}
.quote-mark {
  margin: 0 auto 16px;
  display: block;
  opacity: .8;
}
.quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}
.qa-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
}

/* ----- CTA v2 ----- */
.cta-v2 .eyebrow {
  background: rgba(255,255,255,0.08);
  color: #22d3ee;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Tilt cards (JS-driven) */
.tilt {
  transform-style: preserve-3d;
  transition: transform .25s var(--ease);
}

/* ----- Responsive overrides ----- */
@media (max-width: 960px) {
  .hero-v2 .hero-visual { height: 460px; max-width: 480px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase-grid.reverse .showcase-visual { order: 0; }
  .ai-features { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { display: none; }
  .ai-orbit { max-width: 360px; }
}

@media (max-width: 720px) {
  .hero-v2 { padding-top: 32px; }
  .hero-v2 .hero-visual { height: 420px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card strong { font-size: 2rem; }
  .timeline { grid-template-columns: 1fr; }
  .quote-card { padding: 32px 24px; }
  .quote-text { font-size: 1.1rem; }
  .fb-1 { top: -20px; left: -10px; padding: 8px 10px; }
  .fb-2 { right: -10px; padding: 8px 10px; }
  .fb-3 { left: 10%; padding: 8px 10px; }
  .float-badge strong { font-size: .78rem; }
  .float-badge .muted { font-size: .68rem; }
  .fb-icon { width: 32px; height: 32px; }
  .marquee-track { gap: 28px; }
  .ai-orbit { max-width: 280px; }
  .orbit-core { width: 80px; height: 80px; }
  .orbit-node { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .particles span, .grad-anim, .marquee-track, .orbit-ring, .orbit-core,
  .dashboard-card, .float-badge, .ecg-line, .bar { animation: none !important; }
  .grad-anim { background-position: 0% 50%; }
}

/* ============================================== */
/*  Partner Portal                                */
/* ============================================== */

.partner-callout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.partner-callout-content h2 { margin-bottom: 16px; }
.partner-callout-content .check-list { margin: 24px 0 28px; }

/* World map */
.map-world {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.map-world-lg { max-width: 880px; }
.world-svg { display: block; width: 100%; height: auto; }

.region-hl .region-shape {
  transform-origin: center;
  animation: regionPulse 3.5s ease-in-out infinite;
}
.region-asia .region-shape   { animation-delay: 0s; }
.region-africa .region-shape { animation-delay: 1.2s; }
@keyframes regionPulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); opacity: .92; }
  50%      { filter: drop-shadow(0 0 12px currentColor); opacity: 1; }
}
.region-asia .region-shape   { color: rgba(34,211,238,0.55); }
.region-africa .region-shape { color: rgba(236,72,153,0.55); }

.arcs path {
  stroke-dasharray: 6 6;
  animation: arcFlow 4s linear infinite;
}
@keyframes arcFlow {
  to { stroke-dashoffset: -120; }
}

.map-world .pin {
  position: absolute;
  width: 12px; height: 12px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(37,99,235,0.4);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.map-world .pin::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(37,99,235,0.35);
  animation: pinPulse 2s ease-out infinite;
}
.map-world .pin-pink {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 4px 10px rgba(236,72,153,0.4);
}
.map-world .pin-pink::after { background: rgba(236,72,153,0.4); }
.map-world .pin-hq {
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  border-width: 3px;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(37,99,235,0.55);
}
.map-world .pin-hq::after {
  background: rgba(34,211,238,0.55);
  inset: -8px;
}
.map-world .pin:nth-child(3)::after  { animation-delay: -0.2s; }
.map-world .pin:nth-child(4)::after  { animation-delay: -0.4s; }
.map-world .pin:nth-child(5)::after  { animation-delay: -0.6s; }
.map-world .pin:nth-child(6)::after  { animation-delay: -0.8s; }
.map-world .pin:nth-child(7)::after  { animation-delay: -1.0s; }
.map-world .pin:nth-child(8)::after  { animation-delay: -1.2s; }
.map-world .pin:nth-child(9)::after  { animation-delay: -1.4s; }
.map-world .pin:nth-child(10)::after { animation-delay: -1.6s; }

.map-world .pin::before {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s var(--ease);
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(15,23,42,0.25);
}
.map-world .pin:hover::before,
.map-world .pin:focus::before { opacity: 1; }
@keyframes pinPulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.map-legend {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: .85rem;
  color: var(--text-soft);
  font-weight: 500;
}
.map-legend.center { justify-content: center; }
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}
.dot-hq     { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.dot-asia   { background: linear-gradient(135deg, #2563eb, #8b5cf6); }
.dot-africa { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

/* ============================================== */
/*  HMIS Deep Dive                                */
/* ============================================== */

.hmis-deep {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.hmis-deep-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hmis-deep-bg .aurora-1 {
  width: 460px; height: 460px;
  top: 5%; left: -120px;
  opacity: .35;
}
.hmis-deep-bg .aurora-2 {
  width: 520px; height: 520px;
  bottom: 0; right: -180px;
  opacity: .3;
}
.hmis-deep > .container { position: relative; }

/* Stats */
.hmis-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.hmis-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hmis-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.hmis-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hmis-stat span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: .85rem;
  font-weight: 500;
}

/* Module browser */
.hmis-browser { margin-bottom: 72px; }

.hmis-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}
.hmis-tab {
  background: transparent;
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s var(--ease);
}
.hmis-tab em {
  font-style: normal;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  transition: all .25s var(--ease);
}
.hmis-tab .tab-icon { font-size: 1rem; line-height: 1; }
.hmis-tab:hover { color: var(--primary); }
.hmis-tab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,0.32);
}
.hmis-tab.active em {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.hmis-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mod-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
  animation: modIn .5s var(--ease) backwards;
}
.mod-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.mod-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(15,23,42,0.14);
}
.mod-card:hover::before { opacity: .04; }
.mod-card.is-hidden {
  display: none;
}
.mod-card.mod-feature {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-color: rgba(139,92,246,0.18);
}
.mod-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-size: 1.5rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(15,23,42,0.12);
}
.mod-card h4 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}
.mod-card p {
  margin: 0;
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.mod-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37,99,235,0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.mod-card.mod-feature .mod-tag {
  color: #8b5cf6;
  background: rgba(139,92,246,0.1);
}
@keyframes modIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mod-card:nth-child(1)  { animation-delay: 0.02s; }
.mod-card:nth-child(2)  { animation-delay: 0.04s; }
.mod-card:nth-child(3)  { animation-delay: 0.06s; }
.mod-card:nth-child(4)  { animation-delay: 0.08s; }
.mod-card:nth-child(5)  { animation-delay: 0.10s; }
.mod-card:nth-child(6)  { animation-delay: 0.12s; }
.mod-card:nth-child(7)  { animation-delay: 0.14s; }
.mod-card:nth-child(8)  { animation-delay: 0.16s; }
.mod-card:nth-child(n+9){ animation-delay: 0.18s; }

/* Architecture + Chart grid */
.hmis-arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.arch-stack, .arch-chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.06);
}
.arch-stack h3, .arch-chart h3 { margin-bottom: 4px; }
.arch-stack > .muted, .arch-chart > .muted { font-size: .85rem; margin-bottom: 24px; }

.stack-layer {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.stack-layer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad);
}
.layer-frontend::before { background: linear-gradient(180deg, #22d3ee, #2563eb); }
.layer-gateway::before  { background: linear-gradient(180deg, #8b5cf6, #6366f1); }
.layer-services::before { background: linear-gradient(180deg, #ec4899, #8b5cf6); }
.layer-data::before     { background: linear-gradient(180deg, #10b981, #06b6d4); }

.layer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.layer-tag {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37,99,235,0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.layer-frontend .layer-tag { background: rgba(34,211,238,0.12); color: #0891b2; }
.layer-gateway .layer-tag  { background: rgba(139,92,246,0.12); color: #7c3aed; }
.layer-services .layer-tag { background: rgba(236,72,153,0.12); color: #db2777; }
.layer-data .layer-tag     { background: rgba(16,185,129,0.12); color: #047857; }
.stack-layer strong { font-size: .95rem; color: var(--text); }
.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.layer-tags span {
  font-size: .72rem;
  font-family: 'Space Grotesk', monospace;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.stack-flow {
  height: 24px;
  display: flex;
  justify-content: center;
  position: relative;
}
.stack-flow::before {
  content: "";
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #cbd5e1, transparent);
}
.flow-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  top: 0;
  box-shadow: 0 0 12px rgba(37,99,235,0.6);
  animation: flowDown 2.4s linear infinite;
}
.stack-flow:nth-of-type(2) .flow-dot { animation-delay: -0.6s; }
.stack-flow:nth-of-type(3) .flow-dot { animation-delay: -1.2s; }
.stack-flow:nth-of-type(4) .flow-dot { animation-delay: -1.8s; }
@keyframes flowDown {
  0%   { top: 0;    opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Donut chart */
.donut-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 24px;
}
.donut {
  transform: rotate(0deg);
}
.donut-seg {
  transition: stroke-dashoffset 1.4s var(--ease), stroke-dasharray 1.4s var(--ease);
  filter: drop-shadow(0 4px 8px rgba(15,23,42,0.08));
}
.donut-seg.draw {
  /* will be set by JS; this is a fallback to ensure visible */
}
.donut.animate .donut-seg {
  stroke-dasharray: var(--final-arr);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}
.donut-center strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.donut-center span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.donut-legend {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donut-legend li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
}
.donut-legend em {
  font-style: normal;
  font-weight: 700;
  color: var(--text-soft);
  font-size: .82rem;
}
.donut-legend .ld {
  width: 14px; height: 14px;
  border-radius: 4px;
}
.donut-legend .ldbar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--surface-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-top: -4px;
}
.donut-legend .ldbar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--g);
  border-radius: 999px;
  transition: width 1.2s var(--ease);
}
.donut-legend.in .ldbar i { width: var(--w); }

/* Responsive */
@media (max-width: 1100px) {
  .hmis-modules { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hmis-stats { grid-template-columns: repeat(2, 1fr); }
  .hmis-modules { grid-template-columns: repeat(2, 1fr); }
  .hmis-arch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hmis-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hmis-stat { padding: 14px; }
  .hmis-stat strong { font-size: 1.4rem; }
  .hmis-modules { grid-template-columns: 1fr; }
  .arch-stack, .arch-chart { padding: 22px; }
  .hmis-tabs {
    border-radius: 16px;
    width: 100%;
  }
  .hmis-tab { font-size: .82rem; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-dot, .mod-card, .donut-seg { animation: none !important; transition: none !important; }
}

/* ============================================== */
/*  Legal / Privacy page                          */
/* ============================================== */

.small-meta {
  font-size: .85rem;
  margin-top: 16px;
}
.small-meta strong { color: var(--text); }

.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
}
.toc-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.04);
}
.toc-inner h4 {
  margin: 0 0 12px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.toc-inner ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: tocLi;
}
.toc-inner li { margin: 0; }
.toc-inner a {
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
  border-left: 2px solid transparent;
}
.toc-inner a:hover {
  background: var(--surface-soft);
  color: var(--primary);
  border-left-color: var(--primary);
}

.legal-prose {
  max-width: 760px;
  font-size: 1.02rem;
  color: var(--text);
}
.legal-prose h2 {
  margin-top: 56px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  scroll-margin-top: 100px;
}
.legal-prose h2:first-of-type { margin-top: 32px; }
.legal-prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text-soft);
}
.legal-prose p {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal-prose ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.7;
}
.legal-prose ul li { margin-bottom: 6px; }
.legal-prose strong { color: var(--text); }
.legal-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: var(--accent); }

.legal-callout {
  background: linear-gradient(135deg, rgba(34,211,238,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: .98rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-block {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 12px 0 20px;
}
.contact-block p { color: var(--text); margin: 0 0 10px; }
.contact-block p:last-child { margin-bottom: 0; }

.legal-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}

/* Footer-bottom right link styling */
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .toc-inner { padding: 16px; }
  .legal-prose h2 { margin-top: 40px; font-size: 1.3rem; }
}

/* Partner tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier-card.tier-featured {
  background: linear-gradient(180deg, rgba(236,72,153,0.04), rgba(139,92,246,0.04));
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 16px 40px rgba(139,92,246,0.12);
}
.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  margin-bottom: 16px;
}

/* Partner application layout */
.partner-apply {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

/* Job badge variants */
.job-badge.badge-blue {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

@media (max-width: 960px) {
  .partner-callout { grid-template-columns: 1fr; gap: 40px; }
  .tiers-grid { grid-template-columns: 1fr; gap: 20px; }
  .partner-apply { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================== */
/*  AI Assistant Chatbot                          */
/* ============================================== */

.kt-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(37,99,235,0.4), 0 0 0 0 rgba(37,99,235,0.3);
  display: grid;
  place-items: center;
  z-index: 999;
  transition: transform .25s var(--ease);
  animation: chatPulse 2.4s ease-in-out infinite;
}
.kt-chat-launcher:hover { transform: scale(1.08); }
.kt-chat-launcher svg { width: 26px; height: 26px; }
.kt-chat-launcher .kt-chat-close { display: none; }
.kt-chat-launcher.open .kt-chat-open { display: none; }
.kt-chat-launcher.open .kt-chat-close { display: block; }
.kt-chat-launcher.open { animation: none; }
.kt-chat-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.kt-chat-launcher.open .kt-chat-badge { display: none; }
@keyframes chatPulse {
  0%,100% { box-shadow: 0 12px 32px rgba(37,99,235,0.4), 0 0 0 0 rgba(37,99,235,0.3); }
  50%     { box-shadow: 0 12px 32px rgba(37,99,235,0.4), 0 0 0 14px rgba(37,99,235,0); }
}

.kt-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15,23,42,0.24);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 998;
}
.kt-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.kt-chat-header {
  background: var(--grad);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.kt-chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  position: relative;
}
.kt-chat-avatar::after {
  content: "";
  position: absolute;
  bottom: 2px; right: 2px;
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
}
.kt-chat-header strong { display: block; font-size: 1rem; line-height: 1.2; }
.kt-chat-header span { font-size: .78rem; opacity: .85; }

.kt-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kt-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.5;
  animation: msgIn .3s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.kt-msg-bot {
  background: #fff;
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.kt-msg-bot strong { color: var(--primary); }
.kt-msg-user {
  background: var(--grad);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.kt-msg-user a { color: #fff; text-decoration: underline; }

.kt-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.kt-chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.kt-chip:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.kt-typing {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: inline-flex;
  gap: 4px;
}
.kt-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s ease-in-out infinite;
}
.kt-typing i:nth-child(2) { animation-delay: .15s; }
.kt-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%,60%,100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.kt-chat-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}
.kt-chat-input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.kt-chat-input:focus { border-color: var(--primary); background: #fff; }
.kt-chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.kt-chat-send:hover { transform: scale(1.06); }
.kt-chat-foot-meta {
  font-size: .7rem;
  text-align: center;
  color: var(--muted);
  padding: 6px 0 10px;
  background: #fff;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .kt-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 84px;
    height: 70vh;
  }
  .kt-chat-launcher {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}
