/* Homepage hero — complete, isolated source of truth.
   This file intentionally contains every structural, visual, animation,
   responsive, and reduced-motion rule required by #hero. */

.home-page .hero-premium {
    --hero-x: 0;
    --hero-y: 0;
    --hero-scroll: 0;
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: flex;
    min-height: 600px;
    flex-direction: column;
    justify-content: center;
    padding: 132px 0 62px;
    border: 0;
    color: #fff;
    background: #070d1c;
    overflow: hidden;
}

.home-page .hero-premium::before {
    content: none;
}

.home-page .hero-premium::after {
    content: none;
}

.home-page .hero-premium-bg {
    display: none;
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: 1;
    pointer-events: none;
}

.home-page .hero-mesh-gradient {
    position: absolute;
    inset: 0;
    background:
        transparent;
}

.home-page .hero-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.17;
    background-image:
        none;
    background-size: 74px 74px;
    mask-image: none;
    -webkit-mask-image: none;
}

.home-page .hero-glow {
    position: absolute;
    border-radius:  0;
    opacity: 0.45;
    filter: blur(130px);
    animation: homeHeroGlow 14s ease-in-out infinite;
}

.home-page .hero-glow-1 {
    top: -24%;
    left: -15%;
    width: 560px;
    height: 560px;
    background: rgba(43, 110, 255, 0.24);
}

.home-page .hero-glow-2 {
    right: -12%;
    bottom: -22%;
    width: 480px;
    height: 480px;
    background: rgba(129, 89, 255, 0.18);
    animation-delay: -7s;
}

@keyframes homeHeroGlow {
    0%, 100% { opacity: 0.45; transform: translate3d(0, 0, 0) scale(1); }
    50% { opacity: 0.68; transform: translate3d(18px, -16px, 0) scale(1.08); }
}

.home-page .hero-premium .container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 96px), 1220px);
    max-width: 1220px;
    margin-inline: auto;
    padding: 0;
}

.home-page .hero-premium-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
    align-items: center;
    gap: clamp(54px, 6vw, 94px);
}

.home-page .hero-premium-content {
    max-width: 690px;
    transform: translate3d(0, calc(var(--hero-scroll) * -18px), 0);
    will-change: transform;
}

.home-page .hero-premium-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    border-radius:  0;
    color: rgba(162, 217, 255, 0.84);
    background: transparent;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: homeHeroFadeUp 0.8s ease 0.1s both;
}

.home-page .hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius:  0;
    background: #87dbff;
    box-shadow: 0 0 0 6px rgba(126, 215, 255, 0.08), 0 0 22px rgba(126, 215, 255, 0.72);
    animation: homeHeroPulse 2s ease-in-out infinite;
}

.home-page .hero-premium-title {
    max-width: 700px;
    margin: 0 0 30px;
    color: #fff;
    font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
    font-size: clamp(50.4px, 4.32vw, 64.8px);
    font-weight: 650;
    letter-spacing: -0.062em;
    line-height: 0.99;
    text-wrap: balance;
}

.home-page .hero-title-line {
    display: block;
    white-space: nowrap;
    animation: homeHeroFadeUp 0.8s ease both;
}

.home-page .hero-title-line-1 {
    color: transparent;
    background: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation-delay: 0.2s;
}

.home-page .hero-title-line-2 {
    padding-bottom: 0.06em;
    color: transparent;
    background: #b9e9ff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation-delay: 0.4s;
}

.home-page .hero-premium-subtitle {
    max-width: 590px;
    margin: 0 0 36px;
    color: rgba(237, 241, 252, 0.64);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: clamp(17px, 1.45vw, 20px);
    font-weight: 450;
    letter-spacing: -0.022em;
    line-height: 1.65;
    animation: homeHeroFadeUp 0.8s ease 0.5s both;
}

.home-page .hero-premium-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    animation: homeHeroFadeUp 0.8s ease 0.6s both;
}

