/* NextView Inside — visual fidelity / performance layer */
:root {
    --ease-out: cubic-bezier(.22,1,.36,1);
    --ease-smooth: cubic-bezier(.65,0,.35,1);
    --header-compact: 76px;
}

.site-header {
    transition: height .35s var(--ease-out),box-shadow .35s ease,background-color .35s ease;
}

.site-header.is-scrolled {
    height: var(--header-compact);
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 34px rgba(0,0,0,.07);
}

.site-header.is-scrolled .logo {
    transform: scale(.92);
    transform-origin: left center;
}

.logo {
    transition: transform .35s var(--ease-out);
}

.site-nav a {
    transition: color .25s ease;
}

.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: radial-gradient(circle at var(--btn-x,50%) var(--btn-y,50%),rgba(255,255,255,.34),transparent 34%);
    opacity: 0;
    transition: opacity .25s ease;
}

.btn:hover::before,.btn:focus-visible::before {
    opacity: 1;
}

/* Hero: same split composition as the original Elementor page, lighter implementation */
.hero.hero-split {
    min-height: calc(100svh - var(--header-h));
    align-items: center;
    background: #fff;
    color: var(--ink);
    overflow: hidden;
    padding: 36px 0 54px;
}

.hero-split .hero-split-inner {
    width: min(95%,1440px);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(380px,.85fr);
    align-items: center;
    gap: clamp(34px,5vw,76px);
}

.hero-split .hero-copy {
    max-width: 760px;
    padding-left: clamp(0px,3vw,36px);
}

.hero-split h1 {
    font-size: clamp(3rem,5.2vw,5.8rem);
    max-width: 900px;
    margin-bottom: 24px;
    color: #080809;
}

.hero-split .lead {
    color: #4d4d54;
    max-width: 720px;
}

.hero-split .hero-kicker {
    color: #111;
}

.hero-split .hero-kicker span {
    background: #111;
}

.hero-split .hero-actions .btn-outline {
    color: #111;
    border-color: #111;
}

.hero-split .hero-actions .btn-outline:hover {
    background: #111;
    color: #fff;
}

.hero-frame {
    position: relative;
    height: min(68vh,600px);
    min-height: 500px;
    border-radius: 25px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 22px 70px rgba(0,0,0,.14);
    isolation: isolate;
}

.hero-frame .hero-media {
    position: absolute;
    inset: 0;
}

.hero-frame .hero-media::after {
    background: linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.30));
}

.hero-frame .hero-slide {
    transform: scale(1.02);
    transition: opacity 1s ease,transform 7s linear;
}

.hero-frame .hero-slide.is-active {
    transform: scale(1.09);
}

.hero-frame .hero-progress {
    left: 50%;
    right: auto;
    bottom: 24px;
    transform: translateX(-50%);
    gap: 8px;
}

.hero-progress button {
    appearance: none;
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,.48);
    cursor: pointer;
    transition: width .3s var(--ease-out),background .3s ease,border-radius .3s ease;
}

.hero-progress button.is-active {
    width: 34px;
    border-radius: 999px;
    background: #fff;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.18);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .25s ease,transform .25s ease;
}

