:root {
    --bg-main: #0B0F19;
    --bg-card: #151A2A;
    --bg-card-hover: #1A2133;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --gradient-start: #3B82F6;
    --gradient-end: #8B5CF6;
    --accent: #10B981;
    --border-color: #2D3748;
    --drop-border: #4B5563;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Extensions */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}
.logo span { color: var(--primary); }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-main); }

/* Main Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 5%;
    flex: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin: 3rem 0;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Ads */
.ad-placeholder {
    width: 100%;
    margin: 2rem 0;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    height: 90px; /* Standard ad banner height */
}
.bottom-ad { height: 250px; }

/* Converter Box */
.converter-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.drop-zone {
    border: 2px dashed var(--drop-border);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(11, 15, 25, 0.5);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.icon-container {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.drop-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.drop-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.supported-formats {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: var(--text-muted);
}

/* Progress & Status */
.hidden { display: none !important; }

.status-container {
    padding: 2rem 0;
    text-align: center;
}

.status-container h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    width: 0%;
    transition: width 0.3s ease;
}

#statusMessage {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Results Area */
.results-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.result-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-download {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-download:hover { background: var(--primary-hover); }
.btn-download.outline {
    background: transparent;
    border: 1px solid var(--border-color);
}
.btn-download.outline:hover { background: rgba(255,255,255,0.05); }

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

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

.feature-card:hover { transform: translateY(-5px); }

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

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* SEO FAQ Section */
.seo-faq {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.faq-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
}
.footer-links a:hover { color: var(--primary); }

.copyright { opacity: 0.5; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .features { grid-template-columns: 1fr; }
    .drop-zone { padding: 2rem 1rem; }
    .result-item { flex-direction: column; gap: 1rem; align-items: stretch; text-align: center; }
    .btn-download { justify-content: center; }
}

/* Tool Badge */
.tool-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}
.tool-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
