/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #0066FF 0%, #7C3AED 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.75) 0%, rgba(0, 7, 101, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 24px;
    position: relative;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Sign Up Form */
.hero-signup-form {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-signup-form form {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: white;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-form-input {
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.hero-form-input::placeholder {
    color: var(--text-secondary);
}

.hero-form-input:focus {
    outline: none;
    background: rgba(0, 102, 255, 0.05);
}

.hero-form-group:not(:last-child) .hero-form-input {
    border-right: 1px solid var(--border);
    margin-right: 8px;
}

.hero-form-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #040f3a, #1b49ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.4s;
    white-space: nowrap;
    box-shadow: 0 0 25px rgba(27, 73, 255, 0.3),
                0 0 50px rgba(27, 73, 255, 0.15),
                inset 0 0 30px rgba(27, 73, 255, 0.05);
}

.hero-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(27, 73, 255, 0.45),
                0 0 70px rgba(27, 73, 255, 0.25),
                0 0 100px rgba(27, 73, 255, 0.12),
                inset 0 0 40px rgba(27, 73, 255, 0.08);
}

/* Hero "Start Building" CTA link (replaces signup form on index) */
a.hero-form-button.hero-start-building {
    display: inline-block;
    text-decoration: none;
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .hero-signup-form form {
        flex-direction: column;
        gap: 8px;
    }

    .hero-form-group:not(:last-child) .hero-form-input {
        border-right: none;
        border-bottom: 1px solid var(--border);
        margin-right: 0;
        margin-bottom: 8px;
    }

    .hero-form-button {
        width: 100%;
    }
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

