:root {
  --medical-blue: #2477f2;
  --medical-blue-deep: #0b2d55;
  --mint: #36d6a7;
  --mint-soft: #ddfff4;
  --pearl: #f7fbff;
  --white: #ffffff;
  --navy: #071c34;
  --slate: #5c6f83;
  --grey: #eef4f8;
  --line: rgba(8, 48, 86, 0.12);
  --shadow: 0 24px 70px rgba(7, 28, 52, 0.14);
  --soft-shadow: 0 14px 45px rgba(7, 28, 52, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--pearl);
  color: var(--navy);
  overflow-x: hidden;
}

body::selection {
  background: rgba(54, 214, 167, 0.32);
}

img,
svg {
  max-width: 100%;
}

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

a:hover {
  color: var(--medical-blue);
}

:focus-visible {
  outline: 3px solid rgba(36, 119, 242, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-140%);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 9999;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-viewport {
  min-height: 100vh;
}

.section-pad {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-kicker {
  color: var(--medical-blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.section-kicker.light {
  color: var(--mint);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 850;
  margin-bottom: 1.2rem;
}

.section-copy {
  color: var(--slate);
  font-size: 1.06rem;
  line-height: 1.85;
  margin-bottom: 0;
}

.section-heading-narrow {
  max-width: 800px;
}

.btn {
  border-radius: 999px;
  font-weight: 750;
  padding: 0.85rem 1.35rem;
}

.btn-medical {
  background: linear-gradient(135deg, var(--medical-blue), #10b5e8 55%, var(--mint));
  color: var(--white);
  border: 0;
  box-shadow: 0 16px 35px rgba(36, 119, 242, 0.28);
}

.btn-medical:hover,
.btn-medical:focus {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(36, 119, 242, 0.35);
}

.btn-outline-medical {
  border: 1px solid rgba(11, 45, 85, 0.18);
  background: rgba(255, 255, 255, 0.66);
  color: var(--navy);
  backdrop-filter: blur(16px);
}

.btn-outline-medical:hover,
.btn-outline-medical:focus {
  background: var(--white);
  border-color: rgba(36, 119, 242, 0.32);
  color: var(--medical-blue-deep);
}

.btn-primary-soft {
  background: rgba(36, 119, 242, 0.1);
  color: var(--medical-blue-deep);
  border: 1px solid rgba(36, 119, 242, 0.14);
}

.navbar-medical {
  --bs-navbar-toggler-border-color: rgba(11, 45, 85, 0.16);
  padding: 1rem 0;
  background: rgba(247, 251, 255, 0.58);
  backdrop-filter: blur(22px);
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}

.navbar-medical.is-scrolled {
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 40px rgba(7, 28, 52, 0.08);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--medical-blue), var(--mint));
  box-shadow: 0 12px 30px rgba(36, 119, 242, 0.2);
}

.brand-text {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nav-link {
  color: rgba(7, 28, 52, 0.72);
  font-weight: 750;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.55rem 0.85rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--medical-blue);
  background: rgba(36, 119, 242, 0.08);
}

.hero-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(54, 214, 167, 0.21), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(36, 119, 242, 0.18), transparent 30%),
    linear-gradient(135deg, #f8fcff 0%, #eff8ff 45%, #f6fffc 100%);
}

.medical-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 45, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 45, 85, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.glow-orb {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
}

.glow-orb-one {
  top: 7rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(54, 214, 167, 0.35), transparent 65%);
}

.glow-orb-two {
  right: -16rem;
  bottom: 0;
  background: radial-gradient(circle, rgba(36, 119, 242, 0.28), transparent 66%);
}

.pill-shape,
.cross-pulse {
  position: absolute;
  pointer-events: none;
}

.pill-shape {
  width: 86px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36, 119, 242, 0.18) 0 50%, rgba(54, 214, 167, 0.18) 50% 100%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--soft-shadow);
}

