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

:root {
  /* HSL Color System */
  --bg-primary: hsl(222, 47%, 6%);
  --bg-secondary: hsl(217, 33%, 12%);
  --bg-tertiary: hsl(215, 25%, 17%);
  --teal-primary: hsl(172, 90%, 42%);
  --teal-hover: hsl(172, 95%, 35%);
  --teal-glow: hsla(172, 90%, 42%, 0.15);
  --teal-bg-glow: hsla(172, 90%, 42%, 0.05);
  --champagne: hsl(36, 45%, 64%);
  --champagne-hover: hsl(36, 45%, 55%);
  --champagne-glow: hsla(36, 45%, 64%, 0.1);
  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 15%, 70%);
  --text-dark: hsl(222, 47%, 4%);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(20, 184, 166, 0.4);
  
  --danger: hsl(0, 84%, 60%);
  --danger-glow: hsla(0, 84%, 60%, 0.1);
  --success: hsl(142, 70%, 45%);
  --success-glow: hsla(142, 70%, 45%, 0.1);
  --warning: hsl(45, 93%, 47%);
  --warning-glow: hsla(45, 93%, 47%, 0.1);
  
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Added Theme Custom Properties */
  --bg-card: rgba(17, 24, 39, 0.65);
  --header-bg: rgba(9, 13, 22, 0.75);
}

/* ── Theme Toggle Icon Visibility ── */
[data-theme="dark"] #themeToggle .sun-icon {
  display: block !important;
}
[data-theme="dark"] #themeToggle .moon-icon {
  display: none !important;
}
[data-theme="light"] #themeToggle .moon-icon {
  display: block !important;
}
[data-theme="light"] #themeToggle .sun-icon {
  display: none !important;
}

/* ── Light Mode Sage/Cream Bespoke ── */
[data-theme="light"] {
  --bg-primary: hsl(45, 18%, 97%); /* Cream muy suave y orgánico */
  --bg-secondary: hsl(45, 12%, 92%); /* Softer cream */
  --bg-tertiary: hsl(45, 10%, 87%);
  --teal-primary: hsl(172, 85%, 28%); /* Teal legible */
  --teal-hover: hsl(172, 90%, 22%);
  --teal-glow: hsla(172, 85%, 28%, 0.12);
  --teal-bg-glow: hsla(172, 85%, 28%, 0.06);
  --champagne: hsl(36, 40%, 48%); /* Bronze/champagne de alta gama */
  --champagne-hover: hsl(36, 40%, 40%);
  --champagne-glow: hsla(36, 40%, 48%, 0.08);
  --text-main: hsl(222, 40%, 12%); /* Charcoal profundo */
  --text-muted: hsl(215, 18%, 38%);
  --text-dark: hsl(222, 47%, 96%); /* Texto claro en contenedores oscuros */
  
  --border-glass: rgba(0, 0, 0, 0.07);
  --border-focus: rgba(20, 140, 130, 0.4);
  
  --bg-card: rgba(255, 255, 255, 0.82);
  --header-bg: rgba(247, 249, 248, 0.85);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(9, 13, 22, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--teal-primary), var(--champagne));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--bg-primary);
  box-shadow: 0 4px 10px var(--teal-glow);
}

.logo span {
  background: linear-gradient(135deg, var(--text-main) 40%, var(--champagne));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

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

.nav-badge {
  background: var(--champagne-glow);
  color: var(--champagne);
  border: 1px solid rgba(197, 168, 128, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-primary), hsl(172, 90%, 35%));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px hsla(172, 90%, 42%, 0.3);
  background: linear-gradient(135deg, var(--teal-hover), hsl(172, 95%, 30%));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-champagne {
  background: linear-gradient(135deg, var(--champagne), hsl(36, 45%, 55%));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--champagne-glow);
}

.btn-champagne:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px hsla(36, 45%, 64%, 0.3);
  background: linear-gradient(135deg, var(--champagne-hover), hsl(36, 45%, 45%));
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 90px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(50px);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-bg-glow);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--teal-primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  animation: pulse-border 3s infinite;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #ffffff 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Demo Simulator Workspace */
.demo-workspace {
  padding: 80px 0;
  position: relative;
  border-top: 1px solid var(--border-glass);
}

.workspace-title {
  text-align: center;
  margin-bottom: 40px;
}

