/* Aleas — Shared Design System */

:root {
  /* Base deepened from #0D1B2A toward black (2026-06-11) — stronger layer
     separation: near-black base -> slate surfaces -> blue accents */
  --navy:  #080E16;
  --slate: #1E2D3D;
  --silver: #E8EDF2;
  --blue:  #3B8BEB;
  --muted: rgba(220,228,238,0.86);
  /* Blue opacity ladder */
  --blue-04: rgba(59,139,235,0.04);
  --blue-08: rgba(59,139,235,0.08);
  --blue-12: rgba(59,139,235,0.12);
  --blue-20: rgba(59,139,235,0.20);
  --blue-30: rgba(59,139,235,0.30);
  --blue-50: rgba(59,139,235,0.50);
  /* Silver opacity ladder */
  --silver-10: rgba(196,205,214,0.10);
  --silver-15: rgba(196,205,214,0.15);
  --silver-35: rgba(196,205,214,0.35);
  --silver-55: rgba(196,205,214,0.55);
  --silver-85: rgba(196,205,214,0.85);
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 95%; }


::selection { background: rgba(59,139,235,0.35); color: #fff; }

/* Themed scrollbar */
html { scrollbar-color: rgba(59,139,235,0.45) var(--navy); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb {
  background: rgba(59,139,235,0.35);
  border-radius: 5px;
  border: 2px solid var(--navy);
}
::-webkit-scrollbar-thumb:hover { background: rgba(59,139,235,0.55); }
body {
  background: var(--navy);
  color: var(--silver);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* SKIP LINK (a11y) */
.skip-link {
  position: absolute;
  top: -52px; left: 1rem;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }

/* TYPOGRAPHY */
.font-display { font-family: 'Outfit', sans-serif; }
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* BACKGROUND PATHS (containers filled by main.js — page heroes).
   The curves are drawn on <canvas> and the dash flow animates via
   lineDashOffset in a rAF loop: one cheap raster per frame. Never animate
   SVG stroke-* here — 72 SVG paths repainting every frame is a paint storm
   that can starve rendering entirely (tried 2026-06-11, page failed to
   rasterize). Layer drift below stays composited transform/opacity. */
.bg-paths {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: #8FC0F5;
  opacity: 0.45;
  /* calmer behind the copy column, full strength to the right */
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 40%, #000 65%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 40%, #000 65%);
}
/* Hero shader canvas is mounted + sized by main.js (inline styles); it fills
   this container. The old .bg-paths-layer path system was removed when the
   WebGL shader replaced it. */

/* glow drift keyframes — moved to motion.css */

/* timeline draw animation — moved to motion.css */

/* NAV */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  padding: 0 1.5rem;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.35s cubic-bezier(0.16,1,0.3,1),
              backdrop-filter 0.35s;
}
#navbar.scrolled {
  background-color: rgba(8,14,22,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(196,205,214,0.07);
}
.nav-inner {
  /* Full-width nav: logo to the left edge, links/CTA to the right edge.
     #navbar's own 0 1.5rem padding provides the gutter. Intentionally NOT
     capped at the 1360px content width, so the bar spans the viewport. */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: rgba(220,228,238,0.82);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover { color: var(--silver); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.nav-link.active { color: var(--silver); }
.nav-link.active::after { transform: scaleX(1); }

/* Sliding hover pill (element injected by main.js; left/width set inline) */
#desktop-nav { position: relative; align-items: center; }
.nav-pill {
  position: absolute;
  top: 50%;
  height: 34px;
  transform: translateY(-50%);
  border-radius: 8px;
  background: rgba(59,139,235,0.09);
  border: 1px solid rgba(59,139,235,0.14);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: left 0.3s cubic-bezier(0.16,1,0.3,1),
              width 0.3s cubic-bezier(0.16,1,0.3,1),
              opacity 0.25s;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  padding: 0.7rem 1.5rem;
  border-radius: 7px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--silver);
  background: transparent;
  padding: 0.7rem 1.4rem;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid rgba(196,205,214,0.25);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.1s, color 0.25s;
}
.btn-ghost:hover {
  border-color: rgba(196,205,214,0.48);
  background: rgba(196,205,214,0.05);
}
.btn-ghost:hover svg { transform: translateX(2px); }
.btn-ghost svg { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.btn-ghost:active { transform: scale(0.98); }
.btn-ghost:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* MOBILE MENU */
#mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 84vw);
  background: var(--slate);
  border-left: 1px solid rgba(196,205,214,0.07);
  z-index: 60;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1),
              visibility 0.32s;
}
#mobile-menu.open { transform: translateX(0); visibility: visible; }

/* Staggered link entrance when the menu opens */
#mobile-menu nav a {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
#mobile-menu.open nav a { opacity: 1; transform: none; }
#mobile-menu.open nav a:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu.open nav a:nth-child(2) { transition-delay: 0.14s; }
#mobile-menu.open nav a:nth-child(3) { transition-delay: 0.20s; }
#mobile-menu.open nav a:nth-child(4) { transition-delay: 0.26s; }
#mobile-menu.open nav a:nth-child(5) { transition-delay: 0.32s; }

/* Hamburger -> X */
#hamburger.open #hb1 { transform: translateY(6.5px) rotate(45deg); }
#hamburger.open #hb2 { opacity: 0; }
#hamburger.open #hb3 { transform: translateY(-6.5px) rotate(-45deg); }
#menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,14,22,0.65);
  backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#menu-backdrop.open { opacity: 1; pointer-events: auto; }

/* scroll reveal / stagger / wsplit — moved to motion.css */

/* SECTION HEAD — bold foreground index numeral, stacked above the label */
.section-head { position: relative; }
.section-index {
  display: block;
  width: max-content;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
  user-select: none;
  pointer-events: none;
  /* gradient fill: silver -> brand blue */
  background: linear-gradient(140deg, var(--silver) 0%, #8FC0F5 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue); /* fallback where background-clip:text is unsupported */
  /* soft blue glow halo (settled state) */
  filter: drop-shadow(0 3px 16px rgba(59,139,235,0.4));
  transition: filter 0.85s cubic-bezier(0.16,1,0.3,1);
}
/* entrance glow bloom — tied to the reveal container's .in state */
.section-head.reveal .section-index,
.section-head.reveal-l .section-index { filter: drop-shadow(0 3px 6px rgba(59,139,235,0.12)); }
.section-head.reveal.in .section-index,
.section-head.reveal-l.in .section-index { filter: drop-shadow(0 3px 20px rgba(59,139,235,0.5)); }
/* About-on-homepage: numeral sits above a grid, not inside a section-head */
.section-index--top { margin-bottom: 1.25rem; }

/* STEP BADGE (replaces .step-num watermarks — visible, no mobile overlap) */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-08);
  border: 1px solid var(--blue-20);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.65rem;
  user-select: none;
}

/* STATS BAND (count-up numbers driven by main.js) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  text-align: center;
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--silver);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-prefix, .stat-suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: var(--blue);
}
.stat-label {
  margin-top: 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196,205,214,0.55);
}
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* BACK TO TOP (element injected by main.js) */
#back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,45,61,0.85);
  border: 1px solid rgba(59,139,235,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--silver);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16,1,0.3,1),
              border-color 0.2s;
}
#back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#back-to-top:hover { border-color: rgba(59,139,235,0.6); }
#back-to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* CURSOR GLOW (element injected by main.js; fine pointers only) */
#cursor-glow {
  position: fixed;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(59,139,235,0.06) 0%, transparent 60%);
  will-change: transform;
}

