:root {
  --blue-950: #092653;
  --blue-900: #0d2f64;
  --blue-700: #075e9d;
  --blue-500: #0c93d6;
  --cyan: #00cfff;
  --green: #20c647;
  --green-dark: #13a62f;
  --ink: #102a54;
  --muted: #5e728f;
  --line: #dce8f3;
  --soft: #f4fbff;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(22, 88, 139, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

body.loader-active {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.content-shell,
.nav-shell {
  width: min(100% - 64px, 1380px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(209, 226, 239, 0.65);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 86px;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand img {
  width: 246px;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  color: var(--blue-950);
  padding: 32px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 3px;
  border-radius: 20px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 180ms ease;
  content: "";
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--green-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 27px;
  border-radius: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-cta i,
.button i {
  margin-left: 12px;
  font-size: 16px;
  transition: transform 180ms ease;
}

.nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, #0079c9, #0c99df);
  box-shadow: 0 14px 28px rgba(9, 136, 211, 0.24);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button:hover i,
.nav-cta:hover i {
  transform: translateX(4px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--blue-950);
}

.section-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 4%, rgba(0, 207, 255, 0.12), transparent 24%),
    radial-gradient(circle at 44% 16%, rgba(12, 147, 214, 0.1), transparent 26%),
    linear-gradient(180deg, #eefaff 0%, #ffffff 91%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  position: absolute;
  color: rgba(0, 143, 217, 0.15);
  font-size: 62px;
  line-height: 1;
  content: "+";
}

.hero-bg::before {
  top: 100px;
  left: 50%;
}

.hero-bg::after {
  left: 62px;
  bottom: 96px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.77fr) minmax(620px, 1.23fr);
  gap: 36px;
  align-items: center;
  min-height: 780px;
  padding: 44px 0 52px;
}

.hero-copy {
  padding-top: 28px;
}

.hero-copy h1 {
  margin: 0 0 26px;
  color: var(--blue-950);
  font-size: clamp(46px, 4.4vw, 72px);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy p {
  width: min(100%, 680px);
  margin: 0;
  color: #274564;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 52px;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #12b330);
  box-shadow: 0 18px 36px rgba(32, 198, 71, 0.22);
}

.button.secondary {
  color: #0278bd;
  border: 2px solid #1194d6;
  background: var(--white);
}

.button.light {
  color: #0879bd;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(4, 77, 121, 0.16);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 100px;
}

.trust-row article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: start;
}

.trust-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-950);
  font-size: 13px;
}

.trust-row small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.55;
}

.mini-icon,
.line-icon,
.stat-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
}

.mini-icon {
  width: 36px;
  height: 36px;
  border: 3px solid currentColor;
  border-radius: 11px;
  color: var(--green);
  font-size: 18px;
}

.accent-blue {
  color: var(--blue-500);
}

.dashboard-frame {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 665px;
  overflow: hidden;
  border: 1px solid rgba(173, 208, 231, 0.88);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 15px;
  color: var(--white);
  background: linear-gradient(180deg, #0087cc, #00507f);
}

.dash-sidebar img {
  width: 142px;
  padding: 9px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}

.dash-sidebar nav {
  display: grid;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
}

.dash-sidebar nav span {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: 8px;
}

.dash-sidebar nav i {
  width: 14px;
  text-align: center;
}

.dash-sidebar nav span.selected {
  background: rgba(255, 255, 255, 0.16);
}

.doctor-chip {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  font-size: 11px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue-950);
  background: linear-gradient(135deg, #d9f7ff, #fff0d8);
  font-size: 12px;
  font-weight: 900;
}

.doctor-chip small,
.metric-card span,
.panel span,
blockquote small {
  display: block;
  opacity: 0.75;
}

.dash-main {
  min-width: 0;
  padding: 22px;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  color: var(--blue-950);
}

.dash-topbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric-card,
.panel,
.feature-grid article,
blockquote {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 88, 139, 0.08);
}

.metric-card {
  min-height: 112px;
  padding: 18px 16px;
}

.metric-card small,
.panel h3,
.feature-grid h3,
.stats small,
.reason-list h3 {
  color: var(--blue-950);
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--blue-950);
  font-size: 31px;
  line-height: 1;
}

.metric-card span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1.28fr;
  gap: 14px;
  margin-top: 16px;
}

