:root {
    --primary: #2196f3;
    --primary-hover: #1976D2;
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    z-index: -1;
    opacity: 0.15;
    /* Subtle background visibility */
    filter: blur(2px);
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Input Form */
.download-form {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.download-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(255, 215, 0, 0.15);
}

.input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.download-form input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 50px 15px 20px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-family);
    outline: none;
}

.download-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.paste-btn-wrapper {
    position: absolute;
    right: 10px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.cta-btn {
    padding: 0 30px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Result Area */
.result-area {
    margin-top: 40px;
    width: 100%;
    max-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: none;
    /* Toggled by JS */
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.result-area.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-message {
    text-align: center;
}

.success-message h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.video-preview {
    background: #000;
    height: 200px;
    width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 1px solid var(--border-color);
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dl-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.dl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.5) 100%);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.step-item {
    text-align: center;
    max-width: 300px;
    position: relative;
    padding: 20px;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.05;
    color: #fff;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.step-item h4 {
    margin-top: 20px;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .download-form {
        flex-direction: column;
        padding: 15px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
        /* Simple mobile hide for now, could add JS toggle */
    }

    .menu-toggle {
        display: flex;
    }
}