/* Modern smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #4e73df, #3b5998);
    color: white;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title-wrapper {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    min-height: 4.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title span {
    display: block;
    width: 100%;
    text-align: center;
}

.hero-title span[style*="position: absolute"] {
    left: 0;
    right: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Voice Command Demo */
.voice-demo {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    height: 180px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#demoText {
    height: 24px;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
}

.mic-animation {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4e73df;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
}

.mic-animation i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.primary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 220px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(145deg, #4e73df, #3b5998);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #3b5998, #4e73df);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4e73df;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: #4e73df;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3b5998;
}

.feature-text {
    color: #5a5c69;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4e73df, #3b5998);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
.recording .mic-animation {
    animation: pulse 1s infinite;
    background: #4e73df;
}

.recording .mic-animation i.fa-cog {
    animation: fa-spin 1s infinite linear;
    font-size: 2.2rem;
}

.mic-animation.success {
    background: #1ab394;
    animation: none;
    transform: scale(1);
}

.mic-animation.success i {
    font-size: 2.5rem;
}

.mic-animation i.fa-check {
    color: white;
    transform: scale(1.2);
}

.mic-animation i.fa-file-invoice {
    color: white;
    animation: slideIn 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-title-wrapper {
        padding-top: 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        min-height: 3rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .voice-demo {
        height: 160px;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        width: 100%;
        padding: 0 1rem;
    }

    .primary-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
        min-width: unset;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