.panel {
  min-height: 168px;
  padding: 16px;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.panel p {
  margin: 0 0 11px;
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 800;
}

.panel p span {
  color: var(--muted);
  font-weight: 700;
}

.chart-panel,
.recent,
.reminders,
.telehealth {
  min-height: 184px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.calendar-grid span {
  color: var(--blue-950);
}

.calendar-grid i {
  display: grid;
  place-items: center;
  min-height: 22px;
  border-radius: 50%;
  font-style: normal;
}

.calendar-grid .today {
  color: var(--white);
  background: var(--blue-500);
}

.bar-chart {
  height: 138px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  padding: 8px 0;
  background:
    linear-gradient(to top, rgba(220, 232, 243, 0.85) 1px, transparent 1px) 0 0 / 100% 34px;
}

.bar-chart span {
  display: block;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--green), var(--blue-500));
}

.patient-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.patient-card strong {
  display: block;
  font-size: 13px;
}

.patient-card small {
  color: var(--muted);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(32, 198, 71, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.features {
  padding: 54px 0 36px;
}

.features h2,
.why h2 {
  margin: 0 0 30px;
  color: var(--blue-950);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid article {
  min-height: 218px;
  padding: 28px 20px 24px;
  text-align: center;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.feature-grid article:hover,
.panel:hover,
.metric-card:hover {
  transform: translateY(-6px);
  border-color: rgba(12, 147, 214, 0.35);
  box-shadow: 0 22px 46px rgba(22, 88, 139, 0.14);
}

.feature-grid h3 {
  margin: 16px 0 8px;
  font-size: 17px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.line-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  color: var(--green);
  font-size: 45px;
}

.line-icon::before,
.line-icon::after,
.stat-icon::before,
.stat-icon::after {
  content: none;
}

.calendar-icon::before {
  inset: 10px 5px 6px;
  border: 4px solid currentColor;
  border-radius: 7px;
}

.calendar-icon::after {
  top: 21px;
  left: 11px;
  right: 11px;
  height: 4px;
  background: currentColor;
  box-shadow:
    0 12px 0 -1px currentColor,
    16px 12px 0 -1px currentColor,
    32px 12px 0 -1px currentColor;
}

.users-icon {
  color: var(--blue-500);
}

.users-icon::before {
  inset: 8px 16px 24px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.users-icon::after {
  left: 5px;
  right: 5px;
  bottom: 6px;
  height: 26px;
  border: 4px solid currentColor;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.folder-icon::before {
  inset: 12px 4px 8px;
  border: 4px solid currentColor;
  border-radius: 8px;
}

.folder-icon::after {
  left: 16px;
  top: 25px;
  width: 26px;
  height: 4px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}

.video-icon {
  color: var(--blue-500);
}

.video-icon::before {
  left: 4px;
  top: 14px;
  width: 34px;
  height: 28px;
  border: 4px solid currentColor;
  border-radius: 8px;
}

.video-icon::after {
  right: 5px;
  top: 19px;
  width: 15px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 76%);
}

.report-icon::before {
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 42px;
  border-left: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
}

.report-icon::after {
  left: 22px;
  bottom: 13px;
  width: 7px;
  height: 18px;
  background: currentColor;
  box-shadow:
    13px -8px 0 currentColor,
    26px -20px 0 currentColor;
}

.secure-icon {
  color: var(--blue-500);
}

.secure-icon::before {
  inset: 6px 9px;
  border: 4px solid currentColor;
  clip-path: polygon(50% 0, 100% 18%, 100% 64%, 50% 100%, 0 64%, 0 18%);
}

.secure-icon::after {
  left: 24px;
  top: 25px;
  width: 10px;
  height: 13px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 20px;
  padding: 28px 56px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f2fbff, #eff9ff);
}

.stats article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: 0 34px;
  border-right: 1px solid #c8dced;
}

.stats article:last-child {
  border-right: 0;
}

.stat-icon {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(22, 88, 139, 0.1);
  font-size: 34px;
}

.stat-icon.growth::before {
  left: 23px;
  bottom: 24px;
  width: 33px;
  height: 28px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
}

.stat-icon.growth::after {
  left: 28px;
  top: 30px;
  width: 24px;
  height: 18px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  transform: skewY(-22deg);
}

.stat-icon.time {
  color: var(--blue-500);
}

.stat-icon.time::before {
  inset: 22px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.stat-icon.time::after {
  left: 40px;
  top: 31px;
  width: 13px;
  height: 17px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
}

.stat-icon.heart::before {
  left: 22px;
  top: 26px;
  width: 34px;
  height: 30px;
  background: currentColor;
  clip-path: path(
    "M17 29 C7 20 0 14 0 8 C0 3 3 0 8 0 C12 0 15 3 17 7 C19 3 22 0 26 0 C31 0 34 3 34 8 C34 14 27 20 17 29 Z"
  );
}

.stats small {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
}

.stats strong {
  display: block;
  color: var(--green-dark);
  font-size: 38px;
  line-height: 1;
}

.stats article:nth-child(2) strong {
  color: var(--blue-500);
}

.stats p {
  margin: 3px 0 0;
  color: var(--blue-900);
  font-size: 16px;
  font-weight: 650;
}

.why {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.02fr) minmax(300px, 0.9fr);
  gap: 52px;
  align-items: center;
  padding: 60px 0 52px;
}

.why h2 {
  margin-bottom: 16px;
  text-align: left;
}

.why-copy > p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.reason-list {
  display: grid;
  gap: 24px;
}

.reason-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.reason-list article > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan));
}

.reason-list article:nth-child(2) > span {
  background: linear-gradient(135deg, var(--green), #13ae36);
}

.reason-list h3,
.reason-list p {
  margin: 0;
}

.reason-list p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.doctor-visual {
  position: relative;
  min-height: 390px;
}

.doctor-card {
  position: absolute;
  inset: 20px 24px 18px 24px;
  overflow: hidden;
  border-radius: 16px;
  background: #d9f4ff;
  box-shadow: var(--shadow);
}

.doctor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
}

.doctor-portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 245px;
  height: 300px;
  transform: translateX(-45%);
}

