:root {
  --primary-color: #6a3fa0;
  --secondary-color: #a26dff;
  --accent-color: #fbf9ff;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6a3fa0 0%, #a26dff 100%);
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

p {
  font-size: 1.05rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Poppins", sans-serif;
  color: var(--primary-color);
}

.section-divider {
  position: relative;
}
.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(106, 63, 160, 0.28),
    transparent
  );
  pointer-events: none;
}

/* --- Navbar --- */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo {
  height: 42px;
  width: auto;
  display: block;
}
.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  margin-left: 20px;
  transition: color 0.3s;
}
.nav-link:hover {
  color: var(--secondary-color) !important;
}
.btn-download-nav {
  background: var(--gradient);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(106, 63, 160, 0.3);
  transition: transform 0.2s;
}
.btn-download-nav:hover {
  transform: scale(1.05);
}

/* --- Hero Section --- */
.hero-section {
  background-color: var(--accent-color);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: var(--gradient);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: hero-shimmer 8s ease-in-out infinite;
}
.hero-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 450px;
}
.hero-mockup {
  filter: drop-shadow(0 24px 40px rgba(44, 62, 80, 0.25));
}
.btn-main {
  background: var(--gradient);
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.btn-pulse {
  position: relative;
  animation: btn-pulse 3.2s ease-in-out infinite;
}
.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(106, 63, 160, 0.3);
  color: white;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes hero-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 63, 160, 0.35);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(106, 63, 160, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(106, 63, 160, 0);
  }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orbs .orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(162, 109, 255, 0.35) 0%,
    rgba(162, 109, 255, 0) 70%
  );
  filter: blur(0px);
  animation: orb-float 12s ease-in-out infinite;
}
.hero-orbs .orb-1 {
  width: 240px;
  height: 240px;
  top: 8%;
  left: 6%;
  animation-duration: 14s;
}
.hero-orbs .orb-2 {
  width: 320px;
  height: 320px;
  bottom: 6%;
  right: 10%;
  animation-duration: 18s;
}
.hero-orbs .orb-3 {
  width: 180px;
  height: 180px;
  top: 55%;
  left: 42%;
  animation-duration: 16s;
}

@keyframes orb-float {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) translateX(10px) scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-text h1 {
    animation: none;
  }
  .hero-orbs .orb {
    animation: none;
  }
  .btn-pulse {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Trust Strip --- */
.trust-strip {
  background: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fcfbff;
  border-radius: 14px;
  height: 100%;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}
.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--gradient);
  box-shadow: 0 6px 14px rgba(106, 63, 160, 0.25);
}

/* --- About Section --- */
.about-section {
  padding: 90px 0;
}
.about-img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.about-section p {
  font-size: 1.1rem;
}

/* --- Services Section --- */
.services-section {
  background-color: #f8f9fa;
  padding: 90px 0;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(106, 63, 160, 0.15);
}

.bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 150px;
  color: var(--primary-color);
  opacity: 0.07;
  transform: rotate(-15deg);
  z-index: -1;
  pointer-events: none;
}

