/* ============================================================================
   SIGNALDESK - HOMEPAGE STYLES
   Creative, beautiful styles for all homepage sections
   ============================================================================ */

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 50%, #EFF6FF 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Shapes */
.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--grey-darkest);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, var(--grey-darkest) 0%, var(--primary-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--grey-medium);
    line-height: var(--leading-relaxed);
    margin-bottom: 2.5rem;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.2);
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.02) translateY(-5px);
}

/* Floating Animation for Hero Image */
.hero-image img {
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
    }

    /* Fix for clipped headline on small screens: increased line-height and lowered heading to avoid clipping */
    .hero-headline {
        line-height: 1.30;
        margin-top: 1.6rem; /* lower the heading so top parts of letters are clearly visible */
    }
}

/* ============================================================================
   PROBLEM SECTION
   ============================================================================ */

.problem-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
    position: relative;
}

.problem-section .section-title {
    animation: fadeInUp 0.8s ease-out;
}

.problem-section .row {
    margin-top: 3rem;
}

/* Staggered Animation for Problem Cards */
.problem-section .col-md-4:nth-child(1) .problem-card {
    animation-delay: 0.1s;
}

.problem-section .col-md-4:nth-child(2) .problem-card {
    animation-delay: 0.3s;
}

.problem-section .col-md-4:nth-child(3) .problem-card {
    animation-delay: 0.5s;
}

/* ============================================================================
   SOLUTION SECTION
   ============================================================================ */

.solution-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--grey-lighter) 100%);
    position: relative;
}

.solution-description {
    font-size: var(--font-lg);
    color: var(--grey-dark);
    line-height: var(--leading-relaxed);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.solution-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slow);
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.solution-visual:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Solution Diagram */
.solution-diagram {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.diagram-step {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.diagram-step:hover {
    transform: translateX(10px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.diagram-step.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
    border-color: var(--primary-blue);
}

.diagram-icon {
    font-size: var(--font-3xl);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.diagram-step:hover .diagram-icon {
    transform: rotate(360deg) scale(1.1);
}

.diagram-text {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--grey-dark);
}

.diagram-arrow {
    text-align: center;
    font-size: var(--font-3xl);
    color: var(--primary-blue);
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 991px) {
    .solution-section .row {
        flex-direction: column-reverse;
    }
}

/* ============================================================================
   HOW IT WORKS SECTION
   ============================================================================ */

.how-it-works-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
    position: relative;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.how-it-works-section .section-title,
.how-it-works-section .section-subtitle {
    animation: fadeInUp 0.8s ease-out;
}

/* Staggered Animation for Step Cards */
.how-it-works-section .col-md-6:nth-child(1) .step-card,
.how-it-works-section .col-lg-3:nth-child(1) .step-card {
    animation-delay: 0.1s;
}

.how-it-works-section .col-md-6:nth-child(2) .step-card,
.how-it-works-section .col-lg-3:nth-child(2) .step-card {
    animation-delay: 0.2s;
}

.how-it-works-section .col-md-6:nth-child(3) .step-card,
.how-it-works-section .col-lg-3:nth-child(3) .step-card {
    animation-delay: 0.3s;
}

.how-it-works-section .col-md-6:nth-child(4) .step-card,
.how-it-works-section .col-lg-3:nth-child(4) .step-card {
    animation-delay: 0.4s;
}

/* ============================================================================
   FEATURES SECTION (What You Get)
   ============================================================================ */

.features-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, var(--grey-lighter) 0%, var(--white) 100%);
    position: relative;
}

.features-section .section-title,
.features-section .section-subtitle {
    animation: fadeInUp 0.8s ease-out;
}

/* Staggered Animation for Feature Cards */
.features-section .col-md-6:nth-child(1) .feature-card,
.features-section .col-lg-4:nth-child(1) .feature-card {
    animation-delay: 0.1s;
}

.features-section .col-md-6:nth-child(2) .feature-card,
.features-section .col-lg-4:nth-child(2) .feature-card {
    animation-delay: 0.2s;
}

.features-section .col-md-6:nth-child(3) .feature-card,
.features-section .col-lg-4:nth-child(3) .feature-card {
    animation-delay: 0.3s;
}

.features-section .col-md-6:nth-child(4) .feature-card,
.features-section .col-lg-4:nth-child(4) .feature-card {
    animation-delay: 0.4s;
}

.features-section .col-md-6:nth-child(5) .feature-card,
.features-section .col-lg-4:nth-child(5) .feature-card {
    animation-delay: 0.5s;
}

.features-section .col-md-6:nth-child(6) .feature-card,
.features-section .col-lg-4:nth-child(6) .feature-card {
    animation-delay: 0.6s;
}

/* ============================================================================
   IMPACT SECTION
   ============================================================================ */

.impact-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-impact);
    position: relative;
    overflow: hidden;
}

