/* ── Home hero — premium landing ───────────────────────────── */

#hero {
    isolation: isolate;
    background: #0B0B0F;
}

.hero-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-mesh {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(ellipse 50% 40% at 20% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 80% 30%, rgba(244, 114, 182, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 80%, rgba(96, 165, 250, 0.12) 0%, transparent 55%);
    animation: heroMeshShift 14s ease-in-out infinite alternate;
}

@keyframes heroMeshShift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 3%) scale(1.06); }
}

.hero-grid {
    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: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.hero-orb-1 {
    width: 28rem;
    height: 28rem;
    top: 8%;
    left: -4%;
    background: rgba(139, 92, 246, 0.35);
}

.hero-orb-2 {
    width: 32rem;
    height: 32rem;
    bottom: 5%;
    right: -6%;
    background: rgba(244, 114, 182, 0.28);
}

.hero-orb-3 {
    width: 20rem;
    height: 20rem;
    top: 42%;
    left: 55%;
    background: rgba(52, 211, 153, 0.15);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, #0B0B0F 100%);
}

/* Mobile-only particle glow (shown via mobile.css) */
.hero-particles {
    display: none;
    pointer-events: none;
}

/* Floating prompt cards — wrap handles parallax, card handles motion */
.hero-float-card-wrap {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

.hero-float-card-wrap--left {
    top: 22%;
    left: 4%;
}

.hero-float-card-wrap--right {
    top: 28%;
    right: 3%;
}

.hero-float-card-wrap--bottom {
    bottom: 18%;
    left: 12%;
    width: min(220px, 36vw);
}

.hero-float-card {
    width: min(260px, 42vw);
    padding: 1rem 1.15rem;
    border-radius: 1.15rem;
    background: rgba(17, 17, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(139, 92, 246, 0.08) inset;
    opacity: 0;
    animation: heroCardIn 1s cubic-bezier(0.34, 1.4, 0.64, 1) forwards,
               heroCardFloat 6s ease-in-out 1.2s infinite;
}

.hero-float-card-wrap--left .hero-float-card {
    rotate: -4deg;
    animation-delay: 0.5s, 1.2s;
}

.hero-float-card-wrap--right .hero-float-card {
    rotate: 3deg;
    animation-delay: 0.75s, 1.4s;
}

.hero-float-card-wrap--bottom .hero-float-card {
    rotate: -2deg;
    width: 100%;
    animation-delay: 1s, 1.6s;
}

@keyframes heroCardFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@keyframes heroCardIn {
    from { opacity: 0; translate: 0 24px; scale: 0.92; }
    to { opacity: 1; translate: 0 0; scale: 1; }
}

@media (max-width: 1024px) {
    .hero-float-card-wrap { display: none; }
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.hero-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
    animation: heroDotPulse 2s ease-in-out infinite;
}

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

.hero-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.hero-card-body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.hero-card-body em {
    color: #a78bfa;
    font-style: normal;
}

.hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-stars {
    color: #fbbf24;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

/* Hero content */
.hero-content {
    will-change: transform, opacity;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem 0.45rem 0.55rem;
    margin-bottom: 1.75rem;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.28);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c4b5fd;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.12);
}

.hero-eyebrow-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #F472B6);
    font-size: 0.65rem;
    color: #fff;
}

.hero-headline {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-headline-line {
    display: block;
}

.hero-headline-accent {
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 35%, #f472b6 70%, #8B5CF6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroShimmer 5s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-sub {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: #94a3b8;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.65;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-sub strong {
    color: #e2e8f0;
    font-weight: 600;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-search-wrap {
    max-width: 34rem;
    margin: 0 auto 2rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-search-glow {
    position: relative;
    padding: 1px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(244, 114, 182, 0.35), rgba(139, 92, 246, 0.2));
    background-size: 200% 200%;
    animation: heroBorderGlow 4s ease infinite;
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.15);
}

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

.hero-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(12, 12, 16, 0.92);
    border-radius: calc(1.25rem - 1px);
    padding: 0.35rem;
    backdrop-filter: blur(12px);
}

.hero-search:focus-within {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.hero-search-icon {
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: #fff;
    padding: 0.75rem 0;
}

.hero-search input::placeholder {
    color: #475569;
}

.hero-search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.35rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8B5CF6, #a78bfa 50%, #F472B6);
    background-size: 200% auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.hero-search-btn:hover {
    transform: translateY(-1px);
    background-position: right center;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-cta-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, #8B5CF6 0%, #F472B6 100%);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: heroShine 3s ease-in-out infinite;
}

@keyframes heroShine {
    0% { left: -100%; }
    40%, 100% { left: 150%; }
}

.hero-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.5);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.06);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-cta-secondary:hover {
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(167, 139, 250, 0.6);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.8125rem;
    color: #94a3b8;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-stat-pill:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
}

.hero-stat-pill strong {
    color: #fff;
    font-weight: 800;
}

.hero-stat-pill i {
    font-size: 0.75rem;
}

.hero-platforms {
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-scroll {
    margin-top: 3rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

.hero-scroll-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.2s ease;
}

.hero-scroll-link:hover {
    color: #a78bfa;
}

.hero-scroll-mouse {
    width: 1.35rem;
    height: 2.1rem;
    border-radius: 9999px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

.hero-scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    border-radius: 9999px;
    background: #a78bfa;
    animation: heroScrollWheel 2s ease-in-out infinite;
}

@keyframes heroScrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* Category parallax cards */
.parallax-card {
    overflow: hidden;
}

.parallax-card__img {
    will-change: transform;
    transition: transform 0.4s ease;
}

.parallax-card:hover .parallax-card__img {
    transform: scale(1.08);
}

.parallax-card__shine {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.parallax-card:hover .parallax-card__shine {
    transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-mesh,
    .hero-float-card,
    .hero-headline-accent,
    .hero-search-glow,
    .hero-cta-primary::after,
    .hero-scroll-mouse::after,
    .hero-card-dot {
        animation: none !important;
    }

    .hero-float-card {
        opacity: 1;
    }
}
