/* =============================================================================
   Spartn AI & EvinceDev Design System
   Modern Enterprise Landing Page + E-Commerce Floating Assistant Widget
   ============================================================================= */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --bg-landing: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-slate: #1E293B;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --primary-green: #61B984;
  --primary-green-dark: #4A9E6C;
  --primary-green-light: #EEF8F2;

  --accent-orange: #FF6B00;
  --accent-orange-light: #FFF4ED;
  --accent-blue: #0284C7;

  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-widget: 0 24px 60px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.landing-page-body {
  font-family: var(--font-sans);
  background-color: var(--bg-landing);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =============================================================================
   1. Landing Page Navigation Bar
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-name strong {
  color: var(--accent-orange);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.nav-item:hover {
  color: var(--text-main);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-trigger-btn {
  background: var(--primary-green-light);
  color: var(--primary-green-dark);
  border: 1px solid rgba(97, 185, 132, 0.3);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.chat-trigger-btn:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(97, 185, 132, 0.25);
}

.primary-nav-btn {
  background: var(--bg-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.primary-nav-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

/* =============================================================================
   2. Hero Section
   ============================================================================= */
.hero-section {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(97, 185, 132, 0.08) 0%, transparent 65%);
  text-align: center;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(97, 185, 132, 0.12) 0%, rgba(255, 107, 0, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(97, 185, 132, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(97, 185, 132, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(97, 185, 132, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(97, 185, 132, 0); }
}

.hero-heading {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #0F172A 0%, #61B984 50%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheading {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.25rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.hero-btn {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-hero-btn {
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid var(--bg-dark);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.primary-hero-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.secondary-hero-btn {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.secondary-hero-btn:hover {
  background: var(--bg-landing);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Quick Hero Prompt Bar */
.hero-prompt-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.25rem;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.prompt-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.prompt-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landing-chip {
  background: var(--bg-landing);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.landing-chip:hover {
  background: var(--primary-green-light);
  border-color: var(--primary-green);
  color: var(--primary-green-dark);
  transform: translateY(-1px);
}

/* =============================================================================
   3. Marquee Infinite Scroll Section
   ============================================================================= */
.marquee-section {
  background: var(--bg-dark);
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.marquee-track-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.m-icon {
  font-size: 1rem;
}

/* =============================================================================
   4. Trust & Metrics Strip
   ============================================================================= */
.trust-metrics-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* =============================================================================
   5. Services Grid with Filter Tabs
   ============================================================================= */
.services-section {
  padding: 5rem 1.5rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-green-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Service Filter Tabs */
.service-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  background: var(--bg-landing);
  color: var(--text-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card.hidden {
  display: none !important;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}

.service-badge-pill {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  background: var(--bg-landing);
  border: 1px solid var(--border-color);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background: var(--bg-landing);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-explore-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-green-dark);
}

/* =============================================================================
   6. Project Architecture Scope Estimator
   ============================================================================= */
.calculator-section {
  padding: 4rem 1.5rem;
  background: var(--bg-landing);
}

.calculator-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.calc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.calc-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.calc-select {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-landing);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.calc-select:focus {
  border-color: var(--primary-green);
  background: #FFFFFF;
}

.calc-footer {
  text-align: center;
}

.calc-submit-btn {
  background: var(--primary-green);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.95rem 2.2rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(97, 185, 132, 0.3);
  transition: all 0.2s ease;
}

.calc-submit-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(97, 185, 132, 0.4);
}

/* =============================================================================
   7. Case Studies Grid
   ============================================================================= */
.case-studies-section {
  padding: 5rem 1.5rem;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-landing);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: var(--text-main);
  box-shadow: var(--shadow-md);
}

.case-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.case-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.case-metrics {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.metric-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.case-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

/* =============================================================================
   8. Footer
   ============================================================================= */
.site-footer {
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.brand-col .brand-link {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.brand-col .brand-name {
  color: #FFFFFF;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 1.25rem;
}

.footer-guarantee {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  color: var(--primary-green);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

.footer-col a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* =============================================================================
   9. Floating E-Commerce Assistant Widget
   ============================================================================= */

/* Launcher Wrapper (Fixed Bottom-Right) */
.chat-launcher-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Teaser Bubble */
.chat-teaser-bubble {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float-teaser 3s ease-in-out infinite;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-teaser-bubble.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

@keyframes float-teaser {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.teaser-text {
  flex: 1;
  line-height: 1.35;
}

.teaser-text strong {
  color: var(--primary-green-dark);
}

.teaser-close-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
}

.teaser-close-btn:hover {
  color: var(--text-main);
}

/* Circular Floating Action Button (FAB) */
.chat-fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2E1D 0%, #124B2F 50%, #1B6E45 100%);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 10px 25px rgba(10, 46, 29, 0.35);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-fab-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
}

.fab-icon-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.fab-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.fab-icon-close {
  display: none;
  font-size: 1.3rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* When Widget is Active / Open */
.chat-launcher-wrapper.widget-active .fab-icon-chat {
  display: none;
}

.chat-launcher-wrapper.widget-active .fab-icon-close {
  display: flex;
}

.chat-launcher-wrapper.widget-active .fab-pulse-ring {
  display: none;
}

.fab-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--primary-green);
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
}

.fab-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  animation: fab-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Floating Modal / Window (E-Commerce Style) */
.chat-widget-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 420px;
  height: 620px;
  max-height: calc(100vh - 120px);
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25), 0 4px 16px rgba(15, 23, 42, 0.12);
  border: 2px solid #1E293B;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88) translateY(24px);
  transform-origin: bottom right;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Expanded Modal View Mode */
.chat-widget-window.expanded {
  width: 680px;
  height: 740px;
  max-height: calc(100vh - 80px);
  max-width: calc(100vw - 40px);
}

/* Widget Header */
.widget-header {
  background: linear-gradient(135deg, #0A2E1D 0%, #124B2F 50%, #1B6E45 100%);
  color: #FFFFFF;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #61B984;
}

.widget-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.widget-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(97, 185, 132, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.widget-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
}

.avatar-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: #61B984;
  border: 2px solid #0A2E1D;
  border-radius: 50%;
}

.widget-header-text {
  display: flex;
  flex-direction: column;
}

.widget-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.widget-badge {
  background: rgba(97, 185, 132, 0.2);
  color: var(--primary-green);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.widget-subtitle {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

.widget-header-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.widget-control-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.widget-control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}


/* Widget Body */
.widget-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Welcome Hero inside Widget */
.widget-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.widget-hero-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  margin-bottom: 0.35rem;
}

.widget-hero-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.widget-hero-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.widget-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.widget-chip {
  background: var(--bg-landing);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.widget-chip:hover {
  background: #FFFFFF;
  border-color: var(--primary-green);
  color: var(--primary-green-dark);
  transform: translateX(2px);
}

/* Messages Stream */
.widget-messages-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Message Rows */
.chat-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  width: 100%;
}

.user-row {
  justify-content: flex-end;
}

.bot-row {
  justify-content: flex-start;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  background: #FFFFFF;
  border: 1.5px solid rgba(97, 185, 132, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.msg-avatar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
}

.msg-bubble-wrapper {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.user-bubble {
  background: linear-gradient(135deg, #0A2E1D 0%, #124B2F 50%, #1B6E45 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(10, 46, 29, 0.18);
}

.bot-bubble {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* Typing Wave Animation */
.typing-wave {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-green);
  border-radius: 50%;
  animation: wave-dot 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Markdown Rendering inside Bot Bubble */
.bot-bubble h1, .bot-bubble h2, .bot-bubble h3, .bot-bubble h4 {
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.bot-bubble h1:first-child,
.bot-bubble h2:first-child,
.bot-bubble h3:first-child,
.bot-bubble h4:first-child,
.bot-bubble p:first-child {
  margin-top: 0;
}
.bot-bubble h1 { font-size: 1.05rem; }
.bot-bubble h2 { font-size: 0.98rem; }
.bot-bubble h3 { font-size: 0.92rem; }
.bot-bubble h4 { font-size: 0.86rem; }
.bot-bubble p {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.bot-bubble p:last-child {
  margin-bottom: 0;
}
.bot-bubble ul, .bot-bubble ol {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-left: 1.15rem;
  margin-bottom: 0.5rem;
}
.bot-bubble li {
  margin-bottom: 0.35rem;
}
.bot-bubble li:last-child {
  margin-bottom: 0;
}
.bot-bubble strong {
  font-weight: 700;
  color: var(--text-main);
}
.bot-bubble a {
  color: var(--primary-green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.bot-bubble a[href*="contact-us"] {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--primary-green-light);
  color: var(--primary-green-dark);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary-green);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  vertical-align: baseline;
}

.bot-bubble a[href*="contact-us"]:hover {
  background: var(--primary-green);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(97, 185, 132, 0.35);
}

.bot-bubble hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.6rem 0;
}

.bot-bubble code {
  font-family: var(--font-mono);
  background: #F1F5F9;
  color: #0F172A;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.bot-bubble pre {
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0.5rem 0;
}

.bot-bubble pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Citations Box */
.citations-wrapper {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.citations-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  display: block;
}

.citations-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.citation-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-landing);
  border: 1px solid var(--border-color);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}

.citation-pill:hover {
  background: var(--primary-green-light);
  border-color: var(--primary-green);
  color: var(--primary-green-dark);
}

/* Feedback Action Row */
.msg-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.feedback-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.feedback-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feedback-btn:hover {
  transform: scale(1.1);
}

.feedback-btn.feedback-up:hover {
  background: rgba(97, 185, 132, 0.12);
  border-color: #61B984;
  color: #61B984;
}

.feedback-btn.feedback-down:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #EF4444;
}

/* Dynamic Followup Chips */
.followup-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.followup-chip {
  background: #FFFFFF;
  border: 1px dashed var(--primary-green);
  color: var(--primary-green-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.followup-chip:hover {
  background: var(--primary-green-light);
  transform: translateY(-1px);
}

/* Widget Footer & Input Form */
.widget-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 0.9rem;
}

.widget-input-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.widget-input-wrapper {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.4rem 0.3rem 0.8rem;
  gap: 0.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.widget-input-wrapper:focus-within {
  border-color: var(--primary-green);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(97, 185, 132, 0.12);
}

.widget-textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-main);
  resize: none;
  outline: none;
  max-height: 80px;
  line-height: 1.4;
  padding: 0.3rem 0;
}

.widget-voice-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.widget-voice-btn:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

.widget-voice-btn.listening {
  color: #EF4444;
  animation: pulse-ring 1.2s infinite;
}

.widget-send-btn {
  background: var(--primary-green);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.widget-send-btn:hover {
  background: var(--primary-green-dark);
  transform: scale(1.05);
}

.widget-footer-note {
  text-align: center;
  font-size: 0.66rem;
  color: var(--text-light);
}

/* =============================================================================
   10. Responsive Design
   ============================================================================= */
@media (max-width: 900px) {
  .hero-heading { font-size: 2.5rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 2rem; }
  .hero-subheading { font-size: 1rem; }
  .trust-container { flex-direction: column; }
  .metric-divider { display: none; }
  
  /* Fullscreen Chatbot on mobile */
  .chat-widget-window {
    bottom: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }
}
