/*
Theme Name: Kuailian Replica
Theme URI: 
Author: AntiGravity
Author URI: 
Description: A highly optimized, SEO-friendly 1:1 replica theme of Kuailian VPN.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuailian
*/

:root {
    --primary-color: #1a4fca;
    --primary-hover: #143ba3;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f4f7fe;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    
    --container-max-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul, ol {
    list-style: none;
}
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--bg-white);
    padding: 20px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}
.main-nav ul {
    display: flex;
    gap: 32px;
}
.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
}
.main-nav a:hover {
    color: var(--primary-color);
}
.header-actions .btn-login {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 28px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}
.header-actions .btn-login:hover {
    background: var(--primary-hover);
}

/* Base structural classes */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Footer Styles */
.site-footer {
    background: #0b1120;
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-widget-title {
    color: var(--bg-white);
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 600;
}
.footer-widget ul li {
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-widget a:hover {
    color: var(--bg-white);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    color: #64748b;
}

/* --- Homepage Sections --- */

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 60px;
    margin-top: 20px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(26, 79, 202, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
}
.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}
.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}
.hero-cta .btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(26, 79, 202, 0.3);
}
.hero-cta .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.graphic-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

/* Features Grid */
.features-section {
    padding: 60px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-white);
    padding: 30px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}
.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Nodes Section */
.nodes-section {
    padding: 60px 0;
}
.nodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.node-badge {
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
}

/* Compatibility */
.compatibility-section {
    padding: 80px 0;
    background: var(--bg-white);
    margin: 60px 0;
}
.compat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.compat-overview ul li {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-muted);
}
.compat-overview strong {
    color: var(--text-dark);
}
.compat-devices {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
}
.device-icons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
.device-item {
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* FAQ */
.faq-section {
    padding: 60px 0;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.faq-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.faq-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
}
.faq-item p {
    font-size: 15px;
    color: var(--text-muted);
}
.faq-item:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}
.cta-inner {
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
}
.cta-inner h2 {
    font-size: 36px;
    margin-bottom: 16px;
}
.cta-inner p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.btn-dl {
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-dl:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}
.cta-note {
    font-size: 14px;
    opacity: 0.7;
}

/* Mobile Responsive Baseline */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Add mobile menu toggle later */
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .compat-grid {
        grid-template-columns: 1fr;
    }
    .device-icons {
        grid-template-columns: 1fr 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
