/**
 * WPGenie SaaS Theme — Premium Light Design System
 * @package WPGenie_Theme
 */

/* ==================== VARIABLES ==================== */
:root {
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #5a4bd1;
    --primary-bg: #f0edff;
    --accent: #00b894;
    --accent-light: #55efc4;
    --accent-bg: #e8fff6;
    --gradient: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 50%, #00b894 100%);
    --gradient-btn: linear-gradient(135deg, #6C5CE7 0%, #5a4bd1 100%);
    --gradient-warm: linear-gradient(135deg, #fd79a8 0%, #6C5CE7 100%);

    --bg-body: #f8f9fc;
    --bg-white: #ffffff;
    --bg-light: #f1f3f8;
    --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --text-dark: #1a1a2e;
    --text-body: #4a4a6a;
    --text-muted: #7c7c9a;
    --text-light: #a0a0b8;

    --border: #e8e8f0;
    --border-light: #f0f0f5;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 8px 40px rgba(108, 92, 231, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ==================== LAYOUT ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-white); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; transition: var(--transition);
    border: 2px solid transparent; text-decoration: none;
}

.btn-primary {
    background: var(--gradient-btn); color: white; border-color: transparent;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.45);
    color: white;
}

.btn-outline {
    background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary); color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-white {
    background: white; color: var(--primary); border-color: white;
    font-weight: 700;
}
.btn-white:hover {
    background: rgba(255,255,255,0.9); transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); color: var(--primary);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; text-align: center; }

/* ==================== HEADER ==================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo-text {
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800;
    color: var(--text-dark) !important;
}

.main-navigation ul { display: flex; list-style: none; gap: 30px; }
.main-navigation a {
    color: var(--text-body); font-weight: 500; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.main-navigation a:hover { color: var(--primary); }

.header-cta {
    background: var(--gradient-btn); color: white !important;
    padding: 10px 24px; border-radius: 50px; font-weight: 600;
    font-size: 0.85rem; box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
}
.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    color: white !important;
}

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 5px; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); transition: var(--transition); }

/* ==================== HERO ==================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6C5CE7 100%);
    position: relative; overflow: hidden; text-align: center;
}

.hero::before {
    content: ''; position: absolute; top: -30%; right: -15%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
}

.hero::after {
    content: ''; position: absolute; bottom: -40%; left: -10%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.04); border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white; padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-size: 3.5rem; font-weight: 900; line-height: 1.15;
    margin-bottom: 25px; color: white; animation: fadeInUp 0.8s ease;
}

.hero-title .highlight {
    background: rgba(255,255,255,0.2); padding: 2px 12px; border-radius: 8px;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,0.85);
    max-width: 650px; margin: 0 auto 35px; line-height: 1.8;
    animation: fadeInUp 1s ease;
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; margin-bottom: 50px; animation: fadeInUp 1.2s ease; }

.hero-stats {
    display: flex; justify-content: center; gap: 50px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15);
    animation: fadeInUp 1.4s ease;
}

.hero-stats .stat { text-align: center; }
.hero-stats .stat strong {
    display: block; font-size: 2rem; font-weight: 800; color: white;
}
.hero-stats .stat span {
    font-size: 0.8rem; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
    background: var(--bg-white); padding: 40px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust-bar p {
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
}

.trust-icons {
    display: flex; justify-content: center; align-items: center; gap: 50px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
}

.trust-item .icon { font-size: 1.8rem; }

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.feature-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 24px;
    transition: var(--transition); box-shadow: var(--shadow-xs);
    position: relative; overflow: hidden;
}

.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient); opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-glow);
    border-color: var(--primary-light);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-bg); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 18px;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ==================== LIVE COUNTER ==================== */
.counter-section {
    background: var(--gradient-btn); padding: 60px 0;
}

.counter-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    text-align: center;
}

.counter-item strong {
    display: block; font-size: 2.8rem; font-weight: 900;
    color: white; font-family: var(--font-heading);
}

.counter-item span {
    color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500;
}

/* ==================== HOW IT WORKS ==================== */
.steps-grid { display: flex; align-items: stretch; justify-content: center; gap: 20px; }

