/* ============ Homepage specific styles ============ */

/* Hero with animated video background */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; color: #fff;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(15,30,18,.86) 0%, rgba(30,49,32,.7) 40%, rgba(214,69,127,.45) 100%);
}
[data-theme="light"] .hero-overlay { background: linear-gradient(110deg, rgba(15,30,18,.78) 0%, rgba(30,49,32,.6) 40%, rgba(214,69,127,.38) 100%); }
.hero-content { max-width: 760px; padding: 40px 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 30px; font-size: .82rem;
  font-weight: 600; letter-spacing: .5px; margin-bottom: 22px; backdrop-filter: blur(6px);
  animation: fadeUp .8s ease both;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.08; margin-bottom: 18px; }
.hero h1 .line { display: block; opacity: 0; transform: translateY(40px); animation: lineUp .9s cubic-bezier(.22,1,.36,1) forwards; }
.hero h1 .line:nth-child(1){ animation-delay:.2s } .hero h1 .line:nth-child(2){ animation-delay:.45s } .hero h1 .line:nth-child(3){ animation-delay:.7s }
.typed-wrap { font-size: clamp(1.1rem,2.4vw,1.6rem); font-weight: 600; min-height: 1.6em; margin-bottom: 18px; animation: fadeUp 1s ease .9s both; }
.typed-text { background: linear-gradient(90deg,#ffd0e2,#97ad52); -webkit-background-clip: text; background-clip: text; color: transparent; }
.typed-cursor { display: inline-block; width: 3px; background: var(--pink-400); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { font-size: 1.1rem; color: #e7f1e7; max-width: 560px; margin-bottom: 30px; animation: fadeUp 1s ease 1.1s both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 1s ease 1.3s both; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; animation: fadeUp 1s ease 1.5s both; }
.hero-stat .num { font-size: 2rem; font-weight: 800; font-family: 'Poppins'; }
.hero-stat .lbl { font-size: .82rem; color: #d7e6d7; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.4rem; animation: bob 1.6s ease infinite; }

@keyframes lineUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* floating leaves decoration */
.leaf-float { position: absolute; font-size: 1.6rem; opacity: .4; animation: floaty 9s ease-in-out infinite; z-index:-1; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(18deg); } }

/* Brand strip */
.brand-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 28px 0; }
.brand-strip .container { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.brand-strip .bs-label { color: var(--text-soft); font-weight: 600; font-size: .9rem; }
.brand-chip { font-family: 'Poppins'; font-weight: 800; font-size: 1.4rem; color: var(--green-700); letter-spacing: .5px; opacity: .75; transition: all .25s; }
[data-theme="dark"] .brand-chip { color: var(--olive-light); }
.brand-chip:hover { opacity: 1; transform: scale(1.06); color: var(--accent); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  display: flex; align-items: flex-end; padding: 18px; color: #fff; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .3s ease;
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,30,18,.85), transparent 70%); z-index: -1; }
.cat-card h4 { font-size: 1.05rem; }
.cat-card span { font-size: .78rem; opacity: .85; }

/* Feature highlights */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.feature-box { text-align: center; padding: 32px 22px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; }
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-soft); display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.6rem; color: var(--primary); }
.feature-box h4 { margin-bottom: 8px; }
.feature-box p { color: var(--text-soft); font-size: .9rem; }

/* CTA banner */
.cta-banner { background: var(--grad-main); border-radius: 28px; padding: 56px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta-banner p { opacity: .92; max-width: 560px; margin: 0 auto 26px; }
.cta-banner .deco { position: absolute; font-size: 9rem; opacity: .12; }

/* AI doctor promo */
.ai-promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--grad-soft); border-radius: 28px; padding: 48px; border: 1px solid var(--border); }
.ai-promo h2 { font-size: 2rem; margin-bottom: 14px; }
.ai-promo p { color: var(--text-soft); margin-bottom: 20px; }
.ai-promo .ai-visual { font-size: 7rem; text-align: center; }
.ai-promo ul { list-style: none; margin-bottom: 22px; }
.ai-promo li { padding: 6px 0; color: var(--text-soft); }
.ai-promo li i { color: var(--primary); margin-right: 8px; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 22px; }
.testi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.testi-card .stars { color: #f5a623; margin-bottom: 12px; }
.testi-card p { font-style: italic; color: var(--text-soft); margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-main); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi-author strong { display: block; font-size: .95rem; }
.testi-author small { color: var(--text-soft); }

@media (max-width: 860px) {
  .ai-promo { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .ai-promo ul { text-align: left; max-width: 320px; margin: 0 auto 22px; }
  .hero-stats { gap: 24px; }
}