/* SERVICE CARDS */
.service-card {
  background: linear-gradient(160deg, #22344A, var(--slate));
  border: 1px solid var(--silver-15);
  border-radius: 14px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s cubic-bezier(0.16,1,0.3,1),
              transform 0.3s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-30), transparent);
  pointer-events: none;
  z-index: 2;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-30);
  box-shadow: 0 12px 40px -12px var(--blue-20), 0 2px 8px rgba(0,0,0,0.4);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(59,139,235,0.055), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-icon {
  width: 42px; height: 42px;
  background: var(--blue-12);
  border: 1px solid rgba(59,139,235,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

/* EXAMPLE CHIPS (service cards) — what each service covers, at a glance */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--silver);
  background: var(--blue-08);
  border: 1px solid var(--blue-20);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover .chip { border-color: rgba(59,139,235,0.3); }

/* FEATURED CARD — animated conic border (degrades gracefully) */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.service-card--featured {
  border-color: transparent;
  background:
    linear-gradient(160deg, #22344A, var(--slate)) padding-box,
    conic-gradient(from var(--angle), transparent 0%, var(--blue) 20%, transparent 40%) border-box;
  animation: rotateBorder 4s linear infinite;
}
.service-card--featured::after { display: none; }
@keyframes rotateBorder {
  to { --angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card--featured {
    animation: none;
    background: linear-gradient(160deg, #22344A, var(--slate)) padding-box,
                linear-gradient(var(--blue-20), var(--blue-20)) border-box;
  }
}

/* FORM */
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--silver-85);
  letter-spacing: 0.04em;
}
.form-input {
  background: rgba(30,45,61,0.55);
  border: 1px solid var(--silver-15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--silver);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--silver-55); }
.form-input:focus {
  outline: none;
  border-color: rgba(59,139,235,0.48);
  box-shadow: 0 0 0 3px rgba(59,139,235,0.09);
}
textarea.form-input { resize: vertical; min-height: 120px; }

/* LINKS */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s;
}
.arrow-link:hover, .arrow-link:focus-visible { gap: 0.55rem; }
.arrow-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.quiet-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,205,214,0.15);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s, border-color 0.2s;
}
.quiet-link:hover, .quiet-link:focus-visible {
  color: var(--silver);
  border-color: rgba(196,205,214,0.38);
}
.quiet-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* FOOTER COLUMNS (organized multi-column footer above the bottom bar) */
.footer-cols {
  max-width: 1360px;
  margin: 0 auto 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(196,205,214,0.07);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; max-width: 34ch; }
