:root {
  --primary: #0B7C70;
  --primary-dark: #075E57;
  --ink: #1D2928;
  --muted: #6C7B79;
  --background: #F4F7FB;
  --border: #DDE7E9;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(37, 74, 125, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font-family: "Roboto", sans-serif;
}

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

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(36, 125, 242, 0.45);
  outline-offset: 4px;
}

.site-header {
  width: min(1200px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

.brand-icon {
  display: inline-flex;
  width: 39px;
  height: 39px;
  color: var(--primary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}

.nav-link {
  color: #657572;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.language-button:hover {
  border-color: #C5E3DC;
  background: #F0F7F4;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 19px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(36, 125, 242, 0.19);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 25px rgba(36, 125, 242, 0.25);
}

.button-outline {
  background: #fff;
  color: var(--ink);
  border-color: #dce5f1;
}

.button-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button-text {
  background: transparent;
  color: #506461;
  box-shadow: none;
}

.button-large {
  min-height: 51px;
  padding: 14px 21px;
  border-radius: 13px;
}

.arrow-icon {
  font-size: 17px;
}

.mobile-menu-button {
  display: none;
}

.hero {
  width: min(1200px, calc(100% - 64px));
  min-height: 585px;
  margin: 0 auto;
  padding: 57px 0 70px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 35px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #D4EAE5;
  border-radius: 50px;
  background: #EAF5F1;
  color: #0B776E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-dot,
.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #299C86;
  box-shadow: 0 0 0 4px rgba(58, 191, 145, 0.12);
}

.hero h1 {
  margin: 26px 0 19px;
  font-size: clamp(43px, 5.1vw, 66px);
  line-height: 1.12;
  letter-spacing: -3.5px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #D4EAE5;
  border-radius: 13px;
  background: #EAF5F1;
  color: var(--primary);
}

.trust-icon svg {
  width: 23px;
  height: 23px;
}

.trust-row strong,
.trust-row span:not(.trust-icon) {
  display: block;
}

.trust-row strong {
  margin-bottom: 5px;
  font-size: 12px;
}

.trust-row div:last-child span {
  color: var(--muted);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.visual-glow {
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: radial-gradient(circle, #DDEFE9 0%, #EAF5F1 45%, rgba(247, 250, 255, 0) 72%);
  z-index: -2;
}

.monitor-card {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  padding: 25px;
  border: 1px solid rgba(220, 231, 246, 0.9);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(45, 83, 139, 0.13);
}

.monitor-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.monitor-kicker {
  color: #82918F;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.monitor-top h2 {
  margin: 7px 0 0;
  font-size: 20px;
  letter-spacing: -0.6px;
}

.monitor-menu {
  color: #9AA9A6;
  letter-spacing: 2px;
}

.patient-avatar {
  width: 65px;
  height: 65px;
  margin-top: 20px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 15px rgba(38, 77, 129, 0.13);
}

.patient-avatar svg {
  width: 100%;
  height: 100%;
}

.monitor-welcome {
  margin-top: 12px;
}

.monitor-welcome > span {
  font-size: 13px;
  font-weight: 700;
}

.monitor-welcome p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.health-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 23px;
}

.metric-card {
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid #edf1f7;
  border-radius: 15px;
  background: #F6FAF8;
}

.metric-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #71817F;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.metric-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.pulse-dot {
  background: #f27d91;
}

.oxygen-dot {
  background: #2AA394;
}

.metric-value {
  margin-top: 12px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
}

.metric-value small {
  color: #859491;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.metric-chart {
  height: 39px;
  margin-top: 6px;
  color: #f27d91;
}

.metric-chart svg {
  width: 100%;
  height: 100%;
}

.oxygen-bar {
  height: 6px;
  margin-top: 23px;
  overflow: hidden;
  border-radius: 50px;
  background: #E7F3EF;
}

.oxygen-bar span {
  display: block;
  width: 98%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #56A99A, #0B7C70);
}

.monitor-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #edf1f7;
  color: #8391a4;
  font-size: 9px;
}

.footer-check {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #E8F4EF;
  color: #178878;
  font-size: 10px;
}

.floating-label {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(231, 238, 248, 0.95);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(45, 83, 139, 0.11);
}

.label-top {
  top: 47px;
  right: -8px;
}

.label-bottom {
  bottom: 38px;
  left: -10px;
}

.label-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 18px;
}

.heart-icon {
  color: #e75d78;
  background: #fff0f3;
}

.shield-icon {
  color: #178878;
  background: #E8F4EF;
  font-weight: 800;
}

.floating-label span:nth-child(2) small,
.floating-label span:nth-child(2) strong {
  display: block;
}

.floating-label span:nth-child(2) small {
  color: #879592;
  font-size: 9px;
}

.floating-label span:nth-child(2) strong {
  margin-top: 5px;
  font-size: 14px;
}

.floating-label .unit {
  display: inline !important;
  font-size: 9px !important;
}

.label-bottom strong {
  font-size: 10px !important;
}

.label-bottom small {
  margin-top: 4px;
}

.live-indicator {
  width: 6px;
  height: 6px;
  margin-left: 4px;
}

.decorative-circle {
  position: absolute;
  z-index: -1;
  border: 1px solid #D4EAE5;
  border-radius: 50%;
}

.circle-one {
  top: 37px;
  left: 23px;
  width: 44px;
  height: 44px;
}

.circle-two {
  right: 20px;
  bottom: 35px;
  width: 23px;
  height: 23px;
  background: #D4EAE5;
}

.features-section {
  padding: 83px 32px 95px;
  background: #fff;
  border-top: 1px solid #EDF3F1;
  border-bottom: 1px solid #EDF3F1;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-eyebrow {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.section-heading h2,
.about-content h2,
.final-cta h2 {
  margin: 15px 0 12px;
  font-size: clamp(27px, 3.4vw, 39px);
  line-height: 1.25;
  letter-spacing: -1.3px;
}

.section-heading p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.feature-grid {
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px 25px;
  border: 1px solid #EAF0EF;
  border-radius: 19px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #D4EAE5;
  box-shadow: 0 18px 40px rgba(37, 74, 125, 0.08);
}

.feature-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

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

.feature-blue {
  color: #0B7C70;
  background: #EAF5F1;
}

.feature-purple {
  color: #8063dc;
  background: #f1edff;
}

.feature-green {
  color: #178878;
  background: #E8F4EF;
}

.feature-card h3 {
  margin: 21px 0 9px;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.about-section {
  width: min(1050px, calc(100% - 64px));
  min-height: 390px;
  margin: 0 auto;
  padding: 85px 0;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: center;
  gap: 60px;
}

.about-content h2 {
  max-width: 490px;
  margin-top: 15px;
}

.about-content p {
  max-width: 520px;
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.about-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #E3ECEB;
  border-radius: 25px;
  background: linear-gradient(145deg, #F0F7F4, #E7F3EF);
}

.about-center {
  z-index: 1;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 25px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(36, 125, 242, 0.27);
}

.about-center svg {
  width: 46px;
  height: 46px;
}

.about-ring {
  position: absolute;
  border: 1px solid rgba(36, 125, 242, 0.2);
  border-radius: 50%;
}

.ring-one {
  width: 155px;
  height: 155px;
}

.ring-two {
  width: 230px;
  height: 230px;
}

.about-cross {
  position: absolute;
  top: 28px;
  right: 35px;
  color: #A8D5CC;
  font-size: 31px;
  font-weight: 300;
}

.about-orbit {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(36, 125, 242, 0.3);
}

.orbit-a {
  top: 45px;
  left: 30%;
}

.orbit-b {
  right: 20%;
  bottom: 55px;
  background: #35A58F;
}

.orbit-c {
  left: 17%;
  bottom: 76px;
  background: #9476e9;
}

.final-cta {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto 65px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 25px;
  background: linear-gradient(110deg, #0B7C70, #159687);
  color: #fff;
  box-shadow: 0 20px 45px rgba(36, 125, 242, 0.15);
}

.final-cta .section-eyebrow {
  color: #D4EAE5;
}

.final-cta h2 {
  margin: 11px 0 8px;
}

.final-cta p {
  max-width: 540px;
  color: #DDEFE9;
}

.button-white {
  flex: 0 0 auto;
  background: #fff;
  color: #0B7C70;
  box-shadow: 0 8px 25px rgba(12, 57, 125, 0.15);
}

.button-white:hover {
  background: #F0F7F4;
}

.site-footer {
  width: min(1200px, calc(100% - 64px));
  min-height: 95px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #DDE7E9;
}

.footer-brand {
  font-size: 15px;
}

.footer-brand .brand-icon {
  width: 31px;
  height: 31px;
}

.site-footer p,
.footer-copy {
  color: #899692;
  font-size: 10px;
}

/* Arabic and right-to-left layout */
html[dir="rtl"] body {
  font-family: "Cairo", sans-serif;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] a {
  font-family: "Cairo", sans-serif;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .about-content h2,
html[dir="rtl"] .final-cta h2 {
  letter-spacing: 0;
}

html[dir="rtl"] .header-actions {
  direction: rtl;
}

html[dir="rtl"] .label-top {
  right: auto;
  left: -8px;
}

html[dir="rtl"] .label-bottom {
  left: auto;
  right: -10px;
}

html[dir="rtl"] .floating-label .live-indicator {
  margin-left: 0;
  margin-right: 4px;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .trust-row {
  direction: rtl;
}

html[dir="rtl"] .about-cross {
  right: auto;
  left: 35px;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .about-section,
  .final-cta,
  .site-footer {
    width: min(100% - 40px, 700px);
  }

  .header-actions {
    gap: 13px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
  }

  .hero-content {
    max-width: 650px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .feature-grid {
    max-width: 700px;
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px;
  }

  .about-section {
    grid-template-columns: 1fr 0.8fr;
    gap: 25px;
  }

  .final-cta {
    padding: 35px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 75px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-icon {
    width: 33px;
    height: 33px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-login {
    display: none;
  }

  .header-signup {
    padding: 10px 12px;
    font-size: 11px;
  }

  .language-button {
    padding: 9px;
  }

  .hero {
    padding-top: 35px;
    padding-bottom: 45px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 58px);
    letter-spacing: -2.5px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    padding: 12px 14px;
    font-size: 12px;
  }

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

  .hero-visual {
    min-height: 390px;
  }

  .visual-glow {
    width: 310px;
    height: 310px;
  }

  .monitor-card {
    width: min(100%, 365px);
    padding: 19px;
    border-radius: 22px;
  }

  .label-top {
    top: 7px;
    right: -3px;
    padding: 10px;
  }

  .label-bottom {
    bottom: 5px;
    left: -3px;
    padding: 10px;
  }

  .label-icon {
    width: 30px;
    height: 30px;
  }

  .floating-label span:nth-child(2) strong {
    font-size: 12px;
  }

  .health-metrics {
    gap: 8px;
  }

  .metric-card {
    padding: 11px 8px;
  }

  .metric-heading {
    font-size: 8px;
  }

  .metric-value {
    font-size: 24px;
  }

  .features-section {
    padding: 65px 20px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .about-content h2,
  .final-cta h2 {
    font-size: 29px;
  }

  .feature-grid {
    gap: 13px;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 65px 0;
  }

  .about-visual {
    min-height: 230px;
  }

  .final-cta {
    margin-bottom: 40px;
    padding: 29px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer p {
    margin: 0;
  }
}

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

/* Typography alignment with the supplied TeleCare UI reference */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] a,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: "Cairo", "Roboto", sans-serif;
}
