/* ==========================================================================
   Landing Page Styles
   doc.senseaition.com — Knowledge Base Landing Page
   ========================================================================== */

/* ==========================================================================
   Override: mcb-overrides.css sets "main a { color: #2563EB !important }"
   which breaks white-text buttons/links on the landing page.
   ========================================================================== */

main .landing-btn-white,
main a.landing-btn-white,
main a.landing-btn-white:visited {
    color: #ffffff !important;
}

main .landing-btn-outline-white,
main a.landing-btn-outline-white,
main a.landing-btn-outline-white:visited {
    color: #ffffff !important;
}

main .landing-btn-outline-white:hover {
    color: #ffffff !important;
}

main .landing-btn-dark,
main a.landing-btn-dark,
main a.landing-btn-dark:visited {
    color: #111827 !important;
}

/* Section Spacing */
.landing-section {
    padding: 5rem 1rem;
}

@media (min-width: 768px) {
    .landing-section {
        padding: 6rem 2rem;
    }
}

/* Landing Container */
.landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .landing-container {
        padding: 0 2rem;
    }
}

/* Section Header */
.landing-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Rotating Headlines Animation
   ========================================================================== */

.rotating-headlines {
    position: relative;
    height: 3.5rem;
    overflow: hidden;
}

@media (max-width: 640px) {
    .rotating-headlines {
        height: 3rem;
    }
}

.rotating-headlines span {
    display: block;
    position: absolute;
    width: 100%;
    opacity: 0;
    animation: rotateHeadline 35s infinite;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #2563EB;
}

.rotating-headlines span:nth-child(1) { animation-delay: 0s; }
.rotating-headlines span:nth-child(2) { animation-delay: 5s; }
.rotating-headlines span:nth-child(3) { animation-delay: 10s; }
.rotating-headlines span:nth-child(4) { animation-delay: 15s; }
.rotating-headlines span:nth-child(5) { animation-delay: 20s; }
.rotating-headlines span:nth-child(6) { animation-delay: 25s; }
.rotating-headlines span:nth-child(7) { animation-delay: 30s; }

@keyframes rotateHeadline {
    0%, 100% { opacity: 0; transform: translateY(20px); }
    2%, 12% { opacity: 1; transform: translateY(0); }
    14% { opacity: 0; transform: translateY(-20px); }
}

/* ==========================================================================
   Scroll Fade-In Animation
   ========================================================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* ==========================================================================
   Hero Section
   ========================================================================== */

.landing-hero-btn {
    flex: 1 1 0%;
    min-width: 0;
}

.landing-hero-video {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.landing-hero-video video {
    width: 100%;
    height: auto;
}

.landing-hero-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.landing-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.landing-card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.landing-card-content {
    padding: 1.5rem;
}

/* ==========================================================================
   TwentyFive Deep Dive Section
   ========================================================================== */

.landing-twentyfive {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.landing-twentyfive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.landing-dimension {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid #2563EB;
    transition: background 0.3s ease;
}

.landing-dimension:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.landing-testimonial-quote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: #2563EB;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.landing-faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}

.landing-faq-item.active {
    border-color: #2563EB;
}

.landing-faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    font-family: inherit;
}

.landing-faq-question:hover {
    background: #F9FAFB;
}

.landing-faq-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: #2563EB;
    transition: transform 0.3s ease;
}

.landing-faq-item.active .landing-faq-icon {
    transform: rotate(45deg);
}

.landing-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.landing-faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: #4B5563;
    line-height: 1.8;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.landing-final-cta {
    background: linear-gradient(135deg, #2563EB 0%, #1e3a8a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Feature List Checkmarks
   ========================================================================== */

.landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-feature-list li {
    padding: 0.375rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: #4B5563;
    font-size: 0.9375rem;
}

.landing-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ==========================================================================
   Footer Override — Remove mt-20 gap after final CTA on landing page
   ========================================================================== */

.landing-final-cta ~ footer,
.landing-final-cta + footer {
    margin-top: 0;
}

/* ==========================================================================
   Reduced Motion — Show first headline statically when animations are disabled
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .rotating-headlines span {
        animation: none;
    }

    .rotating-headlines span:first-child {
        opacity: 1;
        position: relative;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 640px) {
    .landing-section {
        padding: 3rem 1rem;
    }

    .landing-section-header {
        margin-bottom: 2rem;
    }
}