.step-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 40px 28px;
    text-align: center; flex: 1; max-width: 340px;
    transition: var(--transition); box-shadow: var(--shadow-xs);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); border-color: var(--primary-light); }

.step-number {
    font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 12px; line-height: 1;
}

.step-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

.step-connector {
    display: flex; align-items: center;
    font-size: 1.5rem; color: var(--primary-light); font-weight: 700;
}

/* ==================== REVIEWS ==================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.review-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px;
    box-shadow: var(--shadow-xs); transition: var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.review-stars { color: #f9ca24; font-size: 1.1rem; margin-bottom: 15px; letter-spacing: 2px; }

.review-text {
    font-size: 0.95rem; color: var(--text-body); line-height: 1.7;
    margin-bottom: 20px; font-style: italic;
}

.review-author { display: flex; align-items: center; gap: 12px; }

.review-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradient); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}

.review-info strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.review-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ==================== PRICING ==================== */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; align-items: stretch;
}

.pricing-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 40px 28px;
    text-align: center; position: relative; transition: var(--transition);
    box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }

.pricing-card.featured {
    border: 2px solid var(--primary); transform: scale(1.04);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg-white) 30%);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-5px); }

.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-btn); color: white; padding: 6px 20px;
    border-radius: 50px; font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}

.pricing-plan {
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 12px;
}

.pricing-price {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 900;
    color: var(--text-dark); margin-bottom: 8px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.pricing-desc {
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 25px;
    padding-bottom: 25px; border-bottom: 1px solid var(--border);
}

.pricing-features { list-style: none; text-align: left; margin-bottom: 30px; flex: 1; }
.pricing-features li {
    padding: 9px 0; color: var(--text-body); font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}

/* ==================== FAQ ==================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); box-shadow: var(--shadow-xs);
}
.faq-item[open] { border-color: var(--primary-light); box-shadow: var(--shadow-glow); }

.faq-item summary {
    padding: 20px 25px; cursor: pointer; font-weight: 600;
    font-size: 1.02rem; color: var(--text-dark); list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.5rem; color: var(--primary);
    transition: var(--transition); font-weight: 300;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--primary-bg); }
.faq-item p { padding: 0 25px 20px; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }

/* ==================== CTA ==================== */
.cta-section { padding: 80px 0; }

.cta-box {
    background: var(--bg-hero); border-radius: var(--radius-xl);
    padding: 70px 50px; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
}
.cta-box h2 { font-size: 2.5rem; margin-bottom: 15px; color: white; position: relative; z-index: 2; }
.cta-box p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 30px; position: relative; z-index: 2; }
.cta-box .btn { position: relative; z-index: 2; }

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--text-dark); border-top: 1px solid var(--border);
    padding: 60px 0 30px; color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}

.footer-col h3 { font-size: 1.3rem; margin-bottom: 12px; color: white; }
.footer-col h4 { font-size: 0.95rem; color: white; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ==================== SINGLE / PAGE ==================== */
.entry-content, .page-content {
    background: var(--bg-white); padding: 40px; border-radius: var(--radius);
    border: 1px solid var(--border); margin-bottom: 30px; box-shadow: var(--shadow-xs);
}
.entry-content h2 { margin-top: 2rem; }

.post-header { padding: 120px 0 40px; text-align: center; background: var(--bg-light); }
.post-header h1 { font-size: 2.5rem; max-width: 800px; margin: 0 auto 15px; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-5px); }
    .hero-title { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { flex-wrap: wrap; gap: 25px; }
    .section-header h2 { font-size: 1.8rem; }
    .main-navigation ul, .header-cta { display: none; }
    .menu-toggle { display: flex; }
    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); }
    .features-grid, .pricing-grid, .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-box { padding: 40px 25px; }
    .cta-box h2 { font-size: 1.8rem; }
    .entry-content, .page-content { padding: 20px; }
    .trust-icons { gap: 25px; }
}

.main-navigation.toggled ul {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 20px; gap: 15px; z-index: 999;
    box-shadow: var(--shadow-md);
}
