/* ============================================
   SZKTR - Bootstrap 5 Landing Custom Styles
   Grafikai tervezés: Nagy Krisztián
   ============================================ */

:root {
    --primary: #4f6ddf;
    --primary-dark: #3a54b5;
    --primary-light: #6e88e6;
    --secondary: #2e3b5e;
    --accent: #ff7e5f;
    --success: #10b981;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    
    --gradient-primary: linear-gradient(135deg, #4f6ddf 0%, #6e88e6 100%);
    --gradient-accent: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === ÁLTALÁNOS STÍLUSOK === */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* === HERO SZEKCIÓ - "AZ ADATVIZUALIZÁCIÓ EREJE" === */
.hero {
    position: relative;
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

/* Háttérben futó hálózat vizualizáció (CSS-only) */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 150%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(79, 109, 223, 0.03) 0px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(79, 109, 223, 0.03) 0px, transparent 1px),
        radial-gradient(circle at 45% 80%, rgba(79, 109, 223, 0.03) 0px, transparent 1px),
        linear-gradient(rgba(79, 109, 223, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 109, 223, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 80px 80px, 40px 40px, 40px 40px;
    transform: rotate(-5deg);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Főcím stílusok */
.display-5 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .display-5 {
        font-size: 3rem;
    }
}

/* === KPI CSÍK - JAVÍTVA === */
.kpi-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.kpi {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap; /* Megakadályozza a tördelést */
}

.kpi i {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 1rem;
    box-shadow: 0 6px 12px rgba(79, 109, 223, 0.25);
    flex-shrink: 0; /* Ikon ne zsugorodjon */
}

/* Mobil nézet - itt már törhetünk */
@media (max-width: 576px) {
    .kpi-strip {
        border-radius: 30px;
        padding: 1.2rem;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .kpi {
        white-space: normal; /* Mobilon engedjük a tördelést */
        font-size: 1rem;
        width: 100%;
    }
    
    /* Tablet nézet - közepes képernyőn is törhet ha kell */
    @media (min-width: 577px) and (max-width: 768px) {
        .kpi-strip {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            border-radius: 40px;
            gap: 1rem;
        }
        
        .kpi {
            white-space: normal; /* Tableten már törhet */
            font-size: 0.95rem;
        }
    }
}

/* === GOMBOK === */
.btn-soft {
    background: white;
    color: var(--primary);
    border: 1px solid rgba(79, 109, 223, 0.2);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-soft:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 40px;
    box-shadow: 0 8px 16px rgba(79, 109, 223, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 109, 223, 0.35);
}

.btn-outline-light {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* === FEATURE KÁRTYÁK === */
.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-bubble {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: rotate(-5deg);
    box-shadow: 0 12px 20px rgba(79, 109, 223, 0.3);
}

.icon-bubble i {
    font-size: 2rem;
    color: white;
    transform: rotate(5deg);
}

/* === HOGYAN MŰKÖDIK - "VÉDELMI SPIRÁL" === */
.steps-wrapper {
    position: relative;
    padding: 2rem 0;
}

.steps-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-light) 20%, var(--primary-light) 80%, transparent);
    transform: translateY(-50%);
    z-index: 0;
}

@media (max-width: 768px) {
    .steps-wrapper::before {
        display: none;
    }
}

.step-item {
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid var(--primary);
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
}

.step-dot::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0.3; }
}

.step-item:hover .step-dot {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* === PRICING - "NÖVEKEDÉSI PIRAMIS" === */
.pricing .col {
    transition: all 0.3s ease;
}

.price-card {
    background: white;
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.price-card.popular {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.price-card.popular .ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 3rem;
    font-weight: 600;
    font-size: 0.9rem;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

/* Méret szerinti vizuális súlyozás */
.price-card[data-size="small"] {
    max-width: 90%;
    margin: 0 auto;
}

.price-card[data-size="medium"] {
    max-width: 95%;
    margin: 0 auto;
}

.price-card[data-size="large"] {
    max-width: 100%;
    margin: 0 auto;
}

/* Éves megtakarítás badge */
.yearly-savings-badge {
    background: var(--success);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    transform: rotate(-2deg);
    margin-left: 0.5rem;
}

.yearly-savings-badge i {
    font-size: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0;
}

.price .per {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-600);
}

.price-feats {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.price-feats li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
}

.price-feats li i {
    color: var(--success);
    font-size: 1rem;
}

/* Bootstrap 5 toggle switch testreszabás */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* === CTA SZEKCIÓ === */
.cta-band {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 2rem;
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(20deg);
}

.cta-band .btn-soft {
    background: white;
    color: var(--primary);
    border: none;
    font-size: 1.2rem;
    padding: 1rem 3rem;
}

/* === FOOTER === */
footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
}

/* === ANIMÁCIÓK === */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* === RESPONZIVITÁS === */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .kpi-strip {
        border-radius: 30px;
        padding: 1rem;
    }
    
    .kpi {
        font-size: 0.9rem;
    }
    
    .price-card.popular {
        transform: scale(1);
    }
    
    .cta-band {
        padding: 3rem 1rem;
        border-radius: 30px;
    }
}
