/* --- STYLIZACJA SEKCJI TEASERA KONWERTERA --- */
#link-konwerter-teaser {
    background-color: #050505;
    padding: 130px 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #1E1E1E;
}

/* Znak wodny w tle */
.teaser-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    letter-spacing: 10px;
}

.teaser-bg-glow {
    position: absolute;
    top: 40%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8A0000 0%, transparent 50%);
    filter: blur(90px);
    z-index: 1;
    opacity: 0.3;
    animation: pulseTeaser 8s infinite alternate ease-in-out;
}

@keyframes pulseTeaser {
    0% { transform: translateY(-30%) scale(0.9); opacity: 0.2; }
    100% { transform: translateY(-50%) scale(1.1); opacity: 0.4; }
}

.teaser-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 2;
}

/* --- LEWA KOLUMNA: WIZUALIZACJA --- */
.teaser-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.conversion-box {
    background-color: #121212;
    border: 1px solid #2C2C2C;
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: -20px 25px 60px rgba(0,0,0,0.8);
    transform: rotateY(12deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}

.conversion-box:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: #E60000;
}

.conv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #1E1E1E;
    padding-bottom: 15px;
}

.conv-dots { display: flex; gap: 6px; }
.conv-dots span { width: 12px; height: 12px; border-radius: 50%; }
.conv-dots .r { background-color: #FF4081; }
.conv-dots .y { background-color: #f1c40f; }
.conv-dots .g { background-color: #2ecc71; }

.conv-status {
    font-size: 0.8rem;
    color: #808080;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.conv-status i { color: #E60000; animation: pulseSignal 2s infinite; }

@keyframes pulseSignal { 
    0% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.3; transform: scale(1.2); } 
    100% { opacity: 1; transform: scale(1); } 
}

/* Wiersze agentów */
.agent-row {
    background-color: #1E1E1E;
    border: 1px solid #2C2C2C;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.agent-logo-wrapper {
    width: 48px;
    height: 48px;
    background-color: #050505;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #2C2C2C;
    z-index: 2;
}

.agent-logo-wrapper img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

.agent-link-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}

.link-label { font-size: 0.75rem; color: #808080; font-weight: 600; margin-bottom: 4px; }
.link-value { font-size: 0.9rem; color: #ffffff; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Animacje wierszy w karcie */
.source-anim-container { transition: opacity 0.4s ease, transform 0.4s ease; }
.conv-arrow {
    display: flex; justify-content: center; align-items: center;
    height: 55px; color: #E60000; font-size: 1.6rem;
}
.conv-arrow i { animation: arrowSlide 2s infinite ease-in-out; }

@keyframes arrowSlide {
    0% { transform: translateY(-8px); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 1; }
    100% { transform: translateY(-8px); opacity: 0.4; }
}

/* Wyróżniony Kakobuy */
.target-row {
    background: linear-gradient(135deg, rgba(230,0,0,0.12) 0%, #161616 100%);
    border-color: rgba(230, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.1) inset;
}
.target-row .link-value { color: #2ecc71; font-weight: 600; }
.kakobuy-glow-border { border-color: #E60000; box-shadow: 0 0 10px rgba(230,0,0,0.3); }

/* Skaner */
.scanner-line {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 0, 0, 0.15), transparent);
    transform: skewX(-20deg); animation: scan 3s infinite; z-index: 1;
}
@keyframes scan { 0% { left: -100%; } 100% { left: 200%; } }


/* --- PRAWA KOLUMNA: TEKST --- */
.teaser-content {
    flex: 1;
    max-width: 580px;
}

.teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #121212;
    border: 1px solid #2C2C2C;
    color: #FF1A1A;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.teaser-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 25px;
}

.title-overline {
    display: block;
    font-size: 1.2rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 10px;
}

.highlight-gradient {
    background: linear-gradient(90deg, #E60000, #FF4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}
.highlight-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E60000;
    border-radius: 2px;
}

.teaser-description {
    font-size: 1.15rem;
    color: #808080;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
}

.teaser-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.teaser-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #E60000;
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.3);
    text-transform: uppercase;
}

.teaser-cta-btn:hover {
    background-color: #FF1A1A;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 26, 26, 0.5);
}

.teaser-note {
    font-size: 0.85rem;
    color: #808080;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.teaser-note i { color: #2ecc71; }


/* =========================================
   ANIMACJE POJAWIANIA SIĘ PRZY SCROLLOWANIU
   ========================================= */

.scroll-anim {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

/* Stan początkowy */
.scroll-left { transform: translateX(-80px); }
.scroll-right { transform: translateX(80px); }
.scroll-up { transform: translateY(50px); }
.scroll-fade { transform: translate(-50%, -50%) scale(0.85); /* Ważne: utrzymuje środek dla znaku wodnego */ }

/* Stan po wjechaniu na ekran */
.scroll-anim.is-in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Wypośrodkowany znak wodny - override na is-in-view */
.teaser-watermark.is-in-view {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.02; /* Przezroczystość znaku wodnego */
}

/* Opóźnienia kaskadowe */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }


/* --- RWD --- */
@media (max-width: 1024px) {
    .teaser-container {
        flex-direction: column;
        text-align: center;
    }
    .teaser-content {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .teaser-actions { flex-direction: column; }
    .conversion-box { transform: none; }
    .teaser-watermark { font-size: 8rem; }
    .highlight-gradient:after { display: none;}
    
    /* Na telefonach wyłączamy kierunki i dajemy proste "scroll-up" dla płynności */
    .scroll-left, .scroll-right { transform: translateY(40px); }
}