/*
  Zaboony CRM Landing Page Style Sheets
  Custom Modern CSS Design System
*/

:root {
  /* Colors */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-dark: #312e81;
  --violet: #8b5cf6;
  --violet-hover: #7c3aed;
  --violet-light: #f5f3ff;
  
  --dark-slate: #0f172a;
  --medium-slate: #334155;
  --light-slate: #64748b;
  --extra-light-slate: #94a3b8;
  
  --border-light: #e2e8f0;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  
  --green: #22c55e;
  --green-light: #f0fdf4;
  --red: #ef4444;
  
  /* Fonts */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-ui: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--dark-slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* UTILITY CLASSES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.highlight {
  color: var(--violet);
  background: linear-gradient(120deg, var(--violet) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-bold {
  font-weight: 700;
}

.alt-bg {
  background-color: var(--bg-gray);
}

.green { color: var(--green); }
.green-glow { box-shadow: 0 0 15px rgba(34, 197, 94, 0.2); }
.blue-glow { box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); }
.orange-glow { box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.purple-glow { box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--medium-slate);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-gray);
  color: var(--dark-slate);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* HEADER STYLE */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--dark-slate);
  cursor: pointer;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
}

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

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--medium-slate);
}

.nav-link:hover {
  color: var(--primary);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--dark-slate);
  transition: var(--transition-fast);
}

/* HERO SECTION */
.hero-section {
  padding: 5rem 0 3rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(245, 243, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--medium-slate);
  margin-bottom: 2.5rem;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  flex-shrink: 0;
}

.bullet-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bullet-text h3 {
  font-size: 1rem;
  font-weight: 700;
}

.bullet-text p {
  font-size: 0.875rem;
  color: var(--light-slate);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cta-sub {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--light-slate);
}

.hero-ratings {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stars {
  display: flex;
  color: #fbbf24;
}

.star-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.hero-ratings span {
  font-size: 0.8125rem;
  color: var(--light-slate);
  font-weight: 500;
}

/* HERO GRAPHIC CONTAINER */
.hero-graphic-container {
  position: relative;
  width: 100%;
}

.agent-hero-image-wrapper {
  position: absolute;
  top: -120px;
  right: 0;
  width: 280px;
  height: 280px;
  z-index: 10;
  border-radius: 50%;
  border: 8px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  background-color: var(--violet-light);
}

.agent-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.satisfaction-badge {
  position: absolute;
  bottom: 10px;
  left: -40px;
  background-color: var(--bg-white);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  min-width: 170px;
}

.badge-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--light-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-slate);
}

.badge-out {
  font-size: 0.875rem;
  color: var(--light-slate);
  font-weight: 500;
}

.badge-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--green-light);
  color: var(--green);
  margin-left: auto;
}

.trend-icon {
  width: 0.875rem;
  height: 0.875rem;
  transform: rotate(45deg);
}

.sparkline-wrapper {
  margin-top: 0.25rem;
  height: 20px;
  width: 100%;
}

.sparkline {
  width: 100%;
  height: 100%;
}

/* DASHBOARD MOCKUP */
.dashboard-mockup {
  background-color: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 380px;
  overflow: hidden;
}

.db-sidebar {
  background-color: #1e1b4b; /* deep navy */
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.db-logo {
  margin-bottom: 2rem;
}

.db-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.db-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.db-menu-item {
  color: #818cf8; /* light purple */
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.db-menu-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.db-menu-item span {
  display: none; /* Hide labels inside icon-sidebar mockup */
}

.db-menu-item:hover, .db-menu-item.active {
  color: var(--bg-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.db-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: var(--bg-gray);
}

.db-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.db-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-search-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--light-slate);
  cursor: pointer;
}

.db-profile-pic {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
}

.db-profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.8125rem;
  font-weight: 700;
}

.user-role {
  font-size: 0.6875rem;
  color: var(--light-slate);
}

/* KPI Cards */
.db-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.kpi-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  padding: 0.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--light-slate);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.kpi-value {
  font-size: 1.125rem;
  font-weight: 800;
}

.kpi-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--light-slate);
}