.service-card h4,
.service-card p,
.service-card .service-icon {
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(162, 109, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Features Section --- */
.features-section {
  padding: 90px 0;
  background: white;
}
.features-section p {
  font-size: 1.1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.feature-item i {
  font-size: 24px;
  color: var(--secondary-color);
  margin-top: 5px;
  margin-right: 20px;
  min-width: 30px;
  transition: transform 0.25s ease;
}
.feature-item:hover i {
  transform: translateY(-3px) rotate(-6deg);
}

/* Center Column Container */
.feature-center-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The Mockup Image */
.feature-bg {
  max-width: 100%;
  height: auto;
  display: block;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 991px) {
  .feature-center-img {
    margin: 40px 0;
  }
  .feature-bg {
    max-width: 80%;
  }
}

/* --- App Info Section --- */
.app-info-section {
  background-color: var(--accent-color);
  padding: 70px 0;
}
.spec-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.table-custom td {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.table-custom tr:last-child td {
  border-bottom: none;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(106, 63, 160, 0.05);
  color: var(--primary-color);
}
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(106, 63, 160, 0.1);
}

/* --- How It Works --- */
.how-it-works-section {
  padding: 80px 0;
  background: white;
}
.step-card {
  background: white;
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(106, 63, 160, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(106, 63, 160, 0.12);
}
.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: var(--gradient);
  margin-bottom: 15px;
  box-shadow: 0 6px 15px rgba(106, 63, 160, 0.25);
}

/* --- Privacy --- */
.privacy-section {
  background: var(--accent-color);
  padding: 60px 0;
}
.privacy-badge {
  background: white;
  padding: 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.privacy-badge i {
  font-size: 32px;
  color: var(--primary-color);
}

/* --- Benefits --- */
.benefits-section {
  padding: 80px 0;
  background: white;
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px dashed #e6e6ef;
  color: var(--text-dark);
  font-size: 1.1rem;
  border-radius: 10px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.benefits-list li:hover {
  background: #faf7ff;
  transform: translateX(4px);
}
.benefits-list li:last-child {
  border-bottom: none;
}
.benefits-list i {
  color: var(--secondary-color);
  margin-top: 4px;
}

/* --- Download Now --- */
.download-now-section {
  background: #f8f9fa;
  padding: 60px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* --- Hospital --- */
.hospital-section {
  background: var(--accent-color);
  padding: 70px 0;
}
.hospital-section p {
  font-size: 1.1rem;
}
.hospital-badge {
  background: white;
  padding: 26px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.badge-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}
.badge-label {
  margin-top: 8px;
  color: var(--text-light);
  font-weight: 600;
}

/* --- FAQs --- */
.faqs-section {
  background: white;
  padding: 70px 0;
}

/* --- Screenshots Section (Mobile Optimized) --- */
.screenshots-section {
  padding: 50px 0;
  background: white;
}
.screenshots-wrap {
  position: relative;
  transform: translateX(var(--parallax-x, 0px));
  transition: transform 0.1s linear;
}
.screenshots-wrap::before,
.screenshots-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 2;
}
.screenshots-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.screenshots-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.screenshots-scroller {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 20px 0 30px;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  scroll-padding: 20px;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}
.screenshot-item {
  width: 200px;
  min-width: 200px;
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  display: block;
}
.screenshot-item img:hover {
  transform: translateY(-5px);
}
/* Scrollbar Styling */
.screenshots-scroller::-webkit-scrollbar {
  height: 4px;
}
.screenshots-scroller::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.screenshots-scroller::-webkit-scrollbar-thumb {
  background: #d1bce8;
  border-radius: 10px;
}

/* --- Download Section --- */
.download-cta {
  background: var(--gradient);
  color: white;
  padding: 70px 0;
}
.qr-box {
  background: white;
  padding: 15px;
  border-radius: 15px;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.qr-box img {
  width: 150px;
  height: auto;
}
.qr-text {
  display: block;
  margin-top: 10px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Stats --- */
.stats-wrapper {
  background: #fff;
  padding: 50px 0;
  border-bottom: 1px solid #eee;
}
.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* --- Footer --- */
footer {
  background: #201a2b;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}
.social-btn {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  /* Navbar */
  .navbar-brand {
    font-size: 1.2rem;
  }
  .navbar-logo {
    height: 36px;
  }
  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }
  .nav-link {
    margin: 5px 0;
  }
  .btn-download-nav {
    display: inline-block;
    margin-top: 10px;
    text-align: center;
  }

  /* Hero */
  .hero-section {
    padding: 60px 0 40px;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .hero-text p {
    margin: 0 auto 30px;
  }

  /* Features Section - Stack layout for tablets */
  .feature-center-img {
    margin: 40px 0;
  }
  .feature-phone {
    width: 40%; /* Make phone smaller on tablets so it fits */
    position: static;
    transform: none;
    box-shadow: none;
  }
  .feature-bg {
    max-width: 80%; /* Adjust width to fit mobile screens nicely */
    display: block;
    margin: 0 auto; /* Center it */
  }
}

/* Mobile Phones (Max Width 767px) */
@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1rem;
    gap: 8px;
  }
  .navbar-logo {
    height: 32px;
  }

  /* Typography Scale Down */
  h1 {
    font-size: 2.2rem !important;
  }
  h2 {
    font-size: 1.8rem !important;
  }
  h3 {
    font-size: 1.5rem !important;
  }

  /* Spacing Compression */
  .hero-section,
  .trust-strip,
  .about-section,
  .services-section,
  .features-section,
  .app-info-section,
  .how-it-works-section,
  .privacy-section,
  .benefits-section,
  .download-now-section,
  .hospital-section,
  .faqs-section,
  .download-cta {
    padding: 50px 0;
  }

  /* Hero */
  .hero-section::before {
    display: none;
  }

  /* Services */
  .service-card {
    padding: 25px;
  }

  /* Stats */
  .stat-item {
    margin-bottom: 20px;
  }

  /* Screenshots */
  .screenshot-item {
    width: 160px;
    min-width: 160px;
  }

  .screenshots-wrap::before,
  .screenshots-wrap::after {
    width: 20px;
  }

  .download-cta {
    text-align: center;
  }
  .qr-box {
    display: none;
  }
}
