/* Homepage: design & development services (sections/solutionsGrid.blade.php).
   Service list + live browser scenes. Brand palette, 16px+ radii, text >= 13px. */
.hs-section { position: relative; padding: 90px 0 70px; background: radial-gradient(ellipse at 85% 10%, #f1eeff, transparent 45%), radial-gradient(ellipse at 10% 90%, #eaf7ff, transparent 45%), #fff; color: #10155c; direction: rtl; text-align: right; overflow: hidden; }
.hs-section *, .hs-section *::before, .hs-section *::after { box-sizing: border-box; }
.hs-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.hs-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 16px; border-radius: 30px; background: #ebe6ff; color: #6045e0; font-size: 13px; font-weight: 600; }
.hs-section h2 { margin: 0 0 14px; color: #10155c; font-size: clamp(26px, 2.5vw, 38px); font-weight: 800; line-height: 1.6; letter-spacing: -.5px; }
.hs-section h2 span { color: #7057e8; }
.hs-head p { margin: 0; color: #6f7693; font-size: 15px; line-height: 2.05; }

.hs-body { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hs-tone-violet { --t: #7057e8; --w: #f1eeff; }
.hs-tone-coral { --t: #f45158; --w: #ffeff0; }
.hs-tone-yellow { --t: #d9a90c; --w: #fff7dc; }
.hs-tone-mint { --t: #2fb889; --w: #e8f9f2; }

/* Service list */
.hs-list { display: grid; gap: 10px; }
.hs-item { border: 1px solid #e8ecf6; border-radius: 18px; background: #fff; transition: border-color .3s, box-shadow .3s, background .3s; }
.hs-item.is-active { border-color: transparent; background: linear-gradient(135deg, var(--w), #fff 70%); box-shadow: 0 18px 40px -26px #5b6fb080, 0 0 0 1.5px var(--t); }
.hs-item-head { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; background: none; color: inherit; font: inherit; text-align: right; cursor: pointer; }
.hs-item-head:focus-visible { outline: 3px solid #8b78ee; outline-offset: 2px; border-radius: 16px; }
.hs-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--w); color: var(--t); font-size: 20px; transition: background .3s, color .3s; }
.hs-item.is-active .hs-icon { background: var(--t); color: #fff; }
.hs-no { color: #a3a9c6; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.hs-section .hs-item-head h3 { margin: 0; color: #10155c; font-size: 17px; font-weight: 700; line-height: 1.7; }
.hs-progress { position: absolute; right: 18px; left: 18px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.hs-progress i { display: block; height: 100%; width: 100%; background: var(--t); transform: scaleX(0); transform-origin: right; }
.hs-item.is-active .hs-progress { background: #0000000d; }
.hs-item.is-active .hs-progress i { animation: hs-fill var(--hs-dur, 5.5s) linear forwards; }
.hs-body.is-paused .hs-progress i, .hs-body.is-static .hs-progress i { animation-play-state: paused; }
.hs-body.is-static .hs-item.is-active .hs-progress i { animation: none; transform: scaleX(1); }
.hs-item-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.hs-item-body > div { min-height: 0; overflow: hidden; }
.hs-item.is-active .hs-item-body { grid-template-rows: 1fr; }
.hs-section .hs-item-body p { margin: 0; padding: 0 18px; color: #6f7693; font-size: 14px; line-height: 2; }
.hs-item-body .hs-link { padding: 0 18px 10px; }
.hs-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #7057e8; font-size: 14px; font-weight: 600; text-decoration: none; }
.hs-link:hover { color: #46319e; text-decoration: none; }
.hs-link i { transition: transform .2s; }
.hs-link:hover i { transform: translateX(-3px); }

/* Stage */
.hs-stage { position: relative; container-type: inline-size; }
.hs-browser { position: relative; border-radius: 2.4cqw; overflow: hidden; background: #fff; box-shadow: 0 4cqw 8cqw -4cqw #3b4f9a66, 0 0 0 1px #e1e6f7; }
.hs-bar { display: flex; align-items: center; gap: 1cqw; padding: 1.8cqw 2.2cqw; background: #10155c; direction: ltr; }
.hs-bar > i { width: 1.5cqw; aspect-ratio: 1; border-radius: 50%; background: #f45158; }
.hs-bar > i:nth-child(2) { background: #f2c21a; }
.hs-bar > i:nth-child(3) { background: #42d3a1; }
.hs-url { display: inline-flex; align-items: center; gap: 1cqw; margin-left: 2.4cqw; padding: .4cqw 2.4cqw; border-radius: 30px; background: #ffffff1f; color: #dfe3ff; font-size: clamp(13px, 2cqw, 15px); line-height: 1.6; }
.hs-url b { color: #42d3a1; }
.hs-url em { font-style: normal; }
.hs-screen { position: relative; aspect-ratio: 1.72; background: #fff; }
.hs-scene { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2.2cqw; padding: 2.6cqw 3.4cqw; opacity: 0; visibility: hidden; transform: translateY(2cqw); transition: opacity .45s, transform .45s, visibility 0s .45s; }
.hs-stage[data-scene="company"] .hs-scene--company, .hs-stage[data-scene="store"] .hs-scene--store,
.hs-stage[data-scene="portal"] .hs-scene--portal, .hs-stage[data-scene="clinic"] .hs-scene--clinic { opacity: 1; visibility: visible; transform: none; transition: opacity .45s, transform .45s; }
.hs-nav { display: flex; align-items: center; gap: 1.6cqw; }
.hs-logo { width: 4cqw; aspect-ratio: 1; border-radius: 1.2cqw; background: linear-gradient(135deg, var(--sc, #7057e8), #4b8cf0); }
.hs-word { margin-left: auto; color: #10155c; font-size: clamp(13px, 2.2cqw, 17px); font-weight: 800; }
.hs-nav > i { width: 6cqw; height: 1.2cqw; border-radius: 6px; background: #e1e5f3; }
.hs-ln { display: block; width: 100%; height: 1.3cqw; border-radius: 6px; background: #dfe3f2; }
.hs-ln--s { width: 65%; }
.hs-btn { display: inline-grid; place-items: center; padding: .4cqw 2.6cqw; border-radius: 30px; background: var(--sc, #7057e8); color: #fff; font-size: clamp(13px, 1.9cqw, 15px); font-weight: 700; line-height: 1.8; }
.hs-chip { position: absolute; padding: .4cqw 2cqw; border-radius: 30px; background: #10155c; color: #fff; font-size: clamp(13px, 1.8cqw, 14px); font-style: normal; font-weight: 600; line-height: 1.8; }
.hs-toast { position: absolute; z-index: 3; bottom: 4cqw; left: 50%; display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.2cqw 2.6cqw; border-radius: 30px; background: #10155c; color: #fff; font-size: clamp(13px, 1.9cqw, 15px); font-weight: 700; white-space: nowrap; box-shadow: 0 2cqw 4cqw -1.6cqw #10155c99; opacity: 0; transform: translate(-50%, 2cqw); }
.hs-toast b { color: #42d3a1; }

/* Company scene */
.hs-scene--company { --sc: #7057e8; }
.hs-co-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: center; padding: 3cqw; border-radius: 2cqw; background: linear-gradient(120deg, #f4f1ff, #eef6ff); }
.hs-co-hero > div { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4cqw; }
.hs-co-hero strong { color: #10155c; font-size: clamp(13px, 3cqw, 24px); font-weight: 800; line-height: 1.5; }
.hs-co-art { position: relative; aspect-ratio: 1.9; border-radius: 1.6cqw; overflow: hidden; background: linear-gradient(160deg, #8f7cf3, #5d8df0); }
.hs-co-art i { position: absolute; border-radius: 50%; }
.hs-co-art i:first-child { top: 18%; right: 18%; width: 22%; aspect-ratio: 1; background: #f2c21a; }
.hs-co-art i:last-child { bottom: -70%; left: -8%; width: 62%; aspect-ratio: 1; background: #42d3a1; }
.hs-co-team { position: relative; display: flex; align-items: center; gap: 2cqw; padding-top: 1cqw; }
.hs-co-team span { width: 7cqw; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, #d9d2ff, #b9adff); border: .5cqw solid #fff; box-shadow: 0 1cqw 2cqw -1cqw #7057e880; }
.hs-co-team span:nth-child(2) { background: linear-gradient(160deg, #ffd3d5, #ff9ba0); }
.hs-co-team span:nth-child(3) { background: linear-gradient(160deg, #c9f2e2, #7fe0bd); }
.hs-co-team span:nth-child(4) { background: linear-gradient(160deg, #ffefb8, #f6d45c); }
.hs-co-team .hs-chip { position: static; margin-right: auto; }
.hs-stage[data-scene="company"] .hs-co-team span { animation: hs-pop .5s backwards; }
.hs-stage[data-scene="company"] .hs-co-team span:nth-child(2) { animation-delay: .12s; }
.hs-stage[data-scene="company"] .hs-co-team span:nth-child(3) { animation-delay: .24s; }
.hs-stage[data-scene="company"] .hs-co-team span:nth-child(4) { animation-delay: .36s; }
.hs-stage[data-scene="company"] .hs-co-art i:first-child { animation: hs-rise .9s .3s backwards; }

/* Store scene */
.hs-scene--store { --sc: #f45158; }
.hs-cart { position: relative; display: grid; place-items: center; width: 5cqw; aspect-ratio: 1; border-radius: 1.4cqw; background: #ffeff0; color: #f45158; font-size: clamp(13px, 2.2cqw, 18px); }
.hs-cart em { position: absolute; top: -1.2cqw; left: -1.2cqw; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 20px; background: #f45158; color: #fff; font-size: 13px; font-style: normal; font-weight: 700; }
.hs-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2cqw; }
.hs-product { display: flex; flex-direction: column; gap: 1.2cqw; padding: 1.6cqw; border-radius: 1.8cqw; background: #fff; border: 1px solid #eef1fa; box-shadow: 0 1.4cqw 3cqw -2cqw #5b6fb066; }
.hs-product i { display: block; aspect-ratio: 1.1; border-radius: 1.2cqw; background: linear-gradient(160deg, #ffe0e2, #ffb3b7); }
.hs-product:nth-child(2) i { background: linear-gradient(160deg, #e8e3ff, #b9adff); }
.hs-product:nth-child(3) i { background: linear-gradient(160deg, #d6f6ea, #8be3c2); }
.hs-product em { height: 1.2cqw; border-radius: 6px; background: #e1e5f3; }
.hs-product b { color: #10155c; font-size: clamp(13px, 1.9cqw, 15px); font-weight: 800; }
.hs-stage[data-scene="store"] .hs-product--pick { animation: hs-pick 1.1s .7s both; }
.hs-stage[data-scene="store"] .hs-cart { animation: hs-bump .4s 1.5s both; }
.hs-stage[data-scene="store"] .hs-toast--store { animation: hs-toast 3.4s 1.6s both; }

/* Portal scene */
.hs-scene--portal { --sc: #d9a90c; }
.hs-cal { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3cqw; padding: 2.6cqw; border-radius: 2cqw; background: #fffaf0; border: 1px solid #f6ead0; }
.hs-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.2cqw; }
.hs-cal-grid span { aspect-ratio: 1; border-radius: 1cqw; background: #fff; border: 1px solid #f1e3bf; }
.hs-cal-grid .hs-cal-off { background: #f3f4f8; border-color: #eceef5; }
.hs-slots { display: flex; flex-direction: column; gap: 1.2cqw; }
.hs-slots span { padding: .6cqw 1.6cqw; border-radius: 1.2cqw; background: #fff; border: 1px solid #f1e3bf; color: #6f7693; font-size: clamp(13px, 1.9cqw, 15px); font-weight: 600; text-align: center; direction: ltr; }
.hs-stage[data-scene="portal"] .hs-cal-pick { animation: hs-mark-y .5s .7s both; }
.hs-stage[data-scene="portal"] .hs-slot-pick { animation: hs-slot .5s 1.3s both; }
.hs-stage[data-scene="portal"] .hs-toast--portal { animation: hs-toast 3.2s 1.9s both; }

/* Clinic scene */
.hs-scene--clinic { --sc: #2fb889; }
.hs-doc { display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw; border-radius: 2cqw; background: linear-gradient(120deg, #e8f9f2, #f2fbff); }
.hs-doc-avatar { display: grid; place-items: center; width: 12cqw; aspect-ratio: 1; border-radius: 50%; background: #fff; color: #2fb889; font-size: clamp(16px, 5cqw, 36px); box-shadow: 0 1.4cqw 3cqw -1.6cqw #2fb88980; }
.hs-doc > div { display: flex; flex-direction: column; gap: 1cqw; flex: 1; }
.hs-doc strong { color: #10155c; font-size: clamp(13px, 2.6cqw, 20px); font-weight: 800; }
.hs-stars { color: #f2c21a; font-size: clamp(13px, 2.2cqw, 17px); letter-spacing: .3cqw; }
.hs-doc-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.hs-doc-slots span { padding: 1.2cqw; border-radius: 1.6cqw; border: 1px solid #d6f1e5; color: #4b5476; font-size: clamp(13px, 2cqw, 15px); font-weight: 600; text-align: center; }
.hs-stage[data-scene="clinic"] .hs-doc-pick { animation: hs-mark-g .5s .8s both; }
.hs-stage[data-scene="clinic"] .hs-toast--clinic { animation: hs-toast 3.2s 1.5s both; }

/* Floating tag outside the browser */
.hs-float { position: absolute; z-index: 4; left: 5cqw; bottom: -3.6cqw; display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 2.6cqw; border-radius: 30px; background: #fff; color: #10155c; font-size: clamp(13px, 2cqw, 15px); font-weight: 700; white-space: nowrap; box-shadow: 0 2.4cqw 5cqw -2cqw #3b4f9a66, 0 0 0 1px #edf0fa; animation: hs-float 5s ease-in-out infinite; }
.hs-float b { color: #f2c21a; }
.hs-float em { font-style: normal; }

/* "Build" block: copy + four pillars */
.hs-build { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; margin-top: 64px; padding: 36px; border-radius: 24px; background: linear-gradient(120deg, #f6f4ff, #f1f8ff); }
.hs-section .hs-build h3 { margin: 0 0 12px; color: #10155c; font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; line-height: 1.7; }
.hs-build h3 span { color: #7057e8; }
.hs-build p { margin: 0 0 14px; color: #6f7693; font-size: 14px; line-height: 2.05; }
.hs-build-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hs-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hs-pillars li { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px -22px #5b6fb080; color: #6f7693; font-size: 13px; line-height: 1.8; }
.hs-pillars i { margin-bottom: 6px; color: #7057e8; font-size: 22px; }
.hs-pillars li:nth-child(2) i { color: #f45158; }
.hs-pillars li:nth-child(3) i { color: #d9a90c; }
.hs-pillars li:nth-child(4) i { color: #2fb889; }
.hs-pillars strong { color: #10155c; font-size: 15px; }

@keyframes hs-fill { to { transform: scaleX(1); } }
@keyframes hs-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes hs-rise { from { opacity: 0; transform: translateY(60%); } }
@keyframes hs-pick { 0% { transform: none; } 35% { transform: translateY(-2cqw) scale(1.06); box-shadow: 0 3cqw 5cqw -2cqw #f4515866, 0 0 0 2px #f45158; } 100% { transform: none; box-shadow: 0 0 0 2px #f45158; } }
@keyframes hs-bump { 50% { transform: scale(1.3); } }
@keyframes hs-toast { 0% { opacity: 0; transform: translate(-50%, 2cqw); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes hs-mark-y { to { background: #f2c21a; border-color: #f2c21a; transform: scale(1.12); } }
@keyframes hs-slot { to { background: #10155c; border-color: #10155c; color: #fff; } }
@keyframes hs-mark-g { to { background: #2fb889; border-color: #2fb889; color: #fff; } }
@keyframes hs-float { 50% { transform: translateY(-1.2cqw); } }

@media (max-width: 991px) {
    .hs-section { padding: 64px 0 50px; }
    .hs-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hs-stage { order: -1; width: 100%; max-width: 620px; margin: 0 auto; }
    .hs-build { grid-template-columns: minmax(0, 1fr); padding: 28px; }
}
@media (max-width: 575px) {
    .hs-section { padding: 48px 0 40px; }
    .hs-section h2 { font-size: 25px; }
    .hs-head { margin-bottom: 28px; }
    .hs-head p { font-size: 14px; }
    .hs-item-head { padding: 14px; gap: 10px; }
    .hs-section .hs-item-head h3 { font-size: 15px; }
    .hs-no { display: none; }
    .hs-float { left: 3cqw; bottom: -5cqw; }
    .hs-build { margin-top: 40px; padding: 22px 16px; border-radius: 20px; }
    .hs-pillars li { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-section *, .hs-section *::before, .hs-section *::after { animation: none !important; transition: none !important; }
    .hs-toast { opacity: 1; transform: translate(-50%, 0); }
}
