/* ── LLM FINE-TUNING SERVICE PAGE ── identical design system ── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f0f4ff;
    color: #1e1b4b;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 7px
}

::-webkit-scrollbar-track {
    background: #0f172a
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6C63FF, #00D4AA);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: #00D4AA
}

.header-content {
    position: relative;
    background: radial-gradient(ellipse 80% 55% at 15% 50%, rgba(108, 99, 255, .32) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(0, 212, 170, .22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 55% 85%, rgba(255, 107, 157, .16) 0%, transparent 55%),
        linear-gradient(160deg, #06080F 0%, #0f0c2a 40%, #0b1a32 70%, #080d16 100%);
    padding: 115px 0 90px;
    color: white;
    overflow: hidden;
    text-align: center;
}

.header-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 200deg at 50% 45%, rgba(108, 99, 255, .14) 0deg, rgba(0, 212, 170, .10) 90deg, rgba(255, 107, 157, .07) 180deg, rgba(108, 99, 255, .06) 270deg, rgba(0, 212, 170, .10) 360deg);
    animation: lf-aurora 20s linear infinite;
    pointer-events: none;
    z-index: 0
}

@keyframes lf-aurora {
    from {
        transform: rotate(0deg) scale(1.5)
    }

    to {
        transform: rotate(360deg) scale(1.5)
    }
}

.sp-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px)
}

.sp-orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(108, 99, 255, .4), transparent 70%);
    top: -120px;
    left: -100px;
    animation: lf-oa 13s ease-in-out infinite
}

.sp-orb-2 {
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, rgba(0, 212, 170, .3), transparent 70%);
    top: 30%;
    right: -60px;
    animation: lf-ob 15s ease-in-out infinite
}

.sp-orb-3 {
    width: 230px;
    height: 230px;
    background: radial-gradient(circle, rgba(255, 107, 157, .22), transparent 70%);
    bottom: 60px;
    left: 42%;
    animation: lf-oa 11s ease-in-out infinite reverse
}

@keyframes lf-oa {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    33% {
        transform: translate(30px, -20px) scale(1.1)
    }

    66% {
        transform: translate(-20px, 25px) scale(.95)
    }
}

@keyframes lf-ob {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(-25px, 20px) scale(1.08)
    }
}

.sp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, .15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(108, 99, 255, .4);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: .85rem;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
    animation: lf-badge 3.5s ease-in-out infinite alternate
}

@keyframes lf-badge {
    from {
        box-shadow: 0 0 0 rgba(108, 99, 255, 0)
    }

    to {
        box-shadow: 0 0 20px rgba(108, 99, 255, .65), 0 0 40px rgba(108, 99, 255, .2)
    }
}

.header-text {
    position: relative;
    z-index: 2
}

.header-text h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -1.5px
}

.sp-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #00D4AA 80%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lf-shimmer 4s linear infinite
}

@keyframes lf-shimmer {
    0% {
        background-position: 0% center
    }

    100% {
        background-position: 200% center
    }
}

.header-text .lead {
    font-size: 1.1rem;
    opacity: .9;
    max-width: 580px;
    margin: 0 auto 28px
}

.sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 6px 22px rgba(108, 99, 255, .38);
    position: relative;
    overflow: hidden
}

.sp-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-20deg);
    animation: lf-sheen 2.8s ease-in-out infinite
}

@keyframes lf-sheen {
    0% {
        left: -100%
    }

    60% {
        left: 150%
    }

    100% {
        left: 150%
    }
}

.sp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, .55);
    color: white
}

.sp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: all .3s
}

.sp-btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .7);
    color: white;
    transform: translateY(-2px)
}

.sp-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0
}

.sp-wave svg {
    display: block;
    width: 100%;
    height: 80px
}

main {
    background: linear-gradient(160deg, #f0f4ff, #f3f0ff 35%, #eef9f6 65%, #f0f4ff);
    position: relative
}

main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(108, 99, 255, .05) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0
}

main>* {
    position: relative;
    z-index: 1
}

.sp-section-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e1b4b, #6C63FF 50%, #00D4AA);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lf-htitle 6s linear infinite
}

@keyframes lf-htitle {
    0% {
        background-position: 0% center
    }

    100% {
        background-position: 300% center
    }
}

.sp-section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, #6C63FF, #00D4AA);
    border-radius: 3px
}

/* stat items */
.stat-item {
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1.5px solid rgba(108, 99, 255, .1);
    box-shadow: 0 4px 18px rgba(108, 99, 255, .07);
    margin-bottom: 16px;
    transition: all .35s cubic-bezier(.34, 1.56, .64, 1)
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(108, 99, 255, .14)
}

.stat-item h4 {
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900
}

/* service cards */
.card {
    border-radius: 20px !important;
    border: 1.5px solid rgba(108, 99, 255, .1) !important;
    box-shadow: 0 4px 20px rgba(108, 99, 255, .06) !important;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1) !important;
    position: relative;
    overflow: hidden;
    background: white !important
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C63FF, #00D4AA, #FF6B9D, #6C63FF);
    background-size: 300% auto;
    opacity: 0;
    transition: opacity .35s;
    animation: lf-topbar 4s linear infinite
}

@keyframes lf-topbar {
    0% {
        background-position: 0% center
    }

    100% {
        background-position: 300% center
    }
}

.card:hover::before {
    opacity: 1
}

.card:hover {
    transform: translateY(-9px) !important;
    box-shadow: 0 22px 54px rgba(108, 99, 255, .16) !important;
    border-color: rgba(108, 99, 255, .26) !important
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108, 99, 255, .12), rgba(0, 212, 170, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    font-size: 24px;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1)
}

.card:hover .why-icon {
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    transform: scale(1.12) rotate(-6deg)
}

