/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --white:   #ffffff;
  --offwhite:#f7f8fc;
  --light:   #eef1f8;
  --blue:    #1a56db;
  --blue2:   #1044b5;
  --sky:     #3b82f6;
  --teal:    #0ea5c8;
  --gold:    #f59e0b;
  --ink:     #0f172a;
  --slate:   #334155;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --border2: #cbd5e1;
  --sans:    'Sora', sans-serif;
  --serif:   'Libre Baskerville', Georgia, serif;
  --radius:  10px;
  --gutter:  32px;
  --site-max: 1160px;
  --hero-max: 1240px;
  --chat-w:  380px;
  --shadow:  0 4px 24px rgba(15,23,42,.08);
  --shadow2: 0 12px 48px rgba(15,23,42,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── UTILITY ── */
.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--site-max));
  margin: 0 auto;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(26,86,219,.07); border: 1px solid rgba(26,86,219,.18);
  padding: 5px 14px; border-radius: 100px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: .5; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes growBar {
  from { height: 0; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0;
  background: rgba(15,23,42,.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  transition: all .35s;
}
nav.scrolled {
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(calc(100% - (var(--gutter) * 2)), var(--site-max));
  margin: 0 auto;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark img { height: 64px; width: auto; display: block; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500;
  letter-spacing: .01em; transition: color .2s;
}
.nav-links a:hover { color: #ffffff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-nav-ghost {
  background: transparent; border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88); padding: 9px 22px; border-radius: 8px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-nav-ghost:hover { border-color: rgba(255,255,255,.38); color: #ffffff; background: rgba(255,255,255,.06); }
.btn-nav {
  background: var(--blue); color: white; border: none;
  padding: 10px 24px; border-radius: 8px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none;
  letter-spacing: .01em;
}
.btn-nav:hover { background: var(--sky); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.3); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px;
  background: var(--white);
  position: relative; overflow: hidden;
}

/* Subtle background blobs */
.hero-blob1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(59,130,246,.09) 0%, transparent 70%);
  top: -100px; right: -150px; pointer-events: none;
}
.hero-blob2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(14,165,200,.07) 0%, transparent 70%);
  bottom: -50px; left: -80px; pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  width: min(calc(100% - (var(--gutter) * 2)), var(--hero-max));
  margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-left { min-width: 0; }

.hero-eyebrow { margin-bottom: 24px; animation: fadeUp .7s ease both; }
.hero-h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -.025em; color: var(--ink);
  margin-bottom: 24px;
  animation: fadeUp .7s .1s ease both;
}
.hero-h1 .accent { color: var(--blue); }
.hero-desc {
  max-width: 480px; color: var(--slate); font-size: 17px;
  line-height: 1.75; margin-bottom: 40px;
  animation: fadeUp .7s .2s ease both;
}
.hero-actions {
  display: flex; gap: 14px; align-items: center;
  animation: fadeUp .7s .3s ease both;
}
.btn-primary {
  background: var(--blue); color: white; border: none;
  padding: 15px 36px; border-radius: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .25s; text-decoration: none;
  display: inline-block; letter-spacing: -.01em;
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(26,86,219,.35); }
.btn-ghost {
  background: transparent; color: var(--slate); border: none;
  padding: 15px 0; font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: color .2s; text-decoration: none;
}
.btn-ghost:hover { color: var(--blue); }
.btn-ghost svg { transition: transform .2s; width: 18px; height: 18px; }
.btn-ghost:hover svg { transform: translateX(4px); }