.footer-tagline { font-size: 0.82rem; line-height: 1.6; color: var(--muted); margin: 0; }
.footer-meta { font-size: 0.72rem; color: rgba(196,205,214,0.32); margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(196,205,214,0.4);
  margin: 0 0 0.3rem;
}
@media (max-width: 767px) {
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-brand { max-width: none; align-items: center; }
  .footer-col { align-items: center; }
}

.footer-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover, .footer-link:focus-visible { color: var(--silver); }
.footer-link[aria-current="page"] { color: var(--silver); }
.footer-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.lift-card {
  background: var(--slate);
  border: 1px solid var(--silver-10);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s cubic-bezier(0.16,1,0.3,1),
              transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.lift-card:hover, .lift-card:focus-visible {
  border-color: rgba(59,139,235,0.32) !important;
  transform: translateY(-2px);
}
.lift-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* FORM ERROR */
.form-error {
  display: none;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(235,87,87,0.08);
  border: 1px solid rgba(235,87,87,0.25);
}

/* ripple / typing-dot / status-dot — moved to motion.css */

/* NAV RESPONSIVE */
#desktop-nav  { display: flex; }
#hamburger    { display: none; }
#nav-cta      { display: inline-flex; }
@media (max-width: 767px) {
  #desktop-nav { display: none !important; }
  #hamburger   { display: flex !important; }
  #nav-cta     { display: none !important; }
}

/* FOOTER RESPONSIVE */
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; gap: 0.6rem; text-align: center; }
}

/* COMMAND PALETTE (Ctrl/Cmd+K — DOM injected by main.js) */
#cmdk-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4,8,13,0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
#cmdk-overlay.open { opacity: 1; pointer-events: auto; }
#cmdk {
  width: min(580px, calc(100vw - 2rem));
  margin: 14vh auto 0;
  background: #0B1623;
  border: 1px solid rgba(59,139,235,0.2);
  border-radius: 14px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.7),
              0 0 60px -12px rgba(59,139,235,0.22);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1);
}
#cmdk-overlay.open #cmdk { transform: none; }
#cmdk-input-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid rgba(196,205,214,0.08);
}
#cmdk-input-row svg { color: rgba(196,205,214,0.4); flex-shrink: 0; }
#cmdk-input {
  flex: 1; background: none; border: none; outline: none;
  padding: 1.05rem 0; color: var(--silver);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
}
#cmdk-input::placeholder { color: rgba(196,205,214,0.35); }
#cmdk-list { max-height: 330px; overflow-y: auto; padding: 0.45rem; }
.cmdk-section {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(196,205,214,0.4);
  padding: 0.6rem 0.7rem 0.3rem;
}
.cmdk-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.7rem; border-radius: 8px;
  font-size: 0.875rem; color: var(--muted);
  cursor: pointer;
}
.cmdk-item svg { color: rgba(196,205,214,0.45); flex-shrink: 0; }
.cmdk-item.sel { background: rgba(59,139,235,0.14); color: var(--silver); }
.cmdk-item.sel svg { color: var(--blue); }
.cmdk-tag {
  margin-left: auto; font-size: 0.65rem;
  color: rgba(196,205,214,0.35);
  border: 1px solid rgba(196,205,214,0.12);
  padding: 1px 7px; border-radius: 99px;
}
.cmdk-empty { padding: 1.1rem 0.9rem; font-size: 0.85rem; color: rgba(196,205,214,0.45); }
#cmdk-foot {
  display: flex; gap: 1.1rem;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid rgba(196,205,214,0.08);
  font-size: 0.68rem; color: rgba(196,205,214,0.35);
}
#cmdk-foot kbd, #cmdk-hint kbd {
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(196,205,214,0.18); border-bottom-width: 2px;
  border-radius: 4px; padding: 0 5px;
  font-size: 0.66rem; color: rgba(196,205,214,0.55);
  background: rgba(255,255,255,0.03);
}
#cmdk-hint {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(196,205,214,0.14);
  border-radius: 8px; padding: 0.42rem 0.7rem;
  font-family: 'Inter', sans-serif; font-size: 0.72rem;
  color: rgba(196,205,214,0.6);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
