/**
 * Trust2 — Inner page hero / breadcrumb (privacy, terms, contact, etc.)
 */

body.frontend-futuristic .fe-page-hero,
body.frontend-futuristic .inner-banner.fe-page-hero,
body.frontend-futuristic .fe-page-hero.inner-banner {
    position: relative;
    /* Header is in document flow — no large top offset needed */
    padding: 1.15rem 0 1rem !important;
    overflow: hidden;
    border-bottom: 1px solid var(--fe-border);
    background: linear-gradient(180deg, rgba(6, 11, 20, 0.98) 0%, rgba(8, 14, 26, 0.92) 100%);
}

body.frontend-futuristic .fe-page-hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: var(--color-primary);
}

body.frontend-futuristic .fe-page-hero-bg__grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    animation: fePageHeroGridDrift 48s linear infinite;
}

body.frontend-futuristic .fe-page-hero-bg__hex {
    position: absolute;
    right: 8%;
    top: 18%;
    width: min(180px, 22vw);
    height: auto;
    animation: fePageHeroHexSpin 28s linear infinite;
}

body.frontend-futuristic .fe-page-hero-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

body.frontend-futuristic .fe-page-hero-bg__orb--1 {
    width: 280px;
    height: 280px;
    left: -8%;
    top: 10%;
    background: color-mix(in srgb, var(--color-primary) 28%, transparent);
    animation: fePageHeroOrb 9s ease-in-out infinite;
}

body.frontend-futuristic .fe-page-hero-bg__orb--2 {
    width: 220px;
    height: 220px;
    right: 12%;
    bottom: -10%;
    background: rgba(99, 102, 241, 0.18);
    animation: fePageHeroOrb 11s ease-in-out infinite reverse;
}

body.frontend-futuristic .fe-page-hero .container {
    position: relative;
    z-index: 2;
}

body.frontend-futuristic .fe-page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    gap: 1rem 1.75rem;
    align-items: center;
}

body.frontend-futuristic .fe-page-hero__copy {
    min-width: 0;
}

body.frontend-futuristic .fe-page-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fe-text);
}

body.frontend-futuristic .fe-page-hero .breadcrumb {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

body.frontend-futuristic .fe-page-hero .breadcrumb-item,
body.frontend-futuristic .fe-page-hero .breadcrumb-item a {
    font-size: 0.88rem;
    color: var(--fe-muted);
    text-decoration: none;
}

body.frontend-futuristic .fe-page-hero .breadcrumb-item a:hover {
    color: var(--color-primary);
}

body.frontend-futuristic .fe-page-hero .breadcrumb-item.active {
    color: var(--fe-text);
}

body.frontend-futuristic .fe-page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: var(--fe-muted);
    opacity: 0.6;
}

body.frontend-futuristic .fe-page-hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

body.frontend-futuristic .fe-page-hero-illus {
    width: 100%;
    max-width: 260px;
    height: auto;
}

body.frontend-futuristic .fe-page-hero-illus__ring {
    transform-origin: 160px 100px;
    animation: fePageHeroRingSpin 14s linear infinite;
}

body.frontend-futuristic .fe-page-hero-illus__ring--2 {
    animation-direction: reverse;
    animation-duration: 20s;
}

body.frontend-futuristic .fe-page-hero-illus__coin,
body.frontend-futuristic .fe-page-hero-illus__coin--2 {
    animation: fePageHeroCoinFloat 4s ease-in-out infinite;
}

body.frontend-futuristic .fe-page-hero-illus__coin--2 {
    animation-delay: 0.6s;
}

body.frontend-futuristic .fe-page-hero-illus__dot {
    animation: fePageHeroPulse 2.4s ease-in-out infinite;
}

body.frontend-futuristic .fe-page-hero-illus__scan {
    animation: fePageHeroScan 3.2s linear infinite;
}