.hero-arrow:hover,.hero-arrow:focus-visible {
    background: rgba(0,0,0,.6);
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

.hero-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

html.js .hero-copy .hero-kicker,html.js .hero-copy h1,html.js .hero-copy .lead,html.js .hero-copy .hero-actions {
    opacity: 0;
    transform: translateY(26px);
}

html.js.is-ready .hero-copy .hero-kicker,html.js.is-ready .hero-copy h1,html.js.is-ready .hero-copy .lead,html.js.is-ready .hero-copy .hero-actions {
    opacity: 1;
    transform: none;
    transition: opacity .8s var(--ease-out),transform .8s var(--ease-out);
}

html.js.is-ready .hero-copy h1 {
    transition-delay: .08s;
}

html.js.is-ready .hero-copy .lead {
    transition-delay: .16s;
}

html.js.is-ready .hero-copy .hero-actions {
    transition-delay: .24s;
}

/* Native carousels replacing Elementor/Swiper */
.carousel-shell {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    padding: 10px 2px 28px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding: 0 1px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track>* {
    flex: 0 0 calc((100% - 60px)/3);
    scroll-snap-align: start;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.carousel-arrows {
    display: flex;
    gap: 10px;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid #d9d9dd;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: transform .2s ease,background .2s ease,color .2s ease,opacity .2s ease;
}

.carousel-arrow:hover,.carousel-arrow:focus-visible {
    background: #111;
    color: #fff;
    transform: scale(1.04);
}

.carousel-arrow:disabled {
    opacity: .35;
    cursor: default;
    transform: none;
}

.carousel-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 12px;
}

.carousel-dots button {
    appearance: none;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c8c8cc;
    cursor: pointer;
    transition: width .28s var(--ease-out),background .28s ease,border-radius .28s ease;
}

.carousel-dots button.is-active {
    width: 30px;
    border-radius: 999px;
    background: #111;
}

.section-dark .carousel-arrow {
    border-color: #333;
    background: #111;
    color: #fff;
}

.section-dark .carousel-arrow:hover {
    background: #fff;
    color: #111;
}

.section-dark .carousel-dots button.is-active {
    background: #fff;
}

/* Ecosystems: original pulsing hotspot + improved keyboard/touch behavior */
.ecosystem-carousel {
    margin-top: 4px;
}

.ecosystem-card {
    min-height: 440px;
    transform: translateZ(0);
    transition: transform .42s var(--ease-out),box-shadow .42s ease;
}

.ecosystem-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(0,0,0,.15);
}

.ecosystem-card::after {
    background: linear-gradient(to top,rgba(0,0,0,.76),rgba(0,0,0,.02) 62%);
}

.ecosystem-copy p {
    max-height: none;
    opacity: .82;
    overflow: visible;
    font-size: .82rem;
}

.ecosystem-hotspot {
    position: absolute;
    left: 50%;
    top: 40%;
    z-index: 5;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #050506;
    transform: translate(-50%,-50%);
    cursor: pointer;
    animation: hotspotPulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(100,100,100,.5);
}

.ecosystem-hotspot::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #fff;
}

.ecosystem-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: max-content;
    max-width: 230px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%,8px);
    transition: opacity .25s ease,transform .25s var(--ease-out),visibility .25s;
    pointer-events: none;
}

.ecosystem-hotspot:hover .ecosystem-tooltip,.ecosystem-hotspot:focus-visible .ecosystem-tooltip,.ecosystem-hotspot.is-open .ecosystem-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%,0);
}

@keyframes hotspotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(70,70,70,.48);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(70,70,70,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(70,70,70,0);
    }

}

/* Scroll reveals recovered from the original GSAP implementation */
.reveal {
    transition-duration: .85s;
    transition-timing-function: var(--ease-out);
}

.reveal[data-reveal="left"] {
    transform: translateX(-42px);
}

.reveal[data-reveal="right"] {
    transform: translateX(42px);
}

.reveal[data-reveal="scale"] {
    transform: translateY(20px) scale(.97);
}

.reveal.is-visible {
    transform: none;
}

.media-reveal {
    position: relative;
    overflow: hidden;
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s var(--ease-out),opacity .2s linear;
}

.media-reveal>img {
    transform: translateY(-16%) scale(1.28);
    transition: transform 1s var(--ease-out);
}

.media-reveal.is-visible {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.media-reveal.is-visible>img {
    transform: translateY(0) scale(1);
}

.architecture.media-reveal>img {
    transform: translateY(-10%) scale(1.12);
}

.architecture.media-reveal.is-visible>img {
    transform: none;
}

/* Pointer parallax kept subtle to avoid Elementor's heavy motion-effects runtime */
[data-tilt] {
    --rx: 0deg;
    --ry: 0deg;
    --tz: 0px;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--tz));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .35s var(--ease-out),box-shadow .35s ease;
}

[data-tilt]:hover {
    --tz: -5px;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--tz));
    box-shadow: 0 20px 52px rgba(0,0,0,.12);
}

[data-tilt] img {
    transition: transform .45s var(--ease-out);
}

[data-tilt]:hover img {
    transform: translateZ(16px) scale(1.025);
}

