/* XMusic Website Styles */
:root {
    --primary-color: #e60026;
    --primary-dark: #c50020;
    --secondary-color: #1a1a1a;
    --accent-color: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --border-color: #333333;
    --success-color: #2ed573;
    --gradient-primary: linear-gradient(135deg, #e60026 0%, #ff4757 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.github-link {
    background: var(--gradient-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: white !important;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top right, rgba(230, 0, 38, 0.1) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0.5rem;
    -webkit-text-fill-color: var(--text-secondary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 0, 38, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.hero-screenshot {
    width: 100%;
}

.screenshot-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Features Overview */
.features-overview {
    padding: 80px 0;
    background: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(230, 0, 38, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Single File Feature */
.single-file-feature {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(230, 0, 38, 0.05) 0%, transparent 100%);
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.showcase-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-text {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.showcase-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tech-details, .benefits {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.tech-details h3, .benefits h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tech-list {
    list-style: none;
}

.tech-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tech-list li:last-child {
    border-bottom: none;
}

.benefit-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-icon {
    font-size: 1.2rem;
}

.comparison-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1;
}

.demo-box.xmusic {
    border-color: var(--primary-color);
    background: rgba(230, 0, 38, 0.1);
}

.demo-box h4 {
    margin-bottom: 1rem;
    text-align: center;
}

.file-tree {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.indent {
    padding-left: 1.5rem;
}

.indent-2 {
    padding-left: 3rem;
}

.single {
    font-size: 1.5rem;
    text-align: center;
    padding: 2rem 0;
}

.arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

.demo-label {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

.tech-screenshot {
    min-height: 300px;
}

/* Features Detail */
.features-detail {
    padding: 80px 0;
}

.detail-section {
    margin-bottom: 4rem;
}

.detail-section.reverse .detail-content {
    order: -1;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.tech-highlight {
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.detail-screenshot {
    margin-top: 2rem;
    min-height: 400px;
}

/* SOUI SVG Section */
.soui-svg-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.svg-showcase {
    margin-top: 3rem;
}

.svg-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.svg-feature {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.svg-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 0, 38, 0.15);
}

/* Highlight feature card */
.svg-feature.highlight-feature {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(230, 0, 38, 0.05) 0%, var(--bg-card) 100%);
}

.svg-feature.ai-feature {
    border: 2px solid #4a9eff;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05) 0%, var(--bg-card) 100%);
}

.feature-highlight {
    background: rgba(230, 0, 38, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.ai-feature .feature-highlight {
    background: rgba(74, 158, 255, 0.1);
    border-left-color: #4a9eff;
}

.tech-comparison {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.ai-example {
    background: rgba(74, 158, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.svg-feature h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.svg-feature ul {
    list-style: none;
}

.svg-feature li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
}

/* Benefits Grid */
.svg-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.benefit-card .benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.benefit-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.svg-examples {
    margin-bottom: 3rem;
}

.svg-examples h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.svg-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.svg-placeholder:hover {
    border-color: var(--primary-color);
}

.code-example {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.code-example h3 {
    margin-bottom: 1rem;
}

.code-example pre {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

/* AI Workflow Section */
.ai-workflow {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.ai-workflow h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #4a9eff;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Download Section */
.download-section {
    padding: 80px 0;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.download-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(230, 0, 38, 0.1) 0%, transparent 100%);
}

.platform-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.platform-info {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.download-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.download-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.download-features li:last-child {
    border-bottom: none;
}

.btn-download {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.btn-download small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.source-code {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.source-code h3 {
    margin-bottom: 1rem;
}

.source-code p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-github {
    background: #333;
    color: white;
}

.btn-github:hover {
    background: #444;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .feature-showcase {
        grid-template-columns: 1fr;
    }
    
    .comparison-demo {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }

    .workflow-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
