/* ==========================================================
   HOME — interactive sections (below the hero)
   ========================================================== */

:root {
    --hs-cyan: #00B4F1;
    --hs-blue: #0081ad;
    --hs-deep: #006b90;
    --hs-ink: #1A1D21;
    --hs-mute: #64748B;
    --hs-soft: #F5F9FC;
    --hs-line: rgba(0, 129, 173, 0.14);
    --hs-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hs-cyan);
    margin-bottom: 18px;
}

.hs-tag::before {
    content: '';
    width: 32px;
    height: 2px;
    background: currentColor;
}

.hs-tag--center::after {
    content: '';
    width: 32px;
    height: 2px;
    background: currentColor;
}

.hs-h2 {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--hs-ink);
    margin: 0;
}

.hs-h2 b {
    color: var(--hs-cyan);
    font-weight: 700;
}

.hs-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--hs-mute);
    margin: 0;
}

/* Scroll reveal */
.hs-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s ease, transform 1s var(--hs-ease);
    transition-delay: calc(var(--d, 0) * 0.09s);
}

.hs-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Spotlight card effect (mouse-follow glow) */
.hs-spot {
    --mx: 50%;
    --my: 50%;
    position: relative;
    isolation: isolate;
}

.hs-spot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0, 180, 241, 0.14), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.hs-spot::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx) var(--my), var(--hs-cyan), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hs-spot:hover::before,
.hs-spot:hover::after,
.hs-spot:focus-visible::before,
.hs-spot:focus-visible::after {
    opacity: 1;
}

/* ==========================================================
   1. Statement — scroll-linked word reveal
   ========================================================== */

.hs-statement__heading {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -1px;
    color: var(--hs-ink);
    margin: 0;
    max-width: 860px;
}

.hs-words .hs-w {
    display: inline-block;
    opacity: 0.12;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.5s var(--hs-ease), color 0.4s ease;
}

.hs-words .hs-w.on {
    opacity: 1;
    transform: none;
}

.hs-words .hs-hl .hs-w.on {
    color: var(--hs-cyan);
}

/* TechRAQ diamond logo that lights up with scroll */
.hs-diamonds {
    position: absolute;
    right: 6%;
    top: 50%;
    width: 300px;
    height: 300px;
    transform: translateY(-50%) rotate(45deg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    pointer-events: none;
}

.hs-diamonds span {
    border-radius: 14px;
    border: 1.5px solid var(--hs-line);
    background: transparent;
    transition: background 0.6s ease, border-color 0.6s ease, transform 0.8s var(--hs-ease), box-shadow 0.6s ease;
}

.hs-diamonds span.on {
    background: linear-gradient(135deg, rgba(201, 196, 225, 0.85), rgba(0, 180, 241, 0.35));
    border-color: transparent;
    transform: scale(0.92);
    box-shadow: 0 14px 30px rgba(0, 129, 173, 0.12);
}

/* ==========================================================
   2. About — tilt visual + counters
   ========================================================== */

.hs-tilt {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    perspective: 1000px;
}

/* ==========================================================
   3. Services — spotlight bento grid
   ========================================================== */

.hs-svc {
    --tx: 0deg;
    --ty: 0deg;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--hs-line);
    color: var(--hs-ink);
    text-decoration: none;
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty));
    transition: transform 0.5s var(--hs-ease), box-shadow 0.4s ease;
}

.hs-svc:hover,
.hs-svc:focus-visible {
    color: var(--hs-ink);
    box-shadow: 0 26px 60px rgba(0, 129, 173, 0.14);
    outline: none;
}

.hs-svc__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: auto;
}

.hs-svc__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--hs-blue);
    background: linear-gradient(135deg, rgba(0, 180, 241, 0.12), rgba(201, 196, 225, 0.4));
    transition: transform 0.5s var(--hs-ease), background 0.4s ease, color 0.4s ease;
}

.hs-svc:hover .hs-svc__icon,
.hs-svc:focus-visible .hs-svc__icon {
    background: var(--hs-cyan);
    color: #fff;
}

/* service cards: no mouse-follow glow, just a steady lift + soft halo */
.hs-svc.hs-spot::before {
    background: radial-gradient(circle at 80% 15%, rgba(0, 180, 241, 0.14), transparent 55%);
}

/* border light that travels around the card on hover */
@property --hs-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.hs-svc.hs-spot::after {
    padding: 1.5px;
    background: conic-gradient(
        from var(--hs-angle),
        rgba(0, 180, 241, 0) 0deg,
        rgba(0, 180, 241, 0) 150deg,
        rgba(127, 220, 255, 0.35) 220deg,
        rgba(0, 180, 241, 0.85) 290deg,
        #00B4F1 320deg,
        rgba(0, 129, 173, 0.6) 345deg,
        rgba(0, 180, 241, 0) 360deg
    );
    /* runs continuously so hovering never restarts it from 0deg; only opacity toggles */
    animation: hsBorderSpin 4.5s linear infinite;
    transition: opacity 0.7s ease;
}

