/*
Theme Name: Kuailian Dark Theme
Author: Antigravity
Description: A modern dark-themed WordPress template optimized for Google SEO based on Kuailian UI.
Version: 1.0.0
*/

:root {
    --bg-dark: #090b14;
    --bg-card: #111520;
    --bg-card-hover: #192033;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #0ea5e9;
    --accent-blue-hover: #38bdf8;
    --border-color: #1e293b;
    --glow-color: rgba(14, 165, 233, 0.15);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Global Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: rgba(9, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.site-logo { display: flex; align-items: center; }
.site-logo-text { font-size: 22px; font-weight: 700; color: var(--accent-blue); letter-spacing: 1px; }

.main-navigation ul { display: flex; gap: 30px; }
.main-navigation a { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--text-primary); }

.header-actions .btn {
    padding: 8px 24px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-left: 15px;
}
.btn-login { color: var(--text-secondary); }
.btn-login:hover { color: var(--text-primary); }

.btn { display: inline-block; cursor: pointer; text-align: center; font-family: var(--font-stack); }
.btn-primary { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #fff !important; box-shadow: 0 4px 15px var(--glow-color); border: none; transition: transform 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3); }

.btn-lg { padding: 14px 40px; font-size: 16px; border-radius: 30px; }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-primary); background: transparent; padding: 14px 40px; font-size: 16px; border-radius: 30px; transition: all 0.3s; }
.btn-outline:hover { background: rgba(255,255,255,0.05); }

.mt-3 { margin-top: 20px; }

/* Sections */
.section { padding: 100px 0; }
.section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 60px; color: var(--text-primary); letter-spacing: 1px; }

/* Grid Layouts */
.grid { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width: 991px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 767px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px 30px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.glow-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: 0 10px 40px var(--glow-color); background: var(--bg-card-hover); }
.card h3, .card h4 { margin-top: 10px; margin-bottom: 15px; font-size: 20px; font-weight: 600; }
.card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.text-center { text-align: center; }

/* Hero Section */
.hero-section { padding: 120px 0 80px; position: relative; background: radial-gradient(circle at top center, rgba(14, 165, 233, 0.1) 0%, transparent 60%); }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.3; margin-bottom: 30px; letter-spacing: -1px; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; }
.hero-image { min-height: 200px; } /* Space for custom image */

/* Features: OS */
.grid-small .card { padding: 30px 20px; text-align: center; }

/* Custom Nodes */
.wide-glow-card { background: linear-gradient(180deg, var(--bg-card) 0%, #0d121c 100%); padding: 60px; border-color: rgba(14, 165, 233, 0.3); }
.node-icons { display: flex; justify-content: center; gap: 60px; margin-top: 40px; }
.node-icon .circle { display: inline-block; width: 120px; height: 120px; border-radius: 50%; font-weight: 600; line-height: 120px; background: rgba(14, 165, 233, 0.05); border: 2px solid var(--accent-blue); color: var(--accent-blue); font-size: 16px; box-shadow: inset 0 0 30px var(--glow-color); }
@media(max-width: 767px) { .node-icons { flex-direction: column; gap: 30px; align-items: center; } }


/* Security Badges */
.badges-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.badge { background: var(--bg-card); border: 1px solid var(--border-color); padding: 15px 30px; border-radius: 30px; font-size: 16px; font-weight: 500; color: var(--text-secondary); transition: 0.3s; cursor: default; }
.badge:hover { border-color: var(--accent-blue); color: var(--text-primary); box-shadow: 0 0 20px var(--glow-color); }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; align-items: center; }
.pricing-card .price { font-size: 48px; font-weight: 700; color: var(--text-primary); margin: 30px 0; }
.pricing-card .price span { font-size: 24px; vertical-align: super; }
.pricing-card .price small { font-size: 16px; color: var(--text-secondary); font-weight: normal; }
.pricing-card ul { margin-bottom: 30px; width: 100%; text-align: left; }
.pricing-card ul li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); }
.pricing-card.popular { border-color: var(--accent-blue); background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, var(--bg-card) 100%); transform: scale(1.05); z-index: 2; }
.pricing-card.popular .ribbon { position: absolute; top: 0; right: 0; background: var(--accent-blue); color: #fff; padding: 5px 20px; font-size: 12px; font-weight: 600; border-bottom-left-radius: 16px; }

/* Download buttons */
.downloads-section { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.download-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.download-buttons .btn { padding: 12px 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: var(--bg-card); transition: all 0.3s; }
.download-buttons .btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(14, 165, 233, 0.05); transform: translateY(-2px); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); margin-bottom: 15px; border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.faq-item:hover { border-color: rgba(255,255,255,0.2); }
.faq-item summary { padding: 25px 30px; font-size: 18px; font-weight: 600; cursor: pointer; position: relative; list-style: none; outline: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent-blue); transition: 0.3s; }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 30px 30px; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* Footer */
.site-footer { background-color: var(--bg-dark); padding: 60px 0 30px; border-top: 1px solid var(--border-color); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-widget h4 { color: var(--text-primary); font-size: 16px; margin-bottom: 20px; font-weight: 600; }
.footer-widget ul li { margin-bottom: 12px; }
.footer-widget a { color: var(--text-secondary); font-size: 14px; transition: 0.3s; }
.footer-widget a:hover { color: var(--accent-blue); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 14px; }

/* Single & Page & Search Specific Adjustments */
.page-links { margin-top: 30px; }
.post-taxonomy a { display: inline-block; background: rgba(255,255,255,0.05); padding: 5px 15px; border-radius: 20px; font-size: 13px; color: var(--text-secondary); margin-right: 10px; }
.post-taxonomy a:hover { background: var(--accent-blue); color: #fff; }
.entry-title a:hover { color: var(--accent-blue); }