/* approach cards */
.approach-card {
    background: white;
    border-radius: 20px;
    padding: 28px 20px;
    border: 1.5px solid rgba(108, 99, 255, .1);
    box-shadow: 0 4px 18px rgba(108, 99, 255, .06);
    height: 100%;
    text-align: center;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    overflow: hidden
}

.approach-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C63FF, #00D4AA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease
}

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

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(108, 99, 255, .15)
}

.approach-card h3 {
    font-weight: 800;
    font-size: 1rem;
    color: #1e1b4b;
    margin-bottom: 8px
}

.approach-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px
}

.approach-badge.popular {
    background: rgba(0, 212, 170, .12);
    color: #059669;
    border: 1px solid rgba(0, 212, 170, .3)
}

.approach-badge.custom {
    background: rgba(108, 99, 255, .1);
    color: #6C63FF;
    border: 1px solid rgba(108, 99, 255, .25)
}

.approach-badge.quick {
    background: rgba(255, 107, 157, .1);
    color: #db2777;
    border: 1px solid rgba(255, 107, 157, .25)
}

.approach-badge.multi {
    background: rgba(245, 158, 11, .1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, .25)
}

/* domain strip (dark) */
.sp-domain-strip {
    background: linear-gradient(160deg, #06080F 0%, #0f0c2a 40%, #0b1a32 70%, #060c1a 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden
}

.sp-domain-strip::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(108, 99, 255, .25), transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    animation: lf-oa 12s ease-in-out infinite
}

.sp-domain-strip::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 212, 170, .2), transparent 70%);
    border-radius: 50%;
    filter: blur(65px);
    animation: lf-ob 10s ease-in-out infinite
}

.sp-domain-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 45%, #00D4AA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px
}

.sp-domain-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(108, 99, 255, .2);
    border-radius: 16px;
    padding: 20px;
    transition: all .3s
}

.sp-domain-card:hover {
    background: rgba(108, 99, 255, .15);
    border-color: rgba(108, 99, 255, .4);
    transform: translateY(-4px)
}

.sp-domain-card h4 {
    font-size: .9rem;
    font-weight: 800;
    color: #c4b5fd;
    margin-bottom: 6px
}

.sp-domain-card p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
    margin: 0
}

/* models grid */
.sp-model-badge {
    display: inline-block;
    background: rgba(108, 99, 255, .1);
    border: 1px solid rgba(108, 99, 255, .2);
    color: #6C63FF;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    margin: 4px;
    transition: all .3s
}

.sp-model-badge:hover {
    background: rgba(108, 99, 255, .2);
    transform: translateY(-2px)
}

/* pricing */
.pricing-card {
    background: white;
    border-radius: 24px;
    border: 1.5px solid rgba(108, 99, 255, .1);
    box-shadow: 0 4px 22px rgba(108, 99, 255, .07);
    overflow: hidden;
    height: 100%;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
    display: flex;
    flex-direction: column
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 64px rgba(108, 99, 255, .18);
    border-color: rgba(108, 99, 255, .3)
}

.pricing-card.popular {
    border-color: rgba(108, 99, 255, .4);
    box-shadow: 0 8px 32px rgba(108, 99, 255, .2)
}

.pricing-card-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(108, 99, 255, .08)
}

.pricing-card.popular .pricing-card-header {
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    color: white
}

.pricing-card-header h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0
}

.pricing-card-header small {
    font-size: .75rem;
    opacity: .8
}

.pricing-card-body {
    padding: 24px 28px;
    flex: 1
}

.pricing-price {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .875rem;
    color: #4b5563;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5
}

.pricing-list li:last-child {
    border-bottom: none
}

.pricing-list li::before {
    content: '✓';
    color: #00D4AA;
    font-weight: 800;
    flex-shrink: 0
}

.pricing-card-footer {
    padding: 0 28px 24px
}

.sp-btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
    border: 2px solid rgba(108, 99, 255, .4);
    color: #6C63FF;
    background: transparent
}

.sp-btn-card:hover {
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, .38)
}

.sp-btn-card.primary {
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(108, 99, 255, .35)
}

.sp-btn-card.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, .55)
}

/* CTA */
.sp-cta {
    position: relative;
    background: linear-gradient(160deg, #06080F 0%, #0f0c2a 40%, #0b1a32 70%, #060c1a 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    overflow: hidden;
    margin: 0 12px
}

.sp-cta::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 99, 255, .3), transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    animation: lf-oa 10s ease-in-out infinite
}

.sp-cta::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 212, 170, .22), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: lf-ob 12s ease-in-out infinite
}

.sp-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 45%, #00D4AA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.sp-cta .lead {
    font-size: 1.05rem;
    opacity: .85;
    margin-bottom: 32px
}

.sp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 8px 28px rgba(108, 99, 255, .45);
    position: relative;
    overflow: hidden;
    z-index: 2
}

.sp-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(108, 99, 255, .6);
    color: white
}

.sp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s, transform .6s cubic-bezier(.34, 1.56, .64, 1)
}

.sp-visible {
    opacity: 1;
    transform: translateY(0)
}

.breadcrumb {
    background: transparent;
    padding: 0
}

.breadcrumb-item a {
    color: #c4b5fd;
    text-decoration: none
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, .7)
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .4)
}

#sp-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(.8);
    transition: opacity .35s, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
    box-shadow: 0 4px 18px rgba(108, 99, 255, .45)
}

#sp-back-top.sp-visible {
    opacity: 1;
    transform: translateY(0) scale(1)
}

#sp-back-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 32px rgba(108, 99, 255, .6), 0 0 20px rgba(0, 212, 170, .3)
}

.bg-light {
    background: rgba(108, 99, 255, .04) !important
}