/* Pricing Section Specific Styles */
.pricing-section {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    background-color: #ffffff;
    /* Use local variables for scoping */
    --pricing-primary: #6366f1;
    --pricing-secondary: #8b5cf6;
    --pricing-accent: #10b981;
    --pricing-dark: #0f172a;
    --pricing-light: #ffffff;
    --pricing-gray: #e2e8f0;
    --pricing-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #10b981);
}

/* Pricing Container Animation */
.pricing-container {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1), transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.pricing-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background Animations */
.pricing-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.pricing-animated-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pricingGridMove 25s linear infinite;
    top: -50%;
    left: -50%;
}

@keyframes pricingGridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

.pricing-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pricing-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--pricing-gradient);
    filter: blur(60px);
    opacity: 0.08;
    animation: pricingFloat 25s infinite ease-in-out;
}

.pricing-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.pricing-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 5%;
    animation-delay: 8s;
}

.pricing-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 15%;
    animation-delay: 15s;
}

@keyframes pricingFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(-60px) rotate(180deg);
        opacity: 0.12;
    }
}

/* Content Container */
.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
    /* Reduced from 70px */
}

.pricing-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    /* Matched to networks-header */
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;

    /* Matching gradient */
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    line-height: 1.1;
    display: inline-block;
    position: relative;
}

.pricing-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 120px;
    height: 4px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    border-radius: 2px;
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    margin-top: 2px;
    /* Ensure some space from the underline */
}

/* Plans Grid */
.pricing-plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Plan Card */
.pricing-card {
    background: var(--pricing-light);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--pricing-gray);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
    border-color: var(--pricing-primary);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--pricing-gradient);
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pricing-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pricing-card:hover::after {
    opacity: 0.03;
}

/* Badge */
.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 5px 35px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    z-index: 10;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--pricing-gray);
}

.pricing-plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    /* Reduced from 15px */
    font-family: 'Outfit', sans-serif;
}

.starter .pricing-plan-name {
    color: #3b82f6;
}

.pro .pricing-plan-name {
    color: #8b5cf6;
}

.expert .pricing-plan-name {
    color: #10b981;
}

.pricing-node-type {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.starter .pricing-node-type {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pro .pricing-node-type {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.expert .pricing-node-type {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing-price {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 10px 0;
    /* Reduced from 20px 0 */
    position: relative;
    display: inline-block;
    color: var(--pricing-dark);
}

.pricing-price::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--pricing-gradient);
    border-radius: 3px;
}

.pricing-price span {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.pricing-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    text-align: center;
    margin-bottom: 25px;
    /* Added spacing for button */
}

/* Pricing Buttons */
.pricing-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.starter .pricing-btn {
    background: #eff6ff;
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.starter .pricing-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.pro .pricing-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.pro .pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.expert .pricing-btn {
    background: #ecfdf5;
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.expert .pricing-btn:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}


.pricing-highlight {
    font-weight: 600;
    color: var(--pricing-dark);
}

/* Connection Lines Animation */
.pricing-connection-line {
    position: absolute;
    height: 2px;
    background: var(--pricing-gradient);
    opacity: 0.2;
    z-index: -1;
    border-radius: 2px;
}

.pricing-connection-line.horizontal {
    width: 120px;
    top: 50%;
    left: -120px;
    animation: pricingSlideRight 12s infinite linear;
}

.pricing-connection-line.vertical {
    width: 2px;
    height: 120px;
    top: -120px;
    left: 50%;
    animation: pricingSlideDown 12s infinite linear;
}

@keyframes pricingSlideRight {
    0% {
        transform: translateX(0);
        opacity: 0.1;
    }

    50% {
        transform: translateX(240px);
        opacity: 0.4;
    }

    100% {
        transform: translateX(480px);
        opacity: 0.1;
    }
}

@keyframes pricingSlideDown {
    0% {
        transform: translateY(0);
        opacity: 0.1;
    }

    50% {
        transform: translateY(240px);
        opacity: 0.4;
    }

    100% {
        transform: translateY(480px);
        opacity: 0.1;
    }
}

/* Particles */
.pricing-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.pricing-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--pricing-gradient);
    animation: pricingParticleFloat 20s infinite linear;
    opacity: 0;
}

@keyframes pricingParticleFloat {
    0% {
        transform: translateY(100%) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Decorative Elements */
.pricing-decorative-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.1);
    z-index: -1;
}

.pricing-circle-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
    animation: pricingRotate 50s infinite linear;
}

.pricing-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    animation: pricingRotate 40s infinite linear reverse;
}

@keyframes pricingRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Web3 Icons */
.pricing-web3-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(99, 102, 241, 0.3);
    z-index: -1;
    animation: pricingIconFloat 15s infinite ease-in-out;
}

@keyframes pricingIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-plans-grid {
        gap: 25px;
    }

    .pricing-card {
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .pricing-plans-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 500px;
    }

    .pricing-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .pricing-header h2 {
        font-size: 2.2rem;
    }

    .pricing-subtitle {
        font-size: 1rem;
    }

    .pricing-card {
        padding: 35px 25px;
    }

    .pricing-price {
        font-size: 2.8rem;
    }
}