/* =====================================================================
   LikedWin — "Neden LikedWin?" bölümü
   Hizmetler'in altında: bot↔gerçek karşılaştırma grafiği (düşme değil,
   spam↔etkileşim vurgusu), animasyonlu Bağlı Görev sistemi, özellikler.
   site.css değişkenlerini kullanır.
   ===================================================================== */

.neden {
    position: relative;
    padding: clamp(52px, 6vw, 90px) 0 clamp(48px, 6vw, 88px);
    background:
        radial-gradient(60% 50% at 18% 0%, rgba(239, 68, 68, .06), rgba(239, 68, 68, 0) 60%),
        radial-gradient(60% 50% at 82% 0%, rgba(47, 189, 142, .08), rgba(47, 189, 142, 0) 60%),
        var(--bg-soft);
    overflow: hidden;
}

/* ---------- Başlık ---------- */
.neden__head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 3.5vw, 48px); }
.neden__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 15px 6px 7px; margin-bottom: 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
    border: 1px solid var(--brand-line);
    box-shadow: 0 4px 14px -6px rgba(37, 68, 216, .28), inset 0 1px 0 #fff;
    font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--brand);
}
.neden__eyebrow i {
    display: inline-grid; place-items: center;
    width: 20px; height: 20px; border-radius: 6px;
    background: var(--brand-soft); color: var(--brand); font-size: 11px;
}
.neden__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(24px, 3.4vw, 42px); font-weight: 800; line-height: 1.14;
    letter-spacing: -.02em; color: var(--ink); margin: 0 0 12px;
}
.neden__title .hl {
    background-image: linear-gradient(90deg, #16a34a, #2fbd8e 55%, var(--brand));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.neden__sub { font-size: clamp(14px, 1.5vw, 16px); line-height: 1.6; color: var(--muted); font-weight: 500; margin: 0 auto; max-width: 600px; }
.neden__sub b { color: var(--ink); font-weight: 700; }

/* =====================================================================
   1) KARŞILAŞTIRMA GRAFİĞİ
   ===================================================================== */
/* İlk iki kutu yan yana (grafik + bağlı görev); içerikleri dikey akar.
   Genişlik üstteki hizmetler bölümüyle aynı (container'ı doldurur). */
.neden-row {
    margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 1.8vw, 26px);
    align-items: stretch;
}
.neden-row > * { min-width: 0; }   /* 1fr paylarına küçülebilsinler → eşit genişlik */

.cmp {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: clamp(20px, 2.4vw, 30px);
}
/* Kart başlığı: markalı eyebrow + çarpıcı başlık + trend alt satırı */
.cmp__head { text-align: center; margin-bottom: 20px; }
.cmp__eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px 5px 6px; margin-bottom: 11px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
    border: 1px solid var(--brand-line);
    box-shadow: 0 4px 14px -6px rgba(37, 68, 216, .28), inset 0 1px 0 #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .09em; color: var(--brand);
}
.cmp__eyebrow .lw-mark {
    box-sizing: content-box;
    width: 14px; height: 14px; padding: 3px; border-radius: 5px;
    background: var(--brand-soft);
}
.cmp__lead {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(16px, 1.55vw, 20px); font-weight: 800; line-height: 1.3;
    letter-spacing: -.015em; color: var(--ink); margin: 0 0 9px;
}
.cmp__lead em { font-style: normal; font-weight: 800; color: #d43f3f; }
.cmp__lead b {
    font-weight: 800;
    background-image: linear-gradient(90deg, #16a34a, #2fbd8e 60%, #16a34a);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.cmp__metric {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.cmp__metric i { color: #16a34a; font-size: 12px; }

/* ---------- Sade trend grafiği: gerçek etkileşim ↑ (yeşil), sahte ↓ (kırmızı) ----------
   İki çizgi ortada kesişir; görünürce kendini çizer. 10 çubuk + yüzen çip yerine
   tek, okunaklı grafik → daha sade ve gözü yormayan. */
.cmp__chart {
    position: relative;
    flex: 1 1 auto;
    margin: 10px 0 4px;
    min-height: 172px;   /* mobil/doğal yükseklik; masaüstünde kartı doldurur (flex-grow) */
}
.cmp__svg {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible;
    /* Grafik "zaman içinde" soldan sağa açılır (wipe) — çizgi kalınlığı bozulmadan */
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.4s cubic-bezier(.4, 0, .2, 1) .1s;
}
.neden.is-visible .cmp__svg { clip-path: inset(0 0 0 0); }

.cmp__base { stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }

/* Çizgiler (kalınlık sabit: non-scaling-stroke; wipe ile açılır) */
.cmp__line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.cmp__line--bad  { stroke: #e0533c; opacity: .92; }
.cmp__line--good { stroke: #16a34a; filter: drop-shadow(0 4px 8px rgba(22, 163, 74, .3)); }

/* Uç nokta noktaları (CSS ile konumlanır → grafik dikeyde esnese de tam yuvarlak)
   çizgi uçlarına denk gelir: yeşil sağ-üst, kırmızı sağ-alt; çizim bitince "pop". */
.cmp__dot {
    position: absolute; width: 13px; height: 13px;
    border-radius: 50%; border: 2.5px solid #fff; box-sizing: border-box;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) 1.3s;
}
.cmp__dot--good { left: 96.9%; top: 14.4%; background: #16a34a; box-shadow: 0 3px 8px rgba(22, 163, 74, .5); }
.cmp__dot--bad  { left: 96.9%; top: 83.3%; background: #e0533c; }
.neden.is-visible .cmp__dot { transform: translate(-50%, -50%) scale(1); }

/* Lejant — 2 sade öğe. Masaüstü: yan yana (ortalı); mobil: alt alta (aşağıda). */
.cmp__legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px 16px; margin: 12px auto 0; }
.cmp__leg { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 700; text-align: left; }
.cmp__leg i { font-size: 12px; margin-top: 3px; flex: none; }
.cmp__leg-t { line-height: 1.35; }
.cmp__leg b { font-weight: 800; }
.cmp__leg--good { color: #15803d; }
.cmp__leg--good i { color: #16a34a; }
.cmp__leg--bad  { color: #c9483a; }
.cmp__leg--bad i { color: #e0533c; }

/* =====================================================================
   2) BAĞLI GÖREV SİSTEMİ (animasyonlu akış)
   ===================================================================== */
.flow {
    margin: 0;
    display: flex; flex-direction: column;
    background: linear-gradient(135deg, #0f1230 0%, #171a3a 55%, #24123a 100%);
    border-radius: 24px;
    padding: clamp(22px, 2.6vw, 32px);
    color: #fff;
    position: relative; overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(23, 26, 58, .7);
}
.flow::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(50% 60% at 12% 0%, rgba(37, 68, 216, .35), transparent 60%),
        radial-gradient(50% 70% at 90% 100%, rgba(47, 189, 142, .25), transparent 60%);
}
.flow__head { position: relative; text-align: center; margin-bottom: clamp(22px, 3vw, 34px); }
.flow__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 6px; margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .05) 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #c3d4ff;
}
.flow__badge i {
    display: inline-grid; place-items: center;
    width: 19px; height: 19px; border-radius: 6px;
    background: rgba(255, 255, 255, .14); color: #e2e9ff; font-size: 10px;
}
.flow__title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.flow__sub { font-size: clamp(13px, 1.4vw, 15px); color: rgba(255, 255, 255, .66); margin: 0 auto; max-width: 560px; line-height: 1.6; }

.flow__steps { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; justify-content: center; }

.flow__step {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "ico st" "ico sd";
    align-items: center; column-gap: 15px; row-gap: 2px; text-align: left;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    transition: transform .4s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.flow__ico {
    grid-area: ico; align-self: center;
    display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: 15px;
    font-size: 20px; color: #fff;
    background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .14);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease, background .4s ease;
}
.flow__n { position: absolute; top: 10px; right: 14px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .3); }
.flow__st { grid-area: st; align-self: end; font-size: 15px; font-weight: 800; }
.flow__sd { grid-area: sd; align-self: start; font-size: 12px; color: rgba(255, 255, 255, .62); line-height: 1.45; max-width: none; padding-right: 14px; }

/* Adımlar arası dikey ok + akan ışık */
.flow__link { position: relative; z-index: 1; align-self: center; width: 2px; height: 22px; background: rgba(255, 255, 255, .16); border-radius: 2px; }
.flow__link::before {
    content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 100%; height: 45%; border-radius: 2px;
    background: linear-gradient(180deg, transparent, #4f7bff, #2fbd8e, transparent);
    animation: flowDashV 3.2s linear infinite;
}
.flow__link::after {
    content: '\f063'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
    font-size: 10px; color: rgba(255, 255, 255, .4);
}
@keyframes flowDashV { 0% { top: -45%; } 100% { top: 100%; } }

/* Sıralı vurgu döngüsü — kısa nabız: bir adım tamamen söner, SONRA sıradaki yanar
   (5.4s / 3 adım; her adım ~%11-22 arası yanar, %28'de söner; delay'ler %33'lük) */
.flow__step { animation: flowStep 5.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes flowStep {
    0%, 5%    { transform: translateY(0); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); box-shadow: none; }
    11%, 22%  { transform: translateY(-6px); background: rgba(37, 68, 216, .16); border-color: rgba(120, 150, 255, .5); box-shadow: 0 18px 34px -18px rgba(60, 100, 255, .7); }
    28%, 100% { transform: translateY(0); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); box-shadow: none; }
}
.flow__step .flow__ico { animation: flowIco 5.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes flowIco {
    0%, 5%    { transform: scale(1); box-shadow: none; background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
    11%, 22%  { transform: scale(1.12) rotate(-4deg); box-shadow: 0 10px 24px -8px rgba(79, 123, 255, .8); background: linear-gradient(150deg, #4f7bff, #2fbd8e); }
    28%, 100% { transform: scale(1); box-shadow: none; background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
}

/* =====================================================================
   3) DİĞER ÖZELLİKLER
   ===================================================================== */
/* Sade (kutusuz) hücre: Lottie ikon karesi + kalın başlık + gri açıklama.
   Genişlik üstteki hizmetler bölümüyle aynı (container'ı doldurur). */
.neden-feats {
    margin: clamp(34px, 4vw, 58px) auto 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 2.6vw, 44px) clamp(20px, 2.4vw, 40px);
}
.lfeat {
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    opacity: 0; transform: translateY(18px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .25, 1);
    transition-delay: calc(var(--i) * 60ms);
}
.neden.is-visible .lfeat { opacity: 1; transform: translateY(0); }
.lfeat__ico {
    display: grid; place-items: center;
    width: 66px; height: 66px; border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 22px -10px rgba(16, 24, 40, .18), inset 0 0 0 1px var(--line);
    margin-bottom: 16px;
}
.lfeat__ico lottie-player { width: 46px; height: 46px; }
.lfeat__t {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 18px; font-weight: 800; letter-spacing: -.01em;
    color: var(--ink); margin: 0 0 7px;
}
.lfeat__d { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 340px; }

/* ---------- Responsive ---------- */
/* İki kutu dar ekranda alt alta; özellikler kademeli daralır */
@media (max-width: 900px) {
    .neden-row { grid-template-columns: 1fr; }
    .neden-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .neden-feats { grid-template-columns: 1fr; }
    .cmp__chart { min-height: 128px; }
    /* Mobil: lejant alt alta (sola hizalı, blok ortalı) */
    .cmp__legend { flex-direction: column; align-items: flex-start; width: fit-content; gap: 9px; }
    .cmp__leg { font-size: 12.5px; }
}

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
    .cmp__svg { transition: none; clip-path: none; }
    .cmp__dot { transition: none; transform: translate(-50%, -50%) scale(1); }
    .lfeat { opacity: 1; transform: none; transition: none; }
    .flow__step, .flow__step .flow__ico, .flow__link::before { animation: none; }
}
