/* ── RAG SYSTEMS SERVICE PAGE ── */
/* Reuses the same design tokens as agentic-ai/styles.css */

*,
*::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;
}

/* ── HERO ── */
.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: rg-aurora 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rg-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: rg-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: rg-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: rg-oa 11s ease-in-out infinite reverse;
}

@keyframes rg-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 rg-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: rg-badge 3.5s ease-in-out infinite alternate;
}

@keyframes rg-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: rg-shimmer 4s linear infinite;
}

@keyframes rg-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: rg-sheen 2.8s ease-in-out infinite;
}

@keyframes rg-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 ── */
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;
}

/* ── SECTION TITLES ── */
.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: rg-htitle 6s linear infinite;
}

@keyframes rg-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;
}

/* ── HOW RAG WORKS STEPS ── */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border-radius: 16px;
    border: 1.5px solid rgba(108, 99, 255, .1);
    box-shadow: 0 4px 16px rgba(108, 99, 255, .06);
    margin-bottom: 14px;
    transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
}

.process-step:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, .14);
    border-color: rgba(108, 99, 255, .25);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6C63FF, #00D4AA);
    color: white;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(108, 99, 255, .35);
}

.step-content strong {
    color: #1e1b4b;
    display: block;
    margin-bottom: 2px;
}

.step-content p {
    margin: 0;
    color: #6b7280;
    font-size: .87rem;
}

/* ── 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: rg-topbar 4s linear infinite;
}

@keyframes rg-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);
}

/* ── USE CASE CARDS ── */
.use-case-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1.5px solid rgba(108, 99, 255, .1);
    box-shadow: 0 4px 18px rgba(108, 99, 255, .06);
    height: 100%;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    overflow: hidden;
}

.use-case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: skewX(-20deg);
    transition: left .55s;
    pointer-events: none;
}

.use-case-card:hover::after {
    left: 130%;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 52px rgba(108, 99, 255, .15);
    border-color: rgba(108, 99, 255, .25);
}

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

.roi-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: .78rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(108, 99, 255, .1), rgba(0, 212, 170, .1));
    color: #6C63FF;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(108, 99, 255, .2);
}

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

.sp-tech-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: rg-oa 12s ease-in-out infinite;
}

.sp-tech-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: rg-ob 10s ease-in-out infinite;
}

.sp-tech-col h4 {
    font-size: .9rem;
    font-weight: 800;
    color: #c4b5fd;
    margin-bottom: 8px;
    letter-spacing: .5px;
}

.sp-tech-col p {
    font-size: .83rem;
    color: rgba(255, 255, 255, .65);
    margin: 0;
}

.sp-tech-divider {
    width: 1px;
    background: rgba(255, 255, 255, .12);
    align-self: stretch;
}

.sp-tech-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;
}

/* ── COMPARISON CARDS ── */
.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1.5px solid rgba(108, 99, 255, .1);
    box-shadow: 0 4px 18px rgba(108, 99, 255, .06);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.comparison-card.rag-card {
    border-top: 4px solid #00D4AA;
}

.comparison-card.ft-card {
    border-top: 4px solid #6C63FF;
}

.comparison-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.comparison-card.rag-card h3 {
    color: #059669;
}

.comparison-card.ft-card h3 {
    color: #6C63FF;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(108, 99, 255, .07);
    font-size: .875rem;
    color: #4b5563;
}

.comparison-card li:last-child {
    border-bottom: none;
}

.comparison-card li::before {
    content: '✓';
    font-weight: 800;
    flex-shrink: 0;
}

.comparison-card.rag-card li::before {
    color: #00D4AA;
}

.comparison-card.ft-card li::before {
    color: #6C63FF;
}

/* ── PRICING CARDS ── */
.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: rg-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: rg-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;
}

/* ── REVEAL ── */
.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 */
.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);
}

/* Back to top */
#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;
}