.workspace-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.workspace-title p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-glass);
  padding: 6px;
  border-radius: 40px;
  width: max-content;
  margin: 0 auto 40px auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--teal-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px var(--teal-glow);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Workspace Interactive Container */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Phone Simulator */
.phone-simulator {
  max-width: 390px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border: 10px solid #1f2937;
  border-radius: 40px;
  background: #0b0f19;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 22px;
  background: #1f2937;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notch-speaker {
  width: 35px;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  margin-right: 8px;
}

.notch-camera {
  width: 6px;
  height: 6px;
  background: #374151;
  border-radius: 50%;
}

.phone-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  padding: 28px 16px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal-primary), var(--champagne));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 0.95rem;
  box-shadow: 0 0 10px var(--teal-glow);
}

.ai-profile-info h4 {
  font-size: 0.85rem;
  line-height: 1.2;
}

.ai-profile-info span {
  font-size: 0.72rem;
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-profile-info span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--teal-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--teal-primary);
}

/* Scenario Selector Tabs */
.scenario-selector-container {
  width: 100%;
  margin-bottom: 16px;
}

.scenario-selector-container h4 {
  font-size: 0.85rem;
  color: var(--champagne);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scenario-pill-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-pill-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scenario-pill-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.scenario-pill-btn.active {
  background: var(--teal-bg-glow);
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  font-weight: 500;
}

/* Phone Chat Area */
.phone-chat {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at 50% 90%, hsla(172, 90%, 42%, 0.03) 0%, transparent 60%);
}

