/**
 * Feature Page Styles
 * Styles for App Evolution and App Intelligence pages
 */

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

.feature-hero {
    padding: 8rem 0 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(138, 43, 226, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.feature-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-hero .lead {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.feature-hero .hero-screenshot {
    margin-top: 3rem;
    position: relative;
}

.feature-hero .hero-screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(138, 43, 226, 0.2);
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #8a2be2 0%, #5a1a9e 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4);
    color: white;
}

.btn-cta i {
    font-size: 1.2rem;
}

/* ==========================================================================
   Content Sections (Problem, Solution, etc.)
   ========================================================================== */

.feature-content-section {
    padding: 6rem 0;
    position: relative;
}

.feature-content-section.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

.feature-content-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.feature-content-section .section-body {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.feature-content-section .section-body p {
    margin-bottom: 1.5rem;
}

.feature-content-section .section-body p:last-child {
    margin-bottom: 0;
}

/* Section with screenshot */
.feature-content-section .section-screenshot {
    margin-top: 3rem;
    text-align: center;
}

.feature-content-section .section-screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Split Layout Sections (Image + Text side by side)
   ========================================================================== */

.split-section {
    padding: 5rem 0;
}

.split-section .split-image {
    padding: 1rem;
}

.split-section .split-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(138, 43, 226, 0.1);
}

.split-section .split-content {
    padding: 2rem;
}

.split-section .split-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: white;
}

.split-section .split-body {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.split-section .split-body p {
    margin-bottom: 1.25rem;
}

.split-section .split-body p:last-child {
    margin-bottom: 0;
}

/* Image placeholder when no screenshot */
.split-section .image-placeholder {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-section .image-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Reversed layout adjustments */
.split-section.reversed .split-content {
    padding-right: 3rem;
}

.split-section:not(.reversed) .split-content {
    padding-left: 3rem;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features-grid-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.features-grid-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-grid-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-grid-item:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(138, 43, 226, 0.1);
}

.feature-grid-item .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-grid-item .feature-icon i {
    font-size: 1.4rem;
    color: #a855f7;
}

.feature-grid-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.feature-grid-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0;
}

/* Feature item with screenshot placeholder */
.feature-grid-item .feature-screenshot {
    margin-top: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
}

.feature-grid-item .feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Use Cases Section
   ========================================================================== */

.use-cases-section {
    padding: 6rem 0;
}

.use-cases-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    text-align: center;
}

.use-case-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.use-case-item:hover {
    border-color: rgba(138, 43, 226, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.use-case-item:last-child {
    margin-bottom: 0;
}

.use-case-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.use-case-item h3 .use-case-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8a2be2 0%, #5a1a9e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.use-case-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0;
    padding-left: 44px;
}

/* ==========================================================================
   Data Sources / Trust Section
   ========================================================================== */

.trust-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.trust-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.trust-section .section-body {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ==========================================================================
   Closing CTA Section
   ========================================================================== */

.closing-cta-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.closing-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center bottom, rgba(138, 43, 226, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.closing-cta-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.closing-cta-section .section-body {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .feature-hero h1 {
        font-size: 2.8rem;
    }

    .feature-hero .lead {
        font-size: 1.2rem;
    }

    .feature-content-section .section-title,
    .features-grid-section .section-title,
    .use-cases-section .section-title {
        font-size: 2rem;
    }

    .closing-cta-section h2 {
        font-size: 2.2rem;
    }

    /* Split section responsive */
    .split-section .split-title {
        font-size: 2.1rem;
    }

    .split-section .split-image {
        margin-bottom: 2rem;
    }

    .split-section .split-content {
        padding: 1rem 0;
        text-align: center;
    }

    .split-section.reversed .split-content,
    .split-section:not(.reversed) .split-content {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .feature-hero {
        padding: 6rem 0 3rem 0;
    }

    .feature-hero h1 {
        font-size: 2.2rem;
    }

    .feature-hero .lead {
        font-size: 1.1rem;
    }

    .feature-content-section,
    .features-grid-section,
    .use-cases-section {
        padding: 4rem 0;
    }

    .feature-content-section .section-title,
    .features-grid-section .section-title,
    .use-cases-section .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid-item {
        padding: 1.5rem;
    }

    .use-case-item h3 {
        font-size: 1.1rem;
    }

    .use-case-item p {
        padding-left: 0;
        margin-top: 0.75rem;
    }

    .closing-cta-section h2 {
        font-size: 1.8rem;
    }

    .closing-cta-section .section-body {
        font-size: 1.1rem;
    }

    .btn-cta {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .feature-hero h1 {
        font-size: 1.9rem;
    }

    .feature-content-section .section-body,
    .trust-section .section-body {
        font-size: 1rem;
    }
}
