.hero {
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 24px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 28%), radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.08), transparent 32%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 84px 84px;
    opacity: 0.24;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    right: -260px;
    top: -220px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.32) 0%, transparent 70%);
    filter: blur(46px);
    pointer-events: none;
    animation: floatGlow 20s ease-in-out infinite;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.95;
    }
    50% {
        transform: translate(-20px, 18px) scale(1.03);
        opacity: 1;
    }
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.4rem);
    line-height: 0.96;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 40px rgba(3, 13, 35, 0.12);
}

.hero-subtitle {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    line-height: 1.25;
    margin-bottom: 24px;
    color: #e2e8f0;
    max-width: 580px;
    font-weight: 600;
}

.hero-description {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 1.03rem;
    line-height: 1.9;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.9s 0.5s ease-out forwards;
}

.photo-frame {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.photo-frame:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 28px 80px rgba(3, 16, 49, 0.24);
}

.photo-frame img {
    width: 100%;
    height: auto;
    border-radius: 26px;
    display: block;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.85s ease-out forwards;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.18s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.26s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.34s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.42s;
}

.hero-content > *:nth-child(5) {
    animation-delay: 0.52s;
}

.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.9s 0.5s ease-out forwards;
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding-top: 0;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}