#cmdk-hint:hover { border-color: rgba(59,139,235,0.5); color: var(--silver); }
#cmdk-hint:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 767px) { #cmdk-hint { display: none; } }

/* FOOTER STATUS (availability + Colombo local time — injected by main.js) */
.footer-status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.75rem; color: var(--muted);
}
.footer-status .status-dot { flex-shrink: 0; }
.footer-status .fs-time { color: rgba(196,205,214,0.4); }

/* magnetic / reduced-motion — moved to motion.css */

/* ============================================================ */
/* CHATBOT DEMO — shared by services.html (#demo-chatbot) and    */
/* the homepage AI Chatbots card. Driven by chatbot.js.          */
/* ============================================================ */
.chat-demo {
  background: rgba(13,27,42,0.8);
  border: 1px solid rgba(196,205,214,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px -16px rgba(0,0,0,0.4);
}
.chat-header {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(196,205,214,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30,45,61,0.5);
}
.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(196,205,214,0.12); border-radius: 2px; }

.msg-user { display: flex; justify-content: flex-end; }
.msg-user-bubble {
  background: rgba(59,139,235,0.16);
  border: 1px solid rgba(59,139,235,0.22);
  border-radius: 12px 12px 2px 12px;
  padding: 0.5rem 0.875rem;
  max-width: 78%;
  font-size: 0.8rem;
  line-height: 1.52;
  color: var(--silver);
}
.msg-bot { display: flex; justify-content: flex-start; align-items: flex-end; gap: 0.5rem; }
.msg-bot-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(59,139,235,0.16);
  border: 1px solid rgba(59,139,235,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-bot-bubble {
  background: rgba(196,205,214,0.05);
  border: 1px solid rgba(196,205,214,0.08);
  border-radius: 2px 12px 12px 12px;
  padding: 0.5rem 0.875rem;
  max-width: 78%;
  font-size: 0.8rem;
  line-height: 1.52;
  color: var(--silver);
}
.msg-typing { display: flex; justify-content: flex-start; align-items: flex-end; gap: 0.5rem; }
.msg-typing-bubble {
  background: rgba(196,205,214,0.04);
  border: 1px solid rgba(196,205,214,0.06);
  border-radius: 2px 10px 10px 10px;
  padding: 0.55rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 3px;
}
.chat-suggestions {
  padding: 0.625rem 1.25rem;
  border-top: 1px solid rgba(196,205,214,0.05);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chat-chip {
  font-size: 0.7rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(196,205,214,0.14);
  border-radius: 20px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}
.chat-chip:hover { border-color: rgba(59,139,235,0.4); color: var(--silver); background: rgba(59,139,235,0.06); }
.chat-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 20px; }
.chat-chip:active { transform: scale(0.97); }
.chat-input-row {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(196,205,214,0.05);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.chat-input {
  flex: 1;
  min-width: 0; /* let the input shrink instead of forcing the row wider than its box on narrow screens */
  background: rgba(13,27,42,0.6);
  border: 1px solid rgba(196,205,214,0.1);
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--silver);
  transition: border-color 0.2s;
}
.chat-input::placeholder { color: rgba(196,205,214,0.26); }
.chat-input:focus { outline: none; border-color: rgba(59,139,235,0.4); }
.chat-send {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.1s;
}
.chat-send:hover { opacity: 0.85; }
.chat-send:active { transform: scale(0.94); }
.chat-send:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