.chat-bubble {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
  animation: pop-message 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-bubble-user {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble-ai {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-glass);
  align-self: flex-start;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  align-self: flex-start;
  align-items: center;
  border: 1px solid var(--border-glass);
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

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

/* Interactive Options Overlay inside phone */
.phone-options {
  padding: 12px;
  background: rgba(11, 15, 25, 0.95);
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.phone-options h5 {
  font-size: 0.72rem;
  color: var(--champagne);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  padding-left: 4px;
}

.option-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-sans);
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.option-btn:hover {
  background: var(--teal-bg-glow);
  border-color: rgba(20, 184, 166, 0.4);
  color: var(--teal-primary);
  transform: translateX(3px);
}

/* Dashboard & Pipeline Visualizer */
.dashboard-pipeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Appointment Flow UI Card (SaaS brief style) */
.appointment-flow-card {
  padding: 24px;
  position: relative;
}

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

.flow-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-title svg {
  width: 20px;
  height: 20px;
  fill: var(--teal-primary);
}

.flow-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(142, 230, 120, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.flow-status.pending {
  background: var(--warning-glow);
  color: var(--warning);
  border-color: rgba(230, 197, 120, 0.2);
}

.flow-status.pending::before {
  background: var(--warning);
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 580px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

.flow-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-item label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-item .val {
  font-size: 0.88rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.02);
  min-height: 38px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.flow-item .val.highlight {
  border-color: rgba(20, 184, 166, 0.3);
  background: var(--teal-bg-glow);
  color: var(--teal-primary);
}

.brief-summary-box {
  background: rgba(197, 168, 128, 0.03);
  border: 1px dashed rgba(197, 168, 128, 0.3);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--champagne);
  margin-bottom: 16px;
}

.flow-json {
  background: hsl(220, 40%, 3%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--teal-primary);
  overflow-x: auto;
  max-height: 140px;
}

/* CRM Lanes Dashboard */
.crm-card {
  padding: 24px;
}

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

.crm-lanes-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  min-height: 250px;
}

.crm-lane {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm-lane-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--champagne);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.crm-lane-count {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
}

.crm-ticket {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-smooth);
  animation: fade-in 0.3s ease-out;
}

.crm-ticket:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.ticket-service {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 6px;
}

.tag-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-badge.high-risk {
  background: var(--danger-glow);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag-badge.recompra {
  background: var(--champagne-glow);
  color: var(--champagne);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.tag-badge.canal-whatsapp {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(142, 230, 120, 0.2);
}

.ticket-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--teal-primary);
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ticket-action-btn:hover {
  background: var(--teal-primary);
  color: var(--bg-primary);
}

/* Business Dashboard Card */
.dashboard-card {
  padding: 24px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.metric-widget span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.metric-widget .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-main), var(--champagne));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-widget .num.teal {
  background: linear-gradient(135deg, var(--text-main), var(--teal-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-trend {
  font-size: 0.65rem;
  color: var(--success);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

.chart-panel {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 16px;
}

.chart-panel h4 {
  font-size: 0.8rem;
  color: var(--champagne);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-primary), var(--champagne));
  border-radius: 4px;
  width: 0%;
  transition: width 1s ease-out;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.faq-q {
  color: var(--text-main);
  font-weight: 500;
}

.faq-count {
  background: var(--teal-bg-glow);
  color: var(--teal-primary);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

/* Service Recommender Section */
.services-section {
  padding: 80px 0;
  position: relative;
  background: radial-gradient(circle at 10% 50%, hsla(36, 45%, 64%, 0.02) 0%, transparent 60%);
  border-top: 1px solid var(--border-glass);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--champagne-glow);
  border-color: var(--champagne);
  color: var(--champagne);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-header {
  margin-bottom: 16px;
}

.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--champagne);
  margin-bottom: 8px;
  font-weight: 600;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.service-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.chip-tag.teal {
  background: var(--teal-bg-glow);
  color: var(--teal-primary);
  border-color: rgba(20, 184, 166, 0.2);
}

.chip-tag.champagne {
  background: var(--champagne-glow);
  color: var(--champagne);
  border-color: rgba(197, 168, 128, 0.2);
}

.service-specs {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.spec-item svg {
  width: 13px;
  height: 13px;
  fill: var(--teal-primary);
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  margin-top: auto;
}

.service-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
}

/* Service Interactive Drawer Overlay */
.service-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.service-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  width: 100%;
  max-width: 460px;
  height: 100%;
  border-radius: 0;
  border-left: 1px solid var(--border-glass);
  border-top: none;
  border-bottom: none;
  border-right: none;
  background: hsl(222, 47%, 5%);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.service-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  color: var(--teal-primary);
}

.drawer-body-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Wpp Payload box inside Drawer */
.wpp-payload-box {
  background: hsla(142, 70%, 45%, 0.03);
  border: 1px dashed rgba(142, 230, 120, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.8rem;
}

.wpp-payload-title {
  color: var(--success);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wpp-payload-msg {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  white-space: pre-wrap;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

/* AI-Native Features Explanation */
.features-section {
  padding: 80px 0;
  background: radial-gradient(circle at 90% 10%, hsla(172, 90%, 42%, 0.02) 0%, transparent 60%);
  border-top: 1px solid var(--border-glass);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--teal-bg-glow);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
  margin-bottom: 8px;
}

.feature-icon-wrapper.champagne {
  background: var(--champagne-glow);
  border-color: rgba(197, 168, 128, 0.2);
  color: var(--champagne);
}

.feature-card h3 {
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Compliance and Safety Banner */
.compliance-banner {
  margin: 40px 0 80px 0;
  padding: 24px;
  border-left: 4px solid var(--champagne);
  background: rgba(197, 168, 128, 0.03);
}

.compliance-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.compliance-icon {
  font-size: 1.5rem;
  color: var(--champagne);
  line-height: 1;
}

.compliance-text h4 {
  font-size: 0.95rem;
  color: var(--champagne);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compliance-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Call To Action Block (Bottom) */
.cta-block {
  padding: 80px 0;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-glass);
}

.cta-block-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-block-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--champagne-glow) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-block h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, var(--champagne) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-block p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px auto;
  font-size: 1.05rem;
}

/* Footer */
footer {
  background: hsl(222, 47%, 4%);
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--teal-primary), var(--champagne));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--bg-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--teal-primary);
}

/* Keyframes and Animations */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(20, 184, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}

@keyframes pop-message {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-flash {
  animation: highlight-pulse 1.5s ease-out;
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.8);
    border-color: var(--teal-primary);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
    border-color: var(--border-glass);
  }
}

/* ── Scroll-Driven Animations (Progressive Enhancement) ── */
@supports ((animation-timeline: scroll()) and (animation-range: entry)) {
  .hero-glow {
    animation: glowParallax linear both;
    animation-timeline: scroll();
    animation-range: 0vh 80vh;
  }
  @keyframes glowParallax {
    from { transform: translateY(0) scale(1); opacity: 0.8; }
    to { transform: translateY(100px) scale(1.1); opacity: 0.4; }
  }

  .hero-content {
    animation: contentParallax linear both;
    animation-timeline: scroll();
    animation-range: 0vh 70vh;
  }
  @keyframes contentParallax {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-30px); opacity: 0.8; }
  }

  section:not(.hero) {
    animation: sectionReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
  @keyframes sectionReveal {
    from { opacity: 0.3; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