.pill-a { left: 8%; top: 26%; transform: rotate(-22deg); animation: drift 7s ease-in-out infinite; }
.pill-b { right: 9%; bottom: 18%; transform: rotate(18deg); animation: drift 9s ease-in-out infinite reverse; }
.cross-pulse { color: rgba(36, 119, 242, 0.24); font-size: 2rem; animation: pulseMedical 3s ease-in-out infinite; }
.cross-a { right: 22%; top: 19%; }
.cross-b { left: 14%; bottom: 22%; animation-delay: 1s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--medical-blue-deep);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(36, 119, 242, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(54, 214, 167, 0.13);
}

.hero-title {
  margin-top: 1.4rem;
  letter-spacing: -0.07em;
  line-height: 0.91;
  font-weight: 900;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(120deg, var(--medical-blue), #06a4d7, var(--mint));
  -webkit-background-clip: text;
  color: transparent;
  background-size: 220% auto;
  animation: gradientFlow 6s ease-in-out infinite alternate;
}

.hero-lead {
  color: var(--slate);
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.8;
  margin-top: 1.5rem;
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-assurance span {
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(7, 28, 52, 0.72);
  font-weight: 750;
  font-size: 0.9rem;
}

.hero-dashboard {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 42px;
  padding: 1.1rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.76), rgba(221, 255, 244, 0.52)),
    radial-gradient(circle at 85% 20%, rgba(36, 119, 242, 0.18), transparent 28%);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(54, 214, 167, 0.12);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.rx-panel {
  margin-top: 1.5rem;
  border-radius: 28px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-label {
  color: var(--slate);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 850;
}

.rx-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--medical-blue), var(--mint));
  color: var(--white);
  font-weight: 900;
  font-size: 1.35rem;
}

.floating-cards {
  position: relative;
  min-height: 320px;
}

.float-card {
  position: absolute;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow: var(--soft-shadow);
  color: var(--medical-blue-deep);
}

.float-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(36, 119, 242, 0.08);
}

.card-one { left: 0; top: 42px; }
.card-two { right: 10px; top: 78px; animation-delay: 0.3s; }
.card-three { left: 44px; bottom: 46px; animation-delay: 0.6s; }
.card-four { right: 6px; bottom: 22px; animation-delay: 0.9s; }

.vital-card {
  border-radius: 24px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.medical-progress {
  height: 8px;
  width: 190px;
  border-radius: 999px;
  background: rgba(11, 45, 85, 0.08);
}

.medical-progress .progress-bar {
  background: linear-gradient(90deg, var(--medical-blue), var(--mint));
  border-radius: inherit;
}

.queue-percent {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--medical-blue);
}

.trust-section {
  margin-top: -3.5rem;
  position: relative;
  z-index: 3;
}

.trust-shell {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.7rem);
  backdrop-filter: blur(20px);
}

.trust-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(247,251,255,0.92), rgba(255,255,255,0.82));
  border: 1px solid var(--line);
}

.trust-icon {
  font-size: 1.65rem;
  margin-bottom: 0.8rem;
}

.trust-card strong {
  color: var(--medical-blue-deep);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 900;
}

.trust-card p {
  margin: 0.35rem 0 0;
  color: var(--slate);
  font-weight: 700;
}

.services-section {
  position: relative;
}

.service-card,
.category-card,
.product-card,
.advice-card,
.contact-card,
.inquiry-form {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.service-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: var(--shadow);
  border-color: rgba(54, 214, 167, 0.34);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(36,119,242,0.13), rgba(54,214,167,0.14));
  margin-bottom: 1.3rem;
  font-size: 1.5rem;
}

