:root{
    --bg:#f8fafc;
    --surface:#ffffff;
    --muted:#64748b;
    --accent:#4f46e5;
    --accent-dark:#4338ca;
    --accent-600:#6366f1;
    --card:#ffffff;
    --glass:rgba(255,255,255,0.6);
    --max-width:1200px;
    --radius:14px;
    --container-padding:24px;
    --gradient-main:linear-gradient(135deg,#4f46e5,#2563eb,#7c3aed);
}

.services{
    position:relative;
    background:var(--bg);
    color:#0f172a;
    padding:140px 72px;
    border-top:1px solid rgba(0,0,0,0.05);
    overflow:hidden;
}

.services::before{
    content:"";
    position:absolute;
    top:-200px;
    left:-200px;
    width:500px;
    height:500px;
    background:radial-gradient(
        circle,
        rgba(79,70,229,0.10),
        transparent 70%
    );
    pointer-events:none;
}

.services::after{
    content:"";
    position:absolute;
    bottom:-250px;
    right:-250px;
    width:600px;
    height:600px;
    background:radial-gradient(
        circle,
        rgba(37,99,235,0.08),
        transparent 70%
    );
    pointer-events:none;
}

.services-title{
    position:relative;
    z-index:2;
    color:#0f172a;
    text-align:center;
    font-size:clamp(2.7rem,5vw,4rem);
    font-weight:800;
    line-height:1.1;
    letter-spacing:-0.04em;
    margin-bottom:24px;
}

.services-title::after{
    content:"";
    display:block;
    width:90px;
    height:5px;
    margin:22px auto 0;
    border-radius:999px;
    background:var(--gradient-main);
}

.services-subtitle{
    position:relative;
    z-index:2;
    max-width:760px;
    margin:0 auto 80px;
    text-align:center;
    font-size:18px;
    line-height:1.8;
    color:var(--muted);
}

.services-grid{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:32px;
}

.service-card{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    padding:38px 32px;
    background:rgba(255,255,255,0.78);
    backdrop-filter:blur(18px);
    border-radius:28px;
    overflow:hidden;
    min-height:430px;
    color:#0f172a;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    border:1px solid rgba(255,255,255,0.7);
    box-shadow:
        0 10px 30px rgba(15,23,42,0.05),
        0 2px 10px rgba(15,23,42,0.04);
}

.service-card::before{
    content:"";
    position:absolute;
    top:-120px;
    right:-120px;
    width:240px;
    height:240px;
    border-radius:50%;
    background:radial-gradient(
        circle,
        rgba(99,102,241,0.18),
        transparent 70%
    );
    pointer-events:none;
}

.service-card:hover{
    transform:translateY(-12px);
    border-color:rgba(99,102,241,0.22);
    box-shadow:
        0 30px 60px rgba(79,70,229,0.12),
        0 15px 30px rgba(15,23,42,0.08);
}

/* featured */

.service-card.featured{
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.96),
            rgba(248,250,252,0.92)
        );
    border:1px solid rgba(99,102,241,0.20);
}

.price-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 16px;
    margin-bottom:28px;
    border-radius:999px;
    background:rgba(79,70,229,0.10);
    color:var(--accent);
    font-size:14px;
    font-weight:800;
    border:1px solid rgba(79,70,229,0.14);
    backdrop-filter:blur(10px);
    letter-spacing:0.02em;
}

.icon{
    width:82px;
    height:82px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--gradient-main);
    margin-bottom:30px;
    box-shadow:
        0 18px 40px rgba(79,70,229,0.25);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.icon svg{
    width:38px;
    height:38px;
    color:#ffffff;
    transition:0.35s ease;
}

.service-card:hover .icon{
    transform:translateY(-4px) scale(1.04);
    box-shadow:
        0 24px 45px rgba(79,70,229,0.35);
}

.service-card:hover .icon svg{
    transform:scale(1.08);
}

.service-card h3{
    font-size:1.55rem;
    font-weight:800;
    line-height:1.2;
    letter-spacing:-0.03em;
    margin-bottom:18px;
    color:#0f172a;
}

.service-card p{
    font-size:15.8px;
    line-height:1.9;
    margin-bottom:28px;
    color:var(--muted);
}

.service-features{
    list-style:none;
    padding:0;
    margin:0 0 34px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.service-features li{
    position:relative;
    padding-left:26px;
    color:#334155;
    font-size:15px;
    font-weight:500;
    line-height:1.6;
}

.service-features li::before{
    content:"";
    position:absolute;
    left:0;
    top:9px;
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--gradient-main);
}

.service-card .btn{
    margin-top:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    padding:15px 22px;
    border-radius:16px;
    background:#0f172a;
    border:none;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    color:#ffffff;
    position:relative;
    overflow:hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card .btn::before{
    content:"";
    position:absolute;
    inset:0;
    background:var(--gradient-main);
    opacity:0;
    transition:opacity 0.3s ease;
    z-index:1;
}

.service-card .btn span{
    position:relative;
    z-index:2;
    transition:transform 0.3s ease;
}

.service-card .btn::after{
    content:"";
    position:relative;
    z-index:2;
    width:8px;
    height:8px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(-45deg);
    transition:0.3s ease;
    margin-left:15px;
    top: 1px;
}

.service-card .btn:hover{
    transform:translateY(-2px);
    box-shadow:
        0 18px 35px rgba(79,70,229,0.28);
}

.service-card .btn:hover::before{
    opacity:1;
}

.service-card .btn:hover span{
    transform:scale(1.01);
}

.service-card .btn:hover::after{
    transform:rotate(-45deg) translateX(4px);
}

@media (max-width:1200px){

    .services-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:768px){

    .services{
        padding:90px 24px;
    }

    .services-grid{
        grid-template-columns:1fr;
    }

    .services-title{
        font-size:2.5rem;
    }

    .services-subtitle{
        font-size:16px;
        line-height:1.7;
        margin-bottom:60px;
    }

    .service-card{
        min-height:auto;
        padding:30px 26px;
    }

    .service-card h3{
        font-size:1.4rem;
    }

    .service-card p{
        font-size:15px;
    }

    .icon{
        width:74px;
        height:74px;
    }

    .icon svg{
        width:34px;
        height:34px;
    }
}