/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #ffffff;
}

.logo-img {
  height: 60px;   /* adjust as needed */
  width: auto;
  display: block;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  height: 2rem;
  width: 2rem;
  color: #059669;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #059669;
}

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

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.menu-icon,
.close-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: #334155;
}

.nav-mobile {
  border-top: 1px solid #e2e8f0;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.nav-mobile-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: none;
}

@media (min-width: 640px) {
  .btn-sm {
    display: inline-flex;
  }
}

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

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: #059669;
  color: white;
}

.btn-primary:hover {
  background-color: #047857;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #059669;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  background-color: #ecfdf5;
}

.btn-white {
  background-color: white;
  color: #059669;
}

.btn-white:hover {
  background-color: #ecfdf5;
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  height: 1rem;
  width: 1rem;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* Hero Section */


.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 8rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.5) 0%, #ffffff 50%, rgba(241, 245, 249, 0.3) 100%);
}

.hero-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-blur-1 {
  top: 5rem;
  right: 2.5rem;
  width: 18rem;
  height: 18rem;
  background-color: rgba(236, 253, 245, 0.2);
}

.hero-blur-2 {
  bottom: 5rem;
  left: 2.5rem;
  width: 24rem;
  height: 24rem;
  background-color: rgba(239, 246, 255, 0.2);
}

