/* ===================================
   SPUFIFY - MODERN DARK THEME
   =================================== */

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

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #131318;
    --bg-tertiary: #1a1a21;
    --bg-card: #1e1e26;
    --bg-hover: #252530;
    
    /* Accent Colors */
    --accent-primary: #1db954;
    --accent-secondary: #1ed760;
    --accent-gradient: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8a8a8a;
    
    /* Border & Divider */
    --border-color: #2a2a35;
    --border-radius: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 24px rgba(29, 185, 84, 0.3);
    
    /* Fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo:hover .logo-text {
    color: var(--accent-secondary);
    transition: var(--transition);
}

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

.nav-links a {
    color: var(--text-primary)!important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

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

.btn-nav {
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-nav.active {
    background: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(29, 185, 84, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-align: left;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.app-screenshot {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.app-screenshot:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(29, 185, 84, 0.3), 0 0 0 1px var(--accent-primary);
}

.screenshot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 28px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(29, 185, 84, 0.1);
}

.btn-large {
    padding: 18px 42px;
    font-size: 18px;
}

.btn-donate {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.btn-donate:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

/* === Sections === */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

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

/* === Features Section === */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

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

/* === Quality Section === */
.quality {
    background: var(--bg-primary);
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.quality h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.quality-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.format-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.format-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-primary);
}

.format-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.format-desc {
    color: var(--text-secondary);
}

.audio-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 300px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
}

.wave-bar {
    flex: 1;
    height: var(--height);
    background: var(--accent-gradient);
    border-radius: 4px;
    animation: wave 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* === How It Works === */
.how-it-works {
    background: var(--bg-secondary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 64px;
    margin-bottom: 64px;
}

.step {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-center {
    text-align: center;
}

/* === Support Section === */
.support {
    background: var(--bg-tertiary);
    text-align: center;
}

.support-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.support-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.donation-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.support-note {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent-secondary);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* === Download Page === */
.download-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
}

.download-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.version-info {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.download-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px;
    max-width: 700px;
    margin: 0 auto 64px;
}

.download-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.download-box h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.download-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.download-details span {
    color: var(--text-secondary);
    font-size: 15px;
}

.download-note {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: 16px;
}

.system-requirements {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.system-requirements h3 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.requirement {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
}

.requirement strong {
    color: var(--accent-secondary);
    font-size: 14px;
}

.requirement span {
    color: var(--text-secondary);
}

/* === Installation Guide === */
.installation-guide {
    background: var(--bg-primary);
}

.guide-steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guide-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.guide-step-header {
    background: var(--bg-tertiary);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.guide-step-number {
    background: var(--accent-gradient);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.guide-step h3 {
    font-size: 1.5rem;
}

.guide-step-content {
    padding: 32px;
}

.guide-step-content ol,
.guide-step-content ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.guide-step-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.guide-step-content strong {
    color: var(--text-primary);
}

.guide-step-content code {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-secondary);
    font-size: 14px;
}

.guide-step-content a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.guide-step-content a:hover {
    text-decoration: underline;
}

.info-box,
.success-box {
    background: rgba(29, 185, 84, 0.1);
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-box strong,
.success-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-secondary);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(29, 185, 84, 0.2);
    color: var(--accent-secondary);
}

.status-badge.warning {
    background: rgba(255, 165, 0, 0.2);
    color: #ffb347;
}

/* === FAQ Section === */
.faq-section {
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.faq-item {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--accent-secondary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-more {
    text-align: center;
    margin-top: 48px;
}

.faq-more a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
}

.faq-more a:hover {
    text-decoration: underline;
}

/* === Legal Pages === */
.legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.legal-updated {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--accent-secondary);
}

.legal-section h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    margin-top: 24px;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section code {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-secondary);
    font-size: 14px;
}

.highlight-box {
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-top: 48px;
}

.highlight-box h2 {
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.highlight-box ol {
    margin-bottom: 20px;
}

.highlight-box li {
    margin-bottom: 12px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .app-screenshot {
        max-width: 100%;
    }
    
    .quality-content {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .download-box {
        padding: 32px 24px;
    }
    
    .system-requirements {
        padding: 24px;
    }
    
    .guide-step-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .guide-step-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .donation-buttons {
        flex-direction: column;
    }
}