/* Storytelling: SplitType-like reading reveal, without external libraries */
.story-content h2[data-scroll-ink] {
    --ink-progress: 0%;
    color: transparent;
    background: linear-gradient(to bottom,#111 0 var(--ink-progress),#c9c9cd var(--ink-progress) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transition: background .08s linear;
}

.story-media.media-reveal {
    clip-path: inset(100% 0 0 0);
}

.story-media.media-reveal>img {
    transform: translateY(-18%) scale(1.3);
}

.story-media.media-reveal.is-visible>img {
    transform: translateY(0) scale(1);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    border-top: 0;
    padding-top: 8px;
}

.benefits li {
    padding: 16px 16px 16px 42px;
    border: 1px solid #d9d9dd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,.035);
    transition: transform .3s var(--ease-out),box-shadow .3s ease,border-color .3s ease;
    font-size: .9rem;
}

.benefits li::before {
    left: 18px;
    top: 24px;
}

.benefits li+li {
    margin-top: 0;
}

.benefits li:hover {
    transform: scale(1.025) translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,.11);
    border-color: #bdbdc2;
}

.story:nth-child(even) .story-content {
    background: #fafafa;
}

/* Component carousel */
.component-carousel .component-card {
    min-height: 430px;
    height: 100%;
}

.component-carousel .component-icon img {
    will-change: transform;
}

/* FAQ / form polish */
.faq-question {
    transition: color .2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-answer {
    transition: grid-template-rows .38s var(--ease-out);
}

.contact-layout {
    transition: box-shadow .35s ease;
}

.contact-layout:hover {
    box-shadow: 0 30px 80px rgba(0,0,0,.14);
}

.field input,.field textarea {
    transition: border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}

.field input:focus,.field textarea:focus {
    transform: translateY(-1px);
}

@media (max-width:1100px) {
    .hero-split .hero-split-inner {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
        width: calc(100% - 36px);
    }

    .hero-frame {
        min-height: 460px;
        height: 60vh;
    }

    .carousel-track>* {
        flex-basis: calc((100% - 30px)/2);
    }

}

@media (max-width:800px) {
    .site-header.is-scrolled {
        height: var(--header-h);
    }

    .hero.hero-split {
        min-height: auto;
        padding: 42px 0 66px;
    }

    .hero-split .hero-split-inner {
        grid-template-columns: 1fr;
        width: var(--container);
        gap: 42px;
    }

    .hero-split .hero-copy {
        padding-left: 0;
    }

    .hero-frame {
        height: min(64svh,560px);
        min-height: 430px;
    }

    .hero-split .hero-actions {
        display: flex;
    }

    .hero-split .hero-actions .btn {
        width: auto;
    }

    .carousel-viewport {
        margin-right: -15px;
        overflow: visible;
    }

    .carousel-track>* {
        flex-basis: min(82vw,360px);
    }

    .carousel-controls {
        padding-right: 15px;
    }

    .ecosystem-card {
        min-height: 460px;
    }

    .ecosystem-copy p {
        font-size: .85rem;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

}

@media (max-width:560px) {
    .hero-split h1 {
        font-size: clamp(2.6rem,12vw,4rem);
    }

    .hero-split .hero-actions {
        display: grid;
    }

    .hero-split .hero-actions .btn {
        width: 100%;
    }

    .hero-frame {
        height: 54svh;
        min-height: 390px;
        border-radius: 20px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .carousel-track {
        gap: 16px;
    }

    .carousel-track>* {
        flex-basis: 86vw;
    }

    .ecosystem-tooltip {
        max-width: min(220px,70vw);
    }

}

@media (prefers-reduced-motion:reduce) {
    .hero-copy .hero-kicker,.hero-copy h1,.hero-copy .lead,.hero-copy .hero-actions,.media-reveal {
        opacity: 1!important;
        transform: none!important;
        clip-path: none!important;
    }

    .media-reveal>img {
        transform: none!important;
    }

    .ecosystem-hotspot {
        animation: none;
    }

    [data-tilt] {
        transform: none!important;
    }

    .story-content h2[data-scroll-ink] {
        color: #111;
        background: none;
    }

}
