/* Home page specific styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.home-page {
    background: #f8fafc;
    color: #0f172a;
}

.home-hero {
    align-items: center;
    display: flex;
    gap: 44px;
    justify-content: space-between;
    overflow: hidden;
    padding: 88px 24px 52px;
    position: relative;
}

.home-hero::before {
    background: transparent;
    content: '';
    inset: 0;
    position: absolute;
}

.home-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.home-eyebrow,
.home-section-kicker {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.home-hero .home-eyebrow {
    color: #475569;
}

.home-hero-title {
    color: #0f172a;
    font-size: 3.35rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
    max-width: 720px;
}

.home-hero-subtitle {
    color: #475569;
    font-size: 1.18rem;
    line-height: 1.55;
    margin: 22px 0 0;
    max-width: 640px;
}

.home-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-primary-cta,
.home-secondary-cta {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-primary-cta {
    background: #16a34a;
    border: 1px solid #16a34a;
    color: #ffffff;
}

.home-primary-cta:hover {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
    transform: translateY(-1px);
}

.home-secondary-cta {

    color: #334155;
}

.home-secondary-cta:hover {
    background: #f8fafc;
    color: #0f172a;
}

.home-hero-proof {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 20px;
}

.home-social-proof-icons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.home-social-proof-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
}

.home-social-proof-item .material-icons {
    color: #64748b;
    font-size: 17px;
    line-height: 1;
}

.home-hero-preview {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    flex: 0 0 min(34vw, 360px);
    height: 520px;
    max-width: 360px;
    overflow: hidden;
    position: relative;
    width: min(34vw, 360px);
    z-index: 1;
}

.home-hero-preview-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    justify-content: space-between;
    padding: 9px 12px;
}

.home-hero-preview-header span:last-child {
    color: #64748b;
    font-weight: 700;
}

.home-hero-preview img {
    animation: scrollShowcase 70s linear infinite;
    display: block;
    height: auto;
    min-height: 1040px;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.home-trust-band {
    align-items: center;

    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 18px 24px;
}

.home-trust-band span {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 6px 12px;
}

.home-section {
    margin: 0 auto;
    max-width: 1120px;
    padding: 72px 24px 0;
}

.home-section-header {
    margin: 0 auto 28px;
    max-width: 760px;
    text-align: center;
}

.home-section h2,
.home-section-header h2,
.home-final-cta h2 {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0;
}

.home-workflow-grid,
.home-use-case-grid {
    display: grid;
    gap: 14px;
}

.home-workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-step,
.home-proof-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px;
}

.home-step-number {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    display: flex;
    font-size: 0.85rem;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    margin-bottom: 18px;
    width: 30px;
}

.home-step h3,
.home-proof-panel h3 {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.home-step p,
.home-proof-copy p,
.home-proof-panel li {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
}

.home-use-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-use-case {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    color: #334155;
    font-weight: 800;
    padding: 16px 18px;
}

.home-proof-section {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.home-proof-copy h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 18px;
}

.home-proof-panel ul {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.home-proof-panel li {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.home-example-frame {
   text-align: center;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}

.home-example-frame img {

}

.home-section.home-demo-section {
    max-width: 300px;
    padding: 32px 0 0;
    width: calc(100% - 32px);
}

.home-demo-section .video-demo-container {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
    height: 58px;
    margin: 0;
    padding: 5px 30px 5px 5px;
    width: 100%;
}

.home-demo-section .video-placeholder {
    align-items: center;
    aspect-ratio: auto;
    background: transparent;
    border: 0;
    border-radius: 6px;
    display: flex;
    float: none;
    gap: 9px;
    height: 46px;
    padding: 0;
    text-align: left;
    width: 100%;
}

.home-demo-section .video-demo-copy {
    color: #334155;
    flex: 1;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-demo-section .video-placeholder img {
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    flex: 0 0 78px;
    height: 44px;
    object-fit: cover;
    transition: none;
    width: 78px;
}

.home-demo-section .play-button {
    background: #7c3aed;
    box-shadow: none;
    color: #ffffff;
    flex: 0 0 30px;
    height: 30px;
    position: static;
    transform: none;
    width: 30px;
}

.home-demo-section .play-button svg {
    height: 16px;
    margin-left: 2px;
    width: 16px;
}

.home-demo-section .video-placeholder:hover img {
    transform: none;
}

.home-demo-section .video-placeholder:hover .play-button {
    background: #6d28d9;
    transform: scale(1.06);
}

.home-demo-section .hide-video-btn {
    background: transparent;
    color: #94a3b8;
    height: 22px;
    line-height: 22px;
    right: 4px;
    top: 4px;
    width: 22px;
}

.home-demo-section .hide-video-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.home-page .faq-section {
    max-width: 920px;
}

.home-page .faq-section h2 {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.home-page .faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
}

.home-final-cta {
    margin: 0 auto;
    max-width: 920px;
    padding: 72px 24px 84px;
    text-align: center;
}

.home-final-cta .home-primary-cta {
    margin-top: 22px;
}

/* Loading animation for any future dynamic content */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive video embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Testimonial section (for future use) */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    color: #64748b;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: #1e293b;
}

.testimonial-role {
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .home-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: 68vh;
        padding: 64px 20px 42px;
    }

    .home-hero-title {
        font-size: 2.35rem;
    }

    .home-hero-subtitle {
        font-size: 1.04rem;
    }

    .home-workflow-grid,
    .home-use-case-grid,
    .home-proof-section {
        grid-template-columns: 1fr;
    }

    .home-section {
        padding-top: 54px;
    }

    .home-hero-preview {
        flex-basis: auto;
        height: 240px;
        max-width: none;
        width: 100%;
    }

    .home-hero-preview img {
        min-height: 520px;
    }
}

@media (max-width: 560px) {
    .home-hero {
        min-height: 70vh;
        gap: 34px;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-primary-cta,
    .home-secondary-cta {
        width: 100%;
    }

    .home-section h2,
    .home-section-header h2,
    .home-proof-copy h2,
    .home-final-cta h2 {
        font-size: 1.55rem;
    }

    .home-trust-band {
        justify-content: flex-start;
    }

    .home-hero-preview-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
