/* ==========================================================================
   LeadPulse AI — Agency-Grade Light Theme Design System
   Refined Typography, Warm Off-White Canvas, Emerald & Indigo Accents
   ========================================================================== */

:root {
  --bg-canvas: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4F4F6;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.06);

  --brand-emerald: #10B981;
  --brand-emerald-dark: #059669;
  --brand-emerald-light: #ECFDF5;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);

  --accent-blue: #2563EB;
  --accent-purple: #7C3AED;
  --accent-orange: #EA580C;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 40px -10px var(--brand-emerald-glow);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-badge {
  position: relative;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
  overflow: visible;
}

.brand-logo-img,
.logo-badge img,
.brand-logo img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #22C55E;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-text strong {
  color: var(--brand-emerald);
}

.powered-by-tag {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.powered-by-tag strong {
  color: #7C3AED;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(250, 250, 250, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.badge-tag {
  background: var(--brand-emerald-light);
  color: var(--brand-emerald-dark);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.highlight-text {
  background: linear-gradient(135deg, #10B981, #047857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.trust-item span {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* Hero Glass Mockup */
.hero-visual {
  position: relative;
}

.glass-device-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: relative;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.device-dots {
  display: flex;
  gap: 6px;
}

.device-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-pill.online {
  background: #ECFDF5;
  color: #059669;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.chat-preview-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-preview-body .msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  position: relative;
  max-width: 88%;
}

.chat-preview-body .msg.lead {
  align-self: flex-start;
  background: #F1F5F9;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-preview-body .msg.bot {
  align-self: flex-end;
  background: #ECFDF5;
  color: #064E3B;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom-right-radius: 4px;
}

.bot-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-emerald-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.msg-time {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* Floating Badges */
.floating-alert-pill {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.floating-alert-pill.top-right {
  top: -24px;
  right: -24px;
}

.floating-alert-pill.bottom-left {
  bottom: -24px;
  left: -24px;
}

.pill-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pill-icon.red-fire {
  background: #FEF2F2;
}

.pill-icon.green-check {
  background: #ECFDF5;
}

.pill-text strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.pill-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 4s ease-in-out infinite 2s;
}

/* Section Shared */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--brand-emerald-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

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

/* SIMULATOR SECTION */
.simulator-section {
  background: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.industry-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.industry-tab {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.industry-tab.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: var(--shadow-sm);
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

/* Phone Frame */
.phone-frame {
  background: #FFFFFF;
  border: 8px solid #0F172A;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 580px;
}

.phone-header {
  background: #075E54;
  color: #FFFFFF;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.agent-details {
  display: flex;
  flex-direction: column;
}

.agent-name {
  font-weight: 700;
  font-size: 14px;
}

.agent-status {
  font-size: 11px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot-online {
  width: 6px;
  height: 6px;
  background: #25D366;
  border-radius: 50%;
}

.phone-reset-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.phone-reset-btn:hover {
  opacity: 1;
}

.phone-messages {
  flex: 1;
  background: #EFEAE2;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-date-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: #54656F;
}

.msg-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.msg-bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: #111B21;
  border-top-left-radius: 0;
}

.msg-bubble.user {
  align-self: flex-end;
  background: #D9FDD3;
  color: #111B21;
  border-top-right-radius: 0;
}

.bubble-meta {
  display: block;
  font-size: 9.5px;
  color: #667781;
  text-align: right;
  margin-top: 3px;
}

.text-blue {
  color: #53BDEB;
}

.suggestion-chips {
  padding: 8px 12px;
  background: #F0F2F5;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.phone-input-bar {
  background: #F0F2F5;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.phone-input-bar input {
  flex: 1;
  border: none;
  background: #FFFFFF;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  outline: none;
}

.phone-input-bar .send-btn {
  width: 38px;
  height: 38px;
  background: #00A884;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.15s ease;
}

.phone-input-bar .send-btn:hover {
  transform: scale(1.05);
}

/* Intel Panel */
.lead-intel-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.intel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--brand-emerald-dark);
}

.intel-header i {
  font-size: 24px;
}

.intel-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.intel-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.intel-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.intel-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.intel-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.score-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.score-badge.hot {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.intel-action-box {
  background: var(--brand-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}

.action-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-emerald-dark);
  margin-bottom: 4px;
}

.action-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #065F46;
}

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.col-span-2 {
  grid-column: span 2;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
}

.bento-icon-wrapper.emerald { background: #ECFDF5; color: #10B981; }
.bento-icon-wrapper.purple { background: #F5F3FF; color: #8B5CF6; }
.bento-icon-wrapper.red { background: #FEF2F2; color: #EF4444; }
.bento-icon-wrapper.blue { background: #EFF6FF; color: #3B82F6; }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.bento-preview-pill {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.lang-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bento-calendar-pill {
  margin-top: 24px;
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ROI CALCULATOR */
.calculator-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.slider-group {
  margin-bottom: 28px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.slider-label strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10B981;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.calc-results {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.result-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.result-amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--brand-emerald-dark);
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.result-subtext {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--brand-emerald);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-emerald);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.plan-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price .currency {
  font-size: 24px;
  font-weight: 700;
}

.plan-price .amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
}

.plan-price .period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex: 1;
}

.plan-features li {
  font-size: 14.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li i {
  color: var(--brand-emerald);
  font-size: 13px;
}

/* FOOTER */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 16px 0 24px;
  max-width: 320px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--brand-emerald-dark);
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}

.btn-google-auth:hover {
  background: var(--bg-subtle);
}

.btn-google-auth img {
  width: 18px;
  height: 18px;
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-divider span {
  padding: 0 10px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus {
  border-color: var(--brand-emerald);
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--brand-emerald-dark);
  font-weight: 700;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-layout, .calculator-card, .simulator-wrapper, .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .hero-title {
    font-size: 38px;
  }
}

/* ==========================================================================
   CRM ADMIN PORTAL & LEADS DASHBOARD
   ========================================================================== */
.crm-backdrop {
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.crm-modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-header {
  padding: 16px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.crm-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crm-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.crm-user-badge {
  font-size: 12px;
  color: #64748B;
  display: block;
}

.crm-tabs {
  display: flex;
  gap: 8px;
  background: #E2E8F0;
  padding: 4px;
  border-radius: 12px;
}

.crm-tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-tab.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.crm-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crm-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #64748B;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.crm-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.crm-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: #FAFAFA;
}

/* CRM Stats Grid */
.crm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.crm-stat-card {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-blue { background: #EFF6FF; color: #2563EB; }
.icon-fire { background: #FEF2F2; color: #DC2626; }
.icon-green { background: #ECFDF5; color: #059669; }
.icon-purple { background: #FAF5FF; color: #7C3AED; }

.stat-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  display: block;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 2px 0 0 0;
}

.text-hot { color: #DC2626; }
.text-emerald { color: #059669; }

/* CRM Toolbar */
.crm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.crm-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active, .filter-chip:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.crm-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 280px;
}

.crm-search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
}

/* CRM Table */
.crm-table-container {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  overflow-x: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.crm-table th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.crm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  color: #1E293B;
}

.crm-table tr:hover {
  background: #F8FAFC;
}

.lead-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lead-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #EEF2FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.lead-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
}

.score-hot { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.score-warm { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.score-cold { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.score-converted { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }

.btn-wa-chat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-wa-chat:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.crm-status-select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}

/* Bot Config Tab Styles */
.crm-config-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.config-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-section-subtitle {
  color: #64748B;
  font-size: 13px;
  margin-bottom: 24px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.crm-config-card textarea, .crm-config-card select {
  width: 100%;
  padding: 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.crm-config-card textarea:focus, .crm-config-card select:focus {
  border-color: #10B981;
}

.crm-switch-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin: 20px 0;
}

.switch-text strong {
  display: block;
  font-size: 14px;
  color: #0F172A;
}

.switch-text p {
  font-size: 12px;
  color: #64748B;
  margin: 4px 0 0 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: #10B981;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
  .nav-links {
    display: none;
  }
}
