.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    background: rgba(30, 30, 50, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 32px;
    padding: 3rem 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border: 1px solid #2a2a44;
    opacity: 0;
    transform: translateY(30px);
    animation: homeFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: box-shadow 0.4s ease;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(74, 111, 165, 0.6), rgba(106, 74, 138, 0.5), rgba(74, 111, 165, 0.6));
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: homeShimmer 6s linear infinite;
    pointer-events: none;
}

.hero:hover::before { opacity: 1; }

.hero:hover {
    box-shadow: 0 30px 80px rgba(74, 111, 165, 0.25), 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #e8e8f0, #b8c7e6, #e8e8f0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(-20px);
    animation: homeSlideInLeft 0.6s 0.2s ease-out forwards;
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0c0;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: homeSlideInLeft 0.6s 0.4s ease-out forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: homeSlideInLeft 0.6s 0.6s ease-out forwards;
}

.user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #b8c7e6;
    font-size: 1.1rem;
    font-weight: 500;
    animation: homeFloat 4s ease-in-out infinite;
}

.username-gradient {
    display: inline-block;
    font-weight: 700;
    background: linear-gradient(90deg, #f7971e, #ffd200, #f7971e, #ffd200);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: homeGradientMove 4s linear infinite;
}

.features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid #2a2a44;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #b8c7e6;
    font-size: 0.95rem;
    cursor: default;
    transition: color 0.25s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: homeSlideInLeft 0.5s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.8s; }
.feature:nth-child(2) { animation-delay: 0.95s; }
.feature:nth-child(3) { animation-delay: 1.1s; }

.feature:hover { color: #fff; }

.feature .icon {
    display: inline-block;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.feature:hover .icon { animation: homeIconBounce 0.6s ease; }

.cta-buttons .button,
.cta-buttons a.button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-buttons .button::before,
.cta-buttons a.button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.cta-buttons .button:hover::before,
.cta-buttons a.button:hover::before {
    transform: translateX(100%);
}

.cta-buttons .button:active,
.cta-buttons a.button:active {
    transform: scale(0.97) translateY(0);
}

.btn-ripple-wave {
    position: absolute;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 0;
    animation: homeRipple 0.6s ease-out forwards;
}