/* ============================================================
   Synthloom — Marketing Site Stylesheet
   Palette: Near-black / off-white / electric indigo accent
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #09090b;
  --surface: #111115;
  --surface-alt: #0f0f12;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e4e4e7;
  --muted: #71717a;
  --accent: #7c6ff7;
  --accent-light: #a89af9;
  --accent-glow: rgba(124, 111, 247, 0.18);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;

  --section-py: 120px;
  --max-w: 1160px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 36px rgba(168, 154, 249, 0.3);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.btn--nav {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  padding: 6px 14px;
  font-size: 12px;
}

.btn--nav:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn--nav-demo {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.07);
}

.btn--nav-demo:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.25);
}

.btn--nav-open {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.btn--nav-open:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 22px rgba(168, 154, 249, 0.4);
  transform: translateY(-1px);
}

.btn--large {
  font-size: 16px;
  padding: 14px 32px;
}

/* ── NAV ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.8);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── DOCS BANNER ─────────────────────────────────────────── */

.docs-banner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,111,247,0.06) 0%, transparent 60%);
}

.docs-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.docs-banner-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.docs-banner-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.docs-banner-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin: 0;
}

/* ── DEMO / BOOK A CALL SECTION ──────────────────────────── */

.demo-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(124,111,247,0.07) 0%, transparent 55%);
}

.demo-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.demo-copy {
  padding-top: 16px;
}

.demo-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 20px;
  margin-bottom: 32px;
  max-width: 420px;
}

.demo-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

.demo-bullets li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

.demo-calendly {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

/* ── Step 1: name/email capture ── */
.demo-prefill {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-prefill-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.demo-prefill-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-prefill-fields input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.demo-prefill-fields input::placeholder {
  color: var(--muted);
}

.demo-prefill-fields input:focus {
  border-color: var(--accent);
}

.demo-prefill-btn {
  align-self: flex-start;
}

.demo-prefill-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.demo-prefill-note em {
  color: var(--accent-light);
  font-style: normal;
}

/* ── Step 2: Calendly widget ── */
.demo-calendly-widget {
  display: none;
  width: 100%;
}

.demo-calendly-widget .calendly-inline-widget,
.demo-calendly-widget iframe {
  width: 100%;
  min-width: 0 !important;
  height: auto !important;
  min-height: 630px;
}

@media (max-width: 900px) {
  .demo-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── FOOTER LINKS ────────────────────────────────────────── */

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(124, 111, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Fine dot-grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(124, 111, 247, 0.3);
  background: rgba(124, 111, 247, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px 2px rgba(34, 197, 94, 0.7), 0 0 12px 4px rgba(34, 197, 94, 0.35);
  margin-right: 8px;
  vertical-align: middle;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 6px 2px rgba(34, 197, 94, 0.7), 0 0 12px 4px rgba(34, 197, 94, 0.35); }
  50% { box-shadow: 0 0 10px 4px rgba(34, 197, 94, 0.9), 0 0 20px 8px rgba(34, 197, 94, 0.5); }
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  color: #fff;
  max-width: 820px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.accent {
  color: var(--accent-light);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 72px;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  padding: 24px 40px;
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SECTIONS ─────────────────────────────────────────────── */

.section {
  padding: var(--section-py) 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section--alt {
  max-width: 100%;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-py) 32px;
}

.section--alt > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  color: #fff;
  max-width: 640px;
  margin-bottom: 64px;
}

/* ── FEATURES GRID ───────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--wide {
  grid-column: span 2;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ── PLATFORM GRID ───────────────────────────────────────── */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.platform-block {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.platform-block-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.platform-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ── PIPELINE ────────────────────────────────────────────── */
.info-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 4px;
  font-size: 13px;
  vertical-align: middle;
}

.info-tooltip .tooltip-text {
  visibility: hidden;
  width: 220px;
  background: var(--surface-alt);
  color: var(--text);
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

.info-tooltip:hover .tooltip-text,
.info-tooltip:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: visible;
  padding-bottom: 8px;
}


.pipeline-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s;
  box-sizing: border-box;
  text-align: center;
  height: 100%;
  min-height: 260px;
  max-width: 200px;
  margin: 0 8px;
}

.pipeline-step .step-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
}

.pipeline {
  align-items: stretch;
}
}

.pipeline-step .step-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.pipeline-step .step-body p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
  margin-top: 0;
}