@keyframes hsBorderSpin {
    to { --hs-angle: 360deg; }
}

.hs-svc:hover {
    transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
    .hs-svc.hs-spot::after {
        animation: none;
    }
}

.hs-svc__idx {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 15px;
    color: #94a3b8;
}

.hs-svc h3 {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 26px 0 8px;
}

.hs-svc p {
    color: var(--hs-mute);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.hs-svc__go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hs-blue);
}

.hs-svc__go i {
    transition: transform 0.4s var(--hs-ease);
}

.hs-svc:hover .hs-svc__go i {
    transform: translateX(6px);
}

/* ==========================================================
   4. Process — scroll progress timeline
   ========================================================== */
.hs-process {
    --p: 0;
    position: relative;
    padding: 88px 0;
    background: #fff;
}

.hs-process__head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.hs-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hs-steps__track {
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--hs-line);
}

.hs-steps__fill {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hs-cyan), var(--hs-blue));
    transform-origin: left center;
    transform: scaleX(var(--p));
}

.hs-step {
    position: relative;
    text-align: center;
    padding: 0 10px;
}

.hs-step__dot {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #94a3b8;
    background: #fff;
    border: 2px solid var(--hs-line);
    transition: color 0.5s ease, border-color 0.5s ease, background 0.5s ease, transform 0.6s var(--hs-ease), box-shadow 0.5s ease;
}

.hs-step__num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #cbd5e1;
    transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.hs-step h4 {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 1.35rem;
    margin: 0 0 10px;
    color: #94a3b8;
    transition: color 0.5s ease;
}

.hs-step p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--hs-mute);
    opacity: 0.55;
    transition: opacity 0.5s ease;
    margin: 0;
}

.hs-step.on .hs-step__dot {
    color: #fff;
    background: linear-gradient(135deg, var(--hs-cyan), var(--hs-blue));
    border-color: transparent;
    transform: scale(1.06);
    box-shadow: 0 16px 34px rgba(0, 129, 173, 0.28);
}

.hs-step.on .hs-step__num {
    background: #fff;
    color: var(--hs-blue);
    box-shadow: 0 0 0 2px var(--hs-cyan), 0 6px 14px rgba(0, 129, 173, 0.25);
}
.hs-step.on h4 { color: var(--hs-ink); }
.hs-step.on p { opacity: 1; }

.hs-step:hover .hs-step__dot {
    transform: scale(1.12) rotate(-6deg);
}

/* ==========================================================
   6. Better — pinned scroll scene
   ========================================================== */
.hs-better {
    position: relative;
    height: 320vh;
    background: linear-gradient(160deg, var(--hs-blue) 0%, var(--hs-deep) 100%);
    color: #fff;
}

.hs-better__word {
    --f: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(5rem, 15vw, 13rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    white-space: nowrap;
    padding: 0 0.06em 0.22em 0;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85);
    background: linear-gradient(90deg, #fff 0%, #fff calc(var(--f) * 100%), transparent calc(var(--f) * 100%));
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease, transform 0.8s var(--hs-ease);
}

.hs-better__word.on {
    opacity: 1;
    transform: none;
}

.hs-better__word.past {
    opacity: 0;
    transform: translateY(-60px);
}

.hs-better__bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hs-better__bars i {
    display: block;
    width: 4px;
    height: 54px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.hs-better__bars i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hs-cyan);
    transform-origin: top;
    transform: scaleY(var(--f, 0));
}

/* ==========================================================
   7. Vision — word reveal + locations
   ========================================================== */
.hs-vision {
    position: relative;
    padding: 100px 0 92px;
    background: #fff;
    overflow: hidden;
}

@keyframes hsPing {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================
   8. Products — 3D tilt + glare
   ========================================================== */

.hs-prod {
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 50%;
    display: block;
    perspective: 1100px;
    text-decoration: none;
    color: #fff;
}

.hs-prod:hover,
.hs-prod:focus-visible {
    color: #fff;
}

.hs-prod h4 {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 2.2rem;
    margin: 40px 0 12px;
    transform: translateZ(40px);
}

.hs-prod p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin: 0 0 24px;
    transform: translateZ(30px);
}

/* ==========================================================
   9. Testimonials — swipeable deck
   ========================================================== */
.hs-voices {
    padding: 88px 0;
    background: var(--hs-soft);
    overflow: hidden;
}

.hs-voices__controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
}

.hs-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--hs-line);
    background: #fff;
    color: var(--hs-blue);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--hs-ease);
}

.hs-arrow:hover,
.hs-arrow:focus-visible {
    background: var(--hs-cyan);
    color: #fff;
    transform: scale(1.06);
    outline: none;
}

.hs-dots {
    display: flex;
    gap: 8px;
}

.hs-dots button {
    all: unset;
    cursor: pointer;
    width: 34px;
    height: 4px;
    border-radius: 4px;
    background: var(--hs-line);
    position: relative;
    overflow: hidden;
}

.hs-dots button i {
    position: absolute;
    inset: 0;
    background: var(--hs-cyan);
    transform-origin: left;
    transform: scaleX(0);
}

