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

:root {
    --primary-color: #ff0050;
    --primary-dark: #e00046;
    --secondary-color: #00f2ea;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --light-color: #ffffff;
    --gray-color: #2a2a2a;
    --light-gray: #f5f5f5;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--darker-color) 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-color);
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.download-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--gray-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    font-size: 1rem;
    transition: var(--transition);
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.download-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #ff6b6b;
    text-align: left;
    min-height: 20px;
    font-size: 0.9rem;
    display: none;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--border-radius);
    margin-top: 10px;
}

.error-message:not(:empty) {
    display: block;
}

.success-message {
    color: #51cf66;
    text-align: center;
    padding: 10px;
    background: rgba(81, 207, 102, 0.1);
    border-radius: var(--border-radius);
    margin-top: 10px;
    display: none;
}

.success-message:not(:empty) {
    display: block;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Result Section */
.result-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.result-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.video-preview {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
}

.video-preview video {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius);
    background: #000;
}

.download-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.download-option-btn.secondary {
    background: linear-gradient(45deg, var(--gray-color), #3a3a3a);
}

.download-option-btn.secondary:hover {
    background: linear-gradient(45deg, #3a3a3a, #4a4a4a);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light-color);
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--light-color);
}

.step p {
    color: #ccc;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light-color);
}

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

.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.accordion-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.accordion-header i {
    transition: var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    color: #ccc;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.accordion-item.active .accordion-content p {
    opacity: 1;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .accordion-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-content {
        padding: 0 1rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 1rem 1rem;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-option-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .result-content h2,
    .how-it-works h2,
    .faq h2 {
        font-size: 2rem;
    }
}

.download-another-btn {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.download-another-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.download-options {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}