/* ═══════════════════════════════════════════════════════════════
   CapCad — Ortak Pazarlama / İçerik Stilleri
   index.html, capmim.html, sss.html, yardim.html tarafından paylaşılır.
   ═══════════════════════════════════════════════════════════════ */

/* ----- Design Tokens ----- */
:root {
    --brand-400: #38bdf8;
    --brand-500: #2aa6ff;
    --brand-600: #0d85f8;
    --brand-700: #0b6fd4;
    --surface-800: #1e293b;
    --surface-900: #0f172a;
    --surface-950: #060a13;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(15, 23, 41, 0.6);
    --glass-border: rgba(42, 166, 255, 0.08);
    --glass-blur: 20px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ----- Genel Sıfırlama & Temel ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--surface-950);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ----- Özel Scrollbar ----- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b1120; }
::-webkit-scrollbar-thumb { background: #1a2744; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

/* ----- Animasyonlu Gradient Arka Plan (Hero) ----- */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(10, 109, 228, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(42, 166, 255, 0.08), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(13, 133, 248, 0.06), transparent);
}

/* ----- Grid Arka Plan Deseni ----- */
.grid-bg {
    background-image:
        linear-gradient(rgba(42, 166, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 166, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ----- Parıldayan Çizgi Efekti ----- */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2aa6ff, transparent);
    opacity: 0.4;
}

/* ----- Scroll Animasyonları ----- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----- Glassmorphism Kart ----- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(42, 166, 255, 0.1);
    transition: all 0.4s var(--ease-out-expo);
}
.glass-card:hover {
    border-color: rgba(42, 166, 255, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px rgba(42, 166, 255, 0.15);
}

/* ----- İkon Parıltı ----- */
.icon-glow {
    filter: drop-shadow(0 0 8px rgba(42, 166, 255, 0.5));
}

/* ----- CTA Buton Animasyonu ----- */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-glow:hover::before {
    left: 100%;
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(42, 166, 255, 0.4), 0 0 60px rgba(42, 166, 255, 0.15);
    transform: translateY(-2px);
}

/* ----- Yüzen Parçacık Animasyonları ----- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(1deg); }
    66% { transform: translateY(6px) rotate(-1deg); }
}
.float-anim {
    animation: float 6s ease-in-out infinite;
}
.float-anim-delay {
    animation: float 8s ease-in-out 2s infinite;
}

/* ----- Pulsing Dot (Canlı Durum) ----- */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-ring 2s ease-out infinite;
}

/* ----- Blueprint Çizgi Animasyonu ----- */
@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}
.blueprint-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 3s ease forwards;
}

/* ----- Navbar Scroll Efekti ----- */
.navbar-scrolled {
    background: rgba(6, 10, 19, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(42, 166, 255, 0.1) !important;
}

/* ----- Mobil Menü ----- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out-expo);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ----- Stat Kart Gradient Border ----- */
.stat-border {
    position: relative;
}
.stat-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2aa6ff, #0d85f8);
    border-radius: 2px;
}

/* ----- Yazı Gradient ----- */
.text-gradient {
    background: linear-gradient(135deg, #89dbff, #2aa6ff, #0d85f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Nokta Grid Deseni ----- */
.dot-pattern {
    background-image: radial-gradient(rgba(42, 166, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ----- SSS Accordion ----- */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
}
.faq-item.open .faq-answer {
    max-height: 500px;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-chevron {
    transition: transform 0.3s ease;
}

/* ----- Erişilebilirlik: Hareket Azaltma ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
