/* CSS Variables for Theme Support */
:root {
  /* Light mode colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #f8f9fa;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #6c757d;
  --border-color: #e8e8ed;
  --border-secondary: #2c2c2e;
  --accent-primary: #007aff;
  --accent-secondary: #5856d6;
  --purple-accent: #5856d6;
  --card-bg: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --modal-bg: rgba(0, 0, 0, 0.5);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #1d1d1f;
  --footer-text: #ffffff;
  --footer-secondary: #86868b;
  --hero-bg: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  --btn-primary-bg: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  --btn-primary-hover: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  --insights-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --insights-text: #ffffff;
  --insights-text-secondary: rgba(255, 255, 255, 0.9);
  --role-toggle-bg: rgba(255, 255, 255, 0.1);
  --role-toggle-border: rgba(255, 255, 255, 0.2);
  --role-toggle-text: rgba(255, 255, 255, 0.8);
  --role-toggle-text-active: #ffffff;
  --role-toggle-active-bg: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
  /* Dark mode colors */
  --bg-primary: #1d1d1f;
  --bg-secondary: #2c2c2e;
  --bg-tertiary: #3a3a3c;
  --text-primary: #ffffff;
  --text-secondary: #98989d;
  --text-tertiary: #86868b;
  --border-color: #3a3a3c;
  --border-secondary: #48484a;
  --accent-primary: #0a84ff;
  --accent-secondary: #5856d6;
  --purple-accent: #5856d6;
  --card-bg: #2c2c2e;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.6);
  --modal-bg: rgba(0, 0, 0, 0.8);
  --navbar-bg: rgba(29, 29, 31, 0.95);
  --footer-bg: #000000;
  --footer-text: #ffffff;
  --footer-secondary: #86868b;
  --hero-bg: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  --btn-primary-bg: linear-gradient(135deg, #0a84ff 0%, #007aff 100%);
  --btn-primary-hover: linear-gradient(135deg, #1a94ff 0%, #0a84ff 100%);
  --insights-bg: linear-gradient(135deg, #2c2c2e 0%, #3a3a3c 100%);
  --insights-text: #ffffff;
  --insights-text-secondary: rgba(255, 255, 255, 0.8);
  --role-toggle-bg: rgba(255, 255, 255, 0.05);
  --role-toggle-border: rgba(255, 255, 255, 0.1);
  --role-toggle-text: rgba(255, 255, 255, 0.7);
  --role-toggle-text-active: #ffffff;
  --role-toggle-active-bg: rgba(255, 255, 255, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-transition * {
  transition: all 0.3s ease !important;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: var(--btn-primary-bg);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-light);
  font-size: 1.1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--shadow-medium);
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 60px;
  background: var(--hero-bg);
  overflow: hidden;
  text-align: center;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80vh;
}

.hero-content {
  max-width: 700px;
  margin-bottom: 60px;
  position: relative;
}

.theme-toggle {
  position: absolute;
  top: -12px;
  right: -120px;
  z-index: 100;
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.toggle-track {
  width: 68px;
  height: 36px;
  background: var(--bg-secondary);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.toggle-thumb {
  width: 28px;
  height: 28px;
  background: var(--card-bg);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon {
  font-size: 12px;
  position: absolute;
  transition: all 0.3s ease;
}

.light-icon {
  opacity: 1;
}

.dark-icon {
  opacity: 0;
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(28px);
}

[data-theme="dark"] .light-icon {
  opacity: 0;
}

[data-theme="dark"] .dark-icon {
  opacity: 1;
}

.hero-headline {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(30px);
}

.hero-subheadline {
  font-size: 1.2rem;
  color: var(--text-tertiary);
  margin-bottom: 50px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1300px;
}

.tablet-mockup {
  position: relative;
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  width: 100%;
  max-width: 1200px;
}

.tablet-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

.tablet-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(
    circle,
    rgba(0, 122, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 30px;
  z-index: -1;
}

/* What Makes This App Different Section */
.difference-section {
  padding: 100px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.difference-section .section-title {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 60px;
}

.difference-section .section-title::after {
  display: none;
}

.difference-list {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.difference-list::before {
  display: none;
}

.difference-item {
  margin-bottom: 40px;
  position: relative;
  padding-left: 20px;
}

.difference-item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.difference-icon {
  font-size: 32px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.difference-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
}

.item-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 0;
  padding-left: 56px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
}

/* Dark mode text overrides for difference section */
[data-theme="dark"] .difference-section .section-title {
  color: #ffffff;
}

[data-theme="dark"] .difference-item h3 {
  color: #ffffff;
}

[data-theme="dark"] .item-description {
  color: #98989d;
}

/* AI Chatbot Section */
.ai-chatbot-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.ai-chatbot-section .section-header {
  text-align: center;
  margin-bottom: 80px;
}

.ai-chatbot-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.ai-chatbot-section .section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Chatbot Features Slider */
.chatbot-features-slider {
  position: relative;
  margin-bottom: 80px;
  padding: 0 60px;
}

.chatbot-slider-container {
  overflow: hidden;
  position: relative;
  padding: 4px 0;
  width: 100%;
}

.chatbot-slider-track {
  display: flex;
  align-items: stretch;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.chatbot-feature-card {
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: calc((100% - 60px) / 3);
  max-width: calc((100% - 60px) / 3);
  display: flex;
  flex-direction: column;
  height: auto;
  box-sizing: border-box;
}

.chatbot-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.chatbot-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.chatbot-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--accent-primary);
  z-index: 10;
  background: var(--card-bg);
}

/* Chatbot Slider Navigation */
.chatbot-slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.chatbot-nav-arrow {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.chatbot-nav-arrow:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.chatbot-nav-arrow:active {
  transform: scale(0.95);
}

.chatbot-nav-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.chatbot-nav-arrow[style*="opacity: 0.4"] {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.chatbot-nav-arrow[style*="opacity: 0.4"]:hover {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: none;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.feature-card-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 12px;
  flex-shrink: 0;
}

.chatbot-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.feature-card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.example-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.chatbot-demo-container {
  max-width: 800px;
  margin: 0 auto;
}

.chatbot-demo {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow-light);
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.chatbot-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.chatbot-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.chatbot-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  padding: 14px 18px;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.6;
  font-size: 0.95rem;
}

.user-message {
  background: var(--accent-primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bot-message {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-color);
}

.message p {
  margin: 0;
}

/* Dark mode overrides for AI Chatbot Section */
[data-theme="dark"] .ai-chatbot-section {
  background: var(--bg-secondary);
}

[data-theme="dark"] .ai-chatbot-section .section-title {
  color: #ffffff;
}

[data-theme="dark"] .chatbot-feature-card h3 {
  color: #ffffff;
}

[data-theme="dark"] .feature-card-description {
  color: #98989d;
}

[data-theme="dark"] .chatbot-info h4 {
  color: #ffffff;
}

[data-theme="dark"] .bot-message {
  background: var(--bg-tertiary);
  color: #ffffff;
}

[data-theme="dark"] .example-tag {
  background: var(--bg-tertiary);
  color: #ffffff;
  border-color: var(--border-secondary);
}

/* Tailored for Clinics Section */
.tailored-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.clinic-split-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-top: 60px;
  min-height: 600px;
}

/* Left Panel: Clinic Tabs */
.clinic-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.clinic-tab {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 25px;
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.clinic-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.clinic-tab:hover::before,
.clinic-tab.active::before {
  transform: scaleY(1);
}

.clinic-tab:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.clinic-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateX(10px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.tab-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
}

.tab-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1d1d1f;
}

.tab-content p {
  font-size: 0.95rem;
  color: #86868b;
  margin: 0;
  line-height: 1.4;
}

.clinic-tab.active .tab-content h3,
.clinic-tab.active .tab-content p {
  color: white;
}

/* Right Panel: Content */
.clinic-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.content-panel {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-panel.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.content-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.content-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.content-header h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.content-description {
  font-size: 1.2rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 40px;
}

.content-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: #f0f0f0;
}

.feature-icon {
  font-size: 1.8rem;
  min-width: 45px;
  text-align: center;
}

.feature-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  line-height: 1.4;
}

/* Interactive Feature Showcase Slider */
.showcase-section {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
}

.showcase-slider {
  margin-top: 60px;
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide-content {
  position: relative;
  background: #f8f9fa;
  border-radius: 20px;
  overflow: hidden;
}

.screenshot-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 500px;
}

.screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); */
  transition: transform 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.02);
}

/* Callouts */
.callout {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  animation: fadeInCallout 0.6s ease-out;
}

.callout-dot {
  width: 20px;
  height: 20px;
  background: #007aff;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
  animation: pulse 2s infinite;
}

.callout-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.callout-label {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.callout:hover .callout-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Tooltip */
.callout::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  max-width: 250px;
  white-space: normal;
  text-align: center;
}

.callout:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Callout Positions for Appointments List */
.slide[data-slide="0"] .callout-1 {
  top: 20%;
  left: 15%;
}
.slide[data-slide="0"] .callout-2 {
  top: 30%;
  right: 20%;
}
.slide[data-slide="0"] .callout-3 {
  bottom: 35%;
  left: 25%;
}
.slide[data-slide="0"] .callout-4 {
  bottom: 20%;
  right: 15%;
}

/* Callout Positions for Treatment Note */
.slide[data-slide="1"] .callout-1 {
  top: 25%;
  left: 20%;
}
.slide[data-slide="1"] .callout-2 {
  top: 35%;
  right: 25%;
}
.slide[data-slide="1"] .callout-3 {
  bottom: 40%;
  left: 30%;
}
.slide[data-slide="1"] .callout-4 {
  bottom: 25%;
  right: 20%;
}

/* Callout Positions for Analytics Dashboard */
.slide[data-slide="2"] .callout-1 {
  top: 20%;
  left: 25%;
}
.slide[data-slide="2"] .callout-2 {
  top: 30%;
  right: 15%;
}
.slide[data-slide="2"] .callout-3 {
  bottom: 35%;
  left: 20%;
}
.slide[data-slide="2"] .callout-4 {
  bottom: 20%;
  right: 25%;
}

/* Slide Caption */
.slide-caption {
  padding: 30px 40px;
  text-align: center;
  background: white;
  border-top: 1px solid #f0f0f0;
}

.role-badge {
  display: inline-block;
  background: linear-gradient(135deg, #007aff, #34c759);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.slide-caption p {
  color: #6c757d;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
}

/* Navigation */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.nav-arrow {
  background: #ffffff;
  border: 2px solid #e8e8ed;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover {
  background: #007aff;
  color: white;
  border-color: #007aff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.nav-dots {
  display: flex;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8e8ed;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #007aff;
  transform: scale(1.2);
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .floating-chat {
    bottom: 15px;
    right: 15px;
  }

  .chat-pill {
    padding: 8px 14px;
    min-height: 40px;
    max-width: 180px;
  }

  .chat-text {
    font-size: 0.8rem;
  }

  .chat-icon {
    width: 18px;
    height: 18px;
  }
}

/* Very small screens - ensure chat doesn't interfere with content */
@media (max-width: 360px) {
  .floating-chat {
    bottom: 10px;
    right: 10px;
  }

  .chat-pill {
    padding: 8px;
    min-height: 40px;
    max-width: 50px; /* Icon only on very small screens */
    border-radius: 50%; /* Make it circular */
  }

  .chat-text {
    display: none; /* Always hide text on very small screens */
  }

  .chat-icon {
    width: 16px;
    height: 16px;
    margin: 0;
  }

  /* Enhanced tooltip for very small screens */
  .chat-pill::after {
    right: -10px;
    bottom: 110%;
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

/* Animations */
@keyframes fadeInCallout {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Why Clinic Managers Love It Section */
.managers-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
  position: relative;
}

.managers-section .section-header {
  text-align: center;
  margin-bottom: 80px;
}

.managers-section .section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.managers-section .section-subtitle {
  font-size: 1.3rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.value-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: white;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
  letter-spacing: -0.01em;
}

.value-card p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.value-detail {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.value-card:hover .value-detail {
  opacity: 1;
  transform: translateY(0);
}

.detail-text {
  color: #667eea;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.detail-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.value-card:hover .detail-text::after {
  width: 100%;
}

.trust-quote {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.quote-content {
  position: relative;
}

.quote-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: white;
}

.trust-quote blockquote {
  font-size: 1.4rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.trust-quote cite {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: normal;
}

/* Insight Tiles Section */
.insights-section {
  padding: 120px 0;
  background: var(--insights-bg);
  position: relative;
  overflow: hidden;
}

.insights-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="7" cy="7" r="2"/><circle cx="27" cy="7" r="2"/><circle cx="47" cy="7" r="2"/><circle cx="7" cy="27" r="2"/><circle cx="27" cy="27" r="2"/><circle cx="47" cy="27" r="2"/><circle cx="7" cy="47" r="2"/><circle cx="27" cy="47" r="2"/><circle cx="47" cy="47" r="2"/></g></g></svg>');
  animation: floatPattern 20s linear infinite;
}

@keyframes floatPattern {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-60px);
  }
}

.insights-section .section-header {
  text-align: center;
  margin-bottom: 80px;
}

.insights-section .section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--insights-text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.insights-section .section-subtitle {
  font-size: 1.3rem;
  color: var(--insights-text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Role Toggle */
.role-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: var(--role-toggle-bg);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 8px;
  max-width: fit-content;
  margin: 0 auto;
  border: 1px solid var(--role-toggle-border);
}

.toggle-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 40px;
  background: transparent;
  color: var(--role-toggle-text);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  outline: none;
  white-space: nowrap;
  min-width: auto;
}

.toggle-button:hover {
  background: var(--role-toggle-bg);
  color: var(--role-toggle-text-active);
  transform: scale(1.05);
}

.toggle-button.active {
  background: var(--role-toggle-active-bg);
  color: var(--role-toggle-text-active);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.toggle-icon {
  font-size: 1.2rem;
}

.toggle-text {
  font-weight: 600;
}

/* Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Insight Cards */
.insight-card {
  perspective: 1000px;
  height: 280px;
  position: relative;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  cursor: pointer;
}

.insight-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  box-sizing: border-box;
}

.card-front {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px var(--shadow-light);
}

.card-back {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px var(--shadow-medium);
  transform: rotateY(180deg);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple-accent) 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.insight-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-content {
  text-align: center;
  width: 100%;
}

.card-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.card-action {
  background: linear-gradient(135deg, var(--purple-accent) 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.card-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* Insight Modal */
.insight-modal-content {
  max-width: 700px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #86868b;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-card {
  background: #f5f5f7;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 122, 255, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 15px;
}

.feature-card p {
  color: #86868b;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced CTA Section */
.cta-section {
  padding: 120px 0;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.dubai-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  color: var(--text-primary);
  overflow: hidden;
}

.skyline-svg {
  width: 100%;
  height: 100%;
  opacity: 0.05;
  animation: skylineSlide 20s linear infinite;
}

@keyframes skylineSlide {
  0% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(100px);
  }
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--purple-accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(10px);
}

.cta-badge svg {
  width: 16px;
  height: 16px;
}

.cta-headline {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 18px 40px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

/* Contact Section */
.cta-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.pulse-icon {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.contact-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}

.contact-item:hover .contact-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Floating Chat Pill */
.floating-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-chat.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
  position: relative;
  min-height: 50px; /* Ensure minimum touch target */
  max-width: 250px; /* Prevent excessive width */
  user-select: none; /* Prevent text selection on mobile */
  -webkit-tap-highlight-color: transparent; /* Remove highlight on mobile tap */
}

.chat-pill:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .chat-pill:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  }

  .floating-chat:hover .chat-pill {
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.chat-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.chat-text {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dark Mode Enhancements */
[data-theme="dark"] .cta-button {
  background: linear-gradient(135deg, var(--purple-accent) 0%, #764ba2 100%);
  box-shadow: 0 8px 25px rgba(88, 86, 214, 0.3);
}

[data-theme="dark"] .cta-button:hover {
  box-shadow: 0 15px 40px rgba(88, 86, 214, 0.5);
}

[data-theme="dark"] .contact-item {
  backdrop-filter: blur(20px);
  border-color: var(--border-secondary);
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--footer-secondary);
  margin-top: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-column a {
  color: var(--footer-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-secondary);
  color: var(--footer-secondary);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--footer-secondary);
}

.fajeton-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.fajeton-link:hover {
  opacity: 0.8;
}

.fajeton-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.fajeton-link:hover .fajeton-logo {
  opacity: 1;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  backdrop-filter: blur(10px);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px var(--shadow-medium);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.close {
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 30px 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
}

.auth-link a {
  color: var(--accent-primary);
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Responsive Design */

/* Large screens - prevent floating chat from being too big */
@media (min-width: 1400px) {
  .floating-chat {
    bottom: 40px;
    right: 40px;
  }

  .chat-pill {
    padding: 16px 22px;
    max-width: 280px;
  }

  .chat-text {
    font-size: 1rem;
  }

  .chat-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    min-height: 70vh;
  }

  .hero-headline {
    font-size: 3.2rem;
  }

  .hero-content {
    margin-bottom: 50px;
  }

  .tablet-mockup {
    max-width: 90%;
  }

  .difference-list {
    max-width: 100%;
    padding: 0 20px;
  }

  .difference-list::before {
    left: 15px;
  }

  .difference-item {
    padding-left: 15px;
    margin-bottom: 35px;
  }

  .item-description {
    padding-left: 51px;
  }

  .clinic-split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .clinic-tabs {
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .clinic-tab {
    flex-shrink: 0;
    min-width: 280px;
    padding: 25px 20px;
  }

  .clinic-content {
    padding: 40px 30px;
  }

  .showcase-slider {
    margin-top: 40px;
  }

  .screenshot-container {
    padding: 25px;
    min-height: 400px;
  }

  .slide-caption {
    padding: 25px 30px;
  }

  .nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .managers-section {
    padding: 80px 0;
  }

  .managers-section .section-title {
    font-size: 2.5rem;
  }

  .managers-section .section-subtitle {
    font-size: 1.2rem;
  }

  .value-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
  }

  .value-card {
    padding: 35px 25px;
  }

  .value-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 25px;
  }

  .value-card h3 {
    font-size: 1.4rem;
  }

  .value-card p {
    font-size: 1rem;
  }

  .trust-quote {
    padding: 40px 30px;
  }

  .trust-quote blockquote {
    font-size: 1.3rem;
  }

  .insights-section {
    padding: 80px 0;
  }

  .insights-section .section-title {
    font-size: 2.5rem;
  }

  .insights-section .section-subtitle {
    font-size: 1.2rem;
  }

  .role-toggle {
    max-width: 350px;
    gap: 8px;
  }

  .toggle-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .insight-card {
    height: 260px;
  }

  .card-front,
  .card-back {
    padding: 30px 25px;
  }

  .card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-content p {
    font-size: 1rem;
  }

  .ai-chatbot-section {
    padding: 60px 0;
  }

  .ai-chatbot-section .section-title {
    font-size: 2.2rem;
  }

  .ai-chatbot-section .section-subtitle {
    font-size: 1.1rem;
  }

  .chatbot-features-slider {
    padding: 0 30px;
    margin-bottom: 60px;
  }

  .chatbot-slider-container {
    width: 100%;
  }

  .chatbot-feature-card {
    flex: 0 0 calc((100% - 30px) / 2);
    min-width: calc((100% - 30px) / 2);
    max-width: calc((100% - 30px) / 2);
    padding: 25px 20px;
  }

  .chatbot-nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-headline {
    font-size: 2.2rem;
  }

  .cta-description {
    font-size: 1.1rem;
  }

  .cta-buttons {
    gap: 25px;
  }

  .cta-button {
    font-size: 1.1rem;
    padding: 16px 35px;
  }

  .contact-item {
    padding: 12px 16px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  /* Floating Chat - Tablet */
  .floating-chat {
    bottom: 25px;
    right: 25px;
  }

  .chat-pill {
    padding: 12px 18px;
    min-height: 48px; /* Ensure touch-friendly size */
  }

  .chat-text {
    font-size: 0.9rem;
  }

  .chat-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-subheadline {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .tablet-mockup {
    max-width: 100%;
  }

  .theme-toggle {
    top: -40px;
    right: 0;
  }

  .toggle-track {
    width: 57px;
    height: 32px;
  }

  .toggle-thumb {
    width: 22px;
    height: 22px;
  }

  .toggle-icon {
    font-size: 10px;
  }

  [data-theme="dark"] .toggle-thumb {
    transform: translateX(24px);
  }

  .section-title {
    font-size: 2.2rem;
  }

  .difference-list {
    padding: 0 15px;
  }

  .difference-list::before {
    left: 12px;
  }

  .difference-item {
    padding-left: 12px;
    margin-bottom: 32px;
  }

  .difference-icon {
    font-size: 28px;
    width: 36px;
    height: 36px;
  }

  .difference-item h3 {
    font-size: 1.3rem;
  }

  .item-description {
    padding-left: 48px;
    font-size: 1rem;
  }

  .clinic-tabs {
    flex-direction: column;
    gap: 15px;
  }

  .clinic-tab {
    min-width: auto;
    padding: 20px 15px;
  }

  .tab-icon {
    font-size: 2rem;
    min-width: 50px;
  }

  .tab-content h3 {
    font-size: 1.2rem;
  }

  .tab-content p {
    font-size: 0.9rem;
  }

  .clinic-content {
    padding: 30px 20px;
  }

  .content-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }

  .content-header h3 {
    font-size: 1.5rem;
  }

  .content-description {
    font-size: 1.1rem;
  }

  .content-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-item {
    padding: 15px;
  }

  .feature-icon {
    font-size: 1.5rem;
  }

  .showcase-slider {
    margin-top: 30px;
  }

  .screenshot-container {
    padding: 20px;
    min-height: 300px;
  }

  .slide-caption {
    padding: 20px 25px;
  }

  .slider-nav {
    gap: 20px;
    margin-top: 30px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .toggle-button.active {
    transform: scale(1);
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .callout::before {
    max-width: 200px;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }

  .value-card {
    padding: 30px 25px;
  }

  .value-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .value-card h3 {
    font-size: 1.3rem;
  }

  .value-card p {
    font-size: 1rem;
  }

  .trust-quote {
    padding: 40px 30px;
    margin: 0 20px;
  }

  .trust-quote blockquote {
    font-size: 1.2rem;
  }

  .insights-section .section-title {
    font-size: 2.2rem;
  }

  .insights-section .section-subtitle {
    font-size: 1.1rem;
  }

  .role-toggle {
    max-width: 320px;
    flex-wrap: wrap;
    gap: 5px;
    border-radius: 25px;
  }

  .toggle-button {
    padding: 10px 16px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 100px;
    gap: 12px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .insight-card {
    height: 240px;
  }

  .card-front,
  .card-back {
    padding: 25px 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-content p {
    font-size: 0.95rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-powered {
    justify-content: center;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-headline {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-buttons {
    gap: 20px;
  }

  .cta-button {
    font-size: 1rem;
    padding: 16px 32px;
  }

  .cta-contact {
    flex-direction: column;
    gap: 15px;
  }

  .contact-item {
    padding: 12px 16px;
    max-width: 280px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  /* Floating Chat - Mobile */
  .floating-chat {
    bottom: 20px;
    right: 20px;
  }

  .chat-pill {
    padding: 12px 16px;
    min-height: 48px; /* Touch-friendly minimum size */
    max-width: 200px; /* Prevent overflow on small screens */
  }

  .chat-text {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 100px 0 60px;
    padding-top: 150px;
    padding-bottom: 0;
  }

  .hero-headline {
    font-size: 1.8rem;
    padding-top: 30px;
  }

  .hero-subheadline {
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 15px;
  }

  .ai-chatbot-section {
    padding: 50px 0;
  }

  .ai-chatbot-section .section-title {
    font-size: 1.8rem;
  }

  .ai-chatbot-section .section-subtitle {
    font-size: 1rem;
  }

  .chatbot-features-slider {
    padding: 0 20px;
    margin-bottom: 50px;
  }

  .chatbot-slider-container {
    padding: 4px 0;
    width: 100%;
  }

  .chatbot-slider-track {
    gap: 20px;
  }

  .chatbot-feature-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px 16px;
  }

  .chatbot-nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .chatbot-slider-nav {
    gap: 15px;
    margin-top: 30px;
  }

  .chatbot-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
  }

  .feature-card-header {
    gap: 12px;
    margin-bottom: 12px;
  }

  .feature-card-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .chatbot-feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card-description {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .example-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .chatbot-demo {
    padding: 16px;
  }

  .chatbot-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .chatbot-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .chatbot-info h4 {
    font-size: 1rem;
  }

  .chatbot-status {
    font-size: 0.75rem;
  }

  .message {
    padding: 12px 14px;
    font-size: 0.85rem;
    max-width: 95%;
  }

  .chatbot-demo {
    padding: 20px;
  }

  .message {
    max-width: 90%;
    font-size: 0.9rem;
  }

  .difference-section {
    padding: 60px 0;
    padding-top: 0;
  }

  .difference-list {
    padding: 0 10px;
  }

  .difference-list::before {
    left: 10px;
  }

  .difference-item {
    padding-left: 10px;
    margin-bottom: 30px;
  }

  .difference-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
  }

  .difference-item h3 {
    font-size: 1.2rem;
  }

  .item-description {
    padding-left: 42px;
    font-size: 0.95rem;
  }

  .tailored-section {
    padding: 60px 0;
  }

  .clinic-tab {
    padding: 15px 10px;
  }

  .tab-icon {
    font-size: 1.8rem;
    min-width: 40px;
  }

  .tab-content h3 {
    font-size: 1.1rem;
  }

  .tab-content p {
    font-size: 0.8rem;
  }

  .clinic-content {
    padding: 20px 15px;
  }

  .content-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .content-header h3 {
    font-size: 1.3rem;
  }

  .content-description {
    font-size: 1rem;
  }

  .feature-item {
    padding: 12px;
  }

  .feature-icon {
    font-size: 1.3rem;
  }

  .insights-section {
    padding: 60px 0;
  }

  .insights-section .section-title {
    font-size: 1.8rem;
  }

  .insights-section .section-subtitle {
    font-size: 1rem;
  }

  .role-toggle {
    max-width: 280px;
    padding: 6px;
    flex-direction: column;
  }

  .toggle-button {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: 90px;
    gap: 10px;
    justify-content: center;
  }

  .toggle-icon {
    font-size: 1rem;
  }

  .insight-card {
    height: 220px;
  }

  .card-front,
  .card-back {
    padding: 20px 15px;
  }

  .card-icon {
    /* width: 50px;
    height: 50px; */
    margin-bottom: 12px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .card-action {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .showcase-section {
    padding: 60px 0;
  }

  .showcase-slider {
    margin-top: 25px;
  }

  .screenshot-container {
    padding: 15px;
    min-height: 250px;
  }

  .slide-caption {
    padding: 20px;
  }

  .slide-caption p {
    font-size: 1rem;
  }

  .role-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .slider-nav {
    gap: 15px;
    margin-top: 25px;
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .callout-dot {
    width: 16px;
    height: 16px;
  }

  .callout-dot::after {
    width: 6px;
    height: 6px;
  }

  .callout::before {
    max-width: 150px;
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .callout-label {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .cta-section {
    padding: 50px 0;
  }

  .cta-headline {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .cta-description {
    font-size: 0.95rem;
  }

  .cta-buttons {
    gap: 20px;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 14px 28px;
  }

  .cta-contact {
    flex-direction: column;
    gap: 12px;
  }

  .contact-item {
    padding: 10px 14px;
    max-width: 260px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
  }

  .contact-label {
    font-size: 0.8rem;
  }

  .contact-value {
    font-size: 0.9rem;
  }

  /* Floating Chat - Small Mobile */
  .floating-chat {
    bottom: 15px;
    right: 15px;
  }

  .chat-pill {
    padding: 10px 12px;
    min-height: 44px; /* Minimum touch target */
    max-width: 160px; /* Compact for very small screens */
  }

  .chat-text {
    font-size: 0.75rem;
    display: none; /* Hide text on very small screens, show only icon */
  }

  .chat-icon {
    width: 18px;
    height: 18px;
    margin: 0; /* Center the icon when text is hidden */
  }

  /* Show a tooltip-like text on hover for small screens */
  .chat-pill::after {
    content: "Chat with us";
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    z-index: 1001;
  }

  .chat-pill:active::after {
    opacity: 1;
    visibility: visible;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Smooth scrolling for Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  html {
    scroll-behavior: smooth;
  }
}
