/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #FFFFFF;
  --bg-card:     #FFFFFF;
  --fg:          #1B2A41;
  --fg-muted:    #8E9DAF;
  --accent:      #1B2A41;
  --accent-mid:  #1B2A41;
  --accent-glow: #1B2A41;
  --border:      #D8E4EF;
  --dot-color:   #D8E4EF;
  --dot-hover:   rgba(27, 42, 65, 0.08);
  --nav-bg:      rgba(255, 255, 255, 0.88);
  --card-shadow: 0 4px 32px rgba(27, 42, 65, 0.07);
  --radius:      18px;
  --transition:  0.35s cubic-bezier(.4,0,.2,1);
  --silver-light: #D8E4EF;
}

/* ─── FONTS ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}
section { min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: var(--accent);
  text-decoration: none;
}
.modal-overlay { display: none; }
.modal-overlay.open { display: flex; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* language dropdown */
.lang-wrap { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 40px;
  background: transparent;
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--accent); background: var(--dot-hover); }
.lang-btn svg { transition: transform 0.25s; }
.lang-wrap.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s, transform 0.22s;
}
.lang-wrap.open .lang-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}
.lang-dropdown button:hover { background: var(--dot-hover); }

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-dot-grid canvas { width: 100%; height: 100%; display: block; }
.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 60px 56px;
  max-width: 860px;
  width: 100%;
  box-shadow: var(--card-shadow);
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--fg);
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.8s 0.25s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.cta-btn {
  margin-top: 44px;
  padding: 18px 48px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(27, 42, 65, 0.25);
  opacity: 0;
  animation: fadeUp 0.8s 0.55s forwards;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(27, 42, 65, 0.35); }
.cta-btn:hover::after { background: rgba(255,255,255,0.08); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.modal-open { overflow: hidden; }

/* ─── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 65, 0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 44px;
  width: min(520px, 92vw);
  position: relative;
  box-shadow: 0 24px 80px rgba(27, 42, 65, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--fg); }
.modal h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  margin-bottom: 6px;
  color: var(--fg);
}
.modal p.sub { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--fg-muted);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── SERVICES ───────────────────────────────────────── */
#services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 48px;
  background: var(--bg);
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  max-width: none;
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 64px;
  color: var(--fg);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  width: 100%;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow:
    0 2px 4px rgba(27, 42, 65, 0.04),
    0 8px 20px rgba(27, 42, 65, 0.06),
    0 20px 48px rgba(27, 42, 65, 0.07);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 4px 8px rgba(27, 42, 65, 0.05),
    0 16px 32px rgba(27, 42, 65, 0.1),
    0 32px 64px rgba(27, 42, 65, 0.12);
  border-color: var(--accent);
}

/* wave header — navy */
.card-header-wave {
  height: 120px;
  background: linear-gradient(135deg, #1B2A41 0%, #2a4060 50%, #3a5a82 100%);
  position: relative;
  flex-shrink: 0;
}
.card-header-wave::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ── PRESERVED TEAL/MINT — special wave ── */
.wave-special {
  background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 50%, #5eead4 100%);
}

.card-body {
  padding: 24px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* badge — PRESERVED TEAL */
.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #2dd4bf;
  padding: 5px 14px;
  border-radius: 50px;
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--fg);
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0;
}
.card-features li {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(27, 42, 65, 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── PRESERVED TEAL checkmarks for special card ── */
.card-special .card-features li::before {
  background: rgba(45, 212, 191, 0.15);
  color: #0d9488;
}

.card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  text-align: center;
}
.card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  text-align: center;
}
.card-pitch {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin: 8px 0 16px;
  text-align: center;
  font-style: italic;
}
.card-desc--stat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg);
  white-space: normal;
  letter-spacing: 0.02em;
}
.card-callout {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  font-style: italic;
  color: #0d9488;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  padding: 12px 18px;
  margin: auto 0 18px;
  text-align: center;
  line-height: 1.5;
}

/* buttons */
.card-btn {
  margin-top: 0;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  color: #FFFFFF;
  background: #1B2A41;
  box-shadow: 0 4px 18px rgba(27, 42, 65, 0.25);
}
.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27, 42, 65, 0.35);
}

/* ── PRESERVED TEAL button ── */
.btn-special {
  background: #2dd4bf;
  color: #1B2A41;
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.3);
}
.btn-special:hover {
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.4);
}

/* special card border — PRESERVED TEAL */
.card-special {
  border-color: rgba(45, 212, 191, 0.35);
}

.card-special:hover {
  border-color: #2dd4bf;
  box-shadow:
    0 4px 8px rgba(45, 212, 191, 0.06),
    0 16px 32px rgba(45, 212, 191, 0.1),
    0 32px 64px rgba(45, 212, 191, 0.14);
}

/* ─── ABOUT ──────────────────────────────────────────── */
#about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px 100px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-center {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-center .section-label {
  text-align: left;
  margin-bottom: 10px;
}
.about-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 48px;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  align-self: flex-start;
  color: var(--fg);
}
.about-rows {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 740px;
  width: 100%;
  align-self: flex-start;
  padding-left: 0;
}
.about-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  text-align: left;
}
.about-icon-box {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(27, 42, 65, 0.06);
}
.about-icon-box img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.about-text strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--fg);
  font-size: 1.25rem;
}
.about-text p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.85;
}

