/* Homepage — style peaxel.me : fond noir, cartes TA3, hero épuré */

.landing-home {
    position: relative;
    isolation: isolate;
    background: #000;
}

.landing-home .landing-nav {
    position: relative;
    z-index: 1100;
}

.landing-home .hero,
.landing-home .features,
.landing-home .site-footer {
    position: relative;
    z-index: 10;
}

.landing-home .gw-ticker {
    position: sticky;
    z-index: 250;
}

.landing-home .site-footer {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    border-top-color: rgba(34, 211, 238, 0.1);
}

/* ─── Background scene ─── */
.home-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    animation: home-orb-drift 22s ease-in-out infinite;
}

.home-bg-orb-1 {
    width: min(640px, 85vw);
    height: min(640px, 85vw);
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 68%);
}

.home-bg-orb-2 {
    width: min(480px, 60vw);
    height: min(480px, 60vw);
    bottom: 0;
    right: -12%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.32), transparent 70%);
    animation-delay: -8s;
}

.home-bg-orb-3 {
    width: min(400px, 50vw);
    height: min(400px, 50vw);
    bottom: 15%;
    left: -15%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
    animation-delay: -14s;
}

.home-bg-shimmer {
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 200deg at 50% 40%,
        transparent 0deg,
        rgba(34, 211, 238, 0.03) 70deg,
        transparent 140deg,
        rgba(124, 58, 237, 0.04) 220deg,
        transparent 300deg
    );
    animation: home-shimmer-spin 40s linear infinite;
}

.home-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}

/* ─── Floating TA3 cards ─── */
.home-bg-cards {
    position: absolute;
    inset: 0;
}

.home-float-card {
    position: absolute;
    width: clamp(110px, 16vw, 200px);
    will-change: transform;
    transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
}

.home-float-card-inner {
    animation: home-card-float 8s ease-in-out infinite;
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.65));
}

.home-float-card img.ta3-card {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    opacity: 0.55;
}

.home-float-card-1 { top: 8%; left: 3%; --rot: -12deg; }
.home-float-card-2 { top: 6%; right: 4%; --rot: 9deg; }
.home-float-card-3 { top: 42%; left: 1%; --rot: -6deg; }
.home-float-card-4 { top: 36%; right: 2%; --rot: 11deg; }
.home-float-card-5 { bottom: 22%; left: 6%; --rot: 5deg; }
.home-float-card-6 { bottom: 18%; right: 5%; --rot: -10deg; }
.home-float-card-7 { bottom: 8%; left: 14%; --rot: -4deg; }
.home-float-card-8 { bottom: 6%; right: 12%; --rot: 8deg; }

.home-float-card-1 .home-float-card-inner { animation-delay: 0s; }
.home-float-card-2 .home-float-card-inner { animation-delay: -1.4s; }
.home-float-card-3 .home-float-card-inner { animation-delay: -2.8s; }
.home-float-card-4 .home-float-card-inner { animation-delay: -0.9s; }
.home-float-card-5 .home-float-card-inner { animation-delay: -3.5s; }
.home-float-card-6 .home-float-card-inner { animation-delay: -2.1s; }
.home-float-card-7 .home-float-card-inner { animation-delay: -3s; }
.home-float-card-8 .home-float-card-inner { animation-delay: -0.5s; }

.home-float-card-inner {
    transform: rotate(var(--rot, 0deg));
}

@keyframes home-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, 3%) scale(1.04); }
    66% { transform: translate(-3%, 2%) scale(0.97); }
}

@keyframes home-shimmer-spin {
    to { transform: rotate(360deg); }
}

@keyframes home-card-float {
    0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
    50% { transform: rotate(calc(var(--rot, 0deg) + 2deg)) translateY(-18px); }
}

/* ─── Hero peaxel.me ─── */
.hero-peaxel {
    position: relative;
    z-index: 10;
    padding-top: clamp(2.5rem, 8vw, 5rem);
}

.hero-brand {
    margin: 0 auto 1.25rem;
    display: flex;
    justify-content: center;
}

.hero-mark {
    width: clamp(56px, 12vw, 72px);
    height: clamp(56px, 12vw, 72px);
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.18));
    animation: home-logo-glow 4s ease-in-out infinite;
}

@keyframes home-logo-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.14)); }
    50% { filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.28)); }
}

.landing-home .hero-badge {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.28);
    color: var(--peaxel-cyan);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #fff;
}

.hero-title {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, rgba(34, 211, 238, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
    line-height: 1.65;
}

.btn-glow {
    box-shadow: 0 4px 28px rgba(88, 101, 242, 0.4);
    transition: transform 0.15s, box-shadow 0.2s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-links a {
    color: var(--peaxel-cyan);
    text-decoration: none;
}

.hero-links a:hover {
    text-decoration: underline;
}

.hero-links-sep {
    color: var(--text-dim);
    opacity: 0.6;
}

.btn-glow:hover {
    box-shadow: 0 8px 36px rgba(88, 101, 242, 0.55);
    transform: translateY(-2px);
}

/* ─── Feature cards ─── */
.landing-home .features-elevated .feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.landing-home .features-elevated .feature-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(34, 211, 238, 0.06);
}

.landing-home .features-elevated .feature-card h3 {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

/* ─── Footer Genefty ─── */
.footer-genefty {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-genefty a {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(34, 211, 238, 0.35);
}

.footer-genefty a:hover {
    color: var(--peaxel-cyan);
    text-decoration-color: var(--peaxel-cyan);
}

.community-panel {
    text-align: center;
}

.community-panel .btn-discord {
    max-width: 320px;
    margin: 0 auto;
}

/* ─── Lazy blur ─── */
.img-blur-load {
    filter: blur(14px);
    transform: scale(1.03);
    transition: filter 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.img-blur-load.is-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .home-float-card-3,
    .home-float-card-4,
    .home-float-card-7,
    .home-float-card-8 {
        opacity: 0.35;
        transform: scale(0.9);
    }

    .home-float-card-1 { top: 10%; left: -4%; }
    .home-float-card-2 { top: 8%; right: -4%; }
}

@media (max-width: 480px) {
    .home-float-card-3,
    .home-float-card-4,
    .home-float-card-5,
    .home-float-card-6,
    .home-float-card-7,
    .home-float-card-8 {
        display: none;
    }

    .home-float-card-1,
    .home-float-card-2 {
        width: 88px;
        opacity: 0.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-bg-orb,
    .home-bg-shimmer,
    .home-float-card-inner,
    .hero-mark {
        animation: none !important;
    }
}
