/* Homepage behavior and native scrolling; keep legacy pages independent. */
.home-page .algo-home-grid { gap: 48px; }
@media (max-width: 1023.98px) {
  .home-page .algo-home-grid,
  .home-page .hero-bg > .container > .grid { grid-template-columns: minmax(0, 1fr); }
  .home-page .home-hero-grid { row-gap: 0; }
}
.home-page .hero-title { min-height: 2.2em; }
@media (max-width: 620px) {
  .home-page .home-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
}
@media (min-width: 1024px) {
  /* The first screen includes the contact strip and navigation above the hero. */
  .home-page .hero-bg { min-height: calc(100svh - var(--site-header-height) - 36px); }
  .home-page .hero-bg > .site-container { padding-block: clamp(24px, 4svh, 48px); }
  .home-page .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "copy visual" "copy stats";
    column-gap: clamp(32px, 4vw, 56px);
    row-gap: 20px;
  }
  .home-page .home-hero-copy { grid-area: copy; }
  .home-page .home-hero-visual { grid-area: visual; align-self: end; }
  .home-page .home-hero-visual img { width: 100%; max-height: min(48svh, 440px); object-fit: contain; animation: none; }
  .home-page .home-hero-badge { padding-block: 6px; margin-bottom: 16px; }
  .home-page .home-hero-badge > span:last-child { font-size: 12px; }
  .home-page .hero-title { font-size: clamp(36px, min(3.8vw, 5.6svh), 56px); line-height: 1.08; min-height: 0; margin-bottom: 16px; }
  .home-page .home-hero-description { font-size: 18px; line-height: 1.5; margin-bottom: 20px; }
  .home-page .home-hero-services { gap: 10px; margin-bottom: 20px; }
  .home-page .home-hero-services > a { padding: 12px; }
  .home-page .home-hero-services > a > .flex > div:first-child { width: 38px; height: 38px; flex-shrink: 0; }
  .home-page .home-hero-actions { gap: 12px; }
  .home-page .home-hero-actions > a { box-sizing: border-box; min-height: 50px; padding: 10px 24px; font-size: 16px; line-height: 24px; }
  .home-page .home-hero-stats { grid-area: stats; align-self: start; justify-content: space-around; gap: 20px; padding-top: 18px; padding-right: clamp(0px, calc(1600px - 100vw), 96px); margin-top: 0; }
  .home-page .home-hero-stats .text-3xl { font-size: 26px; line-height: 1.2; }
  .home-page .home-hero-stats .text-sm { font-size: 13px; }
  .home-page .home-hero-scroll { bottom: 8px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .home-page .hero-bg > .site-container { padding-block: 16px; }
  .home-page .home-hero-badge { padding-block: 4px; margin-bottom: 10px; }
  .home-page .hero-title { font-size: clamp(32px, min(3.5vw, 5.5svh), 40px); margin-bottom: 12px; }
  .home-page .home-hero-description { font-size: 16px; line-height: 1.45; margin-bottom: 14px; }
  .home-page .home-hero-services { gap: 8px; margin-bottom: 14px; }
  .home-page .home-hero-services > a { padding: 8px 12px; }
  .home-page .home-hero-services > a > .flex > div:first-child { width: 32px; height: 32px; }
  .home-page .home-hero-actions > a { min-height: 44px; padding: 8px 20px; font-size: 15px; line-height: 24px; }
  .home-page .home-hero-stats { padding-top: 12px; }
}
.home-page img[src$="logo-web.png"] { width: auto; }
.home-page #sliderDots { position: relative; z-index: 20; }
.home-page [hidden] { display: none !important; }
.home-page .hero-title .typewriter-highlight { animation: none; }
.home-page .hero-bg { animation: none; }
.home-page #mobile-menu { visibility: hidden; }
.home-page #mobile-menu.active { visibility: visible; }
.home-page #navbar .group:focus-within > div { opacity: 1; visibility: visible; transform: none; }
.home-page .home-desktop-nav { gap: 22px; font-size: 14px; }
.home-page .home-desktop-nav > :not([hidden]) ~ :not([hidden]) { margin-inline: 0; }
@media (max-width: 1199px) {
  .home-page .home-desktop-nav { display: none; }
  .home-page #mobile-menu-btn { display: block; }
}
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid #eba71d; outline-offset: 4px; }
.home-page .case-studies-swiper { overflow: visible; }
.home-page #case-studies-wrapper { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #eba71d #172045; padding: 10px 0 22px; }
.home-page .case-study-card { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; scroll-snap-align: start; }
.home-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 14px; color: #c6cce0; font-size: 12px; margin: 20px 0 0; }
.home-carousel-controls button { width: 42px; height: 42px; border: 1px solid #ffffff40; border-radius: 50%; color: #f6ce7a; font-size: 21px; }
.home-carousel-controls button:hover { background: #ffffff10; }
.home-chat-row { display: flex; margin-top: 10px; }
.home-chat-row p { padding: 10px 14px; max-width: 85%; background: white; border: 1px solid #eceef1; border-radius: 16px 16px 16px 3px; color: #374151; font-size: 14px; }
.home-chat-user { justify-content: flex-end; }
.home-chat-user p { color: white; background: #0891b2; border: 0; border-radius: 16px 16px 3px 16px; }
.home-feed-item { color: #d4d6e2; font-size: 13px; margin-top: 6px; }
.home-chat-launch { position: fixed; right: 20px; bottom: 104px; z-index: 40; background: #12834f; color: white; padding: 13px 18px; border-radius: 30px; box-shadow: 0 5px 20px #0002; font-size: 13px; font-weight: 600; }
.home-chat-fallback { position: fixed; right: 20px; bottom: 158px; z-index: 41; background: white; color: #11173f; padding: 14px 18px; border-radius: 8px; box-shadow: 0 5px 20px #0003; font-size: 13px; }
.home-chat-fallback a { text-decoration: underline; }
.home-page .ecom-orb, .home-page .ecom-card-glow, .home-page .ecom-glow, .home-page .ecom-shimmer, .home-page .ecom-arrow, .home-page .ecom-stat, .home-page .ecom-float-1, .home-page .ecom-float-2, .home-page .chatbot-orb { animation-play-state: paused; }
.home-page .home-in-view .ecom-orb, .home-page .home-in-view .ecom-card-glow, .home-page .home-in-view .ecom-glow, .home-page .home-in-view .ecom-shimmer, .home-page .home-in-view .ecom-arrow, .home-page .home-in-view .ecom-stat, .home-page .home-in-view .ecom-float-1, .home-page .home-in-view .ecom-float-2, .home-page .home-in-view .chatbot-orb { animation-play-state: running; }
@media (max-width: 1023px) { .home-page .case-study-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 767px) {
  .home-page .case-study-card { flex-basis: calc((100% - 16px) / 2); }
  .home-chat-launch { right: 12px; bottom: 83px; padding: 11px 14px; }
  .home-chat-fallback { right: 12px; bottom: 135px; }
  .home-page .float-animation, .home-page .pulse-glow, .home-page .whatsapp-wobble { animation: none; }
}
@media (max-width: 479px) { .home-page .case-study-card { flex-basis: 80%; } }
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
