/* Homepage premium hero — loaded only when hero_layout is premium_saas */

.hero-premium {
    position: relative;
    overflow: hidden;
}

.hero-premium::before,
.hero-premium::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -35%);
}

.hero-premium::before {
    top: 55%;
    width: min(72vw, 720px);
    height: min(48vw, 420px);
    background: radial-gradient(ellipse at center, rgba(232, 148, 46, 0.22) 0%, transparent 68%);
    filter: blur(2px);
}

.hero-premium::after {
    top: 58%;
    width: min(48vw, 480px);
    height: min(32vw, 280px);
    background: radial-gradient(ellipse at center, rgba(240, 168, 74, 0.12) 0%, transparent 70%);
}

.hero-premium .container {
    position: relative;
    z-index: 1;
}

.hero-premium__layout {
    display: grid;
    gap: var(--space-6);
    align-items: center;
    padding-top: var(--space-5);
    padding-bottom: var(--space-4);
}

@media (min-width: 1024px) {
    .hero-premium__layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: var(--space-7);
    }
}

.hero-premium__copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 40rem;
}

.hero-premium__badge-row {
    margin-bottom: var(--space-1);
}

.hero-premium__badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-premium__badge-muted {
    color: var(--muted);
}

.hero-premium__badge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
    transition: color var(--duration-fast) var(--ease-out), gap var(--duration-fast) var(--ease-out);
}

.hero-premium__badge-link:hover {
    color: var(--accent-bright);
}

.hero-premium__badge-arrow {
    font-size: 0.9em;
    transition: transform var(--duration-fast) var(--ease-out);
}

.hero-premium__badge-link:hover .hero-premium__badge-arrow {
    transform: translateX(3px);
}

.hero-premium__title {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    line-height: 1.05;
    background: linear-gradient(120deg, var(--text) 0%, var(--text-secondary) 45%, rgba(232, 148, 46, 0.95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-premium__lead {
    margin: 0;
    font-size: clamp(var(--text-md), 1.6vw, var(--text-xl));
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 36rem;
}

.hero-premium__social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.hero-premium__stars {
    display: flex;
    gap: 3px;
    color: var(--accent-bright);
    font-size: 0.75rem;
    line-height: 1;
}

.hero-premium__star {
    opacity: 0.95;
}

.hero-premium__social-text {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    max-width: 18rem;
}

.hero-premium__visual-wrap {
    min-width: 0;
    perspective: 1200px;
}

.hero-premium__visual {
    position: relative;
    padding: var(--space-4) 0 var(--space-6);
}

@media (min-width: 1024px) {
    .hero-premium__visual {
        padding: var(--space-6) var(--space-3) var(--space-7);
    }
}

.hero-premium__stack {
    position: relative;
    min-height: 280px;
}

@media (min-width: 640px) {
    .hero-premium__stack {
        min-height: 320px;
    }
}

.hero-premium__frame {
    position: absolute;
    width: 88%;
    left: 50%;
    transform: translateX(-50%) rotate(-12deg) skewY(6deg);
    transform-origin: center bottom;
    transition: transform var(--duration-slow) var(--ease-out), left var(--duration-slow) var(--ease-out);
    border-radius: var(--radius);
    padding: 10px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--inset-highlight), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 148, 46, 0.08);
}

.hero-premium__frame--back {
    top: 0;
    z-index: 1;
    left: 8%;
    width: 82%;
}

.hero-premium__frame--mid {
    top: 36px;
    z-index: 2;
    left: 50%;
    width: 86%;
}

.hero-premium__frame--front {
    top: 88px;
    z-index: 3;
    left: 62%;
    width: 90%;
}

.hero-premium__stack:hover .hero-premium__frame--back {
    left: 2%;
    transform: translateX(-50%) rotate(-8deg) skewY(4deg);
}

.hero-premium__stack:hover .hero-premium__frame--mid {
    transform: translateX(-50%) rotate(-8deg) skewY(4deg);
}

.hero-premium__stack:hover .hero-premium__frame--front {
    left: 68%;
    transform: translateX(-50%) rotate(-8deg) skewY(4deg);
}

.hero-premium__frame-inner {
    border-radius: calc(var(--radius-sm) + 2px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a090d;
}

.hero-premium__frame-inner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1248 / 765;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .hero-premium__stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        padding: var(--space-4) 0 var(--space-6);
    }

    .hero-premium__frame {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: min(100%, 440px) !important;
        margin-bottom: -72px;
        transform: rotate(-10deg) skewY(4deg);
    }

    .hero-premium__frame:last-child {
        margin-bottom: 0;
    }

    .hero-premium__stack:hover .hero-premium__frame {
        transform: rotate(-8deg) skewY(3deg);
    }
}

/* Entrance motion (enabled by hero-premium.js) */
.hero-premium .hero-premium__animate {
    opacity: 0;
    transform: translateY(14px);
}

.hero-premium.hero-premium--visible .hero-premium__animate {
    animation: hero-premium-in 0.7s var(--ease-out) forwards;
}

.hero-premium.hero-premium--visible .hero-premium__animate--delay-3 {
    animation-delay: 0.12s;
}

.hero-premium.hero-premium--visible .hero-premium__animate--delay-4 {
    animation-delay: 0.22s;
}

.hero-premium.hero-premium--visible .hero-premium__animate--delay-5 {
    animation-delay: 0.32s;
}

@keyframes hero-premium-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-premium .hero-premium__animate {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .hero-premium__frame {
        transition: none;
    }

    .hero-premium__stack:hover .hero-premium__frame--back,
    .hero-premium__stack:hover .hero-premium__frame--mid,
    .hero-premium__stack:hover .hero-premium__frame--front {
        transform: translateX(-50%) rotate(-12deg) skewY(6deg);
    }
}

@media (max-width: 480px) {
    .hero-premium__title {
        font-size: clamp(1.6rem, 7.2vw, 2.35rem);
    }

    .hero-premium__stack {
        min-height: 220px;
    }
}
