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

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  --bg-main: #060913;
  --bg-card: rgba(13, 20, 38, 0.65);
  --bg-card-hover: rgba(18, 28, 54, 0.85);
  --bg-input: #0c1222;
  --border-color: rgba(0, 242, 254, 0.15);
  --border-hover: rgba(0, 242, 254, 0.4);
  
  /* Brand Palette: High-end SaaS Dark Navy, Teal/Aqua Accents & Warm Off-White */
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.35);
  --primary-light: #73f7ff;
  --primary-dark: #00a4b8;
  --accent-purple: #8a2be2;
  --accent-purple-glow: rgba(138, 43, 226, 0.25);
  
  --text-main: #faf6f0;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Shadows, Blurs & Animations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.8);
  --glass-blur: blur(20px);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --max-width: 1240px;

  /* Header style tokens */
  --header-bg: rgba(6, 9, 19, 0.75);
  --header-border: rgba(255, 255, 255, 0.05);
}

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

/* ── Light Mode Bespoke (Restaurante Warm/Apetitoso) ── */
[data-theme="light"] {
  --bg-main: #fcfaf7; /* Warm Off-white de mantel de mesa */
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-input: #ffffff;
  --border-color: rgba(230, 95, 0, 0.15); /* Acento cálido mandarina */
  --border-hover: rgba(230, 95, 0, 0.35);
  
  --primary: #d95100; /* Naranja/mandarina apetitoso con buen contraste */
  --primary-glow: rgba(217, 81, 0, 0.25);
  --primary-light: #ff7d47;
  --primary-dark: #b03c00;
  --accent-purple: #781fc2;
  --accent-purple-glow: rgba(120, 31, 194, 0.15);
  
  --text-main: #1f1a16; /* Chocolate/Charcoal oscuro */
  --text-muted: #5e544c;
  --text-dark: #8c8075;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.16);

  --header-bg: rgba(252, 250, 247, 0.75);
  --header-border: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Abstract Glow Shapes */
body::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.09) 0%, rgba(138, 43, 226, 0.03) 70%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

body::after {
  content: '';
  position: absolute;
  bottom: 15%;
  right: -5%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, rgba(0, 242, 254, 0.03) 70%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(120px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.15);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-top: 4px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 20%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 242, 254, 0.07);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.badge-purple {
  background: rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.35);
  color: #c084fc;
}

.badge-gray {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* Operation / Restaurant Status Chips */
.badge-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-ready {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.badge-confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #040814;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.6);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.support-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--header-border);
}

.navbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

header .logo span {
  display: inline;
}
@media (max-width: 768px) {
  header .logo span {
    display: none;
  }
}

.logo-dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 120px 0 100px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.12;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

.hero-support-messages {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 4px;
}

/* Hero Visual Card Stack */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 400px;
}

.hero-card {
  position: absolute;
  padding: 24px;
  width: 100%;
  border-radius: var(--radius-md);
}

.hero-card-1 {
  top: 0;
  left: 0;
  z-index: 3;
  border-color: var(--primary);
  background: rgba(11, 16, 33, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.1);
}

.hero-card-2 {
  top: 100px;
  left: 40px;
  z-index: 2;
  transform: rotate(1.5deg);
  background: rgba(14, 21, 41, 0.85);
}

