/* HealthMgr Landing – Professional layout (MindMarket-style) */
:root {
  --brand-dark: #0071BC;
  --brand-light: #9BCCF6;
  --bg: #F5F4F0;
  --beige: #F8F6F2;
  --card: #FFFFFF;
  --text: #1C1C1C;
  --text-muted: #5a5a5a;
  --nav-bg: rgba(15, 23, 42, 0.96);
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --fig-1: #9BCCF6;
  --fig-2: #0071BC;
  --fig-3: #B8E0F6;
  --fig-4: #5BA3D0;
  --fig-5: #7EC8E3;
  --accent-yellow: #F5C842;
  --accent-green: #2E7D4A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  font-size: 16px;
}

/* ----- Nav ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__logo-text {
  color: inherit;
}

@media (max-width: 400px) {
  .nav__logo-text { display: none; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--brand-light);
}

.nav__cta {
  background: var(--brand-dark) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
}

.nav__cta:hover {
  background: #005a99 !important;
  color: var(--white) !important;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav--open .nav__links { display: flex; }
  .nav__toggle { display: block; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--brand-dark) 0%, #005a99 50%, #004876 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__doodle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}

.hero__doodle--1 {
  width: 400px;
  height: 400px;
  background: var(--brand-light);
  top: -100px;
  right: -100px;
}

.hero__doodle--2 {
  width: 300px;
  height: 300px;
  background: var(--white);
  bottom: -50px;
  left: -50px;
  opacity: 0.12;
}

.hero__doodle--3 {
  width: 250px;
  height: 250px;
  background: var(--brand-light);
  top: 50%;
  left: 10%;
  opacity: 0.2;
}

.hero__figures {
  position: absolute;
  bottom: 15%;
  right: 10%;
  width: min(380px, 45vw);
  height: auto;
  opacity: 0.85;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero__logo {
  max-width: min(320px, 85vw);
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0.98;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__typed {
  display: inline-block;
  min-height: 1.25em;
  color: var(--brand-light);
  font-weight: 700;
}

.hero__typed .cursor {
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--brand-light);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn--hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

/* ----- Blocks ----- */
.block {
  padding: 88px 24px;
}

.block__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.block__inner--wide {
  max-width: 1000px;
}

.block--beige {
  background: var(--beige);
}

.block--stats {
  background: var(--card);
  padding: 64px 24px;
  box-shadow: var(--shadow);
}

/* ----- Feature rows (alternating) ----- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 100px;
}

.feature:last-of-type {
  margin-bottom: 0;
}

.feature--reverse .feature__text {
  order: 2;
}

.feature--reverse .feature__visual {
  order: 1;
}

.feature__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feature__body {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.feature__visual {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doodle-wrap {
  width: 100%;
  max-width: 320px;
  height: 220px;
  background: linear-gradient(135deg, var(--brand-light) 0%, rgba(155,204,246,0.4) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
}

.doodle-wrap--chart {
  background: linear-gradient(135deg, var(--brand-dark) 0%, rgba(0,113,188,0.6) 100%);
}

.doodle-wrap--devices {
  background: linear-gradient(135deg, var(--accent-green) 0%, rgba(46,125,74,0.5) 100%);
}

.doodle-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--brand-dark);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,113,188,0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(0,113,188,0.45);
  background: #005a99;
}

.btn--secondary {
  background: var(--brand-light);
  color: var(--text);
}

.btn--secondary:hover {
  background: #7ab8ed;
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn--outline:hover {
  background: rgba(0,113,188,0.08);
  box-shadow: var(--shadow);
}

.btn--white {
  background: var(--white);
  color: var(--brand-dark);
}

.btn--white:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-lg);
}

.btn--white-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--white-outline:hover {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .feature--reverse .feature__text,
  .feature--reverse .feature__visual {
    order: unset;
  }
  .feature__body { max-width: none; }
}

/* ----- Section: Modules grid ----- */
.section--modules {
  padding: 80px 24px;
  background: var(--bg);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.section__subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.module-card {
  background: var(--card);
  padding: 24px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-card svg {
  color: var(--brand-dark);
  flex-shrink: 0;
}

/* ----- Stats ----- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  box-shadow: var(--shadow);
}

.stat-card i {
  position: absolute;
  right: 20px;
  bottom: 20px;
  opacity: 0.4;
}

.stat-card--1 {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #005a99 100%);
}

.stat-card--2 {
  background: linear-gradient(135deg, var(--accent-green) 0%, #1e5c34 100%);
}

.stat-card--3 {
  background: linear-gradient(135deg, #5a3d8a 0%, #3d2a5c 100%);
}

.stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-card__label {
  font-size: 0.95rem;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Ready section ----- */
.block--ready {
  background: linear-gradient(160deg, var(--brand-dark) 0%, #005a99 100%);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.block__inner--ready {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.ready__doodle {
  position: absolute;
  width: 350px;
  height: 350px;
  background: var(--brand-light);
  border-radius: 50%;
  bottom: -80px;
  left: -80px;
  filter: blur(80px);
  opacity: 0.2;
}

.ready__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ready__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.ctas__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.ctas__grid .btn {
  min-width: 200px;
}

/* ----- Footer ----- */
.footer {
  background: var(--accent-yellow);
  color: var(--text);
  padding: 64px 24px 0;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.footer__logo {
  max-width: 200px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

.footer__connect {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer__tagline {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 320px;
}

.btn--footer {
  background: var(--brand-dark) !important;
  color: var(--white) !important;
  border: none !important;
}

.btn--footer:hover {
  background: #005a99 !important;
  color: var(--white) !important;
}

.footer__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col strong {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer__col a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--brand-dark);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}

.footer__copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer__legal a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ----- Terms / Privacy pages ----- */
.page {
  padding: 100px 24px 80px;
  min-height: 100vh;
  background: var(--beige);
}

.page__inner {
  max-width: 720px;
  margin: 0 auto;
}

.page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--brand-light);
  letter-spacing: -0.02em;
}

.page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page p, .page ul {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
}

.page ul {
  padding-left: 24px;
}

.page a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 500;
}

.page a:hover {
  text-decoration: underline;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
