/* ===== CSS Variables ===== */
:root {
  /* Teal - Medical/Healthcare Primary */
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-300: #5eead4;
  --primary-400: #2dd4bf;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;

  /* Emerald - Healthcare Secondary */
  --secondary-500: #10b981;
  --secondary-600: #059669;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success-500: #22c55e;
  --warning-500: #f59e0b;
  --danger-500: #ef4444;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

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

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(20, 184, 166, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
  background: var(--primary-50);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }
}

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

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gray-900);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  right: -25%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(20, 184, 166, 0.1) 0%,
    transparent 70%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-suffix {
  font-size: 1.5rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* Hero Dashboard Preview */
.hero-image-wrapper {
  margin-top: 4rem;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    margin-top: 2rem;
    padding: 0;
  }
}

.hero-image {
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1000px;
}

/* App Slideshow */
.app-slideshow {
  max-width: 800px;
  margin: 0 auto;
}

.slideshow-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.slide {
  display: none;
  width: 100%;
  height: 600px;
  animation: fadeSlide 0.5s ease-in-out;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
}

.slide.active {
  display: flex;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.slide-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
  left: 1rem;
}

.slide-nav.next {
  right: 1rem;
}

.slide-nav svg {
  width: 24px;
  height: 24px;
  color: var(--gray-700);
}

.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.indicator:hover {
  background: var(--gray-400);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--primary-500);
  width: 32px;
  border-radius: var(--radius-full);
}

.dashboard-preview {
  background: var(--gray-900);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: rotateX(5deg);
  transition: transform var(--transition-slow);
}

.dashboard-preview:hover {
  transform: rotateX(0deg);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--gray-800);
  border-bottom: 1px solid var(--gray-700);
}

.preview-dots {
  display: flex;
  gap: 0.5rem;
}

.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-600);
}

.preview-dots span:first-child {
  background: #ef4444;
}
.preview-dots span:nth-child(2) {
  background: #f59e0b;
}
.preview-dots span:last-child {
  background: #22c55e;
}

.preview-title {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.preview-content {
  display: flex;
  min-height: 300px;
}

.preview-sidebar {
  width: 60px;
  background: var(--gray-800);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-item {
  width: 100%;
  height: 36px;
  background: var(--gray-700);
  border-radius: var(--radius-sm);
}

.sidebar-item.active {
  background: var(--primary-600);
}

.preview-main {
  flex: 1;
  padding: 1.5rem;
}

.preview-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.preview-card {
  flex: 1;
  padding: 1rem;
  border-radius: var(--radius);
  color: #fff;
}

.card-blue {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}
.card-green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.card-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-icon {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-800);
  border-radius: var(--radius);
}

.item-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  border-radius: 50%;
}

.item-info {
  flex: 1;
}

.item-name {
  width: 120px;
  height: 12px;
  background: var(--gray-600);
  border-radius: 2px;
  margin-bottom: 4px;
}

.item-time {
  width: 80px;
  height: 10px;
  background: var(--gray-700);
  border-radius: 2px;
}

.item-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-scheduled {
  background: var(--primary-600);
  color: #fff;
}
.badge-progress {
  background: var(--warning-500);
  color: #000;
}
.badge-completed {
  background: var(--success-500);
  color: #fff;
}

/* ===== Logos Section ===== */
.logos-section {
  padding: 3rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.logos-title {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-item {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-400);
  transition: color var(--transition);
}

.logo-item:hover {
  color: var(--gray-600);
}

/* ===== Section Styles ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-badge.badge-gradient {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: #fff;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* ===== Problem Section ===== */
.problem-section {
  padding: 6rem 0;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.problem-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.problem-card:hover {
  border-color: var(--danger-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  color: var(--danger-500);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.problem-icon svg {
  width: 24px;
  height: 24px;
}

.problem-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* ===== Features Section ===== */
.features-section {
  padding: 6rem 0;
  background: var(--gray-50);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.feature-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success-500);
  margin-top: 2px;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Calendar Widget */
.calendar-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  width: 100%;
  max-width: 350px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.calendar-nav button:hover {
  background: var(--gray-100);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 0.5rem;
}

.calendar-day {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.calendar-day:hover {
  background: var(--gray-100);
}

.calendar-day.today {
  font-weight: 600;
  color: var(--primary-600);
}

.calendar-day.selected {
  background: var(--primary-500);
  color: #fff;
}

.calendar-day.has-appointments {
  position: relative;
}

.calendar-day.has-appointments::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary-500);
  border-radius: 50%;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.slot.available {
  background: var(--success-500);
  color: #fff;
}

.slot.booked {
  background: var(--gray-200);
  color: var(--gray-500);
}

/* Consultation Flow */
.consultation-flow {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.flow-step.completed {
  background: var(--gray-50);
}

.flow-step.active {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
}

.step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  color: var(--gray-500);
}

.flow-step.completed .step-icon {
  background: var(--success-500);
  color: #fff;
}

.flow-step.active .step-icon {
  background: var(--primary-500);
  color: #fff;
}

.step-icon svg {
  width: 20px;
  height: 20px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.step-check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-500);
  color: #fff;
  border-radius: 50%;
}

.step-check svg {
  width: 14px;
  height: 14px;
}

.step-progress {
  width: 24px;
  height: 24px;
  border: 3px solid var(--primary-500);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.flow-connector {
  width: 2px;
  height: 24px;
  background: var(--gray-200);
  margin-left: 2.25rem;
}

.flow-connector.completed {
  background: var(--success-500);
}

.flow-connector.active {
  background: linear-gradient(
    to bottom,
    var(--success-500),
    var(--primary-500)
  );
}

/* Patient Card */
.patient-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
}

.patient-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.patient-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
}

.patient-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.patient-meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.patient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.tag-red {
  background: #fef2f2;
  color: #dc2626;
}

.tag-yellow {
  background: #fffbeb;
  color: #d97706;
}

.tag-blue {
  background: #f0fdfa;
  color: #0d9488;
}

.patient-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.timeline-dot.blue {
  background: var(--primary-500);
}
.timeline-dot.green {
  background: var(--success-500);
}
.timeline-dot.orange {
  background: var(--warning-500);
}

.timeline-content {
  flex: 1;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.timeline-item:last-child .timeline-content {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.timeline-desc {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ===== AI Section ===== */
.ai-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.ai-feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  margin: 0 auto;
}

.ai-feature-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.ai-feature-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary-50), #fff);
  border-color: var(--primary-200);
  max-width: 720px;
  margin: 0 auto;
}

.ai-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.ai-feature-icon svg {
  width: 24px;
  height: 24px;
}

.ai-feature-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--success-500);
  color: #fff;
}

