/* ═══════════════════════════════════════════════════════════
   GROW IT SOLUTIONS — Complete Design System v3
   Space Grotesk + Inter · Premium · AI-First
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts via @import (fallback if HTML link absent) ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Core palette */
  --white:    #ffffff;
  --off:      #f7f8fa;
  --off-2:    #f0f2f7;
  --border:   #e4e7ef;
  --ink:      #0d111c;
  --ink-2:    #2d3548;
  --muted:    #6b7591;
  --dim:      #9aa0b8;

  /* Brand blues (matching logo) */
  --blue:     #1d4ed8;
  --blue-2:   #2563eb;
  --blue-3:   #3b82f6;
  --blue-dark:#1e3a8a;
  --blue-bg:  #eff6ff;
  --blue-bd:  #bfdbfe;

  /* Accents */
  --green:    #059669;
  --green-bg: #ecfdf5;
  --amber:    #d97706;
  --amber-bg: #fffbeb;
  --violet:   #7c3aed;

  /* Dark hero bg */
  --hero-bg:  #060b17;

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full:999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(13,17,28,.06);
  --shadow-md: 0 4px 20px rgba(13,17,28,.10);
  --shadow-lg: 0 12px 48px rgba(13,17,28,.14);
  --shadow-blue: 0 8px 32px rgba(29,78,216,.25);

  /* Layout */
  --max-w: 1160px;
  --sec-y: 110px;

  /* Fonts */
  --f-display: 'Space Grotesk', -apple-system, sans-serif;
  --f-body:    'Inter', -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--f-body); background: var(--white); color: var(--ink); line-height: 1.65; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Layout ── */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 48px;
}
.sec { padding-block: var(--sec-y); }
.sec--alt { background: var(--off); }
.sec--dark { background: var(--hero-bg); }

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Section header ── */
.sec-head { margin-bottom: 64px; }
.sec-head--c { text-align: center; }
.sec-head--c h2, .sec-head--c .lead { margin-inline: auto; }
.sec-head h2 { margin-bottom: 16px; max-width: 680px; }
.sec-head .lead { max-width: 560px; }

/* ── Label badge ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 14px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue-3);
  border-radius: 50%;
}

/* ── Typography ── */
h1, .h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
}
h2, .h2 {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
}
h3, .h3 {
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink);
}
h4 {
  font-family: var(--f-display);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.008em;
  color: var(--ink);
}
p, li { font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
p + p { margin-top: 14px; }
.lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.78;
  color: var(--muted);
}
.justify-text p, .justify-text li { text-align: left; }
.muted { color: var(--muted); }
.white { color: var(--white) !important; }
.grad-text {
  background: linear-gradient(135deg, var(--blue-2) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  padding: 14px 28px;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn .arrow { transition: transform .22s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(13,17,28,.12);
}
.btn-dark:hover {
  background: #1a2035;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-bd);
}

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .025em;
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--ink-2);
  border-radius: var(--r-full);
  padding: 4px 12px;
}
.tag--blue { background: var(--blue-bg); border-color: var(--blue-bd); color: var(--blue); }
.tag--green { background: var(--green-bg); border-color: #a7f3d0; color: var(--green); }
.tag--ai { background: linear-gradient(135deg,#ede9fe,#dbeafe); border-color: #c4b5fd; color: var(--violet); }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(228,231,239,.7);
  transition: box-shadow .2s;
  overflow: visible;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(13,17,28,.06); }
.nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  overflow: visible;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.nav__logo-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.2;
}
.nav__logo-text small {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav__link:hover, .nav__link.active {
  color: var(--ink);
  background: var(--off);
}
.nav__cta {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--r-md);
  transition: all .2s;
  letter-spacing: -.01em;
}
.nav__cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
}
.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}
.nav__drawer {
  display: flex;
  position: fixed;
  top: 72px; inset-inline: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .28s ease, visibility .28s;
}
.nav__drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__drawer-backdrop {
  position: fixed;
  inset: 0;
  top: 72px;
  z-index: 998;
  background: rgba(13, 17, 28, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s;
}
.nav__drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-drawer-open { overflow: hidden; }
.nav__drawer .nav__link {
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-weight: 500;
  text-align: center;
  display: block;
}
.nav__drawer .nav__link.active {
  background: var(--off);
  color: var(--ink);
  font-weight: 600;
}

/* Drawer footer CTAs */
.nav__drawer-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.drawer-btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.drawer-btn--outline:hover {
  background: var(--off);
  border-color: var(--ink-2);
}
.drawer-btn--primary {
  background: var(--blue);
  color: #ffffff !important;
  border: none;
  box-shadow: var(--shadow-blue);
}
.drawer-btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(29, 78, 216, .35);
}
html.dark .drawer-btn--outline {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: var(--ink);
}
html.dark .drawer-btn--outline:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}
html.dark .drawer-btn--primary {
  background: var(--blue);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, .35);
}
html.dark .drawer-btn--primary:hover {
  background: var(--blue-3);
  box-shadow: 0 8px 28px rgba(37, 99, 235, .45);
}

.nav__drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__hamburger span { transition: transform .25s ease, opacity .2s ease; }

/* scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-2), var(--violet));
  z-index: 1001;
  width: 0%;
  transition: width .1s linear;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  overflow: hidden;
  padding-top: 72px;
}

/* Animated orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(29,78,216,.35) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: orb1 18s ease-in-out infinite;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.3) 0%, transparent 70%);
  bottom: 0; right: 0;
  animation: orb2 22s ease-in-out infinite;
}
.hero__orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,.2) 0%, transparent 70%);
  top: 50%; left: 60%;
  animation: orb3 15s ease-in-out infinite;
}
@keyframes orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(60px,-40px) scale(1.1); }
  66%      { transform: translate(-30px,60px) scale(0.9); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-80px,-60px) scale(1.15); }
}
@keyframes orb3 {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  40%     { transform: translate(-60%,-40%) scale(1.1); }
  80%     { transform: translate(-40%,-60%) scale(0.9); }
}

/* Grid lines overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 0 100px;
  width: 100%;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.8);
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--r-full);
  margin-bottom: 36px;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50% { opacity:.6; box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.hero h1 {
  color: var(--white);
  max-width: 820px;
  margin-top: auto;
  margin-bottom: 28px;
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  text-align: center;
}
.hero h1 .hl {
  background: linear-gradient(135deg,#60a5fa,#818cf8,#c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead {
  color: rgba(255,255,255,.55);
  max-width: 600px;
  margin-bottom: 44px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
  text-align: center;
}
.hero__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero__trust {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 48px;
}
.hero__trust-label {
  font-size: .75rem;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.hero__trust-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .45;
  filter: brightness(2) grayscale(1);
  transition: opacity .2s, filter .2s;
}
.trust-logo-item:hover { opacity: .7; filter: brightness(2.5) grayscale(.5); }
.trust-logo-item span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.3);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--f-display);
  font-weight: 600;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero__scroll svg { color: rgba(255,255,255,.3); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE / CLIENT LOGOS
   ═══════════════════════════════════════════════════════════ */
