
/* =========================================================
   PROLYNXS — PREMIUM AI DEVELOPMENT HERO
   Left: AI engineering visual | Right: Database content
   No external fonts, libraries or images required
========================================================= */

.plx-ai-hero {
    --plx-bg: #050b18;
    --plx-panel: #09162a;
    --plx-blue: #3984ff;
    --plx-cyan: #62e4ff;
    --plx-text: #f5f8ff;
    --plx-muted: #a8b7ce;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 94px 0 88px;
    color: var(--plx-text);
    background:
        radial-gradient(ellipse at 13% 45%, rgba(16, 86, 194, .19), transparent 35%),
        radial-gradient(ellipse at 82% 5%, rgba(32, 89, 185, .12), transparent 34%),
        linear-gradient(125deg, #050b18 0%, #081326 52%, #050b18 100%);
}

.plx-ai-hero,
.plx-ai-hero * {
    box-sizing: border-box;
}

.plx-ai-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(105, 158, 220, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 158, 220, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 76%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 76%);
}

.plx-ai-hero::after {
    position: absolute;
    z-index: -1;
    right: -180px;
    bottom: -310px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(79, 146, 255, .12);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 55px rgba(79, 146, 255, .025),
        0 0 0 110px rgba(79, 146, 255, .02);
    pointer-events: none;
}

.plx-ai-hero__glow,
.plx-ai-hero__orb {
    pointer-events: none;
}

.plx-ai-hero__glow {
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .16;
}

.plx-ai-ai-glow-one {
    top: 10%;
    left: 12%;
    background: #147bff;
}

.plx-ai-ai-glow-two {
    right: 18%;
    bottom: 0;
    background: #00c9f4;
    opacity: .08;
}

/* Main two-column layout */
.plx-ai-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(38px, 5vw, 82px);
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.plx-ai-visual {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1.04;
    max-height: 570px;
    overflow: hidden;
    border: 1px solid rgba(102, 164, 255, .2);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% 46%, rgba(15, 100, 255, .18), transparent 42%),
        linear-gradient(145deg, rgba(13, 33, 61, .96), rgba(5, 13, 27, .97));
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .24),
        inset 0 1px rgba(255, 255, 255, .045);
}

/* Technical grid inside the visual */
.plx-ai-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .62;
    background-image:
        linear-gradient(rgba(78, 139, 218, .105) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 139, 218, .105) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .8) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .8) 60%, transparent 100%);
}

/* Subtle moving light across the engineering panel */
.plx-ai-visual::after {
    position: absolute;
    top: -30%;
    left: -55%;
    width: 38%;
    height: 160%;
    content: "";
    pointer-events: none;
    transform: rotate(24deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 170, 255, .055),
        rgba(93, 220, 255, .12),
        transparent
    );
    animation: plxEngineeringSweep 9s ease-in-out infinite;
}

@keyframes plxEngineeringSweep {
    0%, 20% {
        left: -55%;
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    70% {
        left: 125%;
        opacity: .7;
    }
    85%, 100% {
        left: 125%;
        opacity: 0;
    }
}

/* Hide the old circular orbital decoration */
.plx-ai-visual__ring {
    display: none !important;
}

/* Central AI system tile */
.plx-ai-visual__core {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 154px;
    height: 154px;
    padding: 9px;
    border: 1px solid rgba(92, 190, 255, .65);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(27, 102, 230, .5), rgba(7, 25, 54, .98) 68%);
    box-shadow:
        0 0 0 8px rgba(45, 130, 255, .055),
        0 0 0 18px rgba(45, 130, 255, .035),
        0 18px 55px rgba(0, 80, 255, .27),
        inset 0 1px rgba(255, 255, 255, .2);
    transform: translate(-50%, -50%);
    animation: plxCoreFloat 5s ease-in-out infinite;
}

.plx-ai-visual__core::before {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(96, 204, 255, .22);
    border-radius: 17px;
    content: "";
}

.plx-ai-visual__core-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(145deg, #1250ac, #071a38 78%);
}

.plx-ai-visual__spark {
    color: var(--plx-cyan);
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(76, 210, 255, .85);
}

.plx-ai-visual__core-label {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.plx-ai-visual__core-caption {
    color: #91dfff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

@keyframes plxCoreFloat {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -7px;
    }
}

/* Floating feature cards */
.plx-ai-float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 205px;
    min-height: 75px;
    padding: 14px;
    border: 1px solid rgba(108, 171, 255, .24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 37, 69, .96), rgba(7, 17, 35, .97));
    box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.plx-ai-float-card--top {
    top: 15%;
    left: 5%;
    animation: plxCardFloat 6s ease-in-out infinite;
}