.ai-feature-badge.coming-soon {
  background: var(--gray-200);
  color: var(--gray-600);
}

.ai-feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.ai-feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* AI Demo */
.ai-demo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.demo-upload {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--gray-700);
}

.upload-icon {
  width: 20px;
  height: 20px;
  color: var(--gray-500);
}

.upload-icon svg {
  width: 100%;
  height: 100%;
}

.demo-arrow {
  color: var(--gray-400);
}

.demo-arrow svg {
  width: 24px;
  height: 24px;
}

.demo-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

@media (max-width: 480px) {
  .demo-result {
    width: 100%;
  }

  .result-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .result-name,
  .result-value {
    font-size: 0.75rem;
  }
}

.result-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.result-name {
  flex: 1;
  color: var(--gray-700);
}

.result-value {
  font-weight: 600;
  color: var(--gray-900);
}

.result-status {
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
}

.result-status.normal {
  background: #dcfce7;
  color: #16a34a;
}

.result-status.high {
  background: #fef2f2;
  color: #dc2626;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 6rem 0;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .step-card {
    max-width: 100%;
    min-width: auto;
    width: 100%;
  }
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-lg);
  margin: 0 auto 1rem;
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  color: var(--gray-300);
}

.step-connector svg {
  width: 60px;
}

/* ===== Benefits Section ===== */
.benefits-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-700), var(--secondary-600));
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.benefit-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.benefit-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Testimonials ===== */
.testimonials-section {
  padding: 6rem 0;
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #fbbf24;
  font-size: 1.25rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
}

.author-name {
  font-weight: 600;
  color: var(--gray-900);
}

.author-title {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== Pricing Section ===== */
.pricing-section {
  padding: 6rem 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .pricing-toggle {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .toggle-label {
    font-size: 0.875rem;
  }
}

.toggle-label {
  font-size: 0.9375rem;
  color: var(--gray-500);
  transition: color var(--transition);
}

.toggle-label.active {
  color: var(--gray-900);
  font-weight: 500;
}

.save-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--success-500);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary-500);
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.pricing-header p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
}

.price-period {
  font-size: 1rem;
  color: var(--gray-500);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success-500);
  margin-top: 2px;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 6rem 0;
  background: var(--gray-50);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--primary-600);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: transform var(--transition);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-content > p {
  font-size: 1.125rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  color: #fff;
  transition: all var(--transition);
}

.form-row input::placeholder {
  color: var(--gray-500);
}

.form-row input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.cta-form button {
  align-self: center;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: var(--radius);
  color: var(--gray-400);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--primary-600);
  color: #fff;
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-visual {
    justify-content: center;
  }

  .ai-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ai-feature-card.featured {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 3;
    max-width: none;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-links.active {
    gap: 1rem;
  }

  .nav-links.active a {
    padding: 0.5rem 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 5rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .dashboard-preview {
    transform: none;
  }

  .preview-content {
    flex-direction: column;
  }

  .preview-sidebar {
    flex-direction: row;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .preview-cards {
    flex-direction: column;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: 0;
    margin: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }

  .ai-feature-card.featured {
    grid-column: span 1;
  }

  .ai-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row input {
    min-width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .ai-demo {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .slide {
    height: 400px;
  }

  .slide-nav {
    width: 40px;
    height: 40px;
  }

  .slide-nav.prev {
    left: 0.5rem;
  }

  .slide-nav.next {
    right: 0.5rem;
  }

  /* Reduce section padding on mobile */
  .problem-section,
  .features-section,
  .ai-section,
  .how-it-works,
  .testimonials-section,
  .pricing-section,
  .faq-section,
  .cta-section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .feature-row {
    margin-bottom: 3rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 4rem 0 2rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .calendar-widget,
  .consultation-flow,
  .patient-card {
    max-width: 100%;
    padding: 1rem;
  }

  .benefit-number {
    font-size: 2.5rem;
  }

  .slide {
    height: 300px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .problem-card,
  .ai-feature-card {
    padding: 1.5rem;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  .step-card {
    padding: 1.5rem 1rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content > p {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .slide-indicators {
    margin-top: 1rem;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }

  .indicator.active {
    width: 24px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Intersection Observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.chatbot-message {
  font-size: 0.95rem;
  font-weight: 200;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid var(--gray-200);
}

.chatbot-message.bot {
  text-align: left;
}

.chatbot-message.user {
  text-align: right;
}

.w-full {
  width: 100%;
}