.doctor-head {
  position: absolute;
  left: 76px;
  top: 18px;
  width: 86px;
  height: 96px;
  border-radius: 44% 44% 48% 48%;
  background: #f1c39b;
  box-shadow:
    inset 0 16px 0 #49392e,
    0 0 0 9px rgba(255, 255, 255, 0.55);
}

.doctor-body {
  position: absolute;
  left: 42px;
  bottom: -26px;
  width: 170px;
  height: 210px;
  border-radius: 58px 58px 0 0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(0, 122, 185, 0.2) 49%, rgba(0, 122, 185, 0.2) 51%, transparent 52%),
    linear-gradient(90deg, #ffffff 0 50%, #e8f8ff 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(36, 99, 135, 0.12);
}

.stethoscope {
  position: absolute;
  left: 96px;
  top: 156px;
  width: 56px;
  height: 74px;
  border: 5px solid #3185ba;
  border-top: 0;
  border-radius: 0 0 30px 30px;
}

.security-badge,
.floating-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(22, 88, 139, 0.14);
}

.security-badge {
  right: 14px;
  bottom: 18px;
  padding: 18px 20px 18px 54px;
  color: var(--blue-950);
  font-size: 12px;
  font-weight: 900;
}

.security-badge i {
  position: absolute;
  left: 18px;
  top: 24px;
  color: var(--blue-500);
  font-size: 20px;
}

.patients-card {
  left: 2px;
  bottom: 42px;
  width: 168px;
  padding: 18px;
}

.patients-card small,
.patients-card span {
  color: var(--blue-950);
  font-weight: 850;
}

.patients-card strong {
  display: block;
  color: var(--blue-950);
  font-size: 28px;
}

.patients-card span {
  color: var(--green-dark);
  font-size: 12px;
}

.mini-line {
  height: 38px;
  margin-top: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, transparent 48%, var(--blue-500) 49%, var(--blue-500) 53%, transparent 54%),
    linear-gradient(45deg, transparent 52%, rgba(32, 198, 71, 0.85) 53%, rgba(32, 198, 71, 0.85) 56%, transparent 57%);
}

blockquote {
  margin: 0;
  padding: 48px 42px;
}

blockquote > span {
  display: block;
  color: rgba(32, 198, 71, 0.5);
  font-size: 58px;
  line-height: 0.6;
}

blockquote p {
  margin: 10px 0 38px;
  color: var(--blue-950);
  font-size: 20px;
  font-weight: 850;
}

blockquote footer {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
}

blockquote .avatar {
  width: 56px;
  height: 56px;
}

blockquote strong {
  display: block;
  color: var(--blue-950);
  font-size: 18px;
}

.stars {
  margin-top: 22px;
  color: var(--green);
  font-size: 21px;
  letter-spacing: 0;
}

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 34px;
  align-items: center;
  min-height: 150px;
  margin-bottom: 34px;
  padding: 28px 42px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--white);
  background:
    radial-gradient(circle at 0 50%, rgba(255, 255, 255, 0.14), transparent 21%),
    linear-gradient(135deg, #078ad0, #1fc23e);
  box-shadow: 0 22px 48px rgba(4, 129, 135, 0.18);
}

