* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2668ff;
  --green: #20c38f;
  --purple: #8b6cff;
  --orange: #f7a61d;
  --red: #ff5a5f;

  --text: #0f1c36;
  --text-light: #5a6b8c;
  --bg: #f9fbff;
  --surface: #ffffff;
  --border: #e8ecf4;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #f9fbff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), #4b8bff);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::before {
  content: '';
  width: 16px;
  height: 16px;
  background: white;
  clip-path: polygon(
    40% 0%, 60% 0%, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0% 60%, 0% 40%, 40% 40%
  );
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue);
}

.header-buttons {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 12px rgba(38, 104, 255, 0.25);
}

.btn-primary:hover {
  background: #1d56dd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 104, 255, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #f9fbff;
  border-color: var(--blue);
}

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

/* Hero Section */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(38, 104, 255, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(38, 104, 255, 0.15);
}

.hero-title-blue {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0 0;
  align-items: start;
}

.title-line {
  display: block;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  gap: 32px;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon.blue  { background: rgba(38, 104, 255, 0.1); }
.badge-icon.green  { background: rgba(32, 195, 143, 0.1); }
.badge-icon.purple { background: rgba(139, 108, 255, 0.1); }

.badge-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.badge-text span {
  font-size: 13px;
  color: var(--text-light);
}

/* Dashboard Preview */
.dashboard-preview {
  transform: scale(0.72, 0.65);
  transform-origin: top center;
  margin-bottom: -200px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: scale(0.72, 0.65) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(0.72, 0.65) translateY(0);
  }
}

.dashboard-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(15, 28, 54, 0.12);
  display: grid;
  grid-template-columns: 140px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
}

.dashboard-sidebar {
  background: #f9fbff;
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}

.sidebar-logo-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--blue), #4b8bff);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.menu-item {
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item.active {
  background: rgba(38, 104, 255, 0.1);
  color: var(--blue);
}

.menu-item:hover:not(.active) {
  background: rgba(0, 0, 0, 0.02);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  cursor: pointer;
}

.dashboard-main {
  padding: 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.dashboard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bell-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(10deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0deg); }
}

.time {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #4b8bff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideInRight 0.6s ease-out forwards;
  opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
.stat-card:nth-child(4) { animation-delay: 0.5s; }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconBounce 2s ease-in-out infinite;
}

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

.stat-card.blue .stat-icon { background: rgba(38, 104, 255, 0.1); }
.stat-card.green .stat-icon { background: rgba(32, 195, 143, 0.1); }
.stat-card.orange .stat-icon { background: rgba(247, 166, 29, 0.1); }
.stat-card.red .stat-icon { background: rgba(255, 90, 95, 0.1); }

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  animation: countUp 1s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-subtitle {
  font-size: 11px;
  color: var(--text-light);
}

/* Charts */
.charts-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  animation: fadeIn 1s ease-out;
  animation-fill-mode: backwards;
}

.chart-card:nth-child(1) { animation-delay: 0.6s; }
.chart-card:nth-child(2) { animation-delay: 0.7s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.chart-header h3 {
  font-size: 14px;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.green { background: var(--green); }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }

.chart-area {
  overflow: hidden;
}

.chart-area svg {
  display: block;
}

.donut-chart {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.donut {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 55.98%,
    var(--orange) 55.98% 86%,
    var(--red) 86% 100%
  );
  position: relative;
  flex-shrink: 0;
  animation: rotateDonut 3s ease-in-out infinite;
}

@keyframes rotateDonut {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(360deg); }
}

.donut::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: white;
  border-radius: 50%;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donut-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.donut-dot.green { background: var(--green); }
.donut-dot.orange { background: var(--orange); }
.donut-dot.red { background: var(--red); }

.donut-legend-label {
  font-size: 10px;
  color: var(--text-light);
  margin-bottom: 1px;
}

.donut-legend-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

/* Table Section */
.table-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}

.table-card, .doctors-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.table-card h3, .card-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.card-header a {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid #f5f8ff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.table-row:hover {
  background: rgba(38, 104, 255, 0.03);
  transform: translateX(5px);
}

.table-row:last-child {
  border-bottom: none;
}

.patient {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.patient-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  transition: transform 0.3s ease;
}

.table-row:hover .patient-avatar {
  transform: scale(1.1);
}

.patient-avatar.blue { background: var(--blue); }
.patient-avatar.green { background: var(--green); }
.patient-avatar.purple { background: var(--purple); }

.status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status.completed {
  background: rgba(32, 195, 143, 0.1);
  color: var(--green);
}

.status.pending {
  background: rgba(247, 166, 29, 0.1);
  color: var(--orange);
}

.doctor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f8ff;
}

.doctor-row:last-child {
  border-bottom: none;
}

.doctor-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.doctor-specialty {
  font-size: 12px;
  color: var(--text-light);
}

.doctor-row strong {
  font-size: 16px;
  color: var(--blue);
}

/* Trust Section */
.trust {
  text-align: center;
  margin-bottom: 80px;
}

.trust-title {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
  font-weight: 500;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 28, 54, 0.06);
}

.trust-logos span {
  font-size: 18px;
  font-weight: 700;
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features Section */
.features {
  margin-bottom: 80px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(15, 28, 54, 0.12);
  border-color: var(--blue);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.blue {
  background: rgba(38, 104, 255, 0.1);
}

.feature-icon.green {
  background: rgba(32, 195, 143, 0.1);
}

.feature-icon.purple {
  background: rgba(139, 108, 255, 0.1);
}

.feature-icon.orange {
  background: rgba(247, 166, 29, 0.1);
}

.feature-icon.yellow {
  background: rgba(245, 158, 11, 0.1);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Responsive */
@media (max-width: 1300px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dashboard-preview {
    max-width: 900px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 16px;
  }

  .hero-title {
    font-size: 48px;
  }

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

  .dashboard-card {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
  }

  .stats-grid,
  .charts-row,
  .table-section {
    grid-template-columns: 1fr;
  }

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

  .trust-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}