.home-page .hero-premium-cta a {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius:  0;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-decoration: none;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.home-page .hero-premium-btn-primary {
    position: relative;
    color: #0b1020;
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 14px 38px rgba(0, 0, 0, 0.25),
        0 0 50px rgba(103, 121, 255, 0.12);
    overflow: hidden;
}

.home-page .hero-premium-btn-primary::before {
    position: absolute;
    inset: 0;
    background: transparent;
    content: "";
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-page .hero-premium-btn-primary span,
.home-page .hero-premium-btn-primary i {
    position: relative;
    z-index: 1;
}

.home-page .hero-premium-btn-primary i {
    font-size: 0.82rem;
    transition: transform 0.3s ease;
}

.home-page .hero-premium-btn-primary:hover {
    color: #0b1020;
    background: #f4f5ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 18px 48px rgba(0, 0, 0, 0.28),
        0 0 56px rgba(102, 120, 255, 0.19);
    transform: translateY(-2px);
}

.home-page .hero-premium-btn-primary:hover::before {
    opacity: 1;
}

.home-page .hero-premium-btn-primary:hover i {
    transform: translateX(3px);
}

.home-page .hero-premium-btn-secondary {
    border-color: rgba(255, 255, 255, 0.13) !important;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(16px);
}

.home-page .hero-premium-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

@keyframes homeHeroFadeUp {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes homeHeroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.82); }
}

/* Cobrain lifecycle object */

.home-page .hero-premium-visual,
.home-page .hero-cascade-visual {
    position: relative;
    display: flex;
    min-height: 400px;
    align-items: center;
    justify-content: center;
    transform:
        translate3d(
            calc(var(--hero-x) * 12px),
            calc(var(--hero-y) * 10px + var(--hero-scroll) * 22px),
            0
        );
    transition: transform 0.18s ease-out;
    will-change: transform;
}

.home-page .hero-cascade-system {
    position: relative;
    width: min(31vw, 400px);
    height: min(31vw, 400px);
    min-width: 350px;
    min-height: 350px;
    filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.24));
    transform:
        perspective(900px)
        rotateX(calc(var(--hero-y) * -2.2deg))
        rotateY(calc(var(--hero-x) * 2.8deg));
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.home-page .hero-cascade-system::before {
    content: none;
}

.home-page .hero-cascade-system::after {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 48%;
    aspect-ratio: 1;
    border-radius:  0;
    background: transparent;
    content: "";
    filter: blur(18px);
    transform: translate(-50%, -50%);
}

.home-page .hero-cascade-svg {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 0.94;
}

.home-page .cascade-arc,
.home-page .cascade-glow {
    fill: none;
    stroke-dasharray: 240 360;
    stroke-dashoffset: 0;
    transform-origin: center;
}

.home-page .cascade-arc {
    stroke-width: 1.45;
    opacity: 0.38;
    filter: drop-shadow(0 0 4px currentColor);
    transition: opacity 0.6s ease;
}

.home-page .cascade-glow {
    opacity: 0.2;
    filter: blur(6px);
}

.home-page .cascade-arc-1,
.home-page .cascade-glow-1 {
    stroke: #4fc4ff;
    animation: homeCascadeSpin 20s linear infinite, homeCascadePulse1 6s ease-in-out infinite;
}

.home-page .cascade-arc-2,
.home-page .cascade-glow-2 {
    stroke: #a78bfa;
    animation: homeCascadeSpin 28s linear infinite reverse, homeCascadePulse2 6s ease-in-out infinite;
}

.home-page .cascade-arc-3,
.home-page .cascade-glow-3 {
    stroke: #6ee7b7;
    animation: homeCascadeSpin 36s linear infinite, homeCascadePulse3 6s ease-in-out infinite;
}

.home-page .cascade-arc-4,
.home-page .cascade-glow-4 {
    stroke: #fbbf24;
    animation: homeCascadeSpin 44s linear infinite reverse, homeCascadePulse4 6s ease-in-out infinite;
}

.home-page .cascade-glow-1 { animation-name: homeCascadeSpin, homeCascadeGlow1; }
.home-page .cascade-glow-2 { animation-name: homeCascadeSpin, homeCascadeGlow2; }
.home-page .cascade-glow-3 { animation-name: homeCascadeSpin, homeCascadeGlow3; }
.home-page .cascade-glow-4 { animation-name: homeCascadeSpin, homeCascadeGlow4; }

