/* WP Free CDN - Main Stylesheet */
/* Optimized for performance and SEO */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(26, 32, 44, 0.3);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 25px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .highlight {
    background: linear-gradient(45deg, #f6ad55, #ed8936);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* CDN Stats */
.cdn-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,0.08);
    padding: 25px 35px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #f6ad55;
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 50px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(49, 130, 206, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    opacity: 0.8;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.trust-item i {
    font-size: 1.5rem;
    color: #f6ad55;
}

/* Savings Banner */
.savings-banner {
    background: linear-gradient(45deg, #f6ad55, #ed8936);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(246, 173, 85, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.savings-banner h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.savings-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
}

@keyframes glow {
    from { box-shadow: 0 10px 30px rgba(246, 173, 85, 0.3); }
    to { box-shadow: 0 15px 40px rgba(246, 173, 85, 0.5); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 25px;
    color: #1a202c;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3182ce, #2c5282);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #4a5568;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 70px;
}

.feature-card {
    background: white;
    padding: 45px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(49, 130, 206, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3182ce, #2c5282);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #3182ce, #2c5282);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
    font-family: 'Montserrat', sans-serif;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(49, 130, 206, 0.25);
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a202c;
    font-family: 'Montserrat', sans-serif;
}

.step-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
}

.pricing .section-title {
    color: white;
}

.pricing .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    color: #1a202c;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    flex: 0 0 320px;
    max-width: 320px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border: 3px solid #f59e0b;
    transform: scale(1.1);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: visible;
    z-index: 10;
    margin: 0 20px;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.pricing-card.featured:hover::before {
    transform: translateX(100%);
}

.pricing-card.featured::after {
    content: '🔥 LIMITED TIME - SAVE $500+/YEAR';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.pricing-card.featured h3 {
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.price {
    font-size: 4rem;
    font-weight: 900;
    color: #3182ce;
    margin-bottom: 35px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.pricing-card.featured .price {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 4.5rem;
}

.price .currency {
    font-size: 2rem;
    vertical-align: top;
}

.price .period {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.7;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.features-list li {
    padding: 12px 0;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3182ce;
    font-weight: bold;
    font-size: 1.3rem;
}

.pricing-card.featured .features-list li::before {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pricing-card.featured .features-list li {
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 70px;
}

.testimonial {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #3182ce;
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: 'Roboto', sans-serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a202c;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.author-info p {
    margin: 5px 0 0 0;
    font-size: 1rem;
    color: #4a5568;
}

.rating {
    margin-top: 10px;
}

.rating i {
    color: #f6ad55;
    margin-right: 2px;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.final-cta-content {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif;
}

.final-cta p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guarantee {
    background: rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.guarantee h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #f6ad55;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #3182ce;
    font-family: 'Montserrat', sans-serif;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #3182ce;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-top: 50px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
    padding: 25px;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.comparison-table th:first-child {
    text-align: left;
    background: #3182ce;
}

.comparison-table td {
    padding: 20px 25px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a202c;
    background: #f8fafc;
}

.comparison-table .check {
    color: #48bb78;
    font-size: 1.2rem;
    font-weight: 900;
}

.comparison-table .cross {
    color: #e53e3e;
    font-size: 1.2rem;
    font-weight: 900;
}

.comparison-table .our-column {
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.05), rgba(44, 82, 130, 0.05));
    border-left: 4px solid #795548;
    border-right: 4px solid #795548;
}

th.our-column {
    background: #4CAF50 !important;
    border-left: 4px solid #4CAF50;
    border-right: 4px solid #4CAF50;
}

.comparison-table .price-highlight {
    font-size: 1rem;
    font-weight: 900;
    color: #3182ce;
}

.comparison-table .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    font-weight: 400;
    margin-left: 5px;
}

.comparison-table .new-price {
    color: #10b981;
    font-weight: 900;
    font-size: 1.1em;
}

.comparison-table .savings {
    background: linear-gradient(45deg, #f6ad55, #ed8936);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
}

/* Floating Action Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(49, 130, 206, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(49, 130, 206, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.urgent-shake {
    animation: shake 0.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        flex: none;
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
        margin: 0 0 20px 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .features-grid,
    .pricing-cards,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .cdn-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .final-cta h2 {
        font-size: 2.2rem;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-table table {
        min-width: 800px;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .features,
    .how-it-works,
    .pricing,
    .testimonials,
    .final-cta {
        padding: 60px 0;
    }
    
    .feature-card,
    .pricing-card {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* Performance Optimizations */
.feature-card,
.pricing-card,
.testimonial,
.step-card {
    will-change: transform;
}

.btn {
    will-change: transform;
}

/* Print Styles */
@media print {
    .header,
    .floating-cta,
    .cta-buttons {
        display: none;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .features,
    .how-it-works,
    .pricing,
    .testimonials,
    .final-cta {
        padding: 30px 0;
    }
}