/*
Theme Name: Xuanwu Theme
Description: A modern WordPress theme for the Xuanwu app landing page featuring a clean design with red accent colors and mobile-responsive layout.
Author: Your Name
Version: 1.0
Text Domain: xuanwu-theme
*/

/* CSS Variables for consistent colors */
:root {
    --primary-red: #cc2936;
    --bg-color: #ffffff;
    --card-bg: #fdfaf9; /* Light warm gray for cards */
    --text-dark: #333333;
    --text-light: #666666;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a8202b;
    color: white;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
    margin: 20px 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    background-color: #f0f0f0; /* Placeholder gray */
    border-radius: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supported-platforms {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Features Section (Grid) */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 60px 0;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    color: var(--primary-red);
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-img-wrapper {
    margin-top: auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Benefits Row (Icons) */
.benefits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.benefit-item img {
    height: 40px;
    margin: 0 auto 10px auto;
}

.benefit-item span {
    font-size: 14px;
    color: var(--text-light);
}

/* Bottom CTA Section */
.bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
    background-color: var(--card-bg);
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 12px;
}

/* WordPress specific styles */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .bottom-cta {
        flex-direction: column;
        text-align: center;
    }
    .cta-left {
        flex-direction: column;
        text-align: center;
    }
    .benefits {
        justify-content: center;
    }
    .benefit-item {
        flex: 0 0 30%;
        margin-bottom: 20px;
    }
}