/* ─── TESTIMONIALS ───────────────────────────────────── */
#testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.dot-grid canvas { width: 100%; height: 100%; display: block; }

.testi-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  padding: 0 32px;
}
.testi-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--fg);
}
.testi-header p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--fg-muted);
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ticker-wrapper::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.ticker-track {
  display: flex;
  gap: 16px;
  animation: ticker 28s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track-2 {
  animation-direction: reverse;
  animation-duration: 22s;
  margin-top: 14px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.company-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  box-shadow: 0 2px 12px rgba(27, 42, 65, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.company-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(27, 42, 65, 0.12);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4A7BB5;
  opacity: 0.55;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

/* ─── CHAT DEMO TRIGGER ──────────────────────────────── */
.demo-trigger-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  width: 100%;
  margin-top: auto;
  gap: 24px;
  padding: 24px 0 16px;
}

.demo-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.demo-pulse-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 8px 28px rgba(27, 42, 65, 0.3);
  transition: transform 0.2s;
}

.demo-pulse-btn:hover { transform: scale(1.06); }

.demo-pulse-btn::before,
.demo-pulse-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(27, 42, 65, 0.25);
  animation: pulse-ring 2.2s ease-out infinite;
}

.demo-pulse-btn::after {
  animation-delay: 1.1s;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

/* ─── CHAT DEMO MODAL ────────────────────────────────── */

 .chat-demo-modal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: min(480px, 94vw);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
}


#chatDemoOverlay.open .chat-demo-modal {
  transform: translateY(0) scale(1);
}

.chat-demo-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: #aaa;
  backdrop-filter: blur(8px);
}
.chat-demo-modal .modal-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.chat-phone {
  width: 100%;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: #0f0f0f;
}

.chat-phone-header {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 0.5px solid #2a2a2a;
}

.chat-bot-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.chat-phone-name {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
}

.chat-phone-status {
  color: #4caf7d;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin-top: 2px;
}

.chat-messages {
  height: 450px;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 0; }

.chat-msg-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.chat-msg-row.user {
  align-items: flex-end;
}

.chat-msg-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #999;
  margin-bottom: 2px;
}

.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-bubble.visible { opacity: 1; transform: translateY(0); }

.chat-bubble.bot {
  background: #2a2f38;
  color: #e8e8e8;
  border-bottom-left-radius: 4px;
  border: 0.5px solid #3a3f48;
}

.chat-bubble.user {
  background: #1B2A41;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-typing-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-typing-bubble {
  background: #2a2f38;
  border: 0.5px solid #3a3f48;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 11px 14px;
}

.chat-dots { display: flex; gap: 4px; }
.chat-dots span {
  width: 5px; height: 5px;
  background: #666;
  border-radius: 50%;
  animation: chatBounce 1.2s infinite;
}
.chat-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); background: #999; }
}

.chat-replay-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  padding: 7px 22px;
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.chat-replay-btn:hover { border-color: var(--accent); color: var(--fg); }

/* ─── BOT DEMO MODAL ─────────────────────────────────── */
.bot-demo-modal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: min(560px, 94vw);
  max-height: 90vh;
}
.bot-demo-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: #aaa;
  backdrop-filter: blur(8px);
}
.bot-demo-modal .modal-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.bot-phone {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.bot-phone .chat-phone-header {
  flex-shrink: 0;
  padding: 18px 24px;
}
.bot-phone .chat-phone-name {
  font-size: 15px;
}
.bot-phone .chat-phone-status {
  font-size: 12px;
}

.bot-chat-messages {
  height: min(480px, 55vh);
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.bot-chat-messages::-webkit-scrollbar { width: 5px; }
.bot-chat-messages::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.bot-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.bot-msg.user {
  align-items: flex-end;
}

.bot-msg-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #999;
  margin-bottom: 2px;
}

.bot-msg-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  animation: botFadeIn 0.3s ease forwards;
}
.bot-msg.ai .bot-msg-bubble {
  background: #2a2f38;
  color: #e8ecf0;
  border-bottom-left-radius: 4px;
  border: 0.5px solid #3a3f48;
}
.bot-msg.user .bot-msg-bubble {
  background: #1B2A41;
  color: #fff;
  border-bottom-right-radius: 4px;
}

@keyframes botFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bot-typing-indicator {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: #2a2f38;
  border: 0.5px solid #3a3f48;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.bot-typing-indicator span {
  width: 6px; height: 6px;
  background: #666;
  border-radius: 50%;
  animation: botBounce 1.2s infinite;
}
.bot-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.bot-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes botBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); background: #999; }
}