/* Animated Background Effects */
.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

.impact-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px
        );
    animation: lineScroll 30s linear infinite;
    pointer-events: none;
}

@keyframes lineScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.impact-section .section-title,
.impact-section .section-subtitle {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

/* Staggered Animation for Impact Cards */
.impact-section .col-lg-4:nth-child(1) .impact-card {
    animation-delay: 0.2s;
}

.impact-section .col-lg-4:nth-child(2) .impact-card {
    animation-delay: 0.4s;
}

.impact-section .col-lg-4:nth-child(3) .impact-card {
    animation-delay: 0.6s;
}

/* ============================================================================
   TRUST SECTION
   ============================================================================ */

.trust-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
    position: relative;
}

.trust-section .section-title {
    animation: fadeInUp 0.8s ease-out;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.trust-logo-item {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--grey-medium);
    padding: 1rem 2rem;
    background: var(--grey-lighter);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.trust-logo-item:hover {
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.trust-note {
    font-size: var(--font-base);
    color: var(--grey-medium);
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* ============================================================================
   FINAL CTA SECTION
   ============================================================================ */

.final-cta-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

/* Animated Stars/Particles Effect */
.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: stars 20s linear infinite;
    opacity: 0.4;
}

@keyframes stars {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.final-cta-section .section-title,
.final-cta-section .section-subtitle {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.demo-benefits {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.demo-benefits .col-md-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-sm);
    padding: 0.75rem;
}

.demo-benefits i {
    color: var(--success);
    font-size: var(--font-lg);
    flex-shrink: 0;
}

.final-cta-section .btn {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.no-pressure-note {
    font-size: var(--font-sm);
    opacity: 0.9;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.alternative-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

/* ============================================================================
   SCROLL ANIMATIONS (Appear on Scroll)
   ============================================================================ */

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .trust-logos {
        gap: 1.5rem;
    }
    
    .trust-logo-item {
        font-size: var(--font-sm);
        padding: 0.75rem 1.5rem;
    }
    
    .demo-benefits .row {
        gap: 0.5rem;
    }
    
    .demo-benefits .col-md-3 {
        font-size: var(--font-xs);
    }
    
    .diagram-step {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .hero-section,
    .problem-section,
    .solution-section,
    .how-it-works-section,
    .features-section,
    .impact-section,
    .trust-section,
    .final-cta-section {
        page-break-inside: avoid;
    }
    
    .hero-section::before,
    .hero-section::after,
    .impact-section::before,
    .impact-section::after,
    .final-cta-section::before {
        display: none;
    }
}

/* ============================================================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-section::after,
    .hero-headline,
    .hero-subheadline,
    .hero-cta-buttons,
    .hero-image img,
    .diagram-arrow,
    .impact-section::before,
    .impact-section::after,
    .final-cta-section::before,
    [data-aos] {
        animation: none !important;
        transition: none !important;
    }
    
    .hero-image img,
    .solution-visual,
    .diagram-step,
    .trust-logo-item {
        transform: none !important;
    }
}