.hero-card-3 {
  top: 190px;
  left: -20px;
  z-index: 1;
  transform: rotate(-2deg);
  background: rgba(18, 27, 51, 0.75);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.hero-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card-time {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.hero-card-body {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-card-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.hero-card-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-card-growth {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

/* ==========================================================================
   AI CONCIERGE PLAYGROUND (CHIPS & LAYOUT)
   ========================================================================== */
.concierge-top-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
  width: 100%;
}

.filter-chip {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.filter-chip.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.concierge-workspace-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

/* Chat Simulator Workspace */
.chat-workspace {
  display: flex;
  flex-direction: column;
  height: 540px;
  overflow: hidden;
  position: relative;
}

.chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 20, 38, 0.45);
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chat-agent-meta h4 {
  font-size: 1rem;
  font-weight: 600;
}

.chat-agent-meta p {
  font-size: 0.78rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-agent-status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.chat-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Extraction Panel UI Card ("De conversación a datos estructurados") */
.extractor-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.extractor-panel-header {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.extractor-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.extractor-panel-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.extractor-field-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.extractor-field-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.extractor-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.extractor-val {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.extractor-priority {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Subtle operational inline parameter tags */
.parameter-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* Messages */
.message {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: message-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes message-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message-user {
  align-self: flex-end;
  align-items: flex-end;
}

.message-agent {
  align-self: flex-start;
  align-items: flex-start;
}

.message-bubble {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.55;
}

.message-user .message-bubble {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--text-main);
  border-bottom-right-radius: var(--radius-sm);
}

.message-agent .message-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-bottom-left-radius: var(--radius-sm);
}

.message-meta {
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-top: 6px;
}

/* Typing Indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Chat Interactive Actions Overlay */
.chat-actions-container {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 15, 30, 0.85);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-suggested-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.chat-suggested-actions.visible {
  opacity: 1;
  transform: translateY(0);
}

.suggested-btn {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--primary-light);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.suggested-btn:hover {
  background: var(--primary);
  color: #040814;
  border-color: var(--primary);
}

.chat-input-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
}

.chat-input-field {
  flex-grow: 1;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.chat-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.1);
}

.chat-send-btn {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #040814;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  background: var(--primary-light);
  transform: scale(1.03);
}

/* ==========================================================================
   SMART MENU / RECOMMENDER
   ========================================================================== */
.recommender-subheading {
  font-size: 1.05rem;
  color: var(--primary);
  text-align: center;
  margin-top: -48px;
  margin-bottom: 48px;
  font-weight: 500;
}

.menu-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  justify-content: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.menu-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.menu-card-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.menu-card-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.menu-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.menu-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex-grow: 1;
}

.menu-card-details {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.detail-label {
  color: var(--text-dark);
}

.detail-val {
  color: var(--text-main);
  font-weight: 500;
}

.menu-card .btn {
  width: 100%;
  font-size: 0.88rem;
  padding: 12px 20px;
}

/* ==========================================================================
   WHATSAPP COMMERCE FLOW VISUALIZER
   ========================================================================== */
.flow-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 22px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--accent-purple) 100%);
  opacity: 0.2;
}

.flow-step {
  display: flex;
  gap: 22px;
  position: relative;
}

.flow-step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
  transition: var(--transition);
  z-index: 2;
}

.flow-step.active .flow-step-number {
  border-color: var(--primary);
  background: var(--primary);
  color: #040814;
  box-shadow: 0 0 18px var(--primary-glow);
}

.flow-step-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.flow-step.active .flow-step-info h3 {
  color: var(--primary);
}

.flow-step-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Mock Phone Rendering */
.phone-mockup {
  position: relative;
  width: 330px;
  height: 610px;
  border-radius: 42px;
  border: 12px solid #1a2035;
  background: #080b11;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 242, 254, 0.08);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Phone Notch */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 22px;
  background: #1a2035;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-header {
  background: #075e54; /* WhatsApp Green */
  color: #ffffff;
  padding: 26px 18px 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-back-icon {
  font-size: 1.1rem;
}

.phone-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eceff1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #546e7a;
  font-weight: 600;
  font-size: 0.9rem;
}

.phone-user-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
}

.phone-user-info p {
  font-size: 0.68rem;
  opacity: 0.85;
}

.phone-body {
  flex-grow: 1;
  background: #efe7dd; /* Classic WhatsApp Background */
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  justify-content: flex-end;
}

.phone-bubble {
  max-width: 92%;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 0.8rem;
  line-height: 1.45;
  position: relative;
  animation: message-pop 0.3s ease;
}