@keyframes homeCascadeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes homeCascadePulse1 {
    0%, 30%, 100% { opacity: 0.12; }
    8%, 22% { opacity: 0.85; }
}

@keyframes homeCascadePulse2 {
    0%, 25%, 47%, 100% { opacity: 0.12; }
    25.1%, 39% { opacity: 0.8; }
}

@keyframes homeCascadePulse3 {
    0%, 42%, 64%, 100% { opacity: 0.12; }
    42.1%, 56% { opacity: 0.75; }
}

@keyframes homeCascadePulse4 {
    0%, 59%, 81%, 100% { opacity: 0.12; }
    59.1%, 73% { opacity: 0.7; }
}

@keyframes homeCascadeGlow1 {
    0%, 30%, 100% { opacity: 0; }
    8%, 22% { opacity: 0.4; }
}

@keyframes homeCascadeGlow2 {
    0%, 25%, 47%, 100% { opacity: 0; }
    25.1%, 39% { opacity: 0.35; }
}

@keyframes homeCascadeGlow3 {
    0%, 42%, 64%, 100% { opacity: 0; }
    42.1%, 56% { opacity: 0.3; }
}

@keyframes homeCascadeGlow4 {
    0%, 59%, 81%, 100% { opacity: 0; }
    59.1%, 73% { opacity: 0.3; }
}

.home-page .cascade-particle {
    opacity: 0.7;
    filter: drop-shadow(0 0 7px currentColor);
}

.home-page .cascade-label {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius:  0;
    color: #eaf1ff;
    background: rgba(4, 9, 22, 0.5);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.95), 0 0 14px currentColor;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 5px 16px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
}

.home-page .cascade-label-1 {
    top: 22%;
    right: 8%;
    color: #95e5ff;
    animation: homeCascadeLabel1 6s ease-in-out infinite;
}

.home-page .cascade-label-2 {
    right: 4%;
    bottom: 28%;
    color: #c9b5ff;
    animation: homeCascadeLabel2 6s ease-in-out infinite;
}

.home-page .cascade-label-3 {
    bottom: 12%;
    left: 18%;
    color: #9af0d2;
    animation: homeCascadeLabel3 6s ease-in-out infinite;
}

.home-page .cascade-label-4 {
    top: 32%;
    left: 4%;
    color: #f2c98f;
    animation: homeCascadeLabel4 6s ease-in-out infinite;
}

@keyframes homeCascadeLabel1 {
    0%, 30%, 100% { opacity: 0.66; }
    8%, 22% { opacity: 1; }
}

@keyframes homeCascadeLabel2 {
    0%, 25%, 47%, 100% { opacity: 0.66; }
    25.1%, 39% { opacity: 1; }
}

@keyframes homeCascadeLabel3 {
    0%, 42%, 64%, 100% { opacity: 0.66; }
    42.1%, 56% { opacity: 1; }
}

@keyframes homeCascadeLabel4 {
    0%, 59%, 81%, 100% { opacity: 0.66; }
    59.1%, 73% { opacity: 1; }
}