.cta::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(40%, 420px);
  background:
    linear-gradient(90deg, rgba(8, 138, 208, 0.92), rgba(31, 194, 62, 0.38)),
    url("./assets/drLaptop.jpg") center / cover;
  opacity: 0.22;
  content: "";
}

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

.cta img {
  width: 94px;
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
}

.cta p {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 700;
}

.site-footer {
  padding: 8px 0 22px;
  background: #fbfeff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(130px, 1fr));
  gap: 58px;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  width: 250px;
}

.footer-brand p {
  width: min(100%, 330px);
  color: var(--muted);
  font-weight: 650;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-500);
  font-size: 12px;
  font-weight: 900;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 207, 255, 0.18), transparent 23%),
    linear-gradient(180deg, #f6fdff 0%, #ffffff 100%);
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-card {
  display: grid;
  place-items: center;
  gap: 18px;
  color: var(--blue-950);
  font-weight: 900;
}

.loader-card img {
  width: 98px;
  animation: logoPulse 1.25s ease-in-out infinite;
}

.care-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  margin-top: 34px;
}

.care-strip figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.care-strip figure:nth-child(2) {
  margin-top: 34px;
}

.care-strip img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.care-strip figure:hover img {
  transform: scale(1.04);
}

.care-strip figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.care-strip strong,
.care-strip span {
  display: block;
}

.care-strip strong {
  font-size: 18px;
  font-weight: 900;
}

.care-strip span {
  color: var(--muted);
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue-500));
  box-shadow: 0 18px 36px rgba(6, 111, 168, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-frame {
  animation: softFloat 5.8s ease-in-out infinite;
}

.bar-chart span {
  animation: barGlow 2.8s ease-in-out infinite;
}

.bar-chart span:nth-child(2n) {
  animation-delay: 220ms;
}

.bar-chart span:nth-child(3n) {
  animation-delay: 420ms;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(0.96);
    filter: drop-shadow(0 10px 20px rgba(12, 147, 214, 0.16));
  }

  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 18px 28px rgba(32, 198, 71, 0.24));
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes barGlow {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.35) brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.footer-grid h3 {
  margin: 8px 0 18px;
  color: var(--blue-950);
  font-size: 16px;
}

.footer-grid nav,
.footer-grid address {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
}

.footer-grid a:hover {
  color: var(--blue-500);
}

.copyright {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 650;
}

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: 230px auto auto;
  }

  .brand img {
    width: 220px;
  }

  .nav-links {
    gap: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .trust-row {
    margin-top: 54px;
  }

  .dashboard-frame {
    width: min(100%, 920px);
    margin: 0 auto;
  }

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

  .care-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    padding: 26px 24px;
  }

  .stats article {
    grid-template-columns: 76px 1fr;
    padding: 0 18px;
  }

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

  .why blockquote {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 860px) {
  .content-shell,
  .nav-shell {
    width: min(100% - 34px, 1380px);
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .brand img {
    width: 205px;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 18px;
  }

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

  .nav-links a {
    padding: 13px 0;
  }

  .nav-links a::after {
    bottom: 5px;
    right: auto;
    width: 46px;
  }

  .hero-grid {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 34px;
  }

  .trust-row,
  .stats,
  .why,
  .cta,
  .care-strip {
    grid-template-columns: 1fr;
  }

  .care-strip figure:nth-child(2) {
    margin-top: 0;
  }

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

  .dash-sidebar {
    display: none;
  }

  .metric-grid,
  .dashboard-panels,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    gap: 22px;
  }

  .stats article {
    border-right: 0;
    padding: 0;
  }

  .why {
    gap: 26px;
  }

  .cta {
    text-align: center;
  }

  .cta::after {
    width: 100%;
    opacity: 0.14;
  }

  .cta img,
  .cta .button {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 184px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
  }

  .trust-row,
  .metric-grid,
  .dashboard-panels,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dash-main {
    padding: 14px;
  }

  .dashboard-frame {
    border-radius: 13px;
  }

  .stats {
    padding: 24px;
  }

  .stats article {
    grid-template-columns: 70px 1fr;
  }

  .stat-icon {
    width: 64px;
    height: 64px;
  }

  .doctor-visual {
    min-height: 330px;
  }

  .doctor-card {
    inset: 0;
  }

  .patients-card {
    left: 10px;
    bottom: 18px;
  }

  blockquote {
    padding: 32px 24px;
  }

  blockquote p {
    font-size: 17px;
  }

  .cta {
    padding: 28px 22px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}
