/*
Theme Name: KuaiLian SaaS
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A high-performance, SEO-optimized WordPress theme with a modern purple gradient aesthetic. 100% UI Replica.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, one-column, two-columns, right-sidebar, translation-ready
Text Domain: kuailian
*/

:root {
    --primary-gradient: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
    /* Purple to Pinkish */
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Deep Blue/Purple */
    --primary-color: #7F00FF;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f9faff;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    font-size: 16px;
}

body.no-scroll {
    overflow: hidden;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(127, 0, 255, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid #eee;
    box-shadow: var(--shadow-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Header */
.site-header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.site-header.is-sticky {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.site-header.is-sticky .site-logo,
.site-header.is-sticky .main-navigation a {
    color: var(--text-main);
}

.site-header.is-sticky .btn-secondary {
    border-color: #eee;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    color: #4a4a4a;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 120px;
    background: var(--primary-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section .hero-title,
.hero-section .hero-subtitle {
    color: #fff;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Feature Section (Allows alternating layout) */
.feature-section {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
}

/* Cards/Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Footer */
.site-footer {
    background: #f8faff;
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-light);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-size: 0.9rem;
    color: #999;
}

/* Page/Single */
.page-header {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2 {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-grid.reverse {
        direction: ltr;
    }

    /* Maintain order on mobile usually */
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #ffffff;
        padding: 80px 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        display: block;
        /* Override none */
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(127, 0, 255, 0.15);
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-price span {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
}

.pricing-features {
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 700;
}

/* Testimonials */
.testimonial-card {
    background: #f9faff;
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: left;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
}

.testimonial-info h5 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: #999;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #888;
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #ccc;
}