.service-card h3,
.category-card h3,
.product-card h3,
.advice-card h3 {
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.service-card p,
.category-card p,
.product-card p,
.advice-card p {
  color: var(--slate);
  line-height: 1.7;
}

.micro-link {
  display: inline-flex;
  align-items: center;
  color: var(--medical-blue);
  font-weight: 850;
  font-size: 0.9rem;
}

.micro-link::after {
  content: "→";
  margin-left: 0.4rem;
  transition: transform var(--transition);
}

.micro-link:hover::after {
  transform: translateX(4px);
}

.prescription-section {
  background: linear-gradient(180deg, #f7fbff, #eefaff);
}

.disclaimer-card {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(36, 119, 242, 0.16);
  color: var(--medical-blue-deep);
  font-weight: 750;
}

.rx-flow-dashboard {
  position: relative;
  padding: clamp(1rem, 2vw, 2rem);
  border-radius: 38px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-line {
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--medical-blue), var(--mint));
  opacity: 0.5;
}

.flow-step {
  position: relative;
  width: min(88%, 470px);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(247,251,255,0.9);
  border: 1px solid var(--line);
  margin: 1.1rem 0;
  box-shadow: var(--soft-shadow);
}

.flow-step:nth-of-type(odd) { margin-left: auto; }
.flow-step:nth-of-type(even) { margin-right: auto; }

.flow-number {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--medical-blue), var(--mint));
  font-weight: 900;
}

.flow-step h3 {
  font-size: 1.05rem;
  font-weight: 850;
}

.flow-step p {
  margin: 0;
  color: var(--slate);
  line-height: 1.65;
}

.wellness-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-card {
  min-height: 220px;
  padding: 1.4rem;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(221,255,244,0.52)),
    radial-gradient(circle at top right, rgba(36,119,242,0.16), transparent 36%);
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow);
}

.category-card span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  margin-bottom: 1.4rem;
  font-size: 1.45rem;
}