.plx-ai-float-card--bottom {
    right: 4%;
    bottom: 15%;
    animation: plxCardFloat 6s ease-in-out 1.4s infinite;
}

.plx-ai-float-card__icon {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(81, 177, 255, .24);
    border-radius: 11px;
    color: #75dcff;
    background: rgba(24, 111, 230, .17);
    font-size: 20px;
}

.plx-ai-float-card__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.plx-ai-float-card__text strong {
    color: #f4f8ff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.plx-ai-float-card__text small {
    color: #9db3ce;
    font-size: 10px;
    line-height: 1.4;
}

.plx-ai-float-card__dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #54e8bc;
    box-shadow: 0 0 12px rgba(84, 232, 188, .6);
}

@keyframes plxCardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Connection points */
.plx-ai-visual__node {
    position: absolute;
    z-index: 2;
    width: 9px;
    height: 9px;
    border: 1px solid #b6f3ff;
    border-radius: 3px;
    background: #4bcaff;
    box-shadow: 0 0 14px rgba(61, 182, 255, .8);
    animation: plxNodePulse 3s ease-in-out infinite;
}

.plx-ai-visual__node--one {
    top: 30%;
    right: 17%;
}

.plx-ai-visual__node--two {
    bottom: 29%;
    left: 17%;
    animation-delay: 1s;
}

.plx-ai-visual__node--three {
    top: 20%;
    left: 49%;
    animation-delay: 1.8s;
}

@keyframes plxNodePulse {
    0%, 100% {
        opacity: .55;
        box-shadow: 0 0 8px rgba(61, 182, 255, .45);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 18px rgba(61, 182, 255, .95);
    }
}

/* Right-side database content */
.plx-ai-hero__content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: 650px;
}

.plx-ai-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin: 0 0 23px;
    padding: 9px 14px;
    border: 1px solid rgba(89, 166, 255, .24);
    border-radius: 999px;
    color: #b9d8ff;
    background: rgba(24, 75, 137, .16);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.plx-ai-hero__status {
    position: relative;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #57e6bb;
    box-shadow: 0 0 12px rgba(87, 230, 187, .6);
}

