:root {
    --bg-main: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #ffffff;
    --accent-hover: #e4e4e7;
    --accent-glow: rgba(255, 255, 255, 0.08);
    --border-color: #27272a;
    --card-bg: rgba(9, 9, 11, 0.7);
    --card-blur: blur(24px);
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects - Simplified for Black Theme */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #111111 0%, #000000 70%);
}

.glow-orb {
    display: none;
    /* Removed for pure black clean aesthetic */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    padding: 24px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.logo span {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 120px 0 80px 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-text h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
    font-weight: 800;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Glass Card & Input */
.glass-card {
    background: transparent;
    border: none;
    max-width: 800px;
    margin: 0 auto 32px auto;
}

.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.icon-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

input[type="text"] {
    width: 100%;
    padding: 20px 24px 20px 52px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    border-radius: 100px;
    background: var(--accent);
    color: #000;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.primary-btn:active {
    transform: translateY(0);
}

/* States */
.hidden {
    display: none !important;
}

#loading-state {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.error-alert {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 20px;
    border-radius: 20px;
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(8px);
}

/* Result Box */
.result-box {
    margin-top: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    animation: slideUp 0.4s ease forwards;
    backdrop-filter: blur(10px);
}

.video-preview {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info h3 {
    font-size: 1.125rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-info p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 500;
}

.download-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.download-action-btn:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
}

/* Progress Text inside Download Btn */
.download-action-btn.downloading {
    background: #3f3f46;
    color: #fff;
    pointer-events: none;
}

/* Features Section */
.features-section {
    margin: 100px auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 56px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: background 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* SEO Article Section */
.seo-article {
    margin: 60px auto 100px;
    background: transparent;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--border-color);
}

.seo-article h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.seo-article p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.seo-article ol {
    margin: 24px 0 32px 24px;
    color: var(--text-secondary);
}

.seo-article li {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.seo-article li strong {
    color: var(--text-primary);
}

/* Footer */
.site-footer {
    background: #000000;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Simple Page Specific Styles (About, Privacy, etc.) */
.page-header {
    margin-bottom: 48px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
}

.simple-content-box {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.simple-content-box p,
.simple-content-box ul {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.simple-content-box h2 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 180px;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    /* Extra Small Devices */
    @media (max-width: 380px) {
        .navbar {
            padding: 12px 0;
        }

        .logo {
            gap: 6px;
        }
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        text-align: center;
        backdrop-filter: blur(24px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-links a {
        padding: 24px;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        transition: background 0.2s ease;
        font-weight: 500;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
        animation: slideDownFade 0.3s ease forwards;
    }

    @keyframes slideDownFade {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-toggle {
        display: flex;
    }

    /* Burger Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-content {
        flex: 1;
        padding: 160px 0 80px 0;
    }

    .input-group {
        flex-direction: column;
    }

    .primary-btn {
        padding: 20px;
    }

    .result-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .download-action-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .seo-article {
        padding: 32px 24px;
    }

    .simple-content-box {
        padding: 32px 24px;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    input[type="text"] {
        padding: 16px 20px 16px 48px;
        font-size: 0.95rem;
    }

    .primary-btn {
        padding: 16px;
        font-size: 0.95rem;
    }

    .video-preview {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .simple-content-box h2 {
        font-size: 1.5rem;
    }
}