﻿/* 
   NextGen Download Manager 
   Official Design System v2.0
*/

:root {
    --bg-main: #0A0A10;
    --bg-surface: #13131A;
    --bg-panel: #1A1A26;
    --border-subtle: #23232F;
    --primary: #3D28FF;
    --primary-hover: #5039FF;
    --secondary: #10B981;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --radius: 12px;
    --radius-lg: 24px;
    --nav-bg: rgba(10, 10, 16, 0.8);
    --nav-bg: rgba(10, 10, 16, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--text-main); }
h3 { font-size: 1.5rem; }

h1 span {
    color: var(--primary);
    position: relative;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(61, 40, 255, 0.2);
    z-index: -1;
}

p { color: var(--text-muted); font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(61, 40, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 40, 255, 0.5);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background-color: var(--bg-panel);
}

/* Navbar - Sticky & Blur */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover { opacity: 0.8; }
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.hero p { max-width: 650px; margin: 0 auto 40px; font-size: 1.2rem; }

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

/* App Screenshot Styling */
.app-mockup-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 20px rgba(61, 40, 255, 0.1);
}

.trust-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.feature-card {
    background-color: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    background-color: var(--bg-panel);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 15px rgba(61, 40, 255, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--bg-panel);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

/* Comparison Table */
.comparison-container {
    margin-top: 64px;
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.comp-table th, .comp-table td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
    background-color: var(--bg-panel);
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.check-icon { color: var(--secondary); font-weight: bold; }
.cross-icon { color: #EF4444; font-weight: bold; }

/* Floating Action Button (FAB) */
.mobile-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--primary);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}

/* Blog Specific Additions */
.blog-toc {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0 48px 0;
}
.blog-toc h4 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--text-main);
}
.blog-toc ul {
    list-style: none;
    padding-left: 0;
}
.blog-toc li {
    margin-bottom: 12px;
}
.blog-toc a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.blog-toc a:hover {
    text-decoration: underline;
}

.blog-content h2[id], .blog-content h3[id] {
    scroll-margin-top: 100px;
}

.blog-internal-link {
    background: var(--primary);
    color: white !important;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
}
.blog-internal-link:hover {
    background: var(--primary-hover);
}

.faq-section {
    margin-top: 64px;
    border-top: 2px solid var(--border-subtle);
    padding-top: 48px;
}

/* Global Page Classes */
.page-content {
    padding-top: var(--spacing-xl);
}

.page-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* Blog Content Classes (Moved from inline styles) */
.blog-content { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: var(--spacing-xl) 20px; 
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: var(--text-muted); 
}
.blog-content h1 { 
    font-size: 3rem; 
    margin-bottom: 24px; 
    color: var(--text-main); 
}
.blog-content h2 { 
    font-size: 2.2rem; 
    margin-top: 56px; 
    margin-bottom: 20px; 
    color: var(--text-main); 
    border-left: 4px solid var(--primary); 
    padding-left: 20px; 
    scroll-margin-top: 100px; 
}
.blog-content h3 { 
    font-size: 1.6rem; 
    margin-top: 40px; 
    margin-bottom: 16px; 
    color: var(--text-main); 
    scroll-margin-top: 100px; 
}
.blog-content p { margin-bottom: 24px; }
.blog-content ul { padding-left: 24px; margin-bottom: 24px; }
.blog-content li { margin-bottom: 8px; }
.blog-content img { 
    width: 100%; 
    border-radius: var(--radius-lg); 
    margin: 40px 0; 
    border: 1px solid var(--border-subtle); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.author-box { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 48px; 
    padding-bottom: 32px; 
    border-bottom: 1px solid var(--border-subtle); 
}
.author-img { 
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    background: var(--primary); 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
}

/* Premium FAQ Design */
.faq-container {
    align-items: start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 64px auto;
}
.faq-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.faq-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(61, 40, 255, 0.1);
    transform: translateY(-4px);
    background: var(--bg-panel);
}
.faq-card.active {
    border-color: var(--primary);
    background: var(--bg-panel);
}
.faq-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    gap: 16px;
}
.faq-card-header i {
    color: var(--primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.faq-card.active .faq-card-header i {
    transform: rotate(180deg);
}
.faq-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.faq-card.active .faq-card-body {
    max-height: 300px;
    margin-top: 20px;
    opacity: 1;
}

/* Light Mode Variables */
:root.light-mode {
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-panel: #F1F5F9;
    --border-subtle: #CBD5E1;
    --text-main: #0F172A;
    --text-muted: #334155;
    --text-dim: #64748B;
    --primary-hover: #311eb8;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.9);
}

#theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}
#theme-toggle:hover {
    background: var(--bg-panel);
    transform: scale(1.05);
}


.nav-links a.active {
    color: var(--primary) !important;
    font-weight: 800 !important;
}