.kpi-change {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.kpi-change.positive {
  background-color: var(--green-light);
  color: var(--green);
}

.kpi-change.negative {
  background-color: #fee2e2;
  color: var(--red);
}

/* Mid Panel Graph */
.db-panels {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.chart-card, .recent-conversations-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.chart-card h4, .recent-conversations-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.chart-container {
  height: 140px;
  position: relative;
}

.canvas-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-label {
  font-size: 9px;
  fill: var(--extra-light-slate);
  font-weight: 600;
}

.chart-axis-label {
  font-size: 9px;
  fill: var(--light-slate);
  font-weight: 600;
  text-anchor: middle;
}

.chart-dot {
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { r: 5; fill-opacity: 1; }
  50% { r: 8; fill-opacity: 0.5; }
  100% { r: 5; fill-opacity: 1; }
}

.db-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.db-recent-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.db-recent-item:last-child {
  border-bottom: none;
}

.avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-ui);
}

.recent-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}

.recent-name {
  font-size: 0.75rem;
  font-weight: 700;
}

.recent-msg {
  font-size: 0.6875rem;
  color: var(--light-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-time {
  font-size: 0.65rem;
  color: var(--light-slate);
  margin-left: auto;
  flex-shrink: 0;
}

.view-all-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.view-all-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* HERO FOOTER BAR (Integrations & Trust Badges) */
.hero-footer-bar {
  background-color: var(--bg-gray);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
  margin-top: 4rem;
}

.hero-footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--medium-slate);
}

.trust-badge svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--primary);
}

.integration-showcase {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.int-label {
  font-size: 0.8125rem;
  color: var(--light-slate);
  font-weight: 600;
}

.integration-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.int-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-slate);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.int-icon svg {
  width: 1rem;
  height: 1rem;
}

.int-icon:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