body.frontend-futuristic .fe-page-hero-illus__chart {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: fePageHeroDraw 2.4s ease forwards;
}

body.frontend-futuristic .fe-page-hero-illus__pen {
    animation: fePageHeroPenNudge 2.8s ease-in-out infinite;
}

body.frontend-futuristic .fe-page-hero-illus__spark {
    animation: fePageHeroSpark 2s ease-in-out infinite;
}

body.frontend-futuristic .inner-banner-title.fe-page-hero__title,
body.frontend-futuristic .fe-page-hero .inner-banner-title {
    color: var(--fe-text);
    margin-bottom: 0.5rem !important;
    font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
}

/* Mobile / tablet: title + breadcrumb left, illustration right — compact band */
@media (max-width: 991px) {
    body.frontend-futuristic .fe-page-hero,
    body.frontend-futuristic .inner-banner.fe-page-hero {
        padding: 0.75rem 0 0.55rem !important;
    }

    body.frontend-futuristic .fe-page-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(100px, 40%);
        gap: 0.35rem 0.6rem;
        align-items: center;
        text-align: left;
    }

    body.frontend-futuristic .fe-page-hero__title,
    body.frontend-futuristic .fe-page-hero .inner-banner-title {
        font-size: clamp(1rem, 4.2vw, 1.32rem) !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.15 !important;
    }

    body.frontend-futuristic .fe-page-hero .breadcrumb {
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 0;
        line-height: 1.25;
    }

    body.frontend-futuristic .fe-page-hero .breadcrumb-item,
    body.frontend-futuristic .fe-page-hero .breadcrumb-item a {
        font-size: 0.76rem;
    }

    body.frontend-futuristic .fe-page-hero__visual {
        justify-content: flex-end;
        align-self: center;
    }

    body.frontend-futuristic .fe-page-hero-illus {
        max-width: 100%;
        width: min(148px, 38vw);
        height: auto;
    }
}

@media (max-width: 575px) {
    body.frontend-futuristic .fe-page-hero,
    body.frontend-futuristic .inner-banner.fe-page-hero {
        padding: 0.65rem 0 0.5rem !important;
    }

    body.frontend-futuristic .fe-page-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(88px, 42%);
        gap: 0.3rem 0.45rem;
    }

    body.frontend-futuristic .fe-page-hero-illus {
        width: min(132px, 40vw);
    }

    body.frontend-futuristic .fe-page-hero .breadcrumb-item,
    body.frontend-futuristic .fe-page-hero .breadcrumb-item a {
        font-size: 0.72rem;
    }
}

@keyframes fePageHeroGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

@keyframes fePageHeroHexSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fePageHeroOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(16px, -12px); }
}

@keyframes fePageHeroRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fePageHeroCoinFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes fePageHeroPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes fePageHeroScan {
    0% { transform: translateY(0); opacity: 0.2; }
    50% { opacity: 0.55; }
    100% { transform: translateY(-120px); opacity: 0.2; }
}

@keyframes fePageHeroDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes fePageHeroPenNudge {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, -3px); }
}

@keyframes fePageHeroSpark {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-futuristic .fe-page-hero-bg__grid,
    body.frontend-futuristic .fe-page-hero-bg__hex,
    body.frontend-futuristic .fe-page-hero-bg__orb,
    body.frontend-futuristic .fe-page-hero-illus__ring,
    body.frontend-futuristic .fe-page-hero-illus__coin,
    body.frontend-futuristic .fe-page-hero-illus__coin--2,
    body.frontend-futuristic .fe-page-hero-illus__dot,
    body.frontend-futuristic .fe-page-hero-illus__scan,
    body.frontend-futuristic .fe-page-hero-illus__pen,
    body.frontend-futuristic .fe-page-hero-illus__spark {
        animation: none !important;
    }

    body.frontend-futuristic .fe-page-hero-illus__chart {
        stroke-dashoffset: 0;
        animation: none !important;
    }
}
