/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding: 50px 0 40px;
    text-align: center;
}

.icp-callout {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    animation: fadeIn 0.6s ease-out 0s both;
}

.hero h1 {
    font-size: 2.25rem;
    max-width: 900px;
    margin: 0 auto 1rem;
    animation: fadeInScale 0.6s ease-out 0.1s both;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-border);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Companies Section */
.companies-section {
    padding: 24px 0;
    background: var(--gray-light);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.companies-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
}

.companies-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.company-logo {
    height: 65px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.company-logo:nth-child(1) { animation-delay: 0.1s; }
.company-logo:nth-child(2) { animation-delay: 0.2s; }
.company-logo:nth-child(3) { animation-delay: 0.3s; }

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    padding: 2rem;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    background: white;
    transition: all 0.25s ease;
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    -webkit-text-stroke: 2px var(--primary-color);
    -webkit-text-fill-color: var(--gray-light);
}

.step-card:hover .step-number {
    color: transparent;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: left;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* Contrast Section */
.contrast-box {
    background: #000;
    color: white;
    padding: 4rem;
    border-radius: 12px;
    text-align: center;
}

.contrast-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contrast-box p {
    color: #ccc;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.urgency-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ff4d4d;
    font-weight: 600;
    text-transform: uppercase;
}

/* Testimonials */
.testimonials-container {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    transition: all 0.25s ease;
    opacity: 1;
}

.testimonial-card.new {
    animation: fadeInUp 0.5s ease-out forwards;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.testimonial-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
}

/* Fade-out effect at bottom */
.testimonials-fade {
    position: relative;
}

.testimonials-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--gray-light));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.testimonials-fade.no-fade::after {
    opacity: 0;
}

/* Load more button */
.testimonials-more {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.testimonials-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonials-more .btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.testimonials-more .btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.testimonials-more .btn.loading .spinner {
    display: inline-block;
}

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

/* Calendar Section */
.calendar-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-border);
}

.calendar-wrapper iframe {
    width: 100%;
    height: 800px;
    border: none;
}

.section-reduced {
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 2rem; }
    .steps-grid, .benefits-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .contrast-box { padding: 2rem; }
    .contrast-box h2 { font-size: 2rem; }
    .companies-logos { gap: 40px; }
    .company-logo { height: 40px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .calendar-wrapper iframe { height: 600px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero { padding: 30px 0; }
    .contrast-box { padding: 1.5rem; }
    .contrast-box h2 { font-size: 1.5rem; }
    .companies-logos { gap: 30px; }
    .company-logo { height: 35px; }
    .calendar-wrapper iframe { height: 500px; }
}
