/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px 24px 100px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 80% at 50% 42%, #f8c9a5 0%, rgba(248, 201, 165, 0) 62%),
    radial-gradient(80% 70% at 8% 14%, #f4a7ba 0%, rgba(244, 167, 186, 0) 58%),
    radial-gradient(85% 80% at 94% 8%, #b9b2ef 0%, rgba(185, 178, 239, 0) 60%),
    radial-gradient(100% 90% at 52% 108%, #b1a4dd 0%, rgba(177, 164, 221, 0) 64%),
    linear-gradient(142deg, #f0afb7 0%, #f6c3a0 40%, #d9b3d2 76%, #b6afe9 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(251, 243, 236, 0), #fbf3ec);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.hero-orb--1 {
  width: 46vw;
  height: 46vw;
  left: -8vw;
  top: -12vw;
  background: radial-gradient(circle at 35% 35%, #ffb0a0, #ff8fae 45%, transparent 72%);
  animation: orbDrift 22s ease-in-out infinite alternate;
}

.hero-orb--2 {
  width: 44vw;
  height: 44vw;
  right: -10vw;
  top: -8vw;
  background: radial-gradient(circle at 50% 45%, #b3a6ff, #8f8bee 48%, transparent 74%);
  animation: orbDrift 26s ease-in-out infinite alternate-reverse;
}

.hero-orb--3 {
  width: 58vw;
  height: 42vw;
  left: 24vw;
  bottom: -24vw;
  background: radial-gradient(circle at 50% 50%, #f9b78e, #e9a6c6 45%, transparent 72%);
  opacity: 0.45;
  animation: orbDrift 30s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(4vw, 3vw, 0) scale(1.1);
  }
}

.hero-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* nav inversion over the hero */
.nav:not(.is-solid) .brand-text strong,
.nav:not(.is-solid) .nav-links a {
  color: #fffaf5;
  text-shadow: 0 1px 18px rgba(92, 52, 60, 0.14);
}

.nav:not(.is-solid) .brand-text em {
  color: rgba(255, 250, 245, 0.74);
}

.nav:not(.is-solid) .btn--nav {
  color: #fffaf5;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav:not(.is-solid) .btn--nav:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------------- Hero copy ---------------- */
.hero-center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 252, 248, 0.94);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 24px rgba(95, 55, 80, 0.08);
  animation: heroIn 1.1s var(--ease) both;
}

.hero-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ff5cf;
  box-shadow: 0 0 0 4px rgba(143, 245, 207, 0.22);
  animation: pulseDot 2.6s ease-in-out infinite;
}

@keyframes pulseDot {
  50% {
    box-shadow: 0 0 0 7px rgba(143, 245, 207, 0.05);
  }
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(58px, 9.6vw, 146px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.055em;
  color: #fffaf4;
  text-shadow: 0 10px 60px rgba(110, 62, 68, 0.16);
  animation: heroIn 1.2s 0.08s var(--ease) both;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: rgba(255, 250, 244, 0.86);
  text-shadow: 0 2px 18px rgba(100, 60, 70, 0.12);
  animation: heroIn 1.2s 0.16s var(--ease) both;
}

.hero-cta {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 38px rgba(96, 55, 74, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.4s var(--ease);
  animation: heroIn 1.2s 0.26s var(--ease) both;
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 20px 46px rgba(96, 55, 74, 0.22);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 250, 244, 0.82);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cueBounce 2.4s ease-in-out infinite;
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* ---------------- Floating cards ---------------- */
.float-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.fcard {
  position: absolute;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 60px rgba(74, 48, 78, 0.16), 0 2px 6px rgba(74, 48, 78, 0.05);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: var(--ink);
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.fcard-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fcard-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fcard-id strong {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.fcard-id em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
}

.favatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #9a8dff, #7a6bff 55%, #62cfc4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(122, 107, 255, 0.28);
}

.online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3fc48b;
  box-shadow: 0 0 0 3px rgba(63, 196, 139, 0.16);
}

.fcard-more {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(23, 23, 29, 0.3);
}

.fcard--consult {
  left: 3.5%;
  top: 21%;
  width: 294px;
  transform: rotate(-4.5deg);
  animation-name: floatA;
  animation-duration: 10s;
}

.fchat {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bubble {
  max-width: 86%;
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 10.5px;
  line-height: 1.6;
}

.bubble--user {
  align-self: flex-end;
  background: #1c1c24;
  color: rgba(255, 255, 255, 0.92);
  border-bottom-right-radius: 3px;
}

.bubble--doc {
  align-self: flex-start;
  background: #f2f1f7;
  color: var(--ink-soft);
  border-bottom-left-radius: 3px;
}

.fcard-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 23, 29, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

.fcard-send {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b6bff, #9a6bff);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.fcard--rx {
  right: 4.5%;
  top: 20%;
  width: 274px;
  transform: rotate(4deg);
  animation-name: floatB;
  animation-duration: 12s;
}

.ficon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.ficon--violet {
  background: linear-gradient(140deg, #efeaff, #ded4ff);
  color: #6d5cff;
}

.ficon--blue {
  background: linear-gradient(140deg, #e3edff, #ceddff);
  color: #3c74e0;
}

.ficon--mint {
  background: linear-gradient(140deg, #e2faf3, #c9f2e7);
  color: #1e9e82;
}

.mini-rx {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-rx li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f7f5fc;
}

.mini-rx li span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.mini-rx li em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--muted);
}

.rx-stamp {
  margin-top: 11px;
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid rgba(88, 172, 138, 0.4);
  border-radius: 5px;
  color: #3b9370;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.fcard--doctor {
  left: 6%;
  bottom: 12%;
  width: 248px;
  transform: rotate(3deg);
  animation-name: floatC;
  animation-duration: 11s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.doc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(150deg, #ffb58a, #ef8fb4 55%, #a08dff);
  box-shadow: 0 8px 20px rgba(239, 143, 180, 0.3);
  margin-bottom: 6px;
}

.doc-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.doc-dept {
  font-size: 10.5px;
  color: var(--muted);
}

.doc-stars {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #f0a640;
}

.doc-stars em {
  font-style: normal;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 3px;
}

.fcard--report {
  right: 5.5%;
  bottom: 14%;
  width: 282px;
  transform: rotate(-3.4deg);
  animation-name: floatA;
  animation-duration: 13s;
}

.mini-bars {
  margin-top: 14px;
  height: 62px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 0 4px 0;
  border-bottom: 1px solid rgba(23, 23, 29, 0.08);
}

.mini-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, rgba(122, 107, 255, 0.22), rgba(122, 107, 255, 0.74));
  animation: barGrow 1.4s var(--ease) both;
  transform-origin: bottom;
}

.mini-bars i:nth-child(2n) {
  background: linear-gradient(to top, rgba(67, 207, 193, 0.22), rgba(67, 207, 193, 0.8));
}

@keyframes barGrow {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
}

.mini-note {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-soft);
}

.mini-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0b04c;
}

.fcard--delivery {
  left: 19%;
  bottom: 5%;
  width: 252px;
  transform: rotate(-2deg);
  animation-name: floatB;
  animation-duration: 9s;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  opacity: 0.94;
}

.delivery-track {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(23, 23, 29, 0.08);
}

.delivery-track i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #50cfae, #7ad9c3);
}

.delivery-track b {
  position: absolute;
  left: 60%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #4ecfae;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(78, 207, 174, 0.16);
}

.fcard--remind {
  right: 5.5%;
  top: 10%;
  width: 238px;
  transform: rotate(2.5deg);
  animation-name: floatC;
  animation-duration: 10.5s;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  opacity: 0.94;
}

.fcard--remind .bell {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 10px;
  background: #fff0f4;
  color: #e47098;
  flex-shrink: 0;
}

@keyframes floatA {
  from {
    transform: translate3d(0, 0, 0) rotate(-4.5deg);
  }
  to {
    transform: translate3d(0, -16px, 0) rotate(-3.6deg);
  }
}

@keyframes floatB {
  from {
    transform: translate3d(0, 0, 0) rotate(4deg);
  }
  to {
    transform: translate3d(6px, -13px, 0) rotate(3.2deg);
  }
}

@keyframes floatC {
  from {
    transform: translate3d(0, 0, 0) rotate(2.6deg);
  }
  to {
    transform: translate3d(-5px, -12px, 0) rotate(3.4deg);
  }
}

@media (max-width: 1200px) {
  .fcard--delivery,
  .fcard--remind {
    display: none;
  }

  .fcard--consult {
    width: 268px;
    left: 2.5%;
  }

  .fcard--rx {
    width: 252px;
    right: 2.5%;
  }

  .fcard--report {
    width: 262px;
    right: 3%;
  }

  .fcard--doctor {
    width: 230px;
    left: 4%;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 110px 22px 90px;
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(52px, 15vw, 88px);
    line-height: 1.06;
    letter-spacing: -0.06em;
  }

  .hero-sub {
    max-width: 340px;
    margin-top: 22px;
    font-size: 13.5px;
  }

  .hero-cta {
    height: 46px;
    margin-top: 28px;
    padding: 0 22px;
    font-size: 14px;
  }

  .hero-pill {
    height: 30px;
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .float-layer {
    display: none;
  }

  .fcard--consult {
    left: -64px;
    top: 16%;
    width: 224px;
    opacity: 0.55;
    filter: blur(0.3px);
  }

  .fcard--report {
    right: -74px;
    bottom: 15%;
    width: 230px;
    opacity: 0.5;
  }

  .fcard--doctor,
  .fcard--rx,
  .fcard--delivery,
  .fcard--remind {
    display: none;
  }

  .fchat .bubble:nth-child(3),
  .mini-bars {
    display: none;
  }

  .fcard--report .mini-note {
    margin-top: 6px;
  }

  .scroll-cue {
    bottom: 22px;
    font-size: 10px;
  }

  .scroll-cue span {
    display: none;
  }
}
