@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(234, 88, 12, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.hero-video-showcase {
    min-width: 0;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 90vh;
    background: var(--background);
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-glow-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, hsl(24 90% 48% / 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-shell-inner {
    max-width: 80rem;
    margin-inline: auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.2);
    color: var(--primary);
}

.hero-kicker-dot {
    animation: pulse 2s infinite;
    background: var(--primary);
}

.hero-headline {
    font-size: clamp(2.25rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-headline-emphasis {
    background-image: linear-gradient(90deg, #ea580c, #f97316, #fb923c);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subcopy {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 36rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.hero-video-container {
    position: relative;
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-video-window {
    height: 2.5rem;
    background: hsl(220 14% 96%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding-inline: 1rem;
    gap: 0.5rem;
    min-width: 0;
}

.hero-video-window-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-video-window-label {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
}

.hero-video-window-label-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted-foreground);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hero-demo-video {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--muted);
}

.hero-cta-row .btn {
    white-space: normal !important;
    text-align: center;
}

.hero-cta-row {
    margin-bottom: 2rem;
    align-self: stretch;
}

.hero-primary-cta {
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(234, 88, 12, 0.4);
}

.hero-secondary-cta {
    font-weight: 600;
    color: var(--foreground);
    border-color: var(--border);
}

.hero-floating-ui {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.hero-floating-ui-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: hsl(142 71% 45% / 0.1);
    color: hsl(142 71% 45%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-floating-ui-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    white-space: nowrap;
}

.hero-floating-ui-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
    white-space: nowrap;
}

.hero-social-proof-divider {
    display: none;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-trial-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: hsl(142 71% 45%);
}

.hero-trial-pill-icon {
    font-size: 1.25rem;
}

.hero-trial-pill-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-video-showcase {
    position: relative;
    width: 100%;
    animation-delay: 0.2s;
    padding-bottom: 2rem;
}

.hero-window-dot-red {
    background: hsl(0 84% 60%);
}

.hero-window-dot-yellow {
    background: hsl(38 92% 50%);
}

.hero-window-dot-green {
    background: hsl(142 71% 45%);
}

.hero-window-icon {
    font-size: 0.875rem;
    color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 374px) {
    .hero-cta-row .btn {
        width: 100%;
        min-height: 3.25rem;
        height: auto;
        padding: 0.875rem 0.875rem;
        line-height: 1.25;
        font-size: 0.95rem;
    }

    .hero-video-window {
        padding-inline: 0.75rem;
        gap: 0.375rem;
    }

    .hero-video-window-dot {
        width: 0.625rem;
        height: 0.625rem;
    }

    .hero-video-window-label {
        gap: 0.375rem;
        padding: 0.25rem 0.5rem;
        max-width: calc(100% - 2.75rem);
    }

    .hero-video-window-label-text {
        font-size: 0.62rem;
    }

    .hero-demo-video {
        aspect-ratio: auto;
        object-fit: contain;
    }

    .hero-floating-ui {
        bottom: -0.75rem;
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .hero-floating-ui-icon {
        width: 2rem;
        height: 2rem;
    }

    .hero-floating-ui-title {
        font-size: 0.75rem;
    }

    .hero-floating-ui-subtitle {
        font-size: 0.6875rem;
    }
}

@media (min-width: 640px) {
    .hero-cta-row .btn {
        white-space: nowrap !important;
    }

    .hero-social-proof-divider {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .hero-split-grid {
        grid-template-columns: 1fr 1.3fr !important;
        gap: 4rem !important;
    }

    .hero-video-container {
        border-radius: calc(var(--radius) * 2);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border);
        transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
        transform-origin: right center;
    }

    .hero-video-container:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }

    .hero-floating-ui {
        bottom: -2rem;
        left: -2rem;
        transform: none;
        padding: 1rem 1.5rem;
        gap: 1rem;
        max-width: none;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }
}