.home-page .hero-cascade-center {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.home-page .hero-cascade-center-inner {
    position: relative;
    z-index: 2;
    display: flex;
    width: 88px;
    height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(193, 211, 255, 0.28);
    border-radius:  0;
    color: #fff;
    background:
        rgba(68, 119, 232, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -16px 30px rgba(19, 17, 74, 0.22),
        0 20px 48px rgba(0, 0, 0, 0.28),
        0 0 70px rgba(97, 112, 255, 0.24);
    backdrop-filter: blur(24px) saturate(1.2);
    animation: homeCascadeCenter 4s ease-in-out infinite;
}

.home-page .hero-cascade-center-inner::after {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius:  0;
    content: "";
}

.home-page .hero-cascade-center-inner i {
    color: #d8e8ff;
    font-size: 22px;
    filter: drop-shadow(0 0 13px rgba(150, 203, 255, 0.55));
}

.home-page .hero-cascade-center-inner span {
    color: rgba(255, 255, 255, 0.82);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 8px;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes homeCascadeCenter {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 20px 48px rgba(0, 0, 0, 0.28),
            0 0 58px rgba(97, 112, 255, 0.2);
    }
    50% {
        transform: scale(1.035);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            0 22px 52px rgba(0, 0, 0, 0.3),
            0 0 82px rgba(97, 112, 255, 0.3);
    }
}

.home-page .hero-cascade-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(147, 182, 255, 0.18);
    border-radius:  0;
    animation: homeCascadeRing 4s ease-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes homeCascadeRing {
    0% { width: 88px; height: 88px; opacity: 0.42; }
    100% { width: 142px; height: 142px; opacity: 0; }
}

.home-page .hero-cascade-system:hover .cascade-arc {
    opacity: 0.58;
}

.home-page .hero-cascade-system:hover .cascade-label {
    opacity: 1;
}

@media (max-width: 1100px) {
    .home-page .hero-premium {
        min-height: 620px;
        padding: 128px 0 70px;
    }

    .home-page .hero-premium .container {
        width: min(calc(100% - 48px), 980px);
    }

    .home-page .hero-premium-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
        gap: 34px;
    }

    .home-page .hero-premium-title {
        font-size: clamp(41.4px, 4.5vw, 50.4px);
    }

    .home-page .hero-cascade-system {
        width: 340px;
        height: 340px;
        min-width: 340px;
        min-height: 340px;
    }
}

@media (max-width: 860px) {
    .home-page .hero-premium {
        min-height: 0;
        padding: 118px 0 70px;
    }

    .home-page .hero-premium .container {
        width: min(calc(100% - 40px), 720px);
    }

    .home-page .hero-premium-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .home-page .hero-premium-content {
        display: flex;
        max-width: 680px;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }

    .home-page .hero-premium-title {
        font-size: clamp(45px, 8.28vw, 63px);
    }

    .home-page .hero-premium-subtitle {
        max-width: 590px;
    }

    .home-page .hero-cascade-visual {
        min-height: 350px;
    }

    .home-page .hero-cascade-system {
        width: min(72vw, 350px);
        height: min(72vw, 350px);
        min-width: 0;
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .home-page .hero-premium {
        padding: 108px 0 58px;
    }

    .home-page .hero-premium .container {
        width: min(calc(100% - 32px), 520px);
    }

    .home-page .hero-premium-inner {
        gap: 30px;
    }

    .home-page .hero-premium-eyebrow {
        margin-bottom: 21px;
        font-size: 9px;
    }

    .home-page .hero-premium-title {
        margin-bottom: 24px;
        font-size: clamp(27.9px, 8.91vw, 37.8px);
        letter-spacing: -0.07em;
        line-height: 1;
    }

    .home-page .hero-premium-subtitle {
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 1.58;
    }

    .home-page .hero-premium-cta {
        width: 100%;
        max-width: 360px;
        flex-direction: column;
    }

    .home-page .hero-premium-cta a {
        width: 100%;
    }

    .home-page .hero-cascade-visual {
        min-height: 290px;
    }

    .home-page .hero-cascade-system {
        width: min(78vw, 300px);
        height: min(78vw, 300px);
    }

    .home-page .hero-cascade-center-inner {
        width: 84px;
        height: 84px;
    }

    .home-page .cascade-label {
        padding: 3px 5px;
        font-size: 8px;
        letter-spacing: 0.08em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hero-glow,
    .home-page .hero-premium-eyebrow,
    .home-page .hero-eyebrow-dot,
    .home-page .hero-title-line,
    .home-page .hero-premium-subtitle,
    .home-page .hero-premium-cta,
    .home-page .cascade-arc,
    .home-page .cascade-glow,
    .home-page .cascade-label,
    .home-page .hero-cascade-center-inner,
    .home-page .hero-cascade-pulse {
        animation: none !important;
    }

    .home-page .hero-premium-content,
    .home-page .hero-cascade-visual,
    .home-page .hero-cascade-system {
        transform: none !important;
        transition: none !important;
    }

    .home-page .cascade-arc {
        opacity: 0.38;
    }

    .home-page .cascade-glow {
        opacity: 0.12;
    }

    .home-page .cascade-particle {
        display: none;
    }
}