.hero-trust {
  display: flex; gap: 32px; margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp .7s .4s ease both;
}
.trust-num {
  font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1;
  letter-spacing: -.02em;
}
.trust-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── HERO VISUAL (mosaic grid like Procloz) ── */
.hero-visual {
  position: relative; animation: fadeUp .8s .2s ease both; min-width: 0;
}
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 180px;
  gap: 10px;
}
.mosaic-cell { border-radius: 14px; overflow: hidden; position: relative; }
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc1 { grid-column: 1; grid-row: 1 / 3; }
.mc2 { grid-column: 2; grid-row: 1; background: linear-gradient(135deg, var(--blue) 0%, #3b6ef5 100%); }
.mc3 { grid-column: 3; grid-row: 1; }
.mc4 { grid-column: 2; grid-row: 2; }
.mc5 { grid-column: 3; grid-row: 2; background: var(--gold); }

/* Text overlays on colored cells */
.cell-text {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; justify-content: flex-end; padding: 20px;
  color: white;
}
.cell-text h3 { font-size: 18px; font-weight: 700; line-height: 1.2; margin: 0; }
.cell-text.dark h3 { color: var(--ink); }

/* Floating pill badge on mosaic */
.mosaic-badge {
  position: absolute; bottom: -18px; left: 24px;
  background: white; border-radius: 50px;
  padding: 10px 20px; box-shadow: var(--shadow2);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
  z-index: 10;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse 2s infinite;
}

/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */
.marquee-wrap {
  background: var(--offwhite); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0; overflow: hidden; margin-top: 40px;
}
.marquee-track { display: flex; gap: 0; animation: marquee 32s linear infinite; width: max-content; }
.marquee-item {
  white-space: nowrap; padding: 0 40px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  display: flex; align-items: center; gap: 18px;
}
.marquee-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .5; }

/* ═══════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════ */
section { position: relative; }
.section-pad { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head .tag { margin-bottom: 20px; }
.section-head h2 {
  font-family: var(--sans); font-size: clamp(32px, 4vw, 50px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 18px;
}
.section-head h2 em { font-style: italic; font-family: var(--serif); font-weight: 400; color: var(--blue); }
.section-head p { color: var(--slate); font-size: 16px; line-height: 1.75; }
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px; gap: 40px;
}
.section-head-row .section-head { margin-bottom: 0; flex: 1 1 0; min-width: 0; }
.section-head-row p { max-width: 420px; color: var(--slate); font-size: 16px; line-height: 1.75; align-self: flex-end; }

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
#services { padding: 100px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--offwhite); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 36px 32px;
  transition: all .3s; cursor: default; position: relative; overflow: hidden; height: 100%;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow2); background: white; transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(26,86,219,.08); border: 1.5px solid rgba(26,86,219,.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon-wrap svg { width: 24px; height: 24px; fill: var(--blue); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; line-height: 1.25; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.service-list { margin-top: 20px; list-style: none; }
.service-list li {
  font-size: 13px; color: var(--slate); padding: 7px 0;
  border-bottom: 1px solid var(--border); display: flex; gap: 9px; align-items: center;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before { content: ''; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════
   WHY / ABOUT
═══════════════════════════════════════ */
#why { padding: 100px 0; background: var(--offwhite); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Visual side — SVG illustration + photo card */
.why-visual { position: relative; }
.why-img-main {
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3; position: relative;
}
.why-img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-img-main::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.25) 100%);
}
.why-stat-card {
  position: absolute; bottom: -28px; right: -28px;
  background: white; border-radius: 14px;
  padding: 20px 24px; box-shadow: var(--shadow2);
  min-width: 170px;
}
.why-stat-num { font-size: 36px; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -.03em; }
.why-stat-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

.why-svg-badge {
  position: absolute; top: -20px; left: -20px;
  width: 90px; height: 90px;
}

/* Text side */
.why-points { list-style: none; margin-top: 32px; }
.why-point { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.why-point:first-child { padding-top: 0; }
.wp-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(26,86,219,.08); border: 1.5px solid rgba(26,86,219,.12);
  display: flex; align-items: center; justify-content: center;
}
.wp-icon svg { width: 18px; height: 18px; fill: var(--blue); }
.wp-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.wp-desc { font-size: 13.5px; color: var(--muted); }

/* ═══════════════════════════════════════
   INDUSTRIES
═══════════════════════════════════════ */
#industries { padding: 100px 0; background: var(--white); }
.industries-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.ind-pill {
  padding: 11px 26px; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 14px; font-weight: 500; color: var(--slate);
  transition: all .25s; cursor: default; display: flex; align-items: center; gap: 8px;
  background: white;
}
.ind-pill:hover { border-color: var(--blue); color: var(--blue); background: rgba(26,86,219,.04); }
.ind-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.cap-card {
  background: var(--offwhite); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 28px 24px; transition: all .25s; height: 100%;
}
.cap-card:hover { background: white; box-shadow: var(--shadow); }
.cap-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.cap-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cap-desc { font-size: 13px; color: var(--muted); }

/* ═══════════════════════════════════════
   PROCESS
═══════════════════════════════════════ */
#process { padding: 100px 0; background: var(--offwhite); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative; margin-top: 60px;
}
.process-steps::before {
  content: ''; position: absolute; top: 26px; left: 12%; right: 12%;
  height: 1.5px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--teal));
  z-index: 0;
}
.process-step { padding: 0 20px; position: relative; }
.step-num-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  background: white; border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px rgba(26,86,219,.08);
}
.step-num { font-size: 16px; font-weight: 800; color: var(--blue); }
.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--muted); }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
#contact { padding: 100px 0; background: var(--offwhite); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-grid > * { min-width: 0; }
.contact-form-group { margin-bottom: 18px; }
.contact-form-group label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px;
}
.contact-form-group input,
.contact-form-group textarea {
  width: 100%; background: white; border: 1.5px solid var(--border);
  color: var(--ink); padding: 13px 16px; font-family: var(--sans); font-size: 14.5px;
  border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder { color: #b0bec5; }
.contact-form-group textarea { height: 120px; resize: vertical; }

.contact-info-side { padding-top: 8px; }
.contact-hero-img {
  border-radius: 16px; overflow: hidden; margin-bottom: 36px; aspect-ratio: 4/3;
}
.contact-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-info-block { margin-bottom: 28px; display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: rgba(26,86,219,.08); display: flex; align-items: center; justify-content: center;
}
.ci-icon svg { width: 17px; height: 17px; fill: var(--blue); }
.ci-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.ci-val { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.ci-val a { color: var(--blue); text-decoration: none; }
.ci-val a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--ink); color: white;
  padding: 56px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-top > * { min-width: 0; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 0; }
.footer-logo-mark {
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-mark img { height: 62px; width: auto; display: block; object-fit: contain; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-admin-link {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none;
  border: 1px solid rgba(255,255,255,.12); padding: 7px 16px;
  border-radius: 7px; transition: all .2s;
}
.footer-admin-link:hover { color: white; border-color: rgba(255,255,255,.3); }
.footer-admin-link svg { width: 13px; height: 13px; fill: currentColor; }

/* ═══════════════════════════════════════
   CHAT WIDGET
═══════════════════════════════════════ */
#chat-toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue); color: white; border: none;
  cursor: pointer; box-shadow: 0 6px 28px rgba(26,86,219,.45);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
#chat-toggle:hover { background: var(--blue2); transform: scale(1.08); }
#chat-toggle.chat-pulse { animation: chatPulse 1s ease-in-out 3; }
@keyframes chatPulse { 0%,100% { transform: scale(1); box-shadow: 0 6px 28px rgba(26,86,219,.45); } 50% { transform: scale(1.15); box-shadow: 0 6px 36px rgba(26,86,219,.65); } }
#chat-toggle svg { width: 26px; height: 26px; fill: white; }

#chat-window {
  position: fixed; bottom: 100px; right: 28px; z-index: 300;
  width: var(--chat-w); max-height: 540px;
  background: white; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15,23,42,.18), 0 0 0 1.5px var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97);
  pointer-events: none; transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
#chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.chat-header {
  background: var(--blue); padding: 18px 20px;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: white;
}
.chat-name { font-size: 14.5px; font-weight: 700; color: white; }
.chat-status { font-size: 11.5px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.chat-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.65); font-size: 22px; line-height: 1; padding: 0 2px;
  transition: color .2s;
}
.chat-close:hover { color: white; }

