/* =========================================================
   Homepage: product slider tabs + animated hero image
   ========================================================= */

/* ---- 2. Product slider tabs ---- */
.ps-tabs {
  display: flex; justify-content: center; gap: 10px; margin: 30px auto 0; padding: 4px;
  max-width: 980px;
}
.ps-tab {
  --c: #0e9f8e;
  position: relative; overflow: hidden; flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 14px 15px; min-height: 58px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--heading);
  transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease, background .25s ease;
}
.ps-tab img { width: 28px; height: 28px; flex: none; }
.ps-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-tab:hover { transform: translateY(-2px); border-color: var(--c); }
.ps-tab.is-active {
  border-color: var(--c); box-shadow: 0 10px 24px rgba(15, 39, 68, 0.10);
  background: linear-gradient(180deg, #fff, #fff) padding-box;
}
.ps-tab.is-active span { color: var(--c); filter: brightness(.8); }
.ps-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--c); border-radius: 0 4px 4px 0; }
.ps-tab.is-active .ps-bar { width: 100%; opacity: .25; }
.ps-tabs.is-running .ps-tab.is-active .ps-bar { opacity: 1; width: 0; animation: psProgress 6.5s linear forwards; }
.ps-tabs.is-paused .ps-tab.is-active .ps-bar,
.ps-tabs.is-offscreen .ps-tab.is-active .ps-bar { animation-play-state: paused; }
@keyframes psProgress { from { width: 0 } to { width: 100% } }

/* slide content */
.ps-ticks { list-style: none; margin: 0 0 22px; padding: 0; }
.ps-ticks li {
  position: relative; padding: 6px 0 6px 32px; font-size: 16px; font-weight: 600; color: var(--heading);
}
.ps-ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230e9f8e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.product-slide .btn span { display: inline-block; transition: transform .2s ease; }
.product-slide .btn:hover span { transform: translateX(4px); }
/* slide entrance */
.owl-products .owl-item.active .product-slide .col-lg-6:first-child > * { animation: psIn .6s cubic-bezier(.16,1,.3,1) both; }
.owl-products .owl-item.active .product-slide .col-lg-6:first-child > *:nth-child(2) { animation-delay: .06s; }
.owl-products .owl-item.active .product-slide .col-lg-6:first-child > *:nth-child(3) { animation-delay: .12s; }
.owl-products .owl-item.active .product-slide .col-lg-6:first-child > *:nth-child(4) { animation-delay: .18s; }
@keyframes psIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

@media (max-width: 991.98px) {
  .ps-tabs { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 4px 16px 8px; }
  .ps-tabs::-webkit-scrollbar { display: none; }
  .ps-tab { flex: 0 0 auto; }
  .product-slide .ps-ticks { display: inline-block; text-align: left; }
}
@media (max-width: 575.98px) {
  .ps-tab { padding: 10px 12px 13px; min-height: 50px; font-size: 13.5px; gap: 8px; }
  .ps-tab img { width: 24px; height: 24px; }
  .ps-ticks li { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .owl-products .owl-item.active .product-slide .col-lg-6:first-child > * { transition: none !important; animation: none !important; }
  .ps-tab.is-active .ps-bar { opacity: 1; width: 100%; animation: none !important; }
}

/* animated hero dashboard image */
.hero-art-main { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }

/* =========================================================
   Overview video section (self-hosted MP4, plays on tap)
   ========================================================= */
.home-video {
  position: relative; overflow: hidden; padding: 76px 0; color: #fff;
  background:
    radial-gradient(700px 480px at 92% 0%, rgba(245, 158, 11, 0.18), transparent 60%),
    radial-gradient(640px 520px at 0% 100%, rgba(14, 159, 142, 0.35), transparent 60%),
    linear-gradient(135deg, #0b6f66 0%, #12355b 58%, #0a1f38 100%);
}
html[data-theme="dark"] .home-video {
  background:
    radial-gradient(700px 480px at 92% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
    linear-gradient(135deg, #0a4d47 0%, #0f2a47 58%, #08172a 100%);
}
.hv-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.hv-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); animation: hvPulse 1.8s ease-out infinite; }
.home-video h3 {
  margin: 18px 0 14px; color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.01em;
}
.home-video h3 em { font-style: normal; color: #fbbf24; }
.home-video p { color: rgba(255, 255, 255, 0.86); font-size: 17px; line-height: 1.65; max-width: 560px; margin: 0 0 22px; }
.hv-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hv-list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700; font-size: 14.5px; color: #fff;
}
.hv-list img { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: #fff; }
.hv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hv-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px;
  border-radius: 999px; font-weight: 700; font-size: 14.5px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none !important; transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.hv-btn:hover { transform: translateY(-2px); }
.hv-btn-amber { background: #f59e0b; color: #1f1300 !important; box-shadow: 0 12px 26px rgba(245, 158, 11, 0.35); }
.hv-btn-amber:hover { filter: brightness(1.06); }
.hv-btn-ghost { color: #fff !important; border: 2px solid rgba(255, 255, 255, 0.7); }
.hv-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* phone frame: sized to fit the screen in portrait and landscape */
.hv-media { display: flex; justify-content: center; }
.hv-phone {
  position: relative; width: 300px; width: min(300px, 78vw, calc((100vh - 110px) * 0.5625)); min-width: 200px;
  padding: 10px; border-radius: 36px; background: #0b1626;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.hv-phone video { display: block; width: 100%; height: auto; border-radius: 27px; background: #12355b; }
.hv-play {
  position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; border: 0; padding: 0; cursor: pointer;
  border-radius: 27px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5));
  color: #fff; -webkit-tap-highlight-color: transparent;
}
.hv-play:focus { outline: none; }
.hv-play:focus-visible { box-shadow: 0 0 0 3px #fbbf24; }
.hv-play-btn {
  position: absolute; top: 72%; left: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #f59e0b; color: #1f1300;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); animation: hvPulse 2s ease-out infinite; transition: transform .2s ease;
}
.hv-play-btn svg { width: 34px; height: 34px; margin-left: 4px; }
.hv-play:hover .hv-play-btn { transform: scale(1.08); }
.hv-play-label {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-weight: 700; font-size: 14px;
}
.hv-phone.is-playing .hv-play { display: none; }
@keyframes hvPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 70% { box-shadow: 0 0 0 18px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@media (prefers-reduced-motion: reduce) { .hv-dot, .hv-play-btn { animation: none; } }

/* tablets and phones: stack, centre */
@media (max-width: 991px) {
  .home-video { padding: 56px 0; }
  .hv-grid { grid-template-columns: 1fr; gap: 0; text-align: center; }
  /* phones/tablets: heading, then the video, then products and buttons */
  .hv-copy { display: contents; }
  .hv-eyebrow { order: 1; justify-self: center; }
  .home-video h3 { order: 2; }
  .home-video p { order: 3; }
  .hv-media { order: 4; margin: 6px 0 30px; }
  .hv-list { order: 5; }
  .hv-actions { order: 6; }
  .home-video p { margin-left: auto; margin-right: auto; }
  .hv-list, .hv-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .home-video { padding: 44px 0; }
  .home-video p { font-size: 16px; }
  .hv-list li { font-size: 13.5px; padding-right: 12px; }
  .hv-list img { width: 26px; height: 26px; }
  .hv-actions .hv-btn { flex: 1 1 140px; padding: 12px 18px; }
  .hv-play-btn { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
}