.marquee-section {
  padding-block: 40px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.marquee-label {
  text-align: center;
  width: 100%;
  font-family: var(--f-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 24px;
}
.marquee-track {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
}
.marquee-track:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  padding: 12px 48px;
  border-right: 1px solid var(--border);
  opacity: .5;
  transition: opacity .2s;
  white-space: nowrap;
}
.marquee-item:hover { opacity: .9; }
.marquee-item .client-name {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.marquee-item .client-type {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════ */
.stats-sec {
  padding-block: 72px;
  background: var(--off);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.25rem,4.5vw,3.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num .accent { color: var(--blue-2); }
.stat-label {
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--f-display);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.svc-card {
  background: var(--white);
  padding: 44px 40px;
  transition: background .2s;
  position: relative;
}
.svc-card:hover { background: var(--off); }
.svc-card--featured {
  background: var(--ink);
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.svc-card--featured:hover { background: #0f1526; }
.svc-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 22px;
  flex-shrink: 0;
}
.svc-icon--blue   { background: var(--blue-bg); color: var(--blue-2); }
.svc-icon--sky    { background: #f0f9ff; color: #0284c7; }
.svc-icon--amber  { background: var(--amber-bg); color: var(--amber); }
.svc-icon--green  { background: var(--green-bg); color: var(--green); }
.svc-icon--violet { background: #f5f3ff; color: var(--violet); }
.svc-icon--white  { background: rgba(255,255,255,.1); color: #ffffff; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: .9375rem; color: var(--muted); line-height: 1.72; text-align: left; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
/* Featured card text */
.svc-card--featured h3 { color: #ffffff; font-size: 1.5rem; }
.svc-card--featured p  { color: rgba(255,255,255,.55); text-align: left; }
.svc-card--featured .svc-tags .tag--ai { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }

/* AI feature pills on right side of featured */
.ai-feat-list { display: flex; flex-direction: column; gap: 12px; }
.ai-feat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: background .2s, border-color .2s;
}
.ai-feat-pill:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.ai-feat-pill-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  font-size: 16px;
  flex-shrink: 0;
}
.ai-feat-pill span {
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

/* ═══════════════════════════════════════════════════════════
   AI TRANSFORMATION SPOTLIGHT
   ═══════════════════════════════════════════════════════════ */
.ai-spotlight {
  background: linear-gradient(160deg, #0d0f1e 0%, #0a1020 40%, #0d0b1a 100%);
  padding-block: var(--sec-y);
  position: relative;
  overflow: hidden;
}
.ai-spotlight::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 65%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.ai-spotlight::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.15) 0%, transparent 65%);
  bottom: -200px; left: -100px;
  pointer-events: none;
}
.ai-spotlight .wrap { position: relative; z-index: 1; }

.ai-spot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.ai-spot-info .label { color: #a5b4fc; }
.ai-spot-info .label::before { background: #818cf8; }
.ai-spot-info h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.ai-spot-info p {
  color: rgba(255,255,255,.5);
  line-height: 1.82;
  margin-bottom: 36px;
  text-align: left;
}

.ai-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}
.ai-cap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: background .2s, border-color .2s;
}
.ai-cap:hover { background: rgba(255,255,255,.08); border-color: rgba(165,180,252,.3); }
.ai-cap-icon { font-size: 1.5rem; margin-bottom: 10px; }
.ai-cap h4 { font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.ai-cap p  { font-size: .8125rem; color: rgba(255,255,255,.4); line-height: 1.55; text-align: left; }

/* Chat demo card */
.ai-demo-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.ai-demo-topbar {
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-demo-dot-row { display: flex; gap: 6px; }
.ai-demo-dot-row span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.ai-demo-dot-row span:first-child { background: #ff5f57; }
.ai-demo-dot-row span:nth-child(2) { background: #febc2e; }
.ai-demo-dot-row span:nth-child(3) { background: #28c840; }
.ai-demo-title {
  flex: 1;
  text-align: center;
  font-size: .75rem;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.ai-demo-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-family: var(--f-display);
  font-weight: 600;
  color: #4ade80;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ai-demo-live span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: livepulse 2s ease-in-out infinite;
}
.ai-demo-body { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.ai-bubble {
  max-width: 85%;
  padding: 13px 17px;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.55;
}
.ai-bubble--user {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  border-radius: 14px 14px 3px 14px;
  margin-left: auto;
  text-align: right;
}
.ai-bubble--agent {
  background: linear-gradient(135deg,#2563eb,#7c3aed);
  color: var(--white);
  border-radius: 14px 14px 14px 3px;
}
.ai-demo-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-demo-input {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: rgba(255,255,255,.4);
  font-size: .8125rem;
  font-family: var(--f-body);
}
.ai-demo-send {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   WHY SECTION
   ═══════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.why-card {
  background: var(--white);
  padding: 44px 36px;
  transition: background .2s;
}
.why-card:hover { background: var(--off); }
.why-num {
  font-family: var(--f-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 14px;
  -webkit-text-fill-color: currentColor;
  background: none;
}
.why-card h3 { margin-bottom: 12px; }
.why-card p { font-size: .9375rem; color: var(--muted); line-height: 1.75; text-align: left; }

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════════════ */
.port-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}
.port-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  cursor: default;
}
.port-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-bd);
}
.port-thumb {
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 32px;
}
.port-thumb-logo {
  text-align: center;
  position: relative;
  z-index: 1;
}
.port-body { padding: 32px 32px 36px; }
.port-client {
  font-family: var(--f-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 8px;
}
.port-title {
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}
.port-desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 20px;
  text-align: left;
}
.port-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.port-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.port-outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-size: .75rem;
  font-weight: 700;
  background: var(--green-bg);
  border: 1px solid #a7f3d0;
  color: var(--green);
  padding: 5px 13px;
  border-radius: var(--r-full);
}

/* Client logo text treatments */
.client-wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-2);
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info .lead { margin-bottom: 36px; }
.c-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.c-detail-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--off);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.c-detail-text strong {
  display: block;
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.c-detail-text span, .c-detail-text a {
  font-size: .9375rem;
  color: var(--ink-2);
  transition: color .15s;
}
.c-detail-text a:hover { color: var(--blue-2); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 { margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: .9375rem; margin-bottom: 30px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { margin-bottom: 14px; }
.f-field label {
  display: block;
  font-family: var(--f-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.f-field input,
.f-field select,
.f-field textarea {
  width: 100%;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-family: var(--f-body);
  font-size: .9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: var(--white);
}
.f-field input::placeholder, .f-field textarea::placeholder { color: var(--dim); }
.f-field textarea { resize: vertical; min-height: 120px; }
.f-submit {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all .2s;
  margin-top: 6px;
}
.f-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.f-note {
  text-align: center;
  font-size: .8125rem;
  color: var(--dim);
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--hero-bg);
  padding-top: 80px;
  padding-bottom: 44px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__brand .footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.footer-logo-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.footer-logo-icon img { height: 38px; width: auto; mix-blend-mode: screen; }
.footer-wordmark-text {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.88);
  line-height: 1.2;
}
.footer-wordmark-text small {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-top: 1px;
}
.footer__brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.4);
  line-height: 1.78;
  margin-top: 16px;
  max-width: 280px;
}
.footer__col h5 {
  font-family: var(--f-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: .9rem;
  color: rgba(255,255,255,.45);
  transition: color .15s;
}
.footer__col a:hover { color: #ffffff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__bottom p { font-size: .875rem; color: rgba(255,255,255,.3); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 14px;
  transition: all .15s;
}
.footer__social a:hover { border-color: rgba(255,255,255,.3); color: #ffffff; background: rgba(255,255,255,.06); }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--hero-bg);
  padding-top: 140px;
  padding-bottom: 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero__orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.25) 0%, transparent 65%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero .lead { max-width: 540px; margin-inline: auto; color: rgba(255,255,255,.5); }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.d1 { transition-delay: .08s !important; }
.d2 { transition-delay: .16s !important; }
.d3 { transition-delay: .24s !important; }
.d4 { transition-delay: .32s !important; }
.d5 { transition-delay: .40s !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wrap { padding-inline: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .ai-spot-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-card--featured { grid-column: span 1; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card--featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sec-y: 80px; }
  .wrap { padding-inline: 20px; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .why-grid, .port-grid, .svc-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 22px; }
  .hero h1 { font-size: 2.25rem; }
  .hero__btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 28px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
  }
  .stat-item:nth-child(3) { border-top: none !important; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-label { font-size: .78rem; white-space: nowrap; hyphens: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .ai-caps { grid-template-columns: 1fr; }
  .svc-card--featured { display: block; }
  /* wa-float position now handled in MOBILE OPTIMIZATIONS block */
  .hero__trust-logos { gap: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.875rem; }
  h2, .h2 { font-size: 1.625rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE VARIABLES
   ═══════════════════════════════════════════════════════════ */
html.dark {
  --white:       #0d1117;
  --off:         #161b22;
  --off-2:       #1c2128;
  --border:      #30363d;
  --border-soft: #21262d;
  --ink:         #e6edf3;
  --ink-2:       #adbac7;
  --muted:       #768390;
  --dim:         #545d68;
  --blue-bg:     #0c1a2e;
  --blue-bd:     #1a3a5c;
  --blue-2:      #60a5fa;
  --blue-3:      #93c5fd;
  --green-bg:    #0d1f17;
  --amber-bg:    #1a1000;
  --hero-bg:     #010409;
  --accent-bg:   #0c1a2e;
}

/* Dark nav */
html.dark .nav {
  background: rgba(9,12,21,.92);
  border-color: rgba(48,54,61,.8);
}
html.dark .nav__link { color: var(--dim); }
html.dark .nav__link:hover, html.dark .nav__link.active {
  color: var(--ink);
  background: rgba(255,255,255,.05);
}
html.dark .nav__cta {
  background: rgba(255,255,255,.1);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.12);
}
html.dark .nav__cta:hover { background: rgba(255,255,255,.15); }
html.dark .nav__hamburger { border-color: var(--border); }
html.dark .nav__hamburger span { background: var(--ink); }
html.dark .nav__drawer { background: var(--off); border-color: var(--border); }

/* Dark sections */
html.dark .sec--alt { background: var(--off); }
html.dark .stats-sec { background: var(--off); }
html.dark .marquee-section { background: var(--white); border-color: var(--border); }
html.dark .marquee-item { border-color: var(--border); }

/* Dark cards */
html.dark .card {
  background: var(--off);
  border-color: var(--border);
}
html.dark .card:hover { border-color: var(--blue-bd); }

html.dark .svc-card { background: var(--off); }
html.dark .svc-card:hover { background: var(--off-2); }
html.dark .svc-grid { background: var(--border); }
html.dark .svc-card--featured { background: #060d1a; }
html.dark .svc-card--featured:hover { background: #08101e; }

html.dark .why-grid { background: var(--border); }
html.dark .why-card { background: var(--off); }
html.dark .why-card:hover { background: var(--off-2); }

html.dark .port-card { background: var(--off); border-color: var(--border); }
html.dark .port-card:hover { border-color: var(--blue-bd); }
html.dark .port-body { background: var(--off); }
html.dark .port-thumb { border-color: var(--border); }

/* Dark form */
html.dark .form-card { background: var(--off); border-color: var(--border); }
html.dark .f-field input,
html.dark .f-field select,
html.dark .f-field textarea {
  background: var(--off-2);
  border-color: var(--border);
  color: var(--ink);
}
html.dark .f-field input:focus,
html.dark .f-field select:focus,
html.dark .f-field textarea:focus {
  border-color: var(--blue-2);
  background: var(--off);
}
html.dark .f-submit { background: var(--blue); color: #fff; }
html.dark .f-submit:hover { background: var(--blue-dark); }

/* Dark contact details */
html.dark .c-detail-icon { background: var(--off-2); border-color: var(--border); }

/* Dark tags */
html.dark .tag { background: var(--off-2); border-color: var(--border); color: var(--ink-2); }
html.dark .tag--blue { background: var(--blue-bg); border-color: var(--blue-bd); color: var(--blue-2); }
html.dark .tag--green { background: var(--green-bg); border-color: #1a4a2a; color: #34d399; }

/* Dark divider */
html.dark hr.divider { border-color: var(--border); }

/* Dark buttons */
html.dark .btn-ghost {
  border-color: var(--border);
  color: var(--ink-2);
}
html.dark .btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
html.dark .btn-dark { background: rgba(255,255,255,.1); color: var(--ink); border: 1px solid rgba(255,255,255,.1); }
html.dark .btn-dark:hover { background: rgba(255,255,255,.16); }

/* Dark AI spotlight already dark; keep as-is */
/* Dark hero already dark; keep as-is */
/* Dark footer already dark; keep as-is */

/* Dark svc icons */
html.dark .svc-icon--blue { background: var(--blue-bg); }
html.dark .svc-icon--sky { background: #051a2b; }
html.dark .svc-icon--amber { background: #1a1000; }
html.dark .svc-icon--green { background: var(--green-bg); }
html.dark .svc-icon--violet { background: #160d2b; }

/* ═══════════════════════════════════════════════════════════
   DARK MODE TOGGLE BUTTON
   ═══════════════════════════════════════════════════════════ */
.nav__theme {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
  margin-left: 2px;
}
.nav__theme:hover { border-color: var(--ink); color: var(--ink); background: var(--off); }
.nav__theme svg { width: 16px; height: 16px; }
.nav__theme .icon-sun { display: none; }
.nav__theme .icon-moon { display: block; }
html.dark .nav__theme .icon-sun { display: block; }
html.dark .nav__theme .icon-moon { display: none; }
html.dark .nav__theme { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5); }
html.dark .nav__theme:hover { border-color: rgba(255,255,255,.3); color: var(--white); background: rgba(255,255,255,.06); }

/* ═══════════════════════════════════════════════════════════
   TYPEWRITER / GLITCH ANIMATION
   ═══════════════════════════════════════════════════════════ */
.typer-wrap {
  display: inline;
}
.typer-text {
  display: inline;
}
.typer-cursor {
  display: inline-block;
  width: 4px;
  height: .85em;
  background: #818cf8;
  margin-left: 3px;
  vertical-align: -0.05em;
  border-radius: 2px;
  animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   HERO CREDENTIALS (replaces "Trusted by")
   ═══════════════════════════════════════════════════════════ */
.hero__creds {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}
.hero__cred {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.7);
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: background .2s, border-color .2s;
}
.hero__cred:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
  color: #ffffff;
}
.hero__cred .cred-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   PRICING SECTION
   ═══════════════════════════════════════════════════════════ */

/* Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  padding: 5px;
  width: fit-content;
  margin: 32px auto 0;
}
.ptoggle-btn {
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px;
  color: rgba(255,255,255,.5);
  transition: background .2s, color .2s;
  cursor: pointer;
  border: none;
  background: transparent;
}
.ptoggle-btn--active {
  background: linear-gradient(135deg, #c084fc, #818cf8);
  color: #fff;
}
.pricing-save-note {
  text-align: center;
  font-size: .9rem;
  color: #a78bfa;
  margin-top: 14px;
  font-family: var(--f-display);
}
.pricing-save-note strong { color: #c084fc; }

/* Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* Cards */
.pricing-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color .25s, box-shadow .25s;
}
.pricing-card:hover {
  border-color: rgba(255,255,255,.18);
}
.pricing-card--featured {
  background: linear-gradient(145deg, rgba(192,132,252,.12), rgba(99,102,241,.1));
  border-color: rgba(192,132,252,.4);
  box-shadow: 0 0 60px rgba(192,132,252,.12);
}
.pricing-card--featured:hover {
  border-color: rgba(192,132,252,.65);
  box-shadow: 0 0 80px rgba(192,132,252,.18);
}
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, #c084fc, #818cf8);
  color: #fff;
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
}
.pricing-card__header {
  margin-bottom: 28px;
}
.pricing-tier {
  font-family: var(--f-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
  display: block;
}
.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 14px;
  line-height: 1;
}
.pp-currency {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  padding-bottom: 6px;
}
.pp-amount {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  transition: opacity .15s ease;
}
.pp-period {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  padding-bottom: 8px;
  margin-left: 2px;
}
.pricing-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
  text-align: left !important;
}
.pricing-features li svg {
  color: #a78bfa;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card--featured .pricing-features li { color: rgba(255,255,255,.85); }
.pricing-card--featured .pricing-features li svg { color: #c084fc; }

/* Buttons */
.pricing-btn {
  display: block;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  padding: 14px 24px;
  border-radius: 12px;
  transition: all .22s;
  margin-top: auto;
}
.pricing-btn--outline {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
}
.pricing-btn--outline:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
}
.pricing-btn--gradient {
  background: linear-gradient(135deg, #c084fc, #818cf8, #60a5fa);
  color: #fff;
  box-shadow: 0 4px 24px rgba(129,140,248,.35);
}
.pricing-btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(129,140,248,.5);
}

/* Trust line */
.pricing-trust {
  text-align: center !important;
  margin-top: 40px;
  font-size: .875rem;
  color: rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--f-display);
}
.pricing-trust svg { color: #4ade80; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   PROCESS SECTION
   ═══════════════════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 1024px) { .process-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
@media (max-width: 640px)  { .process-grid { max-width: 100%; } }

.process-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, box-shadow .25s;
}
.process-card:hover {
  border-color: rgba(192,132,252,.35);
  box-shadow: 0 8px 40px rgba(192,132,252,.08);
}

/* Visual area */
/* Fixed equal-height visual area for all cards */
.process-card__visual {
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  overflow: hidden;
}

/* ── Step 01: Team grid with hover ── */
.process-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.process-team-cell {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  cursor: default;
  transition: background .22s, border-color .22s, color .22s;
}
.process-team-cell:hover {
  background: rgba(192,132,252,.1);
  border-color: rgba(192,132,252,.4);
  color: rgba(255,255,255,.9);
}
.process-team-cell:hover .process-team-icon {
  background: rgba(192,132,252,.2);
  color: #c084fc;
}
.process-team-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  transition: background .22s, color .22s;
}

/* ── Step 02: Scrolling code mockup ── */
.process-code-mock {
  background: #0d0f1c;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pcm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  flex-shrink: 0;
}
.pcm-filename {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-family: 'Courier New', monospace;
}
.pcm-tag {
  font-size: .7rem;
  font-weight: 700;
  background: rgba(192,132,252,.2);
  color: #c084fc;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: var(--f-display);
  letter-spacing: .04em;
}
.pcm-body {
  padding: 12px 14px;
  overflow: hidden;
  flex: 1;
  position: relative;
}
.pcm-scroll-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* Idle slow drift */
@keyframes codeIdle {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
/* Hover: continuous scroll of duplicated content */
@keyframes codeScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.pcm-scroll-inner {
  animation: codeIdle 6s ease-in-out infinite;
}
.process-card__visual:hover .pcm-scroll-inner {
  animation: codeScroll 4s linear infinite;
}
.pcm-ln {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  white-space: nowrap;
}
.pcm-ln em { font-style: normal; color: #818cf8; }
.pcm-tag-el { color: #60a5fa; }
.pcm-indent  { padding-left: 16px; }
.pcm-indent2 { padding-left: 32px; }
.pcm-dim { color: rgba(255,255,255,.25); }

/* ── Step 03: Animated tech icons ── */
.process-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.pig-cell {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: rgba(255,255,255,.45);
  transition: background .22s, color .22s, border-color .22s;
  animation: iconFloat 3s ease-in-out infinite;
}
.pig-cell:hover {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.4);
  color: #818cf8;
  animation-play-state: paused;
}

/* ── Card body — fixed so all cards have equal proportions ── */
.process-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.process-step {
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #c084fc, #818cf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.process-card__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 10px;
}
.process-card__desc {
  font-size: .9375rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   CHAT MODAL
   ═══════════════════════════════════════════════════════════ */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px 24px 104px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.chat-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.chat-window {
  width: 400px;
  max-height: 580px;
  background: #0c0f1a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 32px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
}
.chat-overlay.open .chat-window {
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 16px 20px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1d4ed8,#7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .75rem;
  color: var(--white);
  flex-shrink: 0;
}
.chat-agent-name {
  font-family: var(--f-display);
  font-size: .9375rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
.chat-agent-online {
  font-size: .75rem;
  color: #4ade80;
  font-family: var(--f-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-agent-online::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: livepulse 2s ease-in-out infinite;
}
.chat-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.chat-close:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.chat-msg {
  display: flex;
  gap: 8px;
  animation: msgIn .3s ease forwards;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg--bot { align-items: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1d4ed8,#7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: .6rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}
.chat-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.55;
}
.chat-bubble--bot {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  border-radius: 4px 14px 14px 14px;
}
.chat-bubble--user {
  background: linear-gradient(135deg,var(--blue),var(--violet));
  color: var(--white);
  border-radius: 14px 14px 4px 14px;
}
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 15px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing-bounce {
  0%,80%,100% { transform: scale(.8); opacity: .5; }
  40% { transform: scale(1.1); opacity: 1; }
}

.chat-suggestions {
  padding: 8px 20px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chat-sugg-btn {
  font-family: var(--f-display);
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  padding: 6px 13px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.chat-sugg-btn:hover {
  background: rgba(29,78,216,.25);
  border-color: rgba(96,165,250,.3);
  color: #93c5fd;
}

.chat-input-row {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--f-body);
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  outline: none;
  transition: border-color .15s;
}
.chat-input:focus { border-color: rgba(96,165,250,.4); }
.chat-input::placeholder { color: rgba(255,255,255,.3); }
.chat-send {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: var(--r-md);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.chat-send:hover { background: var(--blue-dark); transform: scale(1.05); }

/* Floating chat trigger button (replaces wa-float when chat open) */
.chat-trigger {
  position: fixed;
  bottom: 28px; right: 88px;
  z-index: 900;
  width: 54px; height: 54px;
  background: linear-gradient(135deg,var(--blue),var(--violet));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(29,78,216,.45);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
}
.chat-trigger:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(29,78,216,.55); }
.chat-trigger.hidden { display: none; }

/* Demo area click-to-chat hint */
.demo-chat-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  font-family: var(--f-display);
  font-weight: 500;
  padding: 0 24px 14px;
}
.demo-chat-hint a {
  color: #60a5fa;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER CONTACT FIX
   ═══════════════════════════════════════════════════════════ */
.footer__contact-info {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.footer__contact-item:last-child { border-bottom: none; }
.footer__contact-item a {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  transition: color .15s;
}
.footer__contact-item a:hover { color: #ffffff; }
.footer__contact-item svg { flex-shrink: 0; color: rgba(255,255,255,.25); }
.footer__addr {
  margin-top: 16px;
  font-size: .8125rem;
  color: rgba(255,255,255,.25);
  line-height: 1.65;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__theme { margin-left: 6px; }
  .hero__content { padding: 60px 0 80px; }
  .hero h1 { font-size: 2rem; letter-spacing: -.025em; }
  .hero .lead { font-size: .9375rem; }
  .hero__btns { gap: 10px; }
  .hero__btns .btn { padding: 13px 22px; font-size: .875rem; width: 100%; justify-content: center; }
  .hero__creds { gap: 8px; padding-top: 32px; }
  .hero__cred { font-size: .75rem; padding: 6px 12px; }
  .svc-card { padding: 28px 22px; }
  .svc-card--featured { padding: 28px 22px; }
  .ai-feat-list { gap: 8px; margin-top: 20px; }
  .ai-feat-pill { padding: 10px 14px; }
  .ai-feat-pill span { font-size: .8125rem; }
  .ai-demo-card { margin-top: 0; }
  .ai-spot-grid { gap: 36px; }
  .marquee-section { padding-block: 28px; }
  .stats-sec { padding-block: 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .port-card:hover { transform: none; }
  .contact-grid { gap: 36px; }
  .form-card { padding: 28px 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .chat-window { width: calc(100vw - 32px); }
  .chat-overlay { padding: 16px 16px 96px; justify-content: center; }
  /* chat-trigger position now handled in MOBILE OPTIMIZATIONS block */
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero__creds { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2rem; }
  .sec-head { margin-bottom: 40px; }
  .svc-card--featured .ai-feat-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE — FIX: var(--white) text on always-dark surfaces
   In dark mode --white becomes #0d1117 (near-black), which
   makes text invisible on the dark hero/spotlight/footer.
   These overrides force the correct readable colour.
   ═══════════════════════════════════════════════════════════ */

/* Hero — always dark background */
html.dark .hero h1 { color: rgba(255,255,255,.92); }
html.dark .hero .lead { color: rgba(255,255,255,.52); }
html.dark .hero__scroll { color: rgba(255,255,255,.3); }
html.dark .hero__scroll svg { color: rgba(255,255,255,.3); }

/* AI Spotlight — always dark background */
html.dark .ai-spot-info h2,
html.dark .ai-spot-info .white { color: rgba(255,255,255,.92) !important; }
html.dark .ai-spot-info p { color: rgba(255,255,255,.52); }
html.dark .ai-cap h4 { color: rgba(255,255,255,.85); }
html.dark .ai-cap p { color: rgba(255,255,255,.45); }
html.dark .ai-cap-icon { color: rgba(255,255,255,.9); }

/* Featured service card — always dark background */
html.dark .svc-card--featured h3 { color: rgba(255,255,255,.92); }
html.dark .svc-card--featured p { color: rgba(255,255,255,.52); }

/* Page hero (about/services/ai-agents) — always dark background */
html.dark .page-hero h1 { color: rgba(255,255,255,.92); }
html.dark .page-hero .lead { color: rgba(255,255,255,.52); }

/* .white utility class — override the var(--white) to real white */
html.dark .white { color: rgba(255,255,255,.92) !important; }

/* Button label text on dark buttons */
html.dark .btn-blue { color: #fff; }
html.dark .btn-ghost-white { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
html.dark .btn-ghost-white:hover { color: #fff; border-color: rgba(255,255,255,.45); }

/* Stat numbers in dark mode should stay readable */
html.dark .stat-num { color: var(--ink); }
html.dark .stat-num .accent { color: var(--blue-2); }
html.dark .stat-label { color: var(--muted); }

/* Why-card numbers in dark */
html.dark .why-num { color: var(--blue-3); -webkit-text-fill-color: currentColor; background: none; }
html.dark .why-card h3 { color: var(--ink); }
html.dark .why-card p { color: var(--ink-2); }

/* Section headings in light sections must read as light text in dark mode */
html.dark h1, html.dark h2, html.dark h3,
html.dark h4, html.dark h5, html.dark h6 { color: var(--ink); }
/* Re-override for always-dark sections (cascade order matters) */
html.dark .hero h1,
html.dark .ai-spot-info h2,
html.dark .svc-card--featured h3,
html.dark .page-hero h1 { color: rgba(255,255,255,.92); }

/* Body text in dark mode */
html.dark p { color: var(--ink-2); }
/* Re-override for dark sections */
html.dark .hero .lead,
html.dark .ai-spot-info p { color: rgba(255,255,255,.52); }

/* Labels in dark sections */
html.dark .sec-head .label { color: var(--blue-2); }

/* Port cards */
html.dark .port-client { color: var(--muted); }
html.dark .port-title { color: var(--ink); }
html.dark .port-desc { color: var(--ink-2); }
html.dark .port-outcome { color: var(--muted); }

/* ─── Portfolio logo images ─── */
.port-thumb-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.port-thumb-img img {
  max-width: 220px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.port-thumb-img--cover {
  padding: 0;
  overflow: hidden;
}
.port-thumb-img--cover img {
  width: 100%;
  height: 180px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: left center;
}

/* ═══════════════════════════════════════════════════════════
   NAV LINK ACTIVE — visible gradient underline pill
   ═══════════════════════════════════════════════════════════ */
.nav__link.active {
  color: var(--blue-2) !important;
  background: rgba(37,99,235,.08) !important;
  font-weight: 600 !important;
  position: relative;
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2.5px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 2px;
}
html.dark .nav__link.active {
  color: #60a5fa !important;
  background: rgba(96,165,250,.1) !important;
}
html.dark .nav__link.active::after {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

/* Calendly nav button */
.nav__cal-btn {
  font-family: var(--f-display);
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  cursor: pointer;
  border: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav__cal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
  opacity: .92;
}
html.dark .nav__cal-btn {
  box-shadow: 0 0 0 1px rgba(96,165,250,.3);
}

/* ═══════════════════════════════════════════════════════════
   GRADIENT IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */
/* Section headings with accent keyword */
.head-grad {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Stat numbers - gradient fill */
.stats-sec .stat-num,
.page-hero + .stats-sec .stat-num {
  background: linear-gradient(135deg, var(--ink) 30%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.dark .stats-sec .stat-num,
html.dark .page-hero + .stats-sec .stat-num {
  background: linear-gradient(135deg, #e6edf3 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Why card numbers — solid brand color (readable in light + dark) */
.why-num {
  color: var(--blue-2) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  background-clip: unset !important;
}
html.dark .why-num {
  color: var(--blue-3) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  background-clip: unset !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — extended social row (WhatsApp, Calendly, Forms)
   ═══════════════════════════════════════════════════════════ */
.footer__social-sep {
  width: 1px; height: 22px;
  background: rgba(255,255,255,.1);
  align-self: center;
  flex-shrink: 0;
  margin: 0 2px;
}
.footer__social a.f-wa {
  color: #4ade80;
  border-color: rgba(74,222,128,.2);
}
.footer__social a.f-wa:hover {
  background: rgba(74,222,128,.1);
  border-color: rgba(74,222,128,.45);
  color: #4ade80;
}
.footer__social a.f-cal {
  color: #60a5fa;
  border-color: rgba(96,165,250,.2);
}
.footer__social a.f-cal:hover {
  background: rgba(96,165,250,.1);
  border-color: rgba(96,165,250,.45);
  color: #60a5fa;
}
.footer__social a.f-form {
  color: #c084fc;
  border-color: rgba(192,132,252,.2);
}
.footer__social a.f-form:hover {
  background: rgba(192,132,252,.1);
  border-color: rgba(192,132,252,.45);
  color: #c084fc;
}

/* Calendly CTA card (contact section) */
.cal-cta-card {
  background: linear-gradient(135deg, rgba(37,99,235,.07) 0%, rgba(124,58,237,.07) 100%);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.cal-cta-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cal-cta-info strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.cal-cta-info span {
  font-size: .8125rem;
  color: var(--blue-2);
  font-weight: 500;
  font-family: var(--f-display);
  display: block;
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.cal-cta-info p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}
.cal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  letter-spacing: -.01em;
}
.cal-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37,99,235,.35);
}
html.dark .cal-cta-card {
  background: rgba(37,99,235,.08);
  border-color: rgba(96,165,250,.18);
}
html.dark .cal-cta-info strong { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   AI AGENT ROSTER — dayzero.ai-inspired tabbed layout
   ═══════════════════════════════════════════════════════════ */
.agents-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 52px;
  min-height: 540px;
}
.agents-sidebar {
  background: var(--off);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.agents-sidebar-label {
  font-family: var(--f-display);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}
.agent-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: background .12s;
  width: 100%;
}
.agent-tab:hover:not(.active) { background: rgba(37,99,235,.05); }
.agent-tab.active {
  background: var(--white);
  box-shadow: 0 1px 14px rgba(0,0,0,.07);
}
.agent-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.agent-av svg { display: block; width: 100%; height: 100%; }
.atab-info { flex: 1; min-width: 0; }
.atab-name {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 1px;
}
.atab-role {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.abadge {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 20px;
  flex-shrink: 0;
}
.abadge--new { background: linear-gradient(135deg,#2563eb,#7c3aed); color:#fff; }
.abadge--pop { background: linear-gradient(135deg,#059669,#0891b2); color:#fff; }

/* Agent detail panel */
.agent-panel {
  background: var(--white);
  padding: 44px 48px;
  display: none;
  flex-direction: column;
  gap: 0;
}
.agent-panel.active { display: flex; }
.ap-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.ap-av-lg {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.ap-av-lg svg { display: block; width: 100%; height: 100%; }
.ap-head-text .ap-spec {
  font-family: var(--f-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-2);
  display: block;
  margin-bottom: 4px;
}
.ap-head-text h3 {
  font-size: 1.6rem;
  margin: 0 0 3px;
  color: var(--ink);
  line-height: 1.2;
}
.ap-head-text .ap-tagline {
  font-size: .875rem;
  color: var(--muted);
}
.ap-desc {
  font-size: .9375rem;
  color: var(--ink-2);
  line-height: 1.78;
  margin-bottom: 30px;
  text-align: left;
}
.ap-results {
  background: linear-gradient(135deg, #eef2ff 0%, #f3eeff 100%);
  border: 1px solid rgba(37,99,235,.12);
  border-radius: var(--r-xl);
  padding: 22px 26px;
  margin-bottom: 24px;
}
.ap-results-label {
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.ap-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 36px;
  align-items: start;
}
.ap-metrics > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.ap-metric-val {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-2);
  line-height: 1.15;
  min-height: 2.25rem;
  display: flex;
  align-items: flex-end;
  margin-bottom: 6px;
}
.ap-metric-lbl {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
  max-width: 240px;
}
.ap-hire-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-display);
  font-size: .9375rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-md);
  transition: all .2s;
  letter-spacing: -.01em;
  align-self: flex-start;
  cursor: pointer;
  border: none;
  margin-top: 4px;
}
.ap-hire-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.ap-hire-btn .arrow { transition: transform .15s; display:inline-block; }
.ap-hire-btn:hover .arrow { transform: translateX(4px); }

/* Dark mode agents */
html.dark .agents-sidebar { background: var(--off); }
html.dark .agent-tab.active { background: #1c2332; box-shadow: 0 1px 14px rgba(0,0,0,.3); }
html.dark .agent-panel { background: var(--off); }
html.dark .ap-head { border-color: var(--border); }
html.dark .ap-results { background: rgba(37,99,235,.07); border-color: rgba(96,165,250,.15); }
html.dark .ap-results-label { color: var(--ink); }
html.dark .ap-metric-val { color: #60a5fa; }
html.dark .ap-hire-btn { background: #2563eb; }
html.dark .ap-hire-btn:hover { background: #1d4ed8; }

/* Responsive agent layout */
@media (max-width: 860px) {
  .agents-layout { grid-template-columns: 1fr; min-height: auto; }
  .agents-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    gap: 8px;
    scrollbar-width: none;
  }
  .agents-sidebar::-webkit-scrollbar { display: none; }
  .agents-sidebar-label { display: none; }
  .agent-tab {
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    min-width: 72px;
    flex-shrink: 0;
    gap: 6px;
  }
  .atab-role { display: none; }
  .atab-name { font-size: .75rem; justify-content: center; }
  .agent-panel { padding: 28px 22px; }
  .ap-metrics { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .ap-metric-val { font-size: 1.5rem; }
  .nav__cal-btn { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR — 3-column: links | center logo | actions
   ═══════════════════════════════════════════════════════════ */
.nav__inner {
  display: flex !important;
  align-items: stretch;
  gap: 0;
  overflow: visible;
  max-width: 100%;
  padding-inline: 40px;
}
.nav__links {
  flex: 1;
  justify-content: flex-start;
  align-items: stretch;
  padding-left: 0;
}
.nav__links > .nav__link {
  display: flex;
  align-items: center;
}
.nav__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.nav__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity .2s;
}
html.dark .nav__logo img {
  mix-blend-mode: normal;
  filter: brightness(0) invert(1);
  opacity: .82;
}
.nav__actions {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  align-self: center;
  padding-right: 0;
}
/* CTA icon support */
.nav__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

/* ─── Colorful footer social icons ─── */
.footer__social a.f-li { color: #5aabff; border-color: rgba(90,171,255,.2); }
.footer__social a.f-li:hover { background: rgba(90,171,255,.1); border-color: rgba(90,171,255,.45); color: #5aabff; }
.footer__social a.f-ig { color: #f472b6; border-color: rgba(244,114,182,.2); }
.footer__social a.f-ig:hover { background: rgba(244,114,182,.1); border-color: rgba(244,114,182,.45); color: #f472b6; }
.footer__social a.f-fb { color: #818cf8; border-color: rgba(129,140,248,.2); }
.footer__social a.f-fb:hover { background: rgba(129,140,248,.1); border-color: rgba(129,140,248,.45); color: #818cf8; }

/* ─── Footer address treated as contact item ─── */
.footer__contact-item--addr { align-items: flex-start; }
.footer__contact-item--addr address {
  font-style: normal;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
  font-size: .875rem;
}

/* ─── Client logo beautification ─── */
/* Light-bg logos: removes white bg via multiply */
.port-logo-light { mix-blend-mode: multiply; }
/* Dark-bg logo (MoveItMoveIt): removes black borders via screen */
.port-logo-screen { mix-blend-mode: screen; }

/* ─── Industry card tag row: top-aligned ─── */
.ind-card-hrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
}
.ind-card-hrow h3 { margin: 0; font-size: 1.1rem; flex: 1; line-height: 1.35; }
.ind-card-hrow .tag { flex-shrink: 0; margin-top: 2px; white-space: nowrap; }

/* ─── Calendly inline booking section (dayzero.ai style) ─── */
.cal-inline-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 52px auto 0;
  max-width: 860px;
  min-height: 640px;
}
.cal-inline-person {
  background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 60%, #2d1a4e 100%);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cal-ip-av {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 1.4rem; font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.cal-ip-name {
  font-family: var(--f-display);
  font-size: 1.05rem; font-weight: 700;
  color: rgba(255,255,255,.92);
  margin-bottom: 2px;
}
.cal-ip-role {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
  line-height: 1.5;
}
.cal-ip-detail {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: rgba(255,255,255,.5);
  margin-bottom: 11px;
}
.cal-ip-detail svg { flex-shrink: 0; color: rgba(255,255,255,.35); }
.cal-ip-divider {
  margin: 24px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cal-ip-note {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 20px;
}
.cal-embed-pane {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.calendly-inline-widget {
  flex: 1;
  min-height: 720px;
  border: none;
  width: 100%;
}
@media (max-width: 860px) {
  .cal-inline-layout { grid-template-columns: 1fr; min-height: auto; }
  .cal-inline-person { padding: 28px 22px; }
  .calendly-inline-widget { min-height: 580px; }
  .nav__logo { position: static; transform: none; }
  .nav__actions .nav__cal-btn { display: none; }
}

/* ─── Agent photos human-like ─── */
.agent-av img, .ap-av-lg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 50%; display: block;
}

/* ─── Page hero typewriter ─── */
.hero-sub-typer {
  display: inline-block;
  color: #a5b4fc;
  font-weight: 600;
  border-right: 2px solid rgba(165,180,252,.7);
  padding-right: 3px;
  animation: blink .72s step-end infinite;
}

/* ─── Shrey photo avatar ─── */
.cal-ip-av img, .shrey-av img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 50%; display: block;
}
.cal-ip-av {
  overflow: hidden;
  border: 2px solid rgba(99,102,241,.4);
}

/* ─── Book with Shrey compact card (inner pages) ─── */
.book-shrey-strip {
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
  border: 1px solid rgba(99,102,241,.15);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 60px 0 0;
}
html.dark .book-shrey-strip {
  background: linear-gradient(135deg, rgba(30,27,75,.5) 0%, rgba(15,23,42,.5) 100%);
  border-color: rgba(99,102,241,.25);
}
.book-shrey-av {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2.5px solid rgba(99,102,241,.35);
}
.book-shrey-av img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.book-shrey-body { flex: 1; }
.book-shrey-name {
  font-family: var(--f-display);
  font-size: 1rem; font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.book-shrey-role {
  font-size: .8rem;
  color: var(--blue-2);
  font-weight: 600;
  margin-bottom: 8px;
}
.book-shrey-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 380px;
}
.book-shrey-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-radius: 9999px;
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .18s, transform .18s;
  flex-shrink: 0;
}
.book-shrey-btn:hover { opacity: .9; transform: translateY(-1px); }
@media (max-width: 640px) {
  .book-shrey-strip { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .book-shrey-btn { width: 100%; justify-content: center; }
}

/* ─── cal-cta-card: use photo ─── */
.cal-cta-avatar {
  overflow: hidden;
  border: 2.5px solid rgba(99,102,241,.35);
}
.cal-cta-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 50%; display: block;
}

/* ══════════════════════════════════════════════════════
   CUSTOM BOOKING CALENDAR (replaces Calendly embed)
   ══════════════════════════════════════════════════════ */
.cal-embed-pane { background: var(--white); overflow-y: auto; }
html.dark .cal-embed-pane { background: #0f172a; }
#customBooking { height: 100%; display: flex; flex-direction: column; min-height: 560px; }

.cbk-step { padding: 32px 28px; flex: 1; display: flex; flex-direction: column; }
.cbk-step.cbk-hidden { display: none !important; }

/* Event header */
.cbk-top-bar { margin-bottom: 22px; }
.cbk-event-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.cbk-event-name svg { color: #2563eb; flex-shrink: 0; }
.cbk-select-prompt { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* Month nav */
.cbk-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cbk-month-label { font-family: var(--f-display); font-size: .9375rem; font-weight: 700; color: var(--ink); }
.cbk-nav-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: background .14s; line-height: 1;
}
.cbk-nav-btn:hover { background: var(--off); }
html.dark .cbk-nav-btn { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
html.dark .cbk-nav-btn:hover { background: rgba(255,255,255,.06); }

/* Weekdays + Days */
.cbk-weekdays { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 4px; }
.cbk-weekdays span { text-align: center; font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cbk-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cbk-day {
  aspect-ratio: 1; border-radius: 50%; border: none; background: transparent;
  font-size: .84rem; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s; font-family: var(--f-body); padding: 0;
}
.cbk-day.cbk-day-avail { color: #2563eb; font-weight: 600; }
.cbk-day.cbk-day-avail:hover { background: rgba(37,99,235,.1); }
.cbk-day.cbk-day-sel { background: #2563eb !important; color: #fff !important; }
.cbk-day.cbk-day-off { color: #d1d5db; cursor: default; pointer-events: none; }
.cbk-day.cbk-day-empty { pointer-events: none; }
html.dark .cbk-day { color: rgba(255,255,255,.7); }
html.dark .cbk-day.cbk-day-avail { color: #60a5fa; }
html.dark .cbk-day.cbk-day-avail:hover { background: rgba(96,165,250,.12); }
html.dark .cbk-day.cbk-day-off { color: rgba(255,255,255,.18); }

/* Timezone */
.cbk-tz-row { display: flex; align-items: center; gap: 6px; font-size: .77rem; color: var(--muted); margin-top: 18px; }

/* Back row */
.cbk-back-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cbk-back {
  background: none; border: none; color: #2563eb; font-family: var(--f-display);
  font-size: .875rem; font-weight: 600; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 5px;
}
.cbk-back:hover { text-decoration: underline; }
.cbk-tz-badge { font-size: .73rem; color: var(--muted); }

/* Slots */
.cbk-slots-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.cbk-slots { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; overflow-y: auto; max-height: 380px; }
.cbk-slot {
  padding: 10px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: transparent; font-family: var(--f-display); font-size: .82rem; font-weight: 600;
  color: var(--ink); cursor: pointer; transition: all .14s; text-align: center;
}
.cbk-slot:hover { border-color: #2563eb; color: #2563eb; background: rgba(37,99,235,.05); }
.cbk-slot.cbk-sel { background: #2563eb; color: #fff; border-color: #2563eb; }
html.dark .cbk-slot { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
html.dark .cbk-slot:hover { border-color: #60a5fa; color: #60a5fa; background: rgba(96,165,250,.08); }
html.dark .cbk-slot.cbk-sel { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Form */
.cbk-form { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.cbk-bk-summary { font-size: .75rem; color: var(--muted); text-align: right; }
.cbk-inp {
  padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--f-body); font-size: .88rem; color: var(--ink);
  background: var(--white); transition: border-color .14s; outline: none; width: 100%; box-sizing: border-box;
}
.cbk-inp:focus { border-color: #2563eb; }
.cbk-ta { resize: vertical; min-height: 72px; }
.cbk-submit {
  padding: 13px 22px; background: linear-gradient(135deg,#2563eb,#7c3aed); color: #fff;
  border: none; border-radius: 9999px; font-family: var(--f-display); font-size: .9rem;
  font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: opacity .15s, transform .15s; margin-top: 4px;
}
.cbk-submit:hover { opacity: .88; transform: translateY(-1px); }
html.dark .cbk-inp { background: rgba(255,255,255,.05); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.1); }
html.dark .cbk-inp:focus { border-color: #60a5fa; }

/* Success */
.cbk-success-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px; text-align: center; padding: 40px 20px;
}
.cbk-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.cbk-success-wrap h3 { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); margin: 0; }
.cbk-success-wrap p { color: var(--muted); max-width: 270px; margin: 0 auto; line-height: 1.6; font-size: .9rem; }
html.dark .cbk-success-wrap h3 { color: rgba(255,255,255,.92); }

/* ══════════════════════════════════════════════════════
   PATCH: nav buttons equal size, calendar compact, strip
   ══════════════════════════════════════════════════════ */

/* Equal-size nav buttons */
.nav__cal-btn,
.nav__cta {
  padding: 9px 16px !important;
  font-size: .85rem !important;
  border-radius: var(--r-md) !important;
  min-height: 36px;
  white-space: nowrap;
}
.nav__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

/* Compact booking calendar */
.cal-inline-layout { min-height: 480px; }
.calendly-inline-widget { min-height: 480px; }
.cbk-step { padding: 24px 22px; }
.cbk-top-bar { margin-bottom: 14px; }
.cbk-month-nav { margin-bottom: 10px; }
.cbk-weekdays span { font-size: .62rem; padding: 3px 0; }
.cbk-day { font-size: .8rem; }
.cbk-tz-row { margin-top: 12px; font-size: .73rem; }
.cbk-slots { max-height: 320px; }

/* Book-with-Shrey strip: proper vertical centering */
.book-shrey-section { padding-top: 40px !important; padding-bottom: 60px !important; }

/* MoveItMoveIt logo: use white bg + multiply (not screen) */
.port-moveit-thumb {
  background: #f9f4ff !important;
}
.port-moveit-thumb img {
  mix-blend-mode: multiply !important;
  object-fit: contain !important;
}

/* Shrey avatar photo in team card */
.shrey-team-av {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 20px;
  border: 2.5px solid var(--blue-bd);
}
.shrey-team-av img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* Agent sidebar avatars consistent sizing */
.agent-av { overflow: hidden; }
.agent-av img { border-radius: 50%; }

/* ── Calendar: even more compact (v3) ── */
.cal-inline-layout { min-height: 400px !important; }
.cbk-step { padding: 16px 14px !important; }
.cbk-top-bar { margin-bottom: 10px !important; }
.cbk-month-nav { margin-bottom: 6px !important; font-size: .82rem !important; }
.cbk-weekdays { margin-bottom: 2px !important; }
.cbk-weekdays span { font-size: .58rem !important; padding: 2px 0 !important; }
.cbk-days { gap: 2px !important; }
.cbk-day {
  aspect-ratio: unset !important;
  height: 30px !important;
  width: 30px !important;
  font-size: .75rem !important;
  border-radius: 50% !important;
}
.cbk-tz-row { margin-top: 8px !important; font-size: .7rem !important; }
.cbk-slots { gap: 6px !important; max-height: 260px !important; }
.cbk-slot { padding: 8px 12px !important; font-size: .8rem !important; }
.cbk-top-bar h3 { font-size: 1rem !important; }
.cbk-top-bar p { font-size: .78rem !important; }

/* ── Force nav buttons identical dimensions ── */
.nav__actions .nav__cal-btn,
.nav__actions .nav__cta,
nav .nav__cal-btn,
nav .nav__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 15px !important;
  font-size: .84rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* ── Agent photos: consistent circular style for sidebar + panel ── */
.agent-av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.agent-av img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; border-radius: 50%; }
.ap-av-lg { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.ap-av-lg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; border-radius: 50%; }

/* ── MoveItMoveIt logo: clean white bg + multiply ── */
.port-moveit-thumb { background: #ffffff !important; }
.port-moveit-thumb img {
  mix-blend-mode: multiply !important;
  object-fit: contain !important;
  padding: 8px !important;
  width: 100% !important;
  height: 100% !important;
}

/* ── Calendar v4: square cells, tight grid, clean layout ── */
.cal-inline-layout {
  max-width: 860px !important;
  min-height: unset !important;
  height: auto !important;
}
.cbk-step {
  padding: 28px 24px !important;
  flex: 1 !important;
}
.cbk-top-bar h3 { font-size: 1.05rem !important; margin-bottom: 4px !important; }
.cbk-top-bar p { font-size: .8rem !important; }
.cbk-month-nav {
  margin-bottom: 10px !important;
  font-size: .88rem !important;
}
.cbk-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  margin-bottom: 4px !important;
  gap: 2px !important;
}
.cbk-weekdays span {
  text-align: center !important;
  font-size: .62rem !important;
  font-weight: 700 !important;
  padding: 4px 0 !important;
  letter-spacing: .06em !important;
}
.cbk-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 4px !important;
}
/* Square cells that fill their column */
.cbk-day {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  max-width: unset !important;
  border-radius: 50% !important;
  font-size: .82rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.cbk-tz-row { margin-top: 14px !important; font-size: .72rem !important; }

/* ═══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   Comprehensive mobile pass — do not edit above this line
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Prevent horizontal scroll globally ── */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  /* Ensure no element breaks viewport width */
  img, video, iframe, table {
    max-width: 100%;
  }
}

/* ── 2. FABs: WhatsApp + Chat — stack vertically ── */
@media (max-width: 768px) {
  /* WhatsApp button — lower position */
  .wa-float {
    position: fixed !important;
    bottom: 80px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 9999 !important;
  }

  /* Chat trigger button — stacked above WhatsApp */
  .chat-trigger {
    position: fixed !important;
    bottom: 140px !important; /* 80 + 48 + 12 */
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 9999 !important;
  }

  /* Chat overlay: account for taller stacked FABs */
  .chat-overlay {
    padding-bottom: 220px !important;
  }

  /* Chat window: don't overlap FABs */
  .chat-window {
    bottom: 220px !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
  }
}

/* ── 3. Navbar: reduce crowding on small screens ── */
/* At 640px: hide "Start a Project" (nav__cta already hidden at 768px; this covers any override) */
@media (max-width: 640px) {
  .nav__actions .nav__cta {
    display: none !important;
  }
}

/* At 480px: hide "Book a Call" text or compress button so hamburger still fits */
@media (max-width: 480px) {
  .nav__actions .nav__cal-btn {
    display: none !important;
  }
  /* Show a compact icon-only version if needed — or simply rely on drawer */
}

/* ── 4. Typography: clamp headings on mobile ── */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem) !important;
  }
  h2, .h2 {
    font-size: clamp(1.4rem, 4.5vw, 2rem) !important;
  }
  h3, .h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem) !important;
  }
  body, p, .lead {
    font-size: max(15px, 0.9375rem);
  }

  /* Page hero on inner pages */
  .page-hero {
    padding-top: 100px;
    padding-bottom: 56px;
  }
  .page-hero h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem) !important;
  }
}

/* ── 5. Section spacing ── */
@media (max-width: 768px) {
  :root { --sec-y: 56px; }
  .sec { padding-block: 56px !important; }
  .wrap { padding-inline: 20px; }
  .nav__inner { padding-inline: 16px; }
}

@media (max-width: 480px) {
  :root { --sec-y: 48px; }
  .sec { padding-block: 48px !important; }
  .wrap { padding-inline: 16px; }
  .nav__inner { padding-inline: 12px; }
}

/* ── 6. Hero section ── */
@media (max-width: 768px) {
  .hero__content {
    padding: 60px 0 72px;
    text-align: center;
  }
  .hero__btns {
    justify-content: center;
    margin-bottom: 32px !important;
  }
  .hero__badge {
    margin-inline: auto;
    white-space: nowrap;
    font-size: .65rem !important;
    padding: 6px 14px !important;
    letter-spacing: .05em !important;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero__trust-logos {
    justify-content: center;
  }
  .hero__creds {
    justify-content: center;
  }
  .hero__scroll {
    display: none;
  }
}

/* ── 7. Grid layouts that must collapse ── */
@media (max-width: 768px) {
  /* Client logo / portfolio grid */
  .port-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Industry cards grid */
  .ind-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Team / person cards */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Stats row: 2-col on mobile is fine, 1-col on very small */
  .metrics-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* About page: stat cards grid */
  .grid-2[style*="align-items:center"],
  .grid-2[style*="align-items: center"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Footer */
  .footer__inner,
  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* AI agents sidebar+panel layout (860px already covers, reinforce here) */
  .agents-layout {
    grid-template-columns: 1fr !important;
  }

  /* Booking calendar layout */
  .cal-inline-layout {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .cal-inline-person {
    order: -1; /* person info on top */
  }
  .calendly-inline-widget {
    min-height: 520px;
  }

  /* AI demo stats mini-grid (inline grid in index.html hero) */
  .ai-demo-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 8. Cards: padding on mobile ── */
@media (max-width: 768px) {
  .card {
    padding: 22px 18px !important;
  }
  .svc-card {
    padding: 24px 18px !important;
  }
  .port-card {
    padding: 20px !important;
  }
  .form-card {
    padding: 28px 18px !important;
  }
  .book-shrey-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 22px !important;
  }
  .book-shrey-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── 9. Contact form inputs ── */
@media (max-width: 768px) {
  .f-field input,
  .f-field select,
  .f-field textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* prevent iOS zoom on focus */
  }
  .f-submit {
    width: 100% !important;
    padding: 15px !important;
  }
  .f-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* ── 10. Services page: two-column feature grids ── */
@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Span-2 cards should fill full width */
  .card[style*="grid-column:span 2"],
  .card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}

/* ── 11. AI agents page ── */
@media (max-width: 640px) {
  .agent-panel {
    padding: 20px 16px !important;
  }
  .ap-metrics {
    grid-template-columns: 1fr !important;
  }
  .agents-sidebar {
    padding: 8px !important;
    gap: 6px !important;
  }
}

/* ── 12. About page specific ── */
@media (max-width: 768px) {
  /* Founders grid */
  .founders-grid,
  .team-cards {
    grid-template-columns: 1fr !important;
  }
}

/* ── 13. Inline stat grid in hero (index.html) ── */
/* The repeat(3,1fr) grid inside .ai-demo-card uses inline styles;
   override via the parent element which has a known class */
@media (max-width: 480px) {
  .ai-demo-card > div[style*="grid-template-columns:repeat(3,1fr)"],
  .ai-demo-card > div[style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important; /* keep 3-col — it's compact enough */
  }
}

/* ── 14. Marquee / trust logos ── */
@media (max-width: 480px) {
  .marquee-track {
    animation-duration: 25s !important;
  }
}

/* ── 15. Footer bottom bar ── */
@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .footer__social {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── 16. Smooth touch scrolling ── */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  html {
    -webkit-overflow-scrolling: touch;
  }
}

/* ── 17. Override problematic inline-style gaps on mobile ── */
@media (max-width: 768px) {
  /* about.html and services.html: grid-2 sections with large inline gap values */
  .grid-2[style*="gap:72px"],
  .grid-2[style*="gap: 72px"],
  .grid-2[style*="gap:80px"],
  .grid-2[style*="gap: 80px"] {
    gap: 28px !important;
  }

  /* Ensure all grid-2 sections collapse to 1 col and have reasonable gap */
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* services.html: card spanning 2 cols must become full-width */
  .card[style*="grid-column:span 2"],
  .card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* Inner grid-2 inside grid-2 (e.g. the feature cards in services.html) */
  .grid-2 .grid-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

/* On very small screens, even the inner 2-col grids should collapse */
@media (max-width: 480px) {
  .grid-2 .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  /* The span-2 card already collapsed, keep it single col */
  .card[style*="grid-column:span 2"],
  .card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}

/* ── 18. Reset grid order on mobile (restore DOM reading order) ── */
/* Services page alternating sections use order:1/order:2 inline styles
   to swap columns on desktop. On mobile, reset so text reads naturally. */
@media (max-width: 768px) {
  /* Section with text at order:2 coming first in DOM: keep DOM order */
  .grid-2 > div[style*="order:1"],
  .grid-2 > div[style*="order: 1"] {
    order: 2 !important;
  }
  .grid-2 > div[style*="order:2"],
  .grid-2 > div[style*="order: 2"] {
    order: 1 !important;
  }
}

/* ── 19. ai-agents.html: 4-col deployment steps → 2-col on mobile ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
  }
}

@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
  }
}

/* ── 20. Page-level padding overrides for inner pages ── */
@media (max-width: 768px) {
  .page-hero {
    padding-top: 90px !important;
    padding-bottom: 48px !important;
  }

  /* Max-width sections (CTA areas) */
  [style*="max-width:640px"],
  [style*="max-width: 640px"] {
    max-width: 100% !important;
    padding-inline: 4px;
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE: AI Agents — horizontal avatar strip
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Stack layout: sidebar on top, panel below */
  .agents-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-radius: var(--r-xl) !important;
    overflow: visible !important;
  }

  /* Horizontal scrollable avatar strip */
  .agents-sidebar {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 14px 16px 10px !important;
    width: 100% !important;
    background: #f8f9fb !important;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid var(--border) !important;
    /* Fades controlled dynamically via JS (see ai-agents.html) */
  }

  .agents-sidebar::-webkit-scrollbar { display: none !important; }

  .agents-sidebar-label { display: none !important; }

  /* Each agent tab = compact avatar chip */
  .agent-tab {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 68px !important;
    max-width: 68px !important;
    padding: 8px 6px 10px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    text-align: center !important;
    background: transparent !important;
    border: 2px solid transparent !important;
  }

  .agent-tab.active {
    background: rgba(37,99,235,.07) !important;
    border-color: #2563eb !important;
  }

  /* Avatar: smaller circle */
  .agent-tab .agent-av {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .agent-tab .agent-av img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  /* Name only, no role */
  .atab-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .atab-name {
    font-size: .68rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
  }

  /* Hide role text and badges on mobile (too cramped) */
  .atab-role { display: none !important; }
  .abadge {
    font-size: .5rem !important;
    padding: 1px 4px !important;
  }

  /* Panel takes full width below the strip */
  .agent-panel {
    border-radius: 0 0 16px 16px !important;
    padding: 20px 16px !important;
  }

  /* Panel head: smaller avatar */
  .ap-av-lg {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
  }

  .ap-av-lg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .ap-head {
    gap: 14px !important;
    align-items: center !important;
  }

  .ap-head-text h3 { font-size: 1.2rem !important; }

  /* Metrics: 2-column grid, equal quadrants */
  .ap-metrics {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 1fr !important;
    gap: 0 !important;
  }
  .ap-metrics > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 16px 10px !important;
    border-right: 1px solid var(--blue-bd);
    border-bottom: 1px solid var(--blue-bd);
  }
  .ap-metrics > div:nth-child(2),
  .ap-metrics > div:nth-child(4) { border-right: none; }
  .ap-metrics > div:nth-child(3),
  .ap-metrics > div:nth-child(4) { border-bottom: none; }
}

/* Dark mode tweak for the strip */
html.dark .agents-sidebar {
  background: rgba(255,255,255,.04) !important;
}

/* ═══════════════════════════════════════════════════════════
   LOGO + FAB FIXES
   ═══════════════════════════════════════════════════════════ */

/* ── Navbar logo: white-bg JPEG — multiply removes white on light bg ── */
.nav__logo {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.nav__logo img {
  height: 58px !important;
  width: auto !important;
  object-fit: contain !important;
  /* multiply: white bg × white navbar = invisible; colors preserved */
  mix-blend-mode: multiply !important;
  display: block !important;
  filter: none !important;
}

/* Dark mode navbar: wrap in white pill so logo reads cleanly */
html.dark .nav__logo {
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
}

html.dark .nav__logo img {
  mix-blend-mode: normal !important;
  filter: none !important;
}

/* ── Footer logo: white pill container (fills the sides with white) ── */
.footer-logo-icon {
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 4px 6px !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.footer-logo-icon img {
  content: unset !important;
  height: 52px !important;
  width: auto !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
  filter: none !important;
  display: block !important;
}

/* ── FABs: move to bottom-right corner (not mid-screen) ── */
.wa-float {
  bottom: 24px !important;
  right: 24px !important;
}

.chat-trigger {
  bottom: 84px !important;
  right: 24px !important;
}

/* Mobile: keep same bottom positions, just smaller size */
@media (max-width: 768px) {
  .wa-float {
    bottom: 20px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
  .chat-trigger {
    bottom: 78px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER FIXES: address border + copyright FAB overlap
   ═══════════════════════════════════════════════════════════ */

/* Address row: add top border to match phone/email/whatsapp separators */
.footer__contact-item--addr {
  border-top: 1px solid rgba(255,255,255,.07) !important;
  margin-top: 2px !important;
  padding-top: 8px !important;
}

/* Mobile: prevent copyright text being hidden behind WhatsApp FAB */
@media (max-width: 768px) {
  .footer__bottom p {
    padding-right: 72px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   VISUAL POLISH — Mobile & Desktop Refinements
   ═══════════════════════════════════════════════════════════ */

/* ── Prevent horizontal scroll on all pages ── */
body {
  overflow-x: hidden;
}

/* ── Typography: ensure no text-align justify on mobile ── */
@media (max-width: 768px) {
  p, li, address, .ap-desc, .svc-desc,
  [class*="desc"], blockquote {
    text-align: left !important;
    hyphens: none !important;
    word-spacing: normal !important;
  }

  /* Body text minimum size and line-height */
  p, li {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  /* Heading scale for mobile */
  h2, .h2 {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }
  h3, .h3 {
    font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
  }

  /* Uppercase labels: cap letter-spacing */
  .label, [class*="label"] {
    letter-spacing: .08em !important;
  }
}

/* ── Hero section: fix large empty space (margin-bottom on btns) ── */
@media (max-width: 768px) {
  .hero__btns .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Credential dots: don't break to column prematurely */
  .hero__creds {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}

/* ── Hero visual/media elements that can cause blank space on mobile ── */
@media (max-width: 768px) {
  .hero-visual,
  .hero-mockup,
  .hero-img,
  .hero-animation,
  .hero-canvas,
  [class*="hero-right"],
  [class*="hero-media"],
  [class*="hero-graphic"] {
    display: none !important;
  }
}

/* ── Section spacing: tighter on mobile ── */
@media (max-width: 768px) {
  .sec-head {
    margin-bottom: 36px !important;
  }
  .sec-head .lead {
    max-width: 100% !important;
  }

  /* Cards: comfortable mobile padding */
  .card,
  .why-card,
  .port-card,
  .svc-card,
  .agent-panel {
    padding: 20px 16px !important;
  }

  /* No vertical margin/padding > 40px between elements on mobile */
  .hero__trust {
    padding-top: 28px !important;
  }
}

/* ── Services page: left-align card text, center icons ── */
@media (max-width: 768px) {
  .svc-icon {
    margin-inline: auto;
  }

  /* Feature list pills */
  .ai-feat-pill {
    padding: 10px 12px !important;
  }

  /* Service tags: wrap cleanly */
  .svc-tags {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

/* ── AI Agents page: metrics 2-col grid, no overflow ── */
@media (max-width: 768px) {
  .ap-metrics {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .ap-head {
    flex-wrap: wrap !important;
  }

  /* Prevent ap-desc text from justifying */
  .ap-desc {
    text-align: left !important;
  }
}

/* ── About page: team cards single col, stats 2-col ── */
@media (max-width: 768px) {
  .team-grid,
  .founders-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats/metric rows: 2 per row */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── Footer: stack columns, social icons wrap ── */
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .footer__social {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

/* ── Desktop: consistent max-width and centering ── */
.sec > .wrap,
.stats-sec > .wrap {
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ── Desktop: consistent navbar height and logo ── */
@media (min-width: 769px) {
  .nav__logo img {
    height: 52px !important;
  }

  .nav__inner {
    height: 68px;
  }
}

/* ── Prevent any element from causing horizontal overflow ── */
@media (max-width: 768px) {
  .marquee-section,
  .marquee-track,
  .marquee-inner {
    max-width: 100vw;
  }

  /* Ensure wrap never bleeds */
  .wrap {
    max-width: 100% !important;
    padding-inline: 18px !important;
    box-sizing: border-box !important;
  }

  /* Images always constrained */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ── Very small screens (360px and below) extra tightening ── */
@media (max-width: 360px) {
  .hero__badge {
    font-size: .6rem !important;
    padding: 5px 10px !important;
  }

  h1, .h1 {
    font-size: 1.6rem !important;
  }

  h2, .h2 {
    font-size: 1.3rem !important;
  }

  .btn {
    font-size: .8rem !important;
    padding: 12px 16px !important;
  }
}

/* ══════════════════════════════════════════════
   TARGETED FIXES: carousel speed + line spacing
   ══════════════════════════════════════════════ */

/* 1. Carousel: faster on mobile */
@media (max-width: 768px) {
  .marquee-inner { animation-duration: 10s !important; }
}

/* 2. Paragraph line-height: 1.8 is too loose, causes visible line-gap on mobile */
p, li { line-height: 1.65 !important; }
.lead { line-height: 1.72 !important; }

/* 3. h2 needs explicit bottom margin — currently has none so text sits right below heading */
h2, .h2 {
  margin-bottom: 18px !important;
  line-height: 1.2 !important;
}

/* Don't override inside sec-head where label+h2+lead stack is managed separately */
.sec-head h2 { margin-bottom: 16px !important; }

/* 4. Card headings (h3, h4) → paragraph gap */
.card h3, .card h4,
.svc-card h3,
.why-card h3,
.ind-card h3 {
  margin-bottom: 14px !important;
}

/* Generic: any h3 or h4 directly followed by a paragraph */
h3 + p, h4 + p {
  margin-top: 10px !important;
}

/* ══════════════════════════════════
   GLOBAL: body text — justify align
   ══════════════════════════════════ */
p, li, address {
  text-align: justify !important;
  hyphens: auto !important;
}

/* Keep centered where layout requires it */
.marquee-label,
.hero p,
.hero .lead,
.page-hero p,
.page-hero .lead,
.btn,
.nav__link,
.footer__bottom p,
.chat-bubble,
.cbk-success-wrap p,
.ap-spec,
.ap-tagline,
.ap-desc,
.abadge,
.atab-role,
.marquee-item,
.hero__badge,
.agent-online,
.chat-agent-online {
  text-align: center !important;
  hyphens: none !important;
}

/* Agent description and card descriptions stay left on desktop */
.ap-desc,
.svc-card p,
.why-card p,
.card p,
.process-card__desc {
  text-align: left !important;
  hyphens: none !important;
}

/* Book-Shrey strip: keep text left-aligned, not justified */
.book-shrey-desc,
.book-shrey-name,
.book-shrey-role {
  text-align: left !important;
  hyphens: none !important;
}

/* Force justify on .lead and sec-head paragraphs — overrides inherited center */
.lead,
.sec-head p,
.sec-head .lead,
.sec-head--c p,
.sec-head--c .lead {
  text-align: justify !important;
  hyphens: auto !important;
}

/* Hero lead stays centered — must come after the justify rule */
.hero .lead,
.hero p {
  text-align: center !important;
  hyphens: none !important;
}

/* sec-head--c .lead: full width so justify stretches properly */
.sec-head--c .lead,
.sec-head--c p {
  margin-inline: 0 !important;
  max-width: 100% !important;
  text-align: justify !important;
}

/* AI Agents: panel spec + sidebar roles left-aligned */
.ap-head-text .ap-spec,
.ap-head-text .ap-tagline,
.ap-head-text h3 {
  text-align: left !important;
}

.atab-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.atab-name {
  margin-bottom: 0 !important;
}

.atab-role {
  text-align: left !important;
  line-height: 1.35 !important;
}

/* Agent avatars: AI portrait styling */
.agent-av img,
.ap-av-lg img {
  object-fit: cover;
  object-position: center 15%;
}

/* Footer links: always visible on hover in dark theme */
html.dark .footer__col a:hover,
html.dark .footer__contact-item a:hover {
  color: #ffffff !important;
}

/* ─── Section icons (services / about) ─── */
.sec-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.sec-icon--violet { background: linear-gradient(135deg, #ede9fe, #dbeafe); }
.sec-icon--blue   { background: var(--blue-bg); color: var(--blue-2); }
.sec-icon--sky    { background: #f0f9ff; color: #0284c7; }
.sec-icon--amber  { background: var(--amber-bg); color: var(--amber); }
html.dark .sec-icon--violet { background: #1a1230; }
html.dark .sec-icon--blue   { background: var(--blue-bg); color: var(--blue-2); }
html.dark .sec-icon--sky    { background: #051a2b; color: #38bdf8; }
html.dark .sec-icon--amber  { background: #1a1000; color: #fbbf24; }

/* ─── Equal-height software mini cards ─── */
.svc-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.svc-mini-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 148px;
}
.svc-mini-grid .card h4 { margin-bottom: 8px; }
.svc-mini-grid .card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

/* ─── Dark mode: service card icons on light cards ─── */
html.dark .svc-icon--blue   { color: var(--blue-2); }
html.dark .svc-icon--sky    { color: #38bdf8; }
html.dark .svc-icon--amber  { color: #fbbf24; }
html.dark .svc-icon--green  { color: #34d399; }
html.dark .svc-icon--violet { color: #a78bfa; }
html.dark .svc-icon--white  { color: rgba(255, 255, 255, .92); }
html.dark .hero__cred:hover { color: rgba(255, 255, 255, .95); }
html.dark .nav__theme:hover { color: rgba(255, 255, 255, .9); }

/* ═══════════════════════════════════════════════════════════
   NAV — AI AGENTS DROPDOWN (DayZero-style)
   ═══════════════════════════════════════════════════════════ */
.nav__item--has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.nav__link--has-dropdown {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  height: 100%;
}
.nav__chevron {
  opacity: .45;
  transition: transform .2s, opacity .2s;
}
.nav__item--has-dropdown.is-open .nav__chevron,
.nav__item--has-dropdown:hover .nav__chevron {
  transform: rotate(180deg);
  opacity: .75;
}
.nav-agents-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(760px, calc(100vw - 48px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1100;
  overflow: hidden;
  pointer-events: none;
}
.nav-agents-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav__item--has-dropdown.is-open .nav-agents-menu,
.nav__item--has-dropdown:hover .nav-agents-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nam-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 320px;
}
.nam-sidebar {
  background: var(--off);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid var(--border);
}
.nam-sidebar-label {
  font-family: var(--f-display);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}
.nam-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: background .12s;
  width: 100%;
}
.nam-agent:hover:not(.active) { background: rgba(37, 99, 235, .06); }
.nam-agent.active {
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .07);
}
.nam-agent-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.nam-agent-av img { width: 100%; height: 100%; object-fit: cover; }
.nam-agent-info { flex: 1; min-width: 0; }
.nam-agent-name {
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
}
.nam-agent-role {
  font-size: .72rem;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nam-preview {
  position: relative;
  background: var(--white);
  padding: 28px 32px;
}
.nam-panel {
  display: none;
  animation: namFade .18s ease;
}
.nam-panel.active { display: block; }
@keyframes namFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nam-panel-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: start;
}
.nam-spec {
  font-family: var(--f-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.nam-desc {
  font-size: .9375rem;
  color: var(--ink-2);
  line-height: 1.72;
  margin-bottom: 18px;
  text-align: left;
}
.nam-cta {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-2);
  transition: color .15s;
}
.nam-cta:hover { color: var(--blue); }
.nam-results {
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  border: 1px solid var(--blue-bd);
  border-radius: var(--r-lg);
  padding: 20px 18px;
}
.nam-results-title {
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.35;
}
.nam-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}
.nam-metric-val {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-2);
  line-height: 1.1;
  margin-bottom: 3px;
}
.nam-metric-lbl {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Drawer — AI Solutions accordion (mobile) */
.drawer-agents {
  display: flex;
  flex-direction: column;
}
.drawer-agents-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  border: none;
  cursor: pointer;
  background: none;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: color .15s, background .15s;
}
.drawer-agents-toggle:hover,
.drawer-agents-toggle:focus-visible {
  background: var(--off);
  color: var(--ink);
  outline: none;
}
.drawer-agents-toggle.active {
  background: var(--off);
  color: var(--ink);
  font-weight: 600;
}
.drawer-agents-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  opacity: .45;
  transition: transform .25s ease, opacity .25s ease;
}
.drawer-agents.is-open .drawer-agents-chevron {
  transform: translateY(-50%) rotate(180deg);
  opacity: .7;
}
.drawer-agents.is-open .drawer-agents-toggle {
  background: var(--off);
  color: var(--ink);
}
html.dark .drawer-agents-toggle {
  color: var(--dim);
}
html.dark .drawer-agents-toggle:hover,
html.dark .drawer-agents-toggle:focus-visible,
html.dark .drawer-agents-toggle.active,
html.dark .drawer-agents.is-open .drawer-agents-toggle {
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
}
.drawer-agents-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.4, 0, .2, 1);
}
.drawer-agents.is-open .drawer-agents-panel {
  grid-template-rows: 1fr;
}
.drawer-agents-panel__inner {
  overflow: hidden;
  min-height: 0;
}
.drawer-agents-panel .drawer-agents-list {
  padding: 4px 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--off);
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.drawer-agent-card:active {
  transform: scale(0.98);
}
.drawer-agent-card:hover {
  background: var(--white);
  border-color: var(--blue-bd);
  box-shadow: var(--shadow-sm);
}
.drawer-agent-card__av {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--white), 0 2px 10px rgba(13, 17, 28, .12);
}
.drawer-agent-card__av img {
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(2);
  transform-origin: 52% 28%;
}
.drawer-agent-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-agent-card__name {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.drawer-agent-card__role {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-agent-card__arrow {
  flex-shrink: 0;
  color: var(--dim);
  opacity: .6;
}
.drawer-agents-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 16px 8px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-2);
  background: var(--blue-bg);
  border: 1px solid var(--blue-bd);
  transition: background .15s, color .15s;
}
.drawer-agents-all:hover {
  background: var(--blue-2);
  color: #fff;
}
.drawer-agents-all .arrow {
  transition: transform .15s;
}
.drawer-agents-all:hover .arrow {
  transform: translateX(3px);
}

html.dark .drawer-agent-card {
  background: var(--off-2);
  border-color: var(--border);
}
html.dark .drawer-agent-card:hover {
  background: var(--off);
  border-color: var(--blue-bd);
}
html.dark .drawer-agent-card__av {
  box-shadow: 0 0 0 2px var(--off), 0 2px 10px rgba(0, 0, 0, .25);
  background: #1c2128;
}
html.dark .drawer-agents-all {
  background: #0c1a2e;
  border-color: var(--blue-bd);
  color: var(--blue-2);
}
html.dark .drawer-agents-all:hover {
  background: var(--blue-2);
  color: #fff;
}
@media (min-width: 901px) {
  .nav__drawer,
  .nav__drawer-backdrop {
    display: none !important;
  }
}

html.dark .nav__drawer-backdrop {
  background: rgba(0, 0, 0, .6);
}

html.dark .nav-agents-menu { background: var(--off); border-color: var(--border); }
html.dark .nam-sidebar { background: var(--off-2); border-color: var(--border); }
html.dark .nam-agent.active { background: var(--off); box-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
html.dark .nam-preview { background: var(--off); }
html.dark .nam-results {
  background: linear-gradient(145deg, #0c1a2e, #101828);
  border-color: var(--blue-bd);
}
html.dark .nam-results-title { color: var(--ink); }
html.dark .nam-desc { color: var(--ink-2); }

@media (max-width: 900px) {
  .nav-agents-menu { display: none !important; }
}
@media (max-width: 680px) {
  .nam-panel-body { grid-template-columns: 1fr; }
  .nam-results { margin-top: 4px; }
}