#chat-messages {
  flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-track { background: transparent; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.msg {
  max-width: 82%; padding: 12px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.6; word-break: break-word;
}
.msg.bot {
  background: var(--offwhite); color: var(--ink); border: 1px solid var(--border);
  border-bottom-left-radius: 4px; align-self: flex-start;
}
.msg.bot p { margin: 0; }
.msg.bot ul, .msg.bot ol { padding-left: 18px; margin: 6px 0; }
.msg.user {
  background: var(--blue); color: white;
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.msg-typing { gap: 5px; display: flex; align-items: center; padding: 14px 18px; }
.msg-typing .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: bounce 1.2s infinite;
}
.msg-typing .dot:nth-child(2) { animation-delay: .2s; }
.msg-typing .dot:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

.chat-input-row {
  padding: 14px 16px; border-top: 1.5px solid var(--border);
  display: flex; gap: 10px; align-items: flex-end; flex-shrink: 0;
  background: white;
}
#chat-input {
  flex: 1; background: var(--offwhite); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 15px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none; resize: none; max-height: 100px; line-height: 1.5;
  transition: border-color .2s;
}
#chat-input:focus { border-color: var(--blue); }
#chat-input::placeholder { color: var(--muted); }
#chat-send {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
#chat-send:hover { background: var(--blue2); }
#chat-send svg { width: 18px; height: 18px; fill: white; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* ── HAMBURGER MENU (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  border-radius: 8px;
  transition: background .2s;
}
.nav-hamburger:hover { background: var(--light); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #ffffff; border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 190;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow2);
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
.mobile-nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav-drawer a {
  display: block; text-decoration: none;
  color: var(--slate); font-size: 15px; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-nav-drawer a:last-of-type { border-bottom: none; }
.mobile-nav-drawer a:hover { color: var(--blue); }
.mobile-nav-drawer .mob-actions {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.mobile-nav-drawer .mob-actions a {
  flex: 1; text-align: center; border-bottom: none; padding: 11px 16px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
}
.mobile-nav-drawer .mob-actions .btn-primary { background: var(--blue); color: white; }
.mobile-nav-drawer .mob-actions .btn-nav-ghost {
  background: transparent; border: 1.5px solid var(--border2);
  color: var(--slate);
}

@media (min-width: 1440px) {
  :root {
    --gutter: 44px;
    --site-max: 1280px;
    --hero-max: 1360px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(480px, .98fr);
    gap: 96px;
  }

  .hero-h1 { font-size: clamp(52px, 4.8vw, 78px); }
  .hero-desc { max-width: 560px; font-size: 18px; }
  .trust-num { font-size: 36px; }
  .mosaic { grid-template-rows: 260px 210px; gap: 14px; }
  .section-head { max-width: 760px; margin-bottom: 72px; }
  .section-head-row p { max-width: 500px; }
  .services-grid { gap: 24px; }
  .why-grid { gap: 96px; }
  .caps-grid { gap: 20px; }
  .contact-grid { gap: 88px; }
}

@media (min-width: 1800px) {
  :root {
    --site-max: 1360px;
    --hero-max: 1440px;
  }
}

/* ── TABLET: 768px – 1024px ── */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }

  .hero-grid { gap: 48px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-h1 { font-size: clamp(38px, 5.4vw, 58px); }
  .hero-desc { font-size: 16px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }

  .why-grid { gap: 48px; }
  .why-stat-card { right: -12px; bottom: -20px; }
  .why-svg-badge { top: -12px; left: -12px; width: 70px; height: 70px; }

  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
  .process-step { padding: 0; }

  .contact-grid { gap: 40px; }

  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }

  /* Why-intro inline grid */
  #why-intro > .container > .reveal { gap: 48px !important; }
}

/* ── TABLET PORTRAIT & LARGE PHONE: up to 900px ── */
@media (max-width: 900px) {
  .section-pad { padding: 72px 0; }
  #services, #why, #industries, #process, #contact { padding: 72px 0; }
  #why-intro { padding: 72px 0 !important; }

  /* Nav */
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero: stack */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-left {
    max-width: 680px;
    margin: 0 auto;
  }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-trust { justify-content: center; flex-wrap: wrap; gap: 24px; }
  .hero-eyebrow { display: flex; justify-content: center; }

  /* Mosaic: simplified on tablet */
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px;
  }
  .mc1 { grid-column: 1 / 3; grid-row: 1; height: 200px; }
  .mc2 { grid-column: 1; grid-row: 2; }
  .mc3 { grid-column: 2; grid-row: 2; }
  .mc4, .mc5 { display: none; }
  .mosaic-badge { bottom: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .hero-visual { padding-bottom: 32px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Why-intro inline grid: stack */
  #why-intro > .container > .reveal {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Hide the absolute-positioned overlay cards on small screens */
  #why-intro > .container > .reveal > div:first-child > div:nth-child(2),
  #why-intro > .container > .reveal > div:first-child > div:nth-child(3) {
    display: none;
  }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-stat-card { right: 16px; bottom: 16px; }
  .why-svg-badge { display: none; }

  /* Industries caps */
  .caps-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Process */
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .process-steps::before { display: none; }
  .process-step { padding: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info-side { order: -1; }
  .contact-hero-img { aspect-ratio: 16/7; margin-bottom: 24px; }

  /* Section head row */
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head-row p { max-width: 100%; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / 3; }
}

/* ── MOBILE: up to 600px ── */
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .nav-inner { height: 64px; }
  .mobile-nav-drawer { top: 64px; padding: 12px 18px 20px; }

  .section-pad { padding: 56px 0; }
  #services, #why, #industries, #process, #contact { padding: 56px 0; }
  #why-intro { padding: 56px 0 !important; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 38px); }
  .section-head-row p { font-size: 15px; }

  /* Hero */
  #hero { padding: 80px 0 48px; min-height: auto; }
  .hero-h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn-primary { width: 100%; max-width: 320px; text-align: center; }
  .hero-actions .btn-ghost { padding: 10px 0; }
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    width: 100%;
    text-align: left;
  }
  .hero-trust > div:last-child { grid-column: 1 / -1; }
  .trust-num { font-size: 26px; }

  /* Mosaic: single image on mobile */
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .mc1 { grid-column: 1; grid-row: 1; height: 220px; }
  .mc2 { grid-column: 1; grid-row: 2; height: 110px; }
  .mc3 { display: none; }
  .mc4, .mc5 { display: none; }
  .mosaic-badge {
    width: calc(100% - 24px);
    justify-content: center;
    text-align: center;
    font-size: 11.5px;
    padding: 8px 14px;
    white-space: normal;
  }

  /* Services: single col */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 28px 22px; }

  /* Why-intro */
  #why-intro > .container > .reveal {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Why us */
  .why-grid { gap: 32px; }
  .why-stat-card { right: 12px; bottom: 12px; padding: 14px 16px; min-width: 140px; }
  .why-stat-num { font-size: 28px; }

  /* Industries */
  .industries-row { gap: 8px; }
  .ind-pill { padding: 9px 18px; font-size: 13px; }
  .caps-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; gap: 20px; }
  .process-step { display: flex; gap: 18px; align-items: flex-start; }
  .step-num-wrap { margin-bottom: 0; flex-shrink: 0; }

  /* Contact */
  .contact-hero-img { aspect-ratio: 4/3; }
  .contact-info-block { gap: 12px; }
  .ci-val { font-size: 14px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom > div { flex-direction: column; gap: 10px; width: 100%; }
  .footer-admin-link, .footer-admin-link + a { width: fit-content; }

  /* Chat widget: full width on mobile */
  :root { --chat-w: calc(100vw - 24px); }
  #chat-window { right: 12px; left: 12px; bottom: 88px; max-height: 70vh; }
  #chat-toggle { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (max-width: 420px) {
  .tag {
    font-size: 10px;
    letter-spacing: .1em;
    padding: 5px 10px;
  }

  .hero-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: center;
    gap: 12px 8px;
  }

  .hero-trust > div:last-child { grid-column: auto; }
  .trust-num { font-size: 22px; }
  .trust-label { font-size: 11px; }
  .mosaic-badge { bottom: -20px; }
  .process-step { gap: 14px; }
  .step-num-wrap {
    width: 46px;
    height: 46px;
  }

  .chat-input-row { padding: 12px; }
}
