/* Explain: Styling for the animated hero section background elements. */
/* ==========================================================================
   Homepage hero — animated brand logo, digital globe and particle field
   ========================================================================== */

.hero-home {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    isolation: isolate;
    min-height: 72vh;
    background: var(--navy-900);
}

/* Backdrop sits behind the page content so the screen-blended brand logo
   composites against the navy gradient instead of an isolated layer. */
.hero-home .hero-bg { z-index: -1; }

.hero-home .hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(39, 200, 243, .22) 0%, rgba(39, 200, 243, 0) 50%),
        radial-gradient(circle at 8% 88%, rgba(84, 229, 225, .18) 0%, rgba(84, 229, 225, 0) 56%),
        linear-gradient(150deg, #04101F 0%, var(--navy-800) 44%, var(--navy-600) 100%);
}

.hero-home .hero-glow-2 {
    right: auto;
    left: -16%;
    top: auto;
    bottom: -30%;
    background: radial-gradient(circle, rgba(84, 229, 225, .16) 0%, rgba(84, 229, 225, 0) 68%);
}

/* --- particle field --- */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
    mask-image: linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
}
.hero-particle {
    position: absolute;
    bottom: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 229, 225, .95) 0%, rgba(39, 200, 243, 0) 72%);
    box-shadow: 0 0 10px rgba(39, 200, 243, .55);
    opacity: 0;
    animation-name: heroParticleFloat;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes heroParticleFloat {
    0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
    14%  { opacity: .95; }
    82%  { opacity: .55; }
    100% { transform: translate3d(14px, -78vh, 0) scale(1); opacity: 0; }
}

/* --- rotating digital globe --- */
.hero-home .hero-globe { opacity: .5; }
.hero-home .hero-globe svg {
    transform-origin: 50% 50%;
    animation: heroGlobeSpin 96s linear infinite;
}
@keyframes heroGlobeSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- hero layout --- */
.hero-home-grid {
    display: grid;
    gap: 2.75rem;
    align-items: center;
    padding: 3.75rem 0 4.5rem;
}
.hero-copy { max-width: 52rem; }
@media (min-width: 1024px) {
    .hero-home-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 5.25rem 0 6.25rem;
    }
}

.hero-logo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
}
.hero-logo-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
}
@media (min-width: 1024px) {
    .hero-logo-wrap { max-width: 460px; }
}

.hero-logo {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: brightness(1.05) contrast(1.06) drop-shadow(0 0 34px rgba(39, 200, 243, .28));
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: scale(.965) rotate(-6deg);
    animation: heroLogoIn 2.4s cubic-bezier(.22, .61, .36, 1) .1s forwards;
    will-change: transform, opacity, filter, clip-path;
}
@keyframes heroLogoIn {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        transform: scale(.94) rotate(-8deg);
        filter: brightness(.4) blur(10px);
    }
    38% {
        opacity: .88;
        clip-path: inset(0 0 46% 0);
        transform: scale(.98) rotate(-2deg);
        filter: brightness(1.48) blur(0);
    }
    72% {
        opacity: 1;
        clip-path: inset(0 0 6% 0);
        transform: scale(1) rotate(0deg);
        filter: brightness(1.2) blur(0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: scale(1) rotate(0deg);
        filter: brightness(1.05) blur(0);
    }
}

/* soft light reflection sweeping across the mark */
.hero-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(114deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: screen;
    transform: translateX(-140%);
    opacity: 0;
    animation: heroSheen 2.2s ease-in-out 1.6s 1 forwards;
}
@keyframes heroSheen {
    0%   { transform: translateX(-140%); opacity: 0; }
    16%  { opacity: .85; }
    100% { transform: translateX(140%); opacity: 0; }
}


/* --- copy column --- */
.hero-copy > * {
    opacity: 0;
    animation: heroCopyIn .85s cubic-bezier(.22, .61, .36, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .55s; }
.hero-copy > *:nth-child(2) { animation-delay: .68s; }
.hero-copy > *:nth-child(3) { animation-delay: .82s; }
.hero-copy > *:nth-child(4) { animation-delay: .96s; }
.hero-copy > *:nth-child(5) { animation-delay: 1.1s; }
@keyframes heroCopyIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-cta-row {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 2.25rem;
}
@media (min-width: 640px) {
    .hero-cta-row { flex-direction: row; flex-wrap: wrap; }
}

/* --- accessibility: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .hero-logo,
    .hero-copy > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none;
    }
    .hero-logo { filter: brightness(1.05) contrast(1.06); }
    .hero-logo-wrap::after { display: none; }
    .hero-particle { display: none; }
    .hero-home .hero-globe svg { animation: none; }
}