/* —— Home hero (modern cyber banner) —— */
.home-hero {
    position: relative;
    min-height: min(92vh, 920px);
    display: flex;
    align-items: center;
    padding: 5.5rem 0 4rem;
    overflow: hidden;
    background: var(--cyber-bg, #060816);
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-hero__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.home-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.32;
    animation: homeHeroOrb 14s ease-in-out infinite, cyber-glow-pulse 10s ease-in-out infinite;
}

.home-hero__orb--purple {
    width: 420px;
    height: 420px;
    background: var(--cyber-violet, #b73146);
    top: -8%;
    left: -5%;
}

.home-hero__orb--cyan {
    width: 360px;
    height: 360px;
    background: var(--cyber-cyan, #ff8a9a);
    bottom: 5%;
    right: 15%;
    animation-delay: -4s, -2s;
}

.home-hero__orb--pink {
    width: 280px;
    height: 280px;
    background: var(--cyber-fuchsia, #ff8a9a);
    top: 35%;
    right: -5%;
    animation-delay: -8s, -5s;
}

.home-hero__bg-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.home-hero__bg-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #060816 0%, rgba(6, 8, 22, 0.95) 42%, rgba(6, 8, 22, 0.7) 100%);
}

@keyframes homeHeroOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.06); }
}

.home-hero > .container {
    position: relative;
    z-index: 2;
}

/* WOW.js can leave hero hidden on iOS — force visible & tappable */
.home-hero .wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
}

.home-hero__panel {
    position: relative;
    z-index: 4;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.25rem 2rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    max-width: 36rem;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hero-kicker-color, #ff8a9a);
    margin-bottom: 1.15rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.2);
}

.home-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff8a9a;
    box-shadow: 0 0 10px #ff8a9a;
    animation: homeHeroPulse 2s ease-in-out infinite;
}

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

.home-hero .hero__caption--dynamic h1 {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    text-transform: none;
}

.home-hero .hero__caption--dynamic p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1.65rem;
    max-width: 32rem;
}

.home-hero__actions {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    width: 100%;
    max-width: 100%;
    pointer-events: auto;
}

.home-hero__actions .btn {
    position: relative;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0.72rem 0.75rem;
    font-size: clamp(0.75rem, 2.2vw, 0.9rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
    border-radius: 12px;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(6, 182, 212, 0.35);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Override theme .btn hover overlay inside hero */
.home-hero__actions .btn::before {
    display: none !important;
    pointer-events: none !important;
}

.home-hero__actions .home-hero__btn-primary {
    background: linear-gradient(135deg, #b73146 0%, #ff8a9a 50%, #ff8a9a 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 8px 32px rgba(183, 49, 70, 0.4);
}

.home-hero__actions .home-hero__btn-ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #e8ecf4 !important;
    backdrop-filter: blur(8px);
}

.home-hero__actions .home-hero__btn-ghost:hover {
    border-color: rgba(6, 182, 212, 0.5) !important;
    color: #ff8a9a !important;
}

.home-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.home-hero__highlights li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.home-hero__highlights strong {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #ff8a9a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero__highlights span {
    font-size: 0.78rem;
    color: rgba(245, 247, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Visual column (decorative — must not block taps on panel below on iOS) */
.home-hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
    padding: 1rem 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__visual .home-hero__ring,
.home-hero__visual .home-hero__portrait {
    pointer-events: none;
}

.home-hero__ring {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #b73146, #ff8a9a, #ff8a9a, #b73146);
    background-size: 300% 300%;
    animation: homeHeroRing 8s linear infinite;
    box-shadow:
        0 0 60px rgba(183, 49, 70, 0.45),
        0 0 100px rgba(6, 182, 212, 0.2);
}

@keyframes homeHeroRing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.home-hero__ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0a0f24;
    border: 3px solid rgba(5, 8, 22, 0.9);
}

.home-hero__portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(183, 49, 70, 0.5);
    background: radial-gradient(circle at 30% 30%, rgba(183, 49, 70, 0.2), transparent 60%);
}

.home-hero__chip {
    position: absolute;
    pointer-events: none;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e8ecf4;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    animation: homeHeroChip 5s ease-in-out infinite;
}

.home-hero__chip--1 { top: 8%; right: 0; animation-delay: 0s; }
.home-hero__chip--2 { bottom: 22%; left: -2%; animation-delay: -1.5s; }
.home-hero__chip--3 { bottom: 8%; right: 8%; animation-delay: -3s; }

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

.home-hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(245, 247, 255, 0.45);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-hero__scroll:hover {
    color: #ff8a9a;
    text-decoration: none;
}

.home-hero__scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, #ff8a9a, transparent);
    animation: homeHeroScroll 2s ease-in-out infinite;
}

@keyframes homeHeroScroll {
    0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Cyber body overrides scoped to new hero */
body.site-cyber .home-hero .hero__caption--dynamic span.home-hero__badge {
    display: inline-flex;
}

body.site-cyber .home-hero .hero__caption--dynamic h1 {
    background: linear-gradient(135deg, #fff 0%, var(--hero-heading-color, #ff8a9a) 45%, #ff8a9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(183, 49, 70, 0.25));
}

body.site-cyber .slider-area:has(.home-hero) {
    background: transparent;
    padding: 0;
}

@media (min-width: 992px) {
    .home-hero__actions {
        gap: 0.75rem;
    }

    .home-hero__actions .btn {
        min-height: 50px;
        padding: 0.78rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: auto;
        padding: 5rem 0 3.5rem;
    }

    /* Safari: backdrop-filter can block taps on links inside */
    .home-hero__panel {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(10, 15, 36, 0.94);
    }

    .home-hero__visual {
        min-height: 260px;
        margin-top: 1.5rem;
    }

    .home-hero__ring {
        width: min(280px, 75vw);
    }

    .home-hero__chip--1 { right: 5%; }
    .home-hero__chip--2 { left: 5%; }

    .home-hero__scroll {
        display: none;
    }
}

@media (max-width: 575px) {
    .home-hero__panel {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .home-hero__actions {
        gap: 0.55rem;
    }

    .home-hero__actions .btn {
        min-height: 46px;
        padding: 0.65rem 0.45rem;
    }

    .home-hero__highlights {
        gap: 1rem;
    }
}

@media (max-width: 359px) {
    .home-hero__actions {
        grid-template-columns: 1fr;
    }

    .home-hero__actions .btn {
        white-space: normal;
    }
}
