/* ============================================================
   HERO SLIDER  (extends hero-pro.css)
   ============================================================ */
.hx { --hx-dur: 7s; }
.hx-slides { position: relative; display: grid; }
.hx-slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .55s ease, visibility 0s linear .55s; }
.hx-slide.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .55s ease, visibility 0s; }
.hx-slide .hx-grid { min-height: 520px; }

/* staggered entrance */
.hx-slide .hx-copy > * { opacity: 0; transform: translateY(20px); transition: opacity .35s ease, transform .35s ease; }
.hx-slide.active .hx-copy > * { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.hx-slide.active .hx-copy > :nth-child(1) { transition-delay: .10s; } .hx-slide.active .hx-copy > :nth-child(2) { transition-delay: .18s; }
.hx-slide.active .hx-copy > :nth-child(3) { transition-delay: .28s; } .hx-slide.active .hx-copy > :nth-child(4) { transition-delay: .38s; }
.hx-slide.active .hx-copy > :nth-child(5) { transition-delay: .48s; }
.hx-slide .hx-visual { opacity: 0; transform: translateX(44px) scale(.97); transition: opacity .35s ease, transform .35s ease; }
.hx-slide.active .hx-visual { opacity: 1; transform: none; transition: opacity .8s ease .2s, transform .9s cubic-bezier(.2,.7,.2,1) .2s; }

.hx-grad { display: block; background: linear-gradient(90deg, var(--tmv-color-primary), var(--tmv-color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hx-slide:not(:first-child) .hx-title { font-size: clamp(2.2rem, 4vw, 3.5rem); }

/* ---------- tabs ---------- */
.hx-tabs { position: relative; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; background: #fff; border: 1px solid var(--tmv-color-border); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px -24px rgba(13,40,100,.2); overflow: hidden; }
.hx-tab { appearance: none; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 14px; align-items: center; padding: 1.3rem 1.5rem 1.4rem; transition: background .3s; }
.hx-tab + .hx-tab::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--tmv-color-border); }
.hx-tab:hover { background: #F7F9FC; }
.hx-tab:focus-visible, .hx-cb:focus-visible { outline: 2px solid var(--tmv-color-primary); outline-offset: -3px; }
.hx-tab .pi { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #F1F5FB; color: #7A8AA0; font-size: 1rem; transition: .3s; }
.hx-tab strong { font-family: var(--tmv-font-display); font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.25; color: var(--tmv-color-text-secondary); align-self: end; transition: color .3s; }
.hx-tab small { margin-top: .15rem; font-size: .8rem; color: #8896AA; align-self: start; }
.hx-tab.active { background: linear-gradient(180deg, rgba(9,88,217,.05), transparent); }
.hx-tab.active .pi { background: var(--tmv-color-primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(9,88,217,.7); }
.hx-tab.active strong { color: var(--tmv-color-dark); }
.hx-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.hx-tab .bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--tmv-gradient-primary); }
.hx-tab.active .bar i { animation: hxProg var(--hx-dur) linear forwards; }
.hx.paused .hx-tab.active .bar i { animation-play-state: paused; }
@keyframes hxProg { to { transform: scaleX(1); } }

.hx-ctrl { display: flex; align-items: center; gap: 8px; padding: 0 1.4rem; border-left: 1px solid var(--tmv-color-border); }
.hx-cb { appearance: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #D5DDE8; background: #fff; color: var(--tmv-color-dark); font-size: .74rem; cursor: pointer; transition: .25s; }
.hx-cb:hover { background: var(--tmv-color-primary); border-color: var(--tmv-color-primary); color: #fff; }

/* ---------- slide 2: classes ---------- */
.cls { padding: 1.15rem 1.25rem 1.25rem; min-height: 340px; display: flex; flex-direction: column; }
.cls .hx-head { margin-bottom: 1.1rem; }
.cls-row { display: flex; align-items: center; gap: .9rem; padding: .85rem .9rem; border: 1px solid #E9EEF5; border-radius: 14px; margin-bottom: .7rem; background: #fff; }
.cls-row .ci { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: .9rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.cls-row .cb { flex: 1; min-width: 0; } .cls-row b { display: block; font-size: .84rem; font-weight: 600; color: var(--tmv-color-dark); margin-bottom: .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls-row .tr { height: 6px; border-radius: 999px; background: #EDF1F6; overflow: hidden; } .cls-row .tr i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tmv-color-primary), var(--tmv-color-accent)); }
.hx-slide.active .cls-row .tr i { animation: hxGrow 1.4s .5s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes hxGrow { from { width: 0 !important; } }
.cls-row em { font-style: normal; font-family: var(--tmv-font-mono); font-size: .74rem; font-weight: 600; color: #56657A; }
.cls-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.cls-chips span { font-family: var(--tmv-font-mono); font-size: .68rem; padding: .28rem .62rem; border-radius: 999px; background: #F2F5FA; border: 1px solid #E6ECF4; color: #56657A; }

/* ---------- slide 3: product fan ---------- */
.hx-v3 { display: grid; place-items: center; min-height: 440px; }
.hx-v3 .fan { position: relative; width: 100%; max-width: 520px; height: 400px; }
.pf { position: absolute; left: 50%; top: 50%; width: 224px; height: 290px; margin: -145px 0 0 -112px; background: #fff; border: 1px solid rgba(13,17,23,.08); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 70px -28px rgba(13,40,100,.45); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pf .pt { height: 140px; background: var(--g); display: grid; place-items: center; position: relative; overflow: hidden; }
.pf .pt::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.15); }
.pf .pi2 { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.96); color: var(--c); box-shadow: 0 16px 28px -12px rgba(0,0,0,.4); }
.pf .pb { padding: 1rem 1.1rem; } .pf .pb b { display: block; font-family: var(--tmv-font-display); font-size: .98rem; color: var(--tmv-color-dark); line-height: 1.25; }
.pf .pb span { display: block; font-family: var(--tmv-font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin: .3rem 0 .8rem; }
.pf .pb i { display: block; height: 7px; border-radius: 4px; background: #EDF1F6; margin-bottom: 7px; } .pf .pb i:last-child { width: 64%; }
.pf1 { transform: translateX(-168px) rotate(-8deg) scale(.9); z-index: 1; } .pf3 { transform: translateX(168px) rotate(8deg) scale(.9); z-index: 1; } .pf2 { transform: translateY(-6px); z-index: 2; }
.hx-slide.active .fan:hover .pf1 { transform: translateX(-184px) rotate(-11deg) scale(.9); } .hx-slide.active .fan:hover .pf3 { transform: translateX(184px) rotate(11deg) scale(.9); } .hx-slide.active .fan:hover .pf2 { transform: translateY(-16px); }

/* ---------- slide 4: map card ---------- */
.hx-v4 { display: grid; place-items: center; min-height: 440px; }
.mapcard { width: 100%; background: #fff; border: 1px solid rgba(13,17,23,.08); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(13,40,100,.28), 0 12px 24px -12px rgba(13,40,100,.18); }
.map { position: relative; height: 310px; background: #E8EEF7; overflow: hidden; background-image: linear-gradient(rgba(13,40,100,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(13,40,100,.04) 1px, transparent 1px); background-size: 34px 34px; }
.map .rd { position: absolute; background: #fff; box-shadow: 0 0 0 1px #D6E0EE; }
.map .r1 { left: 0; right: 0; top: 40%; height: 24px; } .map .r2 { top: 0; bottom: 0; left: 56%; width: 24px; } .map .r3 { left: -10%; width: 130%; top: 74%; height: 15px; transform: rotate(-24deg); }
.map .blk { position: absolute; border-radius: 14px; } .map .b1 { left: 7%; top: 9%; width: 36%; height: 24%; background: #D7EFE4; } .map .b2 { right: 6%; bottom: 8%; width: 26%; height: 26%; background: #DCE8FB; } .map .b3 { left: 9%; bottom: 10%; width: 30%; height: 18%; background: #F2E8D9; }
.map .pin { position: absolute; left: 56%; top: 40%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, var(--tmv-color-primary), #3B82F6); box-shadow: 0 14px 26px -8px rgba(9,88,217,.7); border: 3px solid #fff; }
.map .pin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(9,88,217,.5); animation: hxPing 2.2s ease-out infinite; }
@keyframes hxPing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.mi { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid #EDF1F6; }
.mi b { display: block; font-family: var(--tmv-font-display); font-size: .98rem; color: var(--tmv-color-dark); } .mi small { color: #8896AA; font-size: .76rem; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) { .hx-ctrl { padding: 0 1rem; } .hx-tab { padding: 1.2rem 1.1rem 1.3rem; column-gap: 11px; } }
@media (max-width: 991px) {
  .hx-slide .hx-grid { min-height: 0; }
  .hx-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 28px; }
  .hx-ctrl { display: none; }
  .hx-tab:nth-child(3)::before { display: none; } .hx-tab:nth-child(n+3) { border-top: 1px solid var(--tmv-color-border); }
}
@media (max-width: 767px) {
  .hx-slide .hx-visual { display: none; }
  .hx-slide .hx-title { font-size: 2.3rem !important; }
}
@media (max-width: 575px) {
  .hx-tab { grid-template-columns: 36px minmax(0,1fr); padding: .95rem .9rem 1.05rem; column-gap: 9px; }
  .hx-tab .pi { width: 36px; height: 36px; font-size: .85rem; } .hx-tab strong { font-size: .86rem; align-self: center; } .hx-tab small { display: none; } .hx-tab .pi { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-slide, .hx-slide * { transition: none !important; }
  .hx-tab.active .bar i { animation: none; transform: scaleX(1); }
}

/* keep floating cards from covering content */
.hx-slide:nth-child(2) .hx-f1, .hx-slide:nth-child(2) .hx-f2, .hx-slide:nth-child(4) .hx-f1, .hx-slide:nth-child(4) .hx-f2 { bottom: -16px; }
.hx-slide:nth-child(4) .hx-f1 { left: -10px; } .hx-slide:nth-child(4) .hx-f2 { right: 4px; }
.hx-slide:nth-child(2) .hx-f1 { left: -10px; } .hx-slide:nth-child(2) .hx-f2 { right: 4px; }
