/* ======================================================= */
/*                   Solutions Shared Styles               */
/* ======================================================= */

/* Section containers */
.features {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero */
.hero, .comparison {
    position: relative;
}

    .hero::before,
    .comparison::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        opacity: 0.08;
        pointer-events: none;
        z-index: 1;
    }

.hero-content,
.comparison .container {
    position: relative;
    z-index: 2;
}

/* Comparison Section Styles */
.comparison {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--bg-light);
    overflow: hidden;
}

.comparison-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    user-select: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.comparison-after {
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, white, #f0f0f0, white);
    cursor: col-resize;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.comparison-label {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 4px;
    pointer-events: none;
    z-index: 4;
}

.label-before {
    left: 1rem;
}

.label-after {
    right: 1rem;
}

.comparison-instructions {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

    .hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(to bottom, transparent, var(--bg-light));
        pointer-events: none;
        z-index: 1;
    }

.hero {
    background: linear-gradient(0deg, #fdfdff 0%, #acabc1 100%);
    color: #3f2f2f;
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    font-weight: 500;
    font-style: normal;
}

.highlight {
    background: linear-gradient( 225deg, #00afff, hsl(263.08deg 100% 32.99%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: 500;
    font-style: italic;
    padding-right: 8px;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-black {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--bg-dark);
}

    .btn-black:hover {
        background: var(--primary-hover);
        color: white;
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-color)
}

    .btn-outline:hover {
        background: white;
        border: 2px solid var(--text-color);
        color: var(--primary-color);
    }

/* Dark outline variant for light backgrounds */
.btn-outline-dark {
    background: transparent;
    color: var(--bg-dark);
    border: 2px solid var(--bg-dark);
}

    .btn-outline-dark:hover {
        background: var(--bg-dark);
        color: #fff;
    }

/* Simple card grids */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.how-it-works-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all .3s ease;
    box-shadow: var(--shadow-light);
}

    .how-it-works-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-medium);
    }

/* Reuse pricing-style cards for use-cases */
.pricing-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-medium);
    }

.card-header {
    text-align: center;
    margin-bottom: .5rem;
}

    .card-header h3 {
        font-size: 1.25rem;
        margin: 0;
    }

    .card-header p {
        color: var(--text-light);
        margin: 0;
    }

/* FAQ */
.faq {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 1. Kapsayıcıyı (<details>) bir grid'e dönüştürüyoruz */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden; /* İçerik taşmasını engelle */
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    /* ANİMASYON İÇİN EKLENENLER */
    display: grid;
    grid-template-rows: auto 0fr; /* Kapalıyken: Soru(auto), Cevap(0 yükseklik) */
    transition: grid-template-rows 0.3s ease-in-out;
}

    /* 2. <details> etiketi açıldığında, cevap satırının yüksekliğini 1fr yapıyoruz */
    .faq-item[open] {
        grid-template-rows: auto 1fr; /* Açıkken: Soru(auto), Cevap(tüm boşluğu doldur) */
    }

/* Soru bölümü (button) */
.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    background: none;
    border: none;
    text-align: left;
    list-style: none;
}

    .faq-question::-webkit-details-marker {
        display: none;
    }

    /* Açma/Kapama oku */
    .faq-question::after {
        content: '▼';
        font-size: 1rem;
        color: var(--primary-color);
        transition: transform 0.3s ease;
    }

/* Soru açıkken oku 180 derece döndür */
.faq-question[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Cevap bölümü */
.faq-answer {
    display: none;
}

    .faq-answer.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .faq-answer p {
        color: var(--text-light);
        line-height: 1.7;
        margin: 0;
        padding: 1rem 1.5rem 1.25rem;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Final CTA */
.final-cta {
    background: var(--bg-dark);
    color: white;
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .final-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-hover) 100%);
        opacity: .1;
    }

.final-cta-content {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}



.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-cta p {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.6;
}

/* YENİ: Inline style yerine kullanılacak class */
.button-group-centered {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* YENİ: Use Cases bölümündeki kartların daha iyi görünmesi için */
.use-case-list {
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 1rem;
}

/* Mevcut final-cta içindeki butona margin eklemek için */
.final-cta .btn-primary, .final-cta .btn-xl {
    margin-bottom: 2rem;
}

/* Small benefits row inside final cta */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-inline: auto;
}

.benefit {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #e5e7eb;
    font-weight: 500;
    justify-content: center;
}

.check-icon {
    color: #10b981;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

        .hero-buttons .btn {
            width: 100%;
            max-width: 280px;
        }

    .feature-list {
        gap: 1rem;
    }
}