.plx-ai-hero__copy h1 {
    margin: 0 0 20px;
    color: #f8faff;
    font-size: clamp(36px, 3.45vw, 53px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.9px;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.plx-ai-hero__copy h2 {
    margin: 0 0 18px;
    color: #8bcaff;
    font-size: clamp(19px, 1.65vw, 24px);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.4px;
    text-wrap: balance;
}

.plx-ai-hero__copy p {
    margin: 0 0 14px;
    color: #b6c4d8;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.plx-ai-hero__copy p:last-child {
    margin-bottom: 0;
}

/* CTA buttons */
.plx-ai-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px;
}

.plx-ai-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 53px;
    padding: 14px 21px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.plx-ai-btn--primary {
    color: #fff !important;
    border-color: #438aff;
    background: linear-gradient(110deg, #1768ef, #397fff);
    box-shadow: 0 8px 26px rgba(31, 105, 239, .22);
}

.plx-ai-btn--primary:hover {
    color: #fff !important;
    border-color: #75caff;
    background: linear-gradient(110deg, #2479ff, #4b8dff);
    box-shadow: 0 12px 32px rgba(31, 105, 239, .34);
    transform: translateY(-2px);
}

.plx-ai-btn--secondary {
    color: #e1ecff !important;
    border-color: rgba(126, 177, 241, .36);
    background: rgba(9, 25, 48, .48);
}

.plx-ai-btn--secondary:hover {
    color: #fff !important;
    border-color: #55baff;
    background: rgba(32, 88, 157, .22);
    transform: translateY(-2px);
}

.plx-ai-btn__arrow {
    font-size: 17px;
    line-height: 1;
    transition: transform .25s ease;
}

.plx-ai-btn:hover .plx-ai-btn__arrow {
    transform: translateX(3px);
}

/* Trust line below CTAs */
.plx-ai-hero__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: #91a9c8;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .35px;
}

.plx-ai-hero__footer-line {
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3785ff, #5ee1ff);
}

/* Tablet */
@media (max-width: 1050px) {
    .plx-ai-hero {
        padding: 76px 0;
    }

    .plx-ai-hero__container {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 34px;
        width: min(100% - 40px, 900px);
    }

    .plx-ai-visual {
        aspect-ratio: 1 / 1.12;
    }

    .plx-ai-visual__core {
        width: 126px;
        height: 126px;
        border-radius: 20px;
    }

    .plx-ai-visual__core-label {
        font-size: 31px;
    }

    .plx-ai-float-card {
        width: 175px;
        min-height: 67px;
        gap: 9px;
        padding: 10px;
    }

    .plx-ai-float-card--top {
        left: 3%;
    }

    .plx-ai-float-card--bottom {
        right: 3%;
    }

    .plx-ai-hero__copy h1 {
        font-size: clamp(33px, 4.1vw, 43px);
        letter-spacing: -1.3px;
    }

    .plx-ai-hero__copy h2 {
        font-size: 20px;
    }

    .plx-ai-hero__copy p {
        font-size: 14px;
        line-height: 1.8;
    }

    .plx-ai-hero__actions {
        gap: 10px;
    }

    .plx-ai-btn {
        padding: 13px 15px;
        gap: 9px;
        font-size: 12px;
    }
}

/* Mobile: content first, visual below */
@media (max-width: 767px) {
    .plx-ai-hero {
        padding: 57px 0 52px;
    }

    .plx-ai-hero::before {
        background-size: 34px 34px;
        opacity: .14;
    }

    .plx-ai-hero__container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 38px;
        width: calc(100% - 36px);
    }

    .plx-ai-hero__content {
        order: 1;
        max-width: none;
    }

    .plx-ai-visual {
        order: 2;
        width: 100%;
        max-height: none;
        aspect-ratio: 1 / .92;
        border-radius: 21px;
    }

    .plx-ai-hero__eyebrow {
        margin-bottom: 19px;
        padding: 8px 11px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .plx-ai-hero__copy h1 {
        margin-bottom: 17px;
        font-size: clamp(34px, 8.8vw, 46px);
        line-height: 1.12;
        letter-spacing: -1.35px;
    }

    .plx-ai-hero__copy h2 {
        margin-bottom: 14px;
        font-size: 20px;
        line-height: 1.4;
    }

    .plx-ai-hero__copy p {
        margin-bottom: 13px;
        font-size: 14px;
        line-height: 1.8;
    }

    .plx-ai-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
        margin-top: 24px;
    }

    .plx-ai-btn {
        width: 100%;
        min-height: 52px;
        padding: 14px 17px;
        font-size: 13px;
    }

    .plx-ai-hero__footer {
        align-items: flex-start;
        margin-top: 23px;
        font-size: 10px;
    }

    .plx-ai-visual__core {
        width: 112px;
        height: 112px;
        border-radius: 18px;
    }

    .plx-ai-visual__core-label {
        font-size: 28px;
    }

    .plx-ai-visual__core-caption {
        font-size: 8px;
        letter-spacing: 1.8px;
    }

    .plx-ai-float-card {
        width: min(48%, 178px);
        min-height: 61px;
        gap: 7px;
        padding: 9px;
        border-radius: 11px;
    }

    .plx-ai-float-card--top {
        top: 9%;
        left: 3%;
    }

    .plx-ai-float-card--bottom {
        right: 3%;
        bottom: 9%;
    }

    .plx-ai-float-card__icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 16px;
    }

    .plx-ai-float-card__text strong {
        font-size: 11px;
    }

    .plx-ai-float-card__text small {
        font-size: 9px;
    }

    .plx-ai-float-card__dot {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .plx-ai-hero__container {
        width: calc(100% - 28px);
    }

    .plx-ai-hero__copy h1 {
        font-size: 32px;
    }

    .plx-ai-hero__copy h2 {
        font-size: 18px;
    }

    .plx-ai-hero__copy p {
        font-size: 13px;
    }

    .plx-ai-visual__core {
        width: 94px;
        height: 94px;
    }

    .plx-ai-float-card {
        gap: 6px;
        padding: 7px;
    }

    .plx-ai-float-card__text small {
        font-size: 8px;
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .plx-ai-visual::after,
    .plx-ai-visual__core,
    .plx-ai-float-card,
    .plx-ai-visual__node {
        animation: none !important;
    }

    .plx-ai-btn,
    .plx-ai-btn__arrow {
        transition: none !important;
    }
}