.hero-content {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* --- Risk tooltip --- */
.risk-tooltip {
  position: absolute;
  z-index: 5;
  /* Position to the right of the red badge */
  top: 44%;                               /* match .risk-badge top */
  left: calc(50% + 28px);                 /* badge center + badge radius */
  transform: translate(16px, -50%);
  min-width: 260px;
  max-width: 360px;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
  padding: 12px 16px;

  opacity: 0;
  pointer-events: none;                   /* prevents flicker on hover */
  transition: opacity .18s ease, transform .18s ease;
}

.risk-tooltip-title {
  font-weight: 800;
  color: #b91c1c;                         /* red-700 */
  margin: 0 0 2px 0;
}

.risk-tooltip-desc {
  margin: 0;
  color: #6b7280;                         /* gray-500 */
}

/* Show on hover/focus of the red badge */
.risk-badge:hover ~ .risk-tooltip,
.risk-badge:focus ~ .risk-tooltip {
  opacity: 1;
  transform: translate(0, -50%);          /* subtle slide-in */
}

/* Small screens: center below the badge */
@media (max-width: 560px) {
  .risk-tooltip {
    left: 50%;
    top: calc(44% + 60px);
    transform: translate(-50%, 0);
  }
  .risk-badge:hover ~ .risk-tooltip,
  .risk-badge:focus ~ .risk-tooltip {
    transform: translate(-50%, 0);
  }
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-indicators {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.pulse-dot-1 {
  background-color: #059669;
}

.pulse-dot-2 {
  background-color: #3b82f6;
  animation-delay: 0.1s;
}

.pulse-dot-3 {
  background-color: #94a3b8;
  animation-delay: 0.2s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-highlight {
  position: relative;
  color: #059669;
}

.hero-underline {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 0.25rem;
  background-color: #a7f3d0;
  border-radius: 9999px;
}

.hero-description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 32rem;
}

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

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-features {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.feature-icon {
  height: 1rem;
  width: 1rem;
  color: #059669;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.floating-element {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.floating-element svg {
  width: 50%;
  height: 50%;
}

.floating-element-1 {
  top: -1rem;
  left: -1rem;
  width: 4rem;
  height: 4rem;
  background-color: #ecfdf5;
  color: #059669;
  animation: bounce 2s infinite;
}

.floating-element-2 {
  top: -0.5rem;
  right: -1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: #dbeafe;
  color: #2563eb;
  animation: pulse 2s infinite;
}

.floating-element-3 {
  bottom: -1rem;
  left: -0.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #f1f5f9;
  color: #475569;
}

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

.dashboard-card {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid #a7f3d0;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-header {
  padding: 1rem 1rem 0;
}

.card-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.live-badge {
  font-size: 0.75rem;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.window-controls {
  display: flex;
  gap: 0.25rem;
}

.window-control {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.window-control.red {
  background-color: #ef4444;
}

.window-control.yellow {
  background-color: #eab308;
}

.window-control.green {
  background-color: #22c55e;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: #475569;
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.vital-card {
  height: 5rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid;
}

.vital-card-heart {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

.vital-card-bp {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
}

.vital-card-o2 {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}

.vital-icon {
  height: 1.25rem;
  width: 1.25rem;
  margin-bottom: 0.25rem;
}

.vital-card-heart .vital-icon {
  color: #059669;
}

.vital-card-bp .vital-icon {
  color: #2563eb;
}

.vital-card-o2 .vital-icon {
  color: #475569;
}

.vital-label {
  font-size: 0.75rem;
  font-weight: 500;
}

.vital-card-heart .vital-label {
  color: #047857;
}

.vital-card-bp .vital-label {
  color: #1d4ed8;
}

.vital-card-o2 .vital-label {
  color: #374151;
}

.vital-value {
  font-size: 0.875rem;
  font-weight: 700;
}

.vital-card-heart .vital-value {
  color: #065f46;
}

.vital-card-bp .vital-value {
  color: #1e3a8a;
}

.vital-card-o2 .vital-value {
  color: #1f2937;
}

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

.timeline-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.timeline-dot-green {
  background-color: #059669;
}

.timeline-dot-blue {
  background-color: #3b82f6;
}

.timeline-dot-gray {
  background-color: #94a3b8;
}

.timeline-text {
  font-size: 0.75rem;
  color: #475569;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 8rem 0;
  }
}

.section-muted {
  background-color: rgba(248, 250, 252, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.feature-card {
  transition: all 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
}

@media (min-width: 1024px) {
  .feature-card {
    grid-column: span 6;
  }

  .feature-card-1 {
    grid-column: 1 / 7;
  }

  .feature-card-2 {
    grid-column: 7 / 13;
    margin-top: 3rem;
  }

  .feature-card-3 {
    grid-column: 1 / 7;
    margin-top: -2rem;
  }

  .feature-card-4 {
    grid-column: 7 / 13;
  }
}

.feature-content {
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.5) 0%, rgba(239, 246, 255, 0.5) 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.5s ease;
}

.feature-content:hover {
  background-color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: #a7f3d0;
}

.feature-icon-wrapper {
  padding: 0.75rem;
  background-color: #ecfdf5;
  border-radius: 0.75rem;
  color: #059669;
  transition: all 0.3s ease;
}

.feature-content:hover .feature-icon-wrapper {
  color: white;
}

.feature-icon {
  height: 1.5rem;
  width: 1.5rem;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #64748b;
  line-height: 1.7;
}

/* Integration Highlight */
.integration-highlight {
  position: relative;
  margin-top: 4rem;
}

.integration-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.5) 0%, rgba(239, 246, 255, 0.5) 100%);
  border-radius: 1.5rem;
}

.integration-content {
  position: relative;
  padding: 2rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .integration-content {
    grid-template-columns: 1fr 1fr;
    padding: 3rem;
  }
}

.integration-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.integration-icon {
  height: 1.5rem;
  width: 1.5rem;
  color: #059669;
}

.integration-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.integration-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.integration-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.integration-item-icon {
  height: 1rem;
  width: 1rem;
  color: #059669;
  flex-shrink: 0;
}

.integration-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.simple-card {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.simple-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.simple-card-text {
  font-weight: 500;
  color: #374151;
}

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

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  position: relative;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: rotate(0deg);
}

.benefit-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.5) 0%, rgba(239, 246, 255, 0.5) 100%);
  border-radius: 1rem;
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-bg {
  transform: rotate(0deg);
}

.benefit-content {
  position: relative;
  padding: 2rem;
  background-color: white;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.benefit-icon-wrapper {
  padding: 0.5rem;
  background-color: #ecfdf5;
  border-radius: 0.5rem;
}

.benefit-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: #059669;
}

.benefit-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.benefit-line {
  height: 0.25rem;
  width: 3rem;
  background-color: #a7f3d0;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.benefit-card:hover .benefit-line {
  width: 5rem;
}

/* Audience Grid */
.audience-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.audience-card {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.audience-icon-wrapper {
  margin: 0 auto 1rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.audience-card:hover .audience-icon-wrapper {
  background-color: #3b82f6;
  color: white;
}

.audience-icon {
  height: 1.25rem;
  width: 1.25rem;
}

.audience-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.audience-description {
  font-size: 0.75rem;
  color: #64748b;
}

/* Standout Grid */
.standout-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 640px) {
  .standout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .standout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.standout-card {
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.standout-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.standout-number {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #f1f5f9;
  color: #374151;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.standout-text {
  font-weight: 500;
  color: #374151;
}

/* CTA Section */
.cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .cta {
    padding: 8rem 0;
  }
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #1e40af 100%);
}

.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.cta-content {
  position: relative;
  text-align: center;
}

.cta-text {
  margin-bottom: 2rem;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-description {
  font-size: 1.125rem;
  color: #a7f3d0;
  line-height: 1.7;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

/* Footer */
.footer {
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-logo .logo-icon {
  height: 1.5rem;
  width: 1.5rem;
  color: #059669;
}

.footer-logo .logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #64748b;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-contact {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.footer-link {
  font-size: 0.875rem;
  color: #059669;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #047857;
  text-decoration: underline;
}

.footer-phone {
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #64748b;
}
.why-choose {
  padding: 4rem 2rem;
  background: #f9fafb;
  text-align: center;
}

.why-choose h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.why-list {
  list-style: none;
  counter-reset: why-counter;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}


.why-list li {
  counter-increment: why-counter;
  background: #fff;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: relative;
  padding-left: 3.5rem;
}

.why-list li::before {
  content: counter(why-counter);
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  background: #047857;
  color: #fff;
  font-weight: bold;
  font-size: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
/* Hover styling for Why Choose VitalCockpit items */
.why-list li {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-list li:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Scroll-spy active state */
.nav-link.active {
  color: #16a34a;               /* green */
  font-weight: 700;
  border-bottom: 2px solid #16a34a;
}

/* Optional: nicer tap targets on mobile menu */
.nav-mobile .nav-link.active {
  background: rgba(22,163,74,0.08);
  border-radius: 8px;
}
/* Make hero two columns on large screens */
.hero-content {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 0.9fr; /* left text / right preview */
    align-items: center;
  }
}
.hero-visual {
  position: relative;
}

/* Patient Vitals card */
.vitals-card {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.vitals-card-title {
  text-align: center;
  font-weight: 700;
  color: #0f172a; /* slate-900 */
  padding: 1.1rem 1.25rem 0.7rem;
  font-size: 1.05rem;
}
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.75rem 1.25rem 1.25rem;
}
.vital {
  text-align: center;
  padding: 0.75rem 0.5rem 1rem;
}
.vital-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: #64748b; /* slate-500 */
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.vital-value {
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a; /* slate-900 */
}
.vital-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}

/* Risk of Disease heading */
.risk-block {
  text-align: center;
  margin: 1.25rem 0 0.75rem;
}
.risk-eyebrow {
  color: #2563eb; /* blue-600 */
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.risk-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  color: #0f172a;
  font-weight: 800;
  margin: 0;
}

/* Illustration */
.risk-figure { text-align: center; }
.risk-figure img {
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 8px; /* optional */
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .vitals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .vital-value { font-size: 1.5rem; }
  .vitals-card-title { font-size: 1rem; }
}

/* ===== Base / Layout ===== */
:root{
  --emerald-600:#059669; --emerald-700:#047857;
  --blue-600:#2563eb; --blue-700:#1d4ed8;
  --slate-900:#0f172a; --slate-700:#334155; --slate-600:#475569; --slate-500:#64748b;
  --card:#ffffff; --card-border:#e6e8ee;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--slate-900);background:#fff;line-height:1.5}

/* Hero image on the right */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;    /* center on small screens */
}

.hero-human {
  width: 100%;
  max-width: 520px;       /* keep it neat on desktop */
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(2, 6, 23, 0.15));
}

@media (min-width: 1024px) {
  .hero-visual { align-items: flex-end; } /* nudge image to the right edge on lg+ */
}

/* === Hero: Patient Vitals + Risk layout === */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Card */
.vitals-card {
  width: min(780px, 100%);
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;          /* gray-200 */
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  padding: 1.25rem 1.25rem 1rem;
}

.vitals-card-header {
  text-align: center;
  font-weight: 700;
  color: #111827;                      /* gray-900 */
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.vital { 
  text-align: center;
  padding: .5rem .25rem;
}

.vital + .vital {                      /* vertical separators */
  border-left: 1px solid #f3f4f6;      /* gray-100 */
}

.vital-label {
  font-size: .8rem;
  letter-spacing: .04em;
  color: #6b7280;                       /* gray-500 */
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.vital-value {
  font-weight: 800;
  color: #111827;
  font-size: 1.75rem;
  line-height: 1.1;
}

.vital-unit {
  font-size: .9rem;
  font-weight: 600;
  color: #6b7280;
}

.vital-bmi { font-size: 1.75rem; }

.vital-pill {
  display: inline-block;
  margin-top: .35rem;
  background: #fef3c7;                 /* amber-100 */
  color: #92400e;                       /* amber-800 */
  font-weight: 700;
  font-size: .85rem;
  padding: .25rem .6rem;
  border-radius: 999px;
}

/* Risk labels */
.risk-wrap { text-align: center; margin-top: .25rem; }
.risk-eyebrow { font-weight: 600; color: #1d4ed8; font-size: .95rem; }
.risk-title { margin: 0; font-size: clamp(1.4rem,1.2rem + 1.2vw,2rem); color: #1e3a8a; font-weight: 800; }

/* Human illustration */
.human-figure { position: relative; width: min(820px, 100%); }
.hero-human { width: 100%; height: auto; display: block; object-fit: contain; }

/* Red risk badge over the chest */
.risk-badge {
  position: absolute;
  left: 55%;
  top: 28%;                              /* nudge up/down as needed */
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #ef4444;                   /* red-500 */
  display: grid; place-items: center;
  box-shadow: 0 10px 20px rgba(239,68,68,.35);
  border: 3px solid #fff;
}

.risk-badge span { color: #fff; font-weight: 900; font-size: 1.2rem; line-height: 1; }

/* Pulse effect */
.risk-badge::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(239,68,68,.35);
  animation: riskPulse 2s ease-out infinite;
}
@keyframes riskPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.35); }
  70%  { box-shadow: 0 0 0 14px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .vitals-grid { grid-template-columns: repeat(2, 1fr); }
  .vital + .vital { border-left: none; }
}
@media (max-width: 520px) {
  .vitals-card-header { font-size: 1.15rem; }
  .vital-value, .vital-bmi { font-size: 1.5rem; }
  .risk-title { font-size: 1.4rem; }
  .risk-eyebrow { font-size: .9rem; }
  .risk-badge { width: 40px; height: 40px; }
}


/* ===== HERO RIGHT SIDE (keeps original look, fixes alignment) ===== */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

/* Card */
.vitals-card {
  width: min(780px, 100%);
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.25rem 1rem;
}
.vitals-card-header { text-align: center; font-weight: 700; color: #111827; font-size: 1.25rem; margin-bottom: .75rem; }

/* Grid + column separators */
.vitals-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; align-items: stretch; }
.vitals-grid > .vital:not(:first-child) { border-left: 1px solid #f3f4f6; }

/* Three-row layout ensures numbers align across columns */
.vital { display: grid; grid-template-rows: auto 1fr auto; row-gap: .25rem; text-align: center; padding: .5rem .25rem; }
.vital-label { font-size: .8rem; letter-spacing: .04em; color: #6b7280; text-transform: uppercase; }
.vital-value { font-weight: 800; color: #111827; font-size: 1.75rem; line-height: 1.1; align-self: end; }
.vital-bmi   { font-size: 1.75rem; }
.vital-foot  { min-height: 34px; display: flex; align-items: center; justify-content: center; }
.vital-unit  { font-size: .9rem; font-weight: 600; color: #6b7280; }
.vital-pill  { display: inline-block; background: #fef3c7; color: #92400e; font-weight: 700; font-size: .85rem; padding: .25rem .6rem; border-radius: 999px; }

/* Risk labels */
.risk-wrap { text-align: center; margin-top: .25rem; }
.risk-eyebrow { font-weight: 600; color: #1d4ed8; font-size: .95rem; }
.risk-title { margin: 0; font-size: clamp(1.4rem,1.2rem + 1.2vw,2rem); color: #1e3a8a; font-weight: 800; }

/* Human illustration */
.human-figure { position: relative; width: min(820px, 100%); }
.hero-human { width: 100%; height: auto; display: block; object-fit: contain; z-index: 1; }

/* Red risk badge */
.risk-badge {
  position: absolute; left: 55%; top: 30%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 999px; background: #ef4444;
  display: grid; place-items: center; box-shadow: 0 10px 20px rgba(239,68,68,.35); border: 3px solid #fff; z-index: 4;
}
.risk-badge span { color: #fff; font-weight: 900; font-size: 1.2rem; line-height: 1; }
/* subtle pulse */
.risk-badge::after { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:0 0 0 0 rgba(239,68,68,.35); animation: riskPulse 2s ease-out infinite; }
@keyframes riskPulse { 0%{box-shadow:0 0 0 0 rgba(239,68,68,.35)} 70%{box-shadow:0 0 0 14px rgba(239,68,68,0)} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0)} }

/* Tooltip shown on hover/focus of badge (no JS needed) */
.risk-tooltip {
  position: absolute; z-index: 5;
  top: 44%; left: calc(50% + 28px); transform: translate(16px, -50%);
  min-width: 260px; max-width: 360px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(2,6,23,.10); padding: 12px 16px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.risk-tooltip-title { font-weight: 800; color: #b91c1c; margin: 0 0 2px 0; }
.risk-tooltip-desc { margin: 0; color: #6b7280; }

.risk-badge:hover ~ .risk-tooltip,
.risk-badge:focus ~ .risk-tooltip { opacity: 1; transform: translate(0, -50%); }

/* Responsive */
@media (max-width: 900px){ .vitals-grid{ grid-template-columns: repeat(2,1fr);} .vitals-grid > .vital:not(:first-child){ border-left:none; } }
@media (max-width: 560px){
  .risk-tooltip{ left:50%; top: calc(44% + 60px); transform: translate(-50%, 0); }
  .risk-badge:hover ~ .risk-tooltip, .risk-badge:focus ~ .risk-tooltip { transform: translate(-50%, 0); }
}

/* === Box the whole hero visual + label === */
.hero-visual {
  position: relative;                 /* already present, keeps the label anchored */
  background: #ffffff;
  border: 1px solid #e5e7eb;          /* subtle border */
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.06);
  padding: 1.25rem;
  padding-top: 2.25rem;               /* room for the label */
}

/* Top-left "Live Preview" chip */
.hero-visual::before {
  content: "Live Preview";
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 6;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #065f46;                     /* emerald-800-ish */
  background: #ecfdf5;                /* emerald-50 */
  border: 1px solid #d1fae5;          /* emerald-100 */
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1;
}


/* More space between the label and the card */
.hero-visual {
  padding-top: 3.25rem; /* was ~2.25rem; adds extra breathing room */
}

/* Animate the top-left "Live Preview" label */
.hero-visual::before {
  /* existing styles you already added stay the same */
  /* only these tweaks below matter */
  padding-left: 26px;              /* room for the animated dot */
  animation: liveChip 3s ease-in-out infinite;
  z-index: 6;
}

/* Small pulsing dot inside the chip (left side) */
.hero-visual::after {
  content: "";
  position: absolute;
  top: 16px;                        /* align vertically with the chip text */
  left: 22px;                       /* sits just inside the chip */
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;              /* emerald-500 */
  box-shadow: 0 0 0 0 rgba(16,185,129,.55);
  animation: pulseDot 1.8s ease-out infinite;
  z-index: 7;                       /* above the chip */
}

/* Dot pulse */
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.55); transform: scale(1); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); transform: scale(1); }
}

/* Gentle “live” glow on the chip */
@keyframes liveChip {
  0%,100% { filter: brightness(1);    box-shadow: 0 12px 32px rgba(15,23,42,.06); }
  50%     { filter: brightness(1.03); box-shadow: 0 16px 36px rgba(16,185,129,.10); }
}