.bot-email-capture {
  padding: 16px 20px;
  border-top: 0.5px solid #2a2a2a;
  background: #141414;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.bot-email-capture.visible { display: flex; }
.bot-email-capture p {
  font-size: 13px;
  color: #999;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.bot-email-row {
  display: flex;
  gap: 8px;
}
.bot-email-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
}
.bot-email-row input:focus { border-color: #555; }
.bot-email-row button {
  background: #fff;
  color: var(--fg);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bot-email-row button:hover { opacity: 0.85; }
.bot-email-row button:disabled { opacity: 0.5; cursor: not-allowed; }

.bot-success-msg {
  text-align: center;
  padding: 16px;
  background: #0a2010;
  border-top: 0.5px solid #1a4028;
  font-size: 14px;
  color: #4ade80;
  font-family: 'Inter', sans-serif;
  display: none;
}
.bot-success-msg.visible { display: block; }

.bot-chat-input-area {
  padding: 14px 16px;
  border-top: 0.5px solid #2a2a2a;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  background: #0f0f0f;
}
.bot-chat-input-area input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid #333;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  background: #1a1a1a;
}
.bot-chat-input-area input:focus { border-color: #555; background: #222; }
.bot-chat-input-area button {
  width: 42px; height: 42px;
  background: #fff;
  color: var(--fg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bot-chat-input-area button:hover { opacity: 0.85; }
.bot-chat-input-area button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* ── 1280px: 15" laptop ── */
@media (max-width: 1280px) {
  nav { padding: 0 32px; }

  /* modal widths tighten slightly */
  .chat-demo-modal { width: min(480px, 90vw); }
  .bot-demo-modal  { width: min(560px, 90vw); }

  /* services: keep 3 cols but tighten spacing */
  .cards-grid { gap: 20px; }
  .card-body  { padding: 20px 24px 28px; }
}

/* ── 1160px: narrow 13" / tight 3-col range ── */
@media (max-width: 1160px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .card-body  { padding: 18px 20px 24px; }
  .card h3    { font-size: 1rem; padding-bottom: 14px; }
  .card-desc  { font-size: 0.85rem; }
  #services   { padding: 80px 24px; }
}

/* ── 1024px: 13" laptop / tablet boundary ── */
@media (max-width: 1024px) {
  /* services: collapse to single column */
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 20px;
  }
  .card-body { padding: 20px 24px 28px; }
  .card h3   { font-size: 1.35rem; padding-bottom: 20px; }

  /* about: tighten but keep horizontal */
  .about-rows { gap: 40px; }
  .about-row  { gap: 28px; }
  #about      { padding: 60px 32px 80px; }

  /* about heading: allow wrapping */
  .about-heading { white-space: normal; }

  /* services section padding */
  #services { padding: 80px 32px; }
}

/* ── 768px: mobile ── */
@media (max-width: 768px) {
  /* nav */
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  /* hero */
  #hero { padding: 100px 16px 60px; }
  .hero-container {
    padding: 36px 20px;
    border-radius: 20px;
  }
  .hero-sub { font-size: 1rem; }
  .cta-btn  { padding: 16px 36px; }

  /* services */
  #services { padding: 64px 16px; }
  .cards-grid { max-width: 100%; }
  .card-body  { padding: 16px 18px 24px; }
  .section-title { margin-bottom: 40px; }

  /* about */
  #about       { padding: 60px 20px 72px; }
  .about-rows  { gap: 36px; }
  .about-row   {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .about-text  { align-items: center; }
  .about-heading { white-space: normal; font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .about-icon-box { width: 76px; height: 76px; }
  .about-icon-box img { width: 44px; height: 44px; }

  /* testimonials */
  #testimonials { padding: 72px 0 60px; }
  .testi-header { margin-bottom: 40px; }

  /* ── chat demo modal: full-screen ── */
  .chat-demo-modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    justify-content: stretch;
    align-items: stretch;
  }
  #chatDemoOverlay.open {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }
  .chat-phone {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
  }
  .chat-messages {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  .chat-demo-modal .modal-close {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    top: 12px;
    right: 12px;
  }
  .chat-bubble {
    font-size: 14px;
  }

  /* ── bot demo modal: full-screen ── */
  .bot-demo-modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  #botModalOverlay.open {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }
  .bot-phone {
    width: 100%;
    height: 100%;
    border-radius: 0;
    flex: 1;
  }
  .bot-chat-messages {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  .bot-demo-modal .modal-close {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    top: 12px;
    right: 12px;
  }
  .bot-msg-bubble { font-size: 14px; }

  /* pin input area to bottom, use dvh to avoid keyboard overlap */
  .bot-chat-input-area {
    padding: 12px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    flex-shrink: 0;
  }
  .bot-chat-input-area input  { font-size: 16px; /* prevent iOS zoom */ }
  .bot-chat-input-area button {
    width: 44px;
    height: 44px;
  }

  .bot-email-capture {
    flex-shrink: 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .bot-email-row input  { font-size: 16px; min-height: 44px; }
  .bot-email-row button { min-height: 44px; }

  /* close button touch targets */
  .modal-close {
    width: 44px;
    height: 44px;
  }

  /* contact modal */
  .modal { padding: 36px 20px; }
  .modal h2 { font-size: 1.6rem; }

  /* form inputs prevent iOS zoom */
  .form-group input,
  .form-group textarea { font-size: 16px; }
}