.int-icon.whatsapp { color: #25d366; }
.int-icon.whatsapp:hover { background-color: #25d366; color: white; }
.int-icon.messenger { color: #0084ff; }
.int-icon.messenger:hover { background-color: #0084ff; color: white; }
.int-icon.instagram { color: #e1306c; }
.int-icon.instagram:hover { background-color: #e1306c; color: white; }
.int-icon.email { color: #3b82f6; }
.int-icon.email:hover { background-color: #3b82f6; color: white; }
.int-icon.slack { color: #4a154b; }
.int-icon.slack:hover { background-color: #4a154b; color: white; }
.int-icon.shopify { color: #96bf48; }
.int-icon.shopify:hover { background-color: #96bf48; color: white; }

/* FEATURE SECTIONS (GENERAL) */
.feature-section {
  padding: 6rem 0;
}

.feature-container {
  display: grid;
  grid-template-columns: 1.15fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

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

.feature-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--medium-slate);
  margin-bottom: 2rem;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-highlights li {
  display: flex;
  gap: 1rem;
}

.h-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-icon.purple-bg {
  background-color: var(--violet-light);
  color: var(--violet);
}

.h-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.h-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.h-text p {
  font-size: 0.875rem;
  color: var(--light-slate);
}

/* SECTION 1: INBOX SIMULATOR WIDGET */
.inbox-simulator-wrapper {
  width: 100%;
}

.inbox-window {
  background-color: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 380px;
  overflow: hidden;
}

.inbox-sidebar {
  border-right: 1px solid var(--border-light);
  background-color: var(--bg-gray);
  display: flex;
  flex-direction: column;
}

.inbox-sidebar-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.filter-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--light-slate);
  cursor: pointer;
}

.inbox-tabs {
  padding: 0.5rem;
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-light);
}

.inbox-tab-btn {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  color: var(--light-slate);
  cursor: pointer;
  white-space: nowrap;
}

.inbox-tab-btn.active {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.inbox-thread-list {
  overflow-y: auto;
  flex-grow: 1;
}

.thread-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.thread-item:hover {
  background-color: rgba(99, 102, 241, 0.03);
}

.thread-item.active {
  background-color: var(--violet-light);
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-md {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.channel-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-white);
  color: white;
}

.channel-badge.green { background-color: #25d366; }
.channel-badge.magenta { background-color: #e1306c; }
.channel-badge.blue { background-color: #0084ff; }
.channel-badge.purple { background-color: var(--violet); }

.channel-badge svg {
  width: 0.55rem;
  height: 0.55rem;
}

.thread-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}

.thread-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.thread-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.thread-time {
  font-size: 0.6rem;
  color: var(--light-slate);
}

.thread-snippet {
  font-size: 0.6875rem;
  color: var(--light-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-badge-new {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background-color: var(--primary);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Chat Panel */
.inbox-chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.inbox-chat-panel .chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-user-name {
  font-weight: 800;
  font-size: 0.875rem;
}

.chat-view-profile-btn {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.chat-status {
  font-size: 0.7rem;
  color: var(--light-slate);
  font-weight: 600;
  text-transform: uppercase;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: #fafafb;
}

.msg-bubble {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.msg-bubble.incoming {
  align-self: flex-start;
}

.msg-bubble.outgoing {
  align-self: flex-end;
}

.msg-content {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.incoming .msg-content {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top-left-radius: 2px;
}

.outgoing .msg-content {
  background-color: var(--primary);
  color: var(--bg-white);
  border-top-right-radius: 2px;
}

.msg-time {
  font-size: 0.55rem;
  color: var(--light-slate);
  padding: 0 4px;
}

.outgoing .msg-time {
  align-self: flex-end;
}

.chat-input-area {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-input-area input {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  border: none;
  outline: none;
  padding: 0.25rem 0;
  width: 100%;
}

.chat-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-input-tools {
  display: flex;
  gap: 0.5rem;
}

.chat-input-tools button {
  background: none;
  border: none;
  color: var(--light-slate);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.chat-input-tools svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-send {
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.btn-send svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Simulator Stats Bar */
.simulator-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: var(--primary-dark);
  color: var(--bg-white);
  border-radius: 0 0 12px 12px;
  padding: 0.75rem;
}

.stat-unit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-unit-icon {
  color: #a5b4fc;
}

.stat-unit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.stat-unit-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.stat-unit-num {
  font-size: 0.875rem;
  font-weight: 800;
}

.stat-unit-label {
  font-size: 0.6rem;
  color: #c7d2fe;
}

/* SECTION 2: 360 CUSTOMER PROFILE VIEW */
.testimonial-block {
  background-color: var(--violet-light);
  border-left: 4px solid var(--violet);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin-top: 2.5rem;
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: rgba(139, 92, 246, 0.15);
  position: absolute;
  top: -5px;
  left: 10px;
  font-family: Georgia, serif;
}

.testimonial-block blockquote {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-slate);
  position: relative;
  z-index: 2;
}

.customer-profile-wrapper {
  width: 100%;
}

.customer-profile-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.profile-meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-name-row h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.tag-badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.tag-badge.vip {
  background-color: #fae8ff;
  color: #d946ef;
}

.tag-badge.in-progress {
  background-color: #eff6ff;
  color: #2563eb;
}

.profile-email {
  font-size: 0.8125rem;
  color: var(--medium-slate);
}

.profile-phone {
  font-size: 0.75rem;
  color: var(--light-slate);
}

.profile-since {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.since-label {
  font-size: 0.65rem;
  color: var(--light-slate);
  text-transform: uppercase;
}

.since-date {
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Metrics Grid */
.profile-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.p-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.p-kpi-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--light-slate);
  text-transform: uppercase;
}

.p-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
}

.p-kpi-sub {
  font-size: 0.8125rem;
  color: var(--light-slate);
  font-weight: 500;
}

.p-csat-row {
  display: flex;
  align-items: baseline;
}

/* Tags badges */
.profile-badges-row {
  display: flex;
  gap: 0.5rem;
}

.meta-pill {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-hover);
  background-color: var(--primary-light);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* Tabs list */
.profile-tabs-section {
  background-color: var(--bg-gray);
  border-radius: 10px;
  padding: 1rem;
}

.tabs-nav-header {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.profile-tab-header-btn {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--light-slate);
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: relative;
}

.profile-tab-header-btn.active {
  color: var(--violet);
}

.profile-tab-header-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--violet);
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
}

.profile-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.log-channel {
  font-weight: 700;
  width: 65px;
}

.log-channel.green { color: var(--green); }
.log-channel.blue { color: #3b82f6; }
.log-channel.magenta { color: #db2777; }

.log-desc {
  color: var(--medium-slate);
  flex-grow: 1;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-time {
  color: var(--light-slate);
}

.log-icon-bullet {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.log-icon-bullet.orange { background-color: #f59e0b; }
.log-icon-bullet.green { background-color: var(--green); }
.log-icon-bullet.purple { background-color: var(--violet); }
.log-icon-bullet.blue { background-color: #3b82f6; }

.log-icon-bullet svg {
  width: 0.65rem;
  height: 0.65rem;
}

.profile-tab-footer {
  text-align: right;
}

/* Preferences segments */
.profile-footer-details {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
}

.pf-segment h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--light-slate);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.pref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pref-tags span {
  font-size: 0.6875rem;
  background-color: var(--bg-gray);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.insights-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.insight-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.insight-label {
  color: var(--light-slate);
}

.insight-value {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.bullet-dot.green { background-color: var(--green); }

/* SECTION 3: AUTOMATION */
.automation-cta-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e1b4b 100%);
  color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.automation-cta-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
}

.automation-cta-card p {
  font-size: 0.875rem;
  color: #c7d2fe;
  margin-bottom: 0.5rem;
}

.testimonial-small-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-small-card img {
  border-radius: 50%;
}

.test-content blockquote {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--medium-slate);
  margin-bottom: 0.25rem;
}

.test-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-slate);
}

/* Workflow Simulator Card */
.workflow-simulator-wrapper {
  width: 100%;
}

.workflow-diagram-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.wf-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.wf-bot-icon {
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf-bot-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.wf-header h4 {
  font-size: 1rem;
  font-weight: 800;
}

.wf-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.4;
  transform: scale(0.98);
  transition: all var(--transition-normal);
}

.wf-step.active {
  opacity: 1;
  transform: scale(1);
}

.wf-step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--extra-light-slate);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.wf-step.active .wf-step-num {
  background-color: var(--primary);
}

.wf-step-box {
  background-color: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.wf-step.active .wf-step-box {
  background-color: var(--bg-white);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.wf-step-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.wf-step-icon svg {
  width: 1rem;
  height: 1rem;
}

.wf-step-icon.purple-bg { background-color: var(--violet); }
.wf-step-icon.blue-bg { background-color: #3b82f6; }
.wf-step-icon.orange-bg { background-color: #f59e0b; }
.wf-step-icon.green-bg { background-color: var(--green); }

.wf-step-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.wf-step-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.wf-step-desc {
  font-size: 0.65rem;
  color: var(--light-slate);
}

.wf-tag-badge {
  font-size: 0.6rem;
  background-color: #fae8ff;
  color: #d946ef;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  align-self: flex-start;
}

.wf-connector {
  padding-left: 0.75rem;
}

.wf-line {
  width: 2px;
  height: 15px;
  background-color: var(--border-light);
  margin-left: -1px;
}

.wf-step.active + .wf-connector .wf-line {
  background-color: var(--primary-light);
}

.wf-simulator-action-row {
  margin-top: 1rem;
  text-align: right;
}

/* Automation stats row */
.automation-stats-row {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.a-stat {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.a-stat-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  color: var(--primary);
  background-color: var(--primary-light);
}

.a-stat-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.a-stat-content {
  display: flex;
  flex-direction: column;
}

.a-stat-num {
  font-size: 0.95rem;
  font-weight: 800;
}

.a-stat-num-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--light-slate);
}

.a-stat-label {
  font-size: 0.55rem;
  color: var(--light-slate);
  font-weight: 600;
  line-height: 1.2;
}

/* SECTION 4: SUPPORT COLLABORATION TICKET */
.support-ticket-wrapper {
  width: 100%;
  position: relative;
}

.ticket-container {
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.th-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.th-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--medium-slate);
}

.th-subject {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.ticket-conversation {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.5rem;
  background-color: var(--bg-gray);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.t-msg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.t-msg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.t-msg-user {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.t-username {
  font-size: 0.75rem;
  font-weight: 800;
}

.t-msg-time {
  font-size: 0.6rem;
  color: var(--light-slate);
}

.t-msg-body {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  width: fit-content;
  max-width: 85%;
}

.t-msg.customer .t-msg-body {
  border-top-left-radius: 2px;
}

.t-msg.agent {
  align-items: flex-end;
}

.t-msg.agent .t-msg-body {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  border-top-right-radius: 2px;
}

.t-msg.internal-note {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 0.5rem;
  border-radius: 6px;
}

.t-note-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 4px;
}

.t-note-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.t-msg.internal-note .t-msg-body {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.75rem;
  color: #92400e;
}

.mention {
  font-weight: 700;
  color: var(--primary-hover);
}

.font-italic {
  font-style: italic;
}

/* Reply Editor */
.ticket-reply-editor {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-tabs {
  background-color: var(--bg-gray);
  border-bottom: 1px solid var(--border-light);
  display: flex;
}

.editor-tab {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.editor-tab.active {
  background-color: var(--bg-white);
  color: var(--primary);
  border-right: 1px solid var(--border-light);
}

.ticket-reply-editor textarea {
  border: none;
  outline: none;
  resize: none;
  padding: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  height: 50px;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background-color: var(--bg-gray);
  border-top: 1px solid var(--border-light);
}

.editor-tools {
  display: flex;
  gap: 0.5rem;
}

.editor-tools button {
  background: none;
  border: none;
  color: var(--light-slate);
  cursor: pointer;
}

.editor-tools svg {
  width: 0.95rem;
  height: 0.95rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Floating response overlay */
.floating-ticket-metrics {
  position: absolute;
  top: 80px;
  right: -50px;
  background-color: var(--bg-white);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  min-width: 150px;
  z-index: 10;
}

.ft-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--light-slate);
  text-transform: uppercase;
}

.ft-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ft-num {
  font-size: 1.25rem;
  font-weight: 800;
}

.ft-trend {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
}

.ft-trend svg {
  width: 0.65rem;
  height: 0.65rem;
  transform: rotate(180deg); /* down indicator */
}

/* Performance Overview Footer */
.ticket-stats-bar {
  margin-top: 1.5rem;
  background-color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
}

.ts-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.ts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ts-unit {
  display: flex;
  flex-direction: column;
}

.ts-label {
  font-size: 0.6rem;
  color: var(--light-slate);
  font-weight: 600;
}

.ts-val {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--dark-slate);
}

.ts-trend {
  font-size: 0.65rem;
  font-weight: 700;
}

.ts-trend.green { color: var(--green); }

/* BOTTOM CTA SECTION */
.bottom-cta-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 10% 90%, rgba(224, 231, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
}

.cta-section-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.cta-card-bg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--violet) 100%);
  border-radius: 20px;
  padding: 3rem;
  color: var(--bg-white);
  box-shadow: var(--shadow-premium);
}

.cta-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-left h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-left p {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cta-subtext {
  font-size: 0.8125rem;
  color: var(--primary-light);
}

/* Trust indicators footer */
.trust-indicators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-indicator-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.trust-indicator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ti-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.ti-icon.green { background-color: var(--green-light); color: var(--green); }
.ti-icon.blue { background-color: #eff6ff; color: #3b82f6; }
.ti-icon.purple { background-color: var(--violet-light); color: var(--violet); }

.ti-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.trust-indicator-card h4 {
  font-size: 1rem;
  font-weight: 800;
}

.trust-indicator-card p {
  font-size: 0.875rem;
  color: var(--light-slate);
}

/* Large testimonial footer */
.footer-testimonial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.footer-testimonial blockquote {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--medium-slate);
  margin-bottom: 0.5rem;
}

.ft-content {
  display: flex;
  flex-direction: column;
}

.ft-author {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark-slate);
}

/* FOOTER */
.footer {
  background-color: var(--dark-slate);
  color: var(--bg-white);
  padding: 3rem 0;
  border-top: 1px solid #1e293b;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 1.5rem;
}

.footer-top .logo {
  color: var(--bg-white);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--extra-light-slate);
  max-width: 400px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--light-slate);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
}

.footer-links a {
  color: var(--light-slate);
}

.footer-links a:hover {
  color: var(--bg-white);
}

/* RESPONSIVE DESIGN - BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .agent-hero-image-wrapper {
    position: static;
    margin: 0 auto 2rem auto;
  }
  
  .satisfaction-badge {
    left: 20px;
  }
  
  .feature-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .inbox-window, .customer-profile-card, .workflow-diagram-card, .ticket-container {
    max-width: 650px;
    margin: 0 auto;
  }
  
  .simulator-stats-bar, .ticket-stats-bar {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .floating-ticket-metrics {
    right: 20px;
  }
  
  .cta-card-content {
    flex-direction: column;
    text-align: center;
  }
  
  .trust-indicators-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .nav {
    display: none; /* simple mobile layout toggle can be added via JS */
  }
  
  .header-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .db-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .db-panels {
    grid-template-columns: 1fr;
  }
  
  .inbox-window {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .inbox-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    max-height: 150px;
  }
  
  .inbox-thread-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .thread-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    min-width: 120px;
    padding: 0.5rem;
  }
  
  .thread-info {
    display: none; /* compact for mobile */
  }
  
  .profile-footer-details {
    grid-template-columns: 1fr;
  }
  
  .automation-stats-row, .ts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-testimonial {
    flex-direction: column;
    text-align: center;
  }
}