.products-section {
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.product-card {
  height: 100%;
  padding: 1rem;
  border-radius: 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product-visual {
  min-height: 190px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 950;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.vitamin { background: linear-gradient(135deg, #ffb45e, #f26d6d); }
.thermometer { background: linear-gradient(135deg, #2477f2, #36d6a7); }
.glucose { background: linear-gradient(135deg, #7c8cff, #24c6dc); }
.aid { background: linear-gradient(135deg, #ef4d6d, #ff8fa3); }
.baby { background: linear-gradient(135deg, #69d7ff, #87f5c3); }
.skin { background: linear-gradient(135deg, #dcc2ff, #77d9ff); }

.product-card h3,
.product-card p,
.product-meta,
.product-card .btn {
  margin-left: 0.45rem;
  margin-right: 0.45rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
  color: var(--slate);
  font-weight: 750;
  font-size: 0.9rem;
}

.badge-available {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  background: rgba(54, 214, 167, 0.14);
  color: #087b62;
}

.btn-product {
  width: calc(100% - 0.9rem);
  margin-bottom: 0.45rem;
  background: rgba(36, 119, 242, 0.09);
  color: var(--medical-blue-deep);
  border: 1px solid rgba(36, 119, 242, 0.14);
}

.btn-product:hover,
.btn-product:focus {
  background: var(--medical-blue);
  color: var(--white);
}

.advice-section {
  background:
    radial-gradient(circle at 12% 30%, rgba(54,214,167,0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f4fbff);
}

.advice-stack {
  display: grid;
  gap: 1rem;
}

.advice-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  border-radius: 24px;
}

.advice-card span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: rgba(36,119,242,0.1);
  color: var(--medical-blue);
  font-weight: 900;
}

.advice-card p {
  margin-bottom: 0;
}

.quick-panel-section {
  padding: 4rem 0;
  background: #f4fbff;
}

.quick-panel {
  background:
    radial-gradient(circle at 86% 20%, rgba(54,214,167,0.22), transparent 32%),
    linear-gradient(135deg, #061c35, #0a3668 58%, #063a52);
  color: var(--white);
  border-radius: 40px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 28px 80px rgba(7, 28, 52, 0.28);
  overflow: hidden;
}

.quick-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.quick-panel p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.quick-btn {
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 850;
  backdrop-filter: blur(12px);
  transition: background var(--transition), transform var(--transition);
}

.quick-btn:hover,
.quick-btn:focus {
  color: var(--white);
  background: rgba(54,214,167,0.18);
  transform: translateY(-3px);
}

.contact-card,
.inquiry-form {
  border-radius: 34px;
  padding: clamp(1.3rem, 3vw, 2.1rem);
}

.contact-card h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -0.055em;
  font-weight: 900;
  line-height: 1;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.8rem;
  color: var(--slate);
}

.contact-list strong {
  color: var(--navy);
}

.hours-card {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(36,119,242,0.08), rgba(54,214,167,0.12));
}

.hours-card p {
  margin: 0.35rem 0;
}

.map-placeholder {
  position: relative;
  min-height: 390px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(221,255,244,0.55)),
    radial-gradient(circle at center, rgba(36,119,242,0.2), transparent 34%);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,45,85,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,45,85,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotate(-4deg) scale(1.08);
}

.map-pin {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--medical-blue), var(--mint));
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 18px 45px rgba(36,119,242,0.28);
}

.map-placeholder h3,
.map-placeholder p {
  position: relative;
  z-index: 1;
}

.map-placeholder h3 {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.map-placeholder p {
  color: var(--slate);
}

.contact-section {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.mini-contact {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.mini-contact span {
  font-size: 1.7rem;
}

.mini-contact a {
  display: block;
  color: var(--medical-blue);
  font-weight: 850;
}

.form-label {
  font-weight: 800;
  color: var(--medical-blue-deep);
}

.form-control,
.form-select {
  border-radius: 18px;
  border: 1px solid rgba(11, 45, 85, 0.14);
  padding: 0.9rem 1rem;
  background-color: rgba(247,251,255,0.75);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(36,119,242,0.45);
  box-shadow: 0 0 0 0.25rem rgba(36,119,242,0.1);
}

.form-note,
.form-text {
  color: var(--slate);
}

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.74);
  padding: 4.5rem 0 2rem;
}

.footer-brand {
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.76);
}

.footer-links a:hover {
  color: var(--mint);
}

.medical-disclaimer {
  border-left: 3px solid var(--mint);
  padding-left: 1rem;
  color: rgba(255,255,255,0.64);
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.4rem;
  color: rgba(255,255,255,0.54);
  font-size: 0.9rem;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 9999;
  transform: translate(-50%, 140%);
  max-width: min(92vw, 520px);
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: transform var(--transition);
}

.demo-toast.show {
  transform: translate(-50%, 0);
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade {
  opacity: 0;
  transition: opacity 760ms ease, transform 760ms ease;
}

.reveal-up { transform: translateY(34px); }
.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-scale { transform: scale(0.94); }
.reveal-fade { transform: translateY(0); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 220ms; }
.delay-3 { transition-delay: 320ms; }

.float-soft {
  animation: floatSoft 5.5s ease-in-out infinite;
}

.pulse-medical {
  animation: pulseMedical 2.6s ease-in-out infinite;
}

.glow-border {
  position: relative;
  overflow: hidden;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(36,119,242,0.4), transparent, rgba(54,214,167,0.4));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.glow-border:hover::before {
  opacity: 1;
}

@keyframes gradientFlow {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

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

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 12px -18px; }
}

@keyframes pulseMedical {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.16); opacity: 1; }
}

@media (max-width: 1199.98px) {
  .wellness-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-dashboard {
    min-height: 520px;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.8rem;
    padding: 0.9rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
  }

  .hero-section .min-vh-100 {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .trust-section {
    margin-top: 0;
    padding-top: 1rem;
  }

  .flow-line {
    left: 34px;
  }

  .flow-step,
  .flow-step:nth-of-type(odd),
  .flow-step:nth-of-type(even) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 78px;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-dashboard {
    min-height: 610px;
    border-radius: 30px;
  }

  .float-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin-bottom: 0.8rem;
    width: 100%;
  }

  .floating-cards {
    min-height: auto;
    margin-top: 1rem;
  }

  .vital-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .medical-progress {
    width: min(260px, 70vw);
  }

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

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .advice-card {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-fade {
    opacity: 1;
    transform: none;
  }
}