.hs-dots button.on i {
    transform: scaleX(var(--t, 1));
}

.hs-dots button:focus-visible {
    outline: 2px solid var(--hs-cyan);
    outline-offset: 3px;
}

.hs-deck {
    position: relative;
    height: 360px;
    max-width: 520px;
    margin-left: auto;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.hs-deck.is-dragging {
    cursor: grabbing;
}

.hs-quote {
    --k: 0;
    position: absolute;
    inset: 0;
    padding: 40px 40px 34px;
    border-radius: 26px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, var(--hs-blue), #00a3da);
    box-shadow: 0 30px 60px rgba(0, 129, 173, 0.25);
    transform: translate(calc(var(--k) * 26px), calc(var(--k) * 22px)) scale(calc(1 - var(--k) * 0.05)) rotate(calc(var(--k) * 2deg));
    z-index: calc(10 - var(--k));
    transition: transform 0.7s var(--hs-ease), opacity 0.5s ease, filter 0.5s ease;
    filter: saturate(calc(1 - var(--k) * 0.25)) brightness(calc(1 + var(--k) * 0.08));
}

.hs-quote:nth-child(2) { background: linear-gradient(145deg, #00a3da, var(--hs-cyan)); }
.hs-quote:nth-child(3) { background: linear-gradient(145deg, #1d6f9b, var(--hs-blue)); }

.hs-quote.is-out {
    transition: transform 0.45s ease-in, opacity 0.45s ease-in;
    opacity: 0;
}

.hs-quote > i {
    font-size: 38px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 18px;
}

.hs-quote blockquote {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 auto;
}

.hs-quote footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.hs-quote footer span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 17px;
}

.hs-quote footer h5 {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

.hs-quote footer p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hs-deck__hint {
    text-align: right;
    max-width: 520px;
    margin: 40px 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #94a3b8;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1199px) {
    .hs-diamonds {
        width: 220px;
        height: 220px;
        right: 3%;
        opacity: 0.6;
    }
}

@media (max-width: 991px) {
    .hs-statement,
    .hs-about,
    .hs-services,
    .hs-process,
    .hs-trust,
    .hs-vision,
    .hs-products,
    .hs-voices {
        padding: 64px 0;
    }

    .hs-diamonds {
        display: none;
    }

    .hs-steps {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-left: 4px;
    }

    .hs-steps__track {
        left: 40px;
        right: auto;
        top: var(--track-start, 0);
        bottom: var(--track-end, 0);
        width: 3px;
        height: auto;
    }

    .hs-steps__fill {
        transform-origin: top center;
        transform: scaleY(var(--p));
    }

    .hs-step {
        display: grid;
        grid-template-columns: 82px 1fr;
        gap: 22px;
        text-align: left;
        padding: 0;
    }

    .hs-step__dot {
        margin: 0;
    }

    .hs-better {
        height: 260vh;
    }

    .hs-better__bars {
        flex-direction: row;
    }

    .hs-better__bars i {
        width: 44px;
        height: 4px;
    }

    .hs-better__bars i::after {
        transform-origin: left;
        transform: scaleX(var(--f, 0));
    }

    .hs-deck {
        margin: 50px auto 0;
    }

    .hs-deck__hint {
        text-align: center;
        margin: 40px auto 0;
    }
}

@media (max-width: 575px) {

    .hs-deck {
        height: 400px;
    }

    .hs-quote {
        padding: 30px 26px 26px;
        transform: translate(calc(var(--k) * 12px), calc(var(--k) * 16px)) scale(calc(1 - var(--k) * 0.05));
    }

    .hs-better__word {
        -webkit-text-stroke-width: 1.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hs-reveal,
    .hs-words .hs-w {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hs-svc,
    .hs-tilt__inner,
    .hs-prod__card {
        transform: none !important;
    }

}

/* ==========================================================
   10. Ribbon — calm logo + capability marquee
   ========================================================== */
.hs-ribbon {
    position: relative;
    padding: 34px 0;
    background: #fff;
    border-top: 1px solid var(--hs-line);
    border-bottom: 1px solid var(--hs-line);
    overflow: hidden;
}

.hs-ribbon__row {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* drag / swipe to scroll (components.js): vertical swipes still scroll the page */
.hs-ribbon__row {
    touch-action: pan-y;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.hs-ribbon__row.is-dragging {
    cursor: grabbing;
}

.hs-ribbon__row img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.hs-ribbon__row + .hs-ribbon__row {
    margin-top: 22px;
}

.hs-ribbon__track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.hs-ribbon__set {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hs-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 48px;
}

.hs-logo img {
    max-height: 38px;
    width: auto;
    mix-blend-mode: multiply;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.hs-logo:hover img {
    filter: none;
    opacity: 1;
}

@media (max-width: 767px) {
    .hs-ribbon {
        padding: 26px 0;
    }

    .hs-logo {
        height: 40px;
        padding: 0 28px;
    }

    .hs-logo img {
        max-height: 30px;
    }

}