.pipeline-step:hover {
  border-color: rgba(124, 111, 247, 0.4);
}

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.pipeline-arrow {
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  padding: 0 6px;
  color: var(--muted);
  font-size: 18px;
}

/* ── CTA SECTION ─────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: var(--section-py) 32px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124, 111, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--wide {
    grid-column: span 2;
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  .hero-stat-row {
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    padding: 0 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: span 1;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .pipeline {
    flex-direction: column;
    gap: 8px;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
    margin-top: 0;
    padding: 4px 0;
  }

  .pipeline-step {
    min-width: unset;
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── SCROLL-IN ANIMATION ─────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TEAM SECTION ────────────────────────────────────────── */

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 640px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.3s ease;
  min-width: 0;
}

.team-card:hover {
  border-color: rgba(124, 111, 247, 0.4);
  background: var(--surface-alt);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 111, 247, 0.10);
}

.team-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  border: 2px solid var(--border);
}

.team-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.team-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── CHAT BUBBLE WIDGET ──────────────────────────────────── */

.chat-toggle-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.55);
}

.chat-toggle-btn:active {
  transform: scale(0.96);
}

.chat-bubble-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 392px;
  height: 560px;
  max-height: calc(100vh - 150px);
  background: #0e0e11;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(99, 102, 241, 0.08);
  transform: scale(0.97);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.chat-bubble-container.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.chat-bubble-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #13131a;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  flex-shrink: 0;
}

.chat-bubble-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: -0.2px;
  font-family: var(--font-display);
}

.chat-close {
  background: transparent;
  border: none;
  color: #52525b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0e0e11;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.chat-msg {
  padding: 11px 15px;
  border-radius: 14px;
  max-width: 82%;
  word-wrap: break-word;
  font-size: 13.5px;
  line-height: 1.6;
  animation: msgIn 0.22s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg-user {
  background: #6366f1;
  color: #fff;
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}

.chat-msg-bot {
  background: #1c1c24;
  color: #d4d4d8;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px 14px 14px 4px;
}

/* Suggested questions */
.chat-suggested-questions {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(99, 102, 241, 0.05);
  flex-shrink: 0;
}

.chat-suggested-btn {
  padding: 10px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: var(--font-sans);
}

.chat-suggested-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #e0e7ff;
}

.chat-suggested-btn:active {
  transform: scale(0.98);
}

/* Input area */
.chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
  align-items: center;
  background: #13131a;
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: #1c1c24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f4f4f5;
  font-size: 13.5px;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-area input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-input-area input::placeholder {
  color: #52525b;
}

.chat-input-area button {
  width: 38px;
  height: 38px;
  padding: 0;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.chat-input-area button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.chat-input-area button:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .chat-bubble-container {
    width: 360px;
    height: 520px;
    bottom: 88px;
    right: 20px;
  }

  .chat-toggle-btn {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .chat-bubble-container {
    width: calc(100vw - 32px);
    height: calc(100vh - 150px);
    max-height: 520px;
    bottom: 32px;
    right: 16px;
    overflow: hidden;
  }

  .chat-toggle-btn {
    bottom: 20px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .chat-bubble-container {
    width: calc(100vw - 24px);
    height: calc(100vh - 140px);
    max-height: 450px;
    bottom: 32px;
    right: 12px;
    overflow: hidden;
  }

  .chat-toggle-btn {
    bottom: 16px;
    right: 12px;
    width: 52px;
    height: 52px;
  }

  .chat-msg {
    max-width: 88%;
    font-size: 13px;
  }
}