.phone-bubble-user {
  background: #d9fdd3;
  color: #111b21;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.phone-bubble-structured {
  background: #ffffff;
  color: #111b21;
  align-self: flex-start;
  border-top-left-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-bubble-structured h5 {
  font-weight: 700;
  color: #075e54;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.phone-structured-data {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.phone-data-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  font-size: 0.75rem;
  line-height: 1.35;
}

.phone-data-label {
  color: #667781;
  font-weight: 500;
}

.phone-data-val {
  color: #111b21;
  font-weight: 600;
}

.phone-action-area {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  flex-direction: column;
  gap: 8px;
}

.phone-action-btn {
  background: #00a884;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  width: 100%;
  text-align: center;
  transition: var(--transition-fast);
}

.phone-action-btn:hover {
  background: #008f72;
}

.phone-copy-btn {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  color: #111b21;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
}

.phone-copy-btn:hover {
  background: rgba(0,0,0,0.06);
}

.phone-bubble-time {
  font-size: 0.65rem;
  color: #667781;
  text-align: right;
  margin-top: 5px;
}

.phone-footer {
  background: #f0f2f5;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-input-mock {
  flex-grow: 1;
  background: #ffffff;
  height: 32px;
  border-radius: var(--radius-full);
  padding: 0 14px;
  font-size: 0.78rem;
  color: #8696a0;
  display: flex;
  align-items: center;
}

.phone-mic-icon {
  width: 32px;
  height: 32px;
  background: #00a884;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESTAURANT DASHBOARD DEMO
   ========================================================================== */
.dashboard-panel {
  padding: 32px;
  background: rgba(10, 16, 32, 0.75);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.dashboard-title-area h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dashboard-title-area p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dashboard-controls {
  display: flex;
  gap: 14px;
}

.dashboard-select {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-main);
  cursor: pointer;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.kpi-card {
  padding: 24px;
  background: rgba(14, 22, 44, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-icon {
  color: var(--primary);
  font-size: 1rem;
}

.kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-trend {
  font-size: 0.78rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.kpi-trend.positive { color: var(--success); }
.kpi-trend.neutral { color: var(--warning); }
.kpi-trend.negative { color: var(--danger); }

/* Main Dashboard Analytics Grid */
.dashboard-grid-main {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
}

.chart-card {
  padding: 24px;
  background: rgba(14, 22, 44, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-card-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Peak Hours Custom CSS Bar Chart */
.bar-chart-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-grow: 1;
  height: 220px;
  padding-top: 10px;
}

.bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 9%;
  height: 100%;
  justify-content: flex-end;
  gap: 10px;
}

.bar-column {
  width: 100%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 4px 4px 0 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.bar-column:hover {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  border-color: var(--primary);
}

.bar-column::before {
  content: attr(data-value);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--primary-light);
  font-weight: 600;
  opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
}

.bar-column:hover::before {
  opacity: 1;
}

.bar-label {
  font-size: 0.72rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Breakdown Intent Progress Bars */
.intent-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  height: 100%;
}

.intent-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intent-row-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.intent-name {
  font-weight: 500;
  color: var(--text-main);
}

.intent-pct {
  font-weight: 600;
  color: var(--primary-light);
}

.intent-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.intent-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.intent-item:nth-child(2) .intent-bar-fill {
  background: linear-gradient(90deg, var(--accent-purple), #c084fc);
}
.intent-item:nth-child(3) .intent-bar-fill {
  background: linear-gradient(90deg, #0b8a8f, var(--success));
}
.intent-item:nth-child(4) .intent-bar-fill {
  background: linear-gradient(90deg, #94a3b8, var(--text-dark));
}

/* Dashboard Bottom Grid: Opportunities, Logs & B2B AI Insights */
.dashboard-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.table-card {
  padding: 24px;
  background: rgba(14, 22, 44, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.table-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th {
  padding: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-table td {
  padding: 14px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.channel-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.channel-whatsapp {
  background: rgba(0, 168, 132, 0.1);
  color: #25d366;
  border: 1px solid rgba(0, 168, 132, 0.25);
}

.channel-instagram {
  background: rgba(225, 48, 108, 0.1);
  color: #ff3e7f;
  border: 1px solid rgba(225, 48, 108, 0.25);
}

.channel-web {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

/* Dashboard Insights Card List */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
}

.insight-card-icon {
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.insight-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.insight-card-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

/* Metric update flash effect */
@keyframes metric-flash {
  0% { background-color: rgba(0, 242, 254, 0.3); }
  100% { background-color: transparent; }
}

.metric-updated {
  animation: metric-flash 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   COMPARISON SECTION & B2B SaaS METRICS
   ========================================================================== */
.comparison-container {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  padding: 36px;
}

.comparison-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparison-card-basic h3 {
  color: var(--text-muted);
}

.comparison-card-aloria h3 {
  color: var(--primary);
  border-color: var(--primary);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comparison-item {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
}

.comparison-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.comparison-card-basic .comparison-icon {
  color: var(--danger);
}

.comparison-card-aloria .comparison-icon {
  color: var(--success);
}

.comparison-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.comparison-text span {
  color: var(--text-muted);
}

/* ==========================================================================
   CASE STUDY SECTION
   ========================================================================== */
.case-card {
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.case-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.case-heading {
  font-size: 2.4rem;
  font-weight: 700;
}

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

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.case-stat-item {
  display: flex;
  flex-direction: column;
}

.case-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
}

.case-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.case-visual-wrapper {
  background: rgba(14, 22, 44, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 28px;
}

.case-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 28px;
  line-height: 1.55;
  position: relative;
}

.case-quote::before {
  content: '“';
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  color: rgba(0, 242, 254, 0.15);
  position: absolute;
  top: -32px;
  left: -20px;
}

.case-quote-author {
  display: flex;
  flex-direction: column;
}

.case-quote-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.case-quote-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Disclaimer text */
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-top: 18px;
  line-height: 1.45;
}

/* ==========================================================================
   FINAL CALL TO ACTION SECTION
   ========================================================================== */
.final-cta-section {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
}

.final-cta-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.final-cta-card h2 {
  font-size: 2.8rem;
}

.final-cta-card p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  padding: 80px 0 60px 0;
  background: #03060c;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links-group h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  font-weight: 650;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1300px) {
  .nav-actions .badge-purple {
    display: none;
  }
  .nav-links {
    gap: 20px;
  }
  .logo {
    font-size: 1.3rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .nav-actions {
    gap: 12px;
  }
}

@media (max-width: 992px) {
  .nav-links {
    gap: 14px;
  }
  .nav-actions .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 64px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .hero-support-messages {
    justify-content: center;
  }
  
  .floating-stack {
    height: 360px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .concierge-workspace-layout {
    grid-template-columns: 1fr;
  }
  
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flow-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .dashboard-grid-main {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid-bottom {
    grid-template-columns: 1fr;
  }
  
  .comparison-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .case-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.1rem; }
  
  .navbar {
    height: 74px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  
  .dashboard-controls {
    width: 100%;
  }
  
  .dashboard-select {
    flex-grow: 1;
  }
}

/* ── Scroll-Driven Animations (Progressive Enhancement) ── */
@supports ((animation-timeline: scroll()) and (animation-range: entry)) {
  .hero-visual {
    animation: visualParallax linear both;
    animation-timeline: scroll();
    animation-range: 0vh 80vh;
  }
  @keyframes visualParallax {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(-30px) scale(0.98); opacity: 0.85; }
  }

  .hero-content {
    animation: contentParallax linear both;
    animation-timeline: scroll();
    animation-range: 0vh 70vh;
  }
  @keyframes contentParallax {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); 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); }
  }
}
