.qrystal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    height: 90svh;
    min-height: 42rem;
    padding-top: 5.25rem !important;
    background:
        radial-gradient(circle at 82% 34%, rgba(196, 109, 227, 0.18), transparent 23rem),
        radial-gradient(circle at 68% 66%, rgba(78, 146, 249, 0.18), transparent 27rem),
        linear-gradient(135deg, #fbfaff 0%, #f2f5ff 54%, #f8f3ff 100%);
}

.qrystal-hero > .container {
    height: 100%;
}

.qrystal-hero::before,
.qrystal-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
    filter: blur(1px);
}

.qrystal-hero::before {
    top: 8rem;
    right: -9rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(78, 146, 249, 0.18);
    box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.16), 0 0 0 8rem rgba(196, 109, 227, 0.035);
}

.qrystal-hero::after {
    bottom: -13rem;
    left: -8rem;
    width: 31rem;
    height: 31rem;
    background: rgba(78, 146, 249, 0.07);
}

.qrystal-hero__row {
    height: 100%;
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: center !important;
    transform: translateY(3rem);
}

.qrystal-hero__content {
    position: relative;
    z-index: 2;
}

.qrystal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: #60779b;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.qrystal-hero__eyebrow::before {
    width: 2rem;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, #c46de3, #4e92f9);
}

.qrystal-hero__title {
    margin-bottom: 1.15rem;
    color: #263b5d;
    font-size: clamp(2.7rem, 3.15vw, 3.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.qrystal-hero__line {
    display: block;
    white-space: nowrap;
}

.qrystal-hero__line--gradient {
    background: linear-gradient(105deg, #a86ad4 4%, #657be7 48%, #3f94ed 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qrystal-hero__lead {
    max-width: 39rem;
    margin-bottom: 1.5rem;
    color: #536887;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
}

.qrystal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.qrystal-hero__actions .btn {
    min-width: 10.5rem;
    padding: 0.8rem 1.35rem;
}

.qrystal-hero__art-column {
    min-width: 0;
}

.qrystal-hero__art {
    position: relative;
    isolation: isolate;
    flex: 0 1 100%;
    width: 100%;
    max-width: 31rem;
    margin: 0;
}

.qrystal-hero__art::before {
    position: absolute;
    z-index: -1;
    inset: 11% 7%;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(101, 123, 231, 0.14), rgba(196, 109, 227, 0.06) 48%, transparent 72%);
    filter: blur(1.5rem);
}

.qrystal-hero__art img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1rem 1.75rem rgba(80, 78, 190, 0.14));
}

[data-theme="dark"] .qrystal-hero__art::before {
    inset: 18% 12%;
    background: radial-gradient(circle, rgba(101, 123, 231, 0.18), transparent 68%);
    filter: blur(2rem);
}

[data-theme="dark"] .qrystal-hero__art img {
    filter: drop-shadow(0 1.25rem 2.25rem rgba(80, 78, 190, 0.22));
}

.qrystal-hero__visual {
    position: relative;
    width: min(32vw, 28rem);
    aspect-ratio: 1;
    transform: translateX(2.5rem);
}

.qrystal-hero__grid {
    position: absolute;
    inset: 2%;
    border-radius: 3rem;
    background-image:
        linear-gradient(rgba(96, 119, 155, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 119, 155, 0.09) 1px, transparent 1px);
    background-size: 2.2rem 2.2rem;
    mask-image: radial-gradient(circle, #000 22%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle, #000 22%, transparent 72%);
}

.qrystal-hero__cloud {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 15rem;
    height: 12rem;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(220, 228, 255, 0.48));
    box-shadow: 0 2rem 5rem rgba(83, 79, 180, 0.2), inset 0 0 2rem rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
}

.qrystal-hero__cloud::before,
.qrystal-hero__cloud::after {
    position: absolute;
    content: "";
    border-radius: 50%;
}

.qrystal-hero__cloud::before {
    inset: -2.6rem;
    border: 1px solid rgba(96, 119, 155, 0.16);
}

.qrystal-hero__cloud::after {
    inset: -5rem;
    border: 1px dashed rgba(96, 119, 155, 0.13);
}

.qrystal-hero__cloud svg {
    width: 8.5rem;
    filter: drop-shadow(0 1rem 1.4rem rgba(77, 109, 207, 0.23));
}

.qrystal-hero__cloud path {
    fill: #7195ef;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 2;
}

.qrystal-hero__ai-mark {
    position: absolute;
    display: grid;
    width: 3.75rem;
    height: 3.75rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.2rem;
    background: linear-gradient(145deg, #ba6cdd, #647eea);
    box-shadow: 0 0.8rem 2rem rgba(119, 91, 207, 0.35);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.qrystal-hero__connection {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, rgba(101, 123, 231, 0.7), rgba(196, 109, 227, 0.15));
    transform-origin: left center;
}

.qrystal-hero__connection--one { transform: rotate(-145deg); }
.qrystal-hero__connection--two { transform: rotate(-28deg); }
.qrystal-hero__connection--three { transform: rotate(128deg); }

.qrystal-hero__node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 99rem;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 0.75rem 2rem rgba(73, 84, 157, 0.12);
    color: #60779b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.qrystal-hero__node i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c46de3, #4e92f9);
    box-shadow: 0 0 0 0.25rem rgba(101, 123, 231, 0.1);
}

.qrystal-hero__node--data {
    top: 20%;
    left: 2%;
}

.qrystal-hero__node--automation {
    top: 28%;
    right: -4%;
}

.qrystal-hero__node--secure {
    bottom: 16%;
    left: 8%;
}

.qrystal-hero__pulse {
    position: absolute;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #8f78e4;
    box-shadow: 0 0 0 0.45rem rgba(143, 120, 228, 0.11);
}

.qrystal-hero__pulse--one { top: 12%; right: 19%; }
.qrystal-hero__pulse--two { right: 8%; bottom: 22%; }

@media (max-width: 991.98px) {
    .qrystal-hero {
        height: auto;
        min-height: auto;
        padding-top: 5rem !important;
    }

    .qrystal-hero__row {
        min-height: calc(100svh - 5rem);
        padding-top: 3rem;
        padding-bottom: 3rem;
        align-items: center !important;
        transform: none;
    }

    .qrystal-hero__content {
        max-width: 47rem;
        margin-inline: auto;
    }

    .qrystal-hero__lead {
        margin-inline: auto;
    }

    .qrystal-hero__actions {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .qrystal-hero__row {
        min-height: 37rem;
    }

    .qrystal-hero__title {
        font-size: clamp(2.5rem, 13vw, 3.35rem);
        line-height: 1.02;
    }

    .qrystal-hero__line {
        white-space: normal;
    }

    .qrystal-hero__eyebrow {
        font-size: 0.75rem;
    }

    .qrystal-hero__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qrystal-hero * {
        scroll-behavior: auto;
    }
}
