@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #1877f2;
    --primary-gradient: linear-gradient(135deg, #1877f2 0%, #30A8FF 100%);
    --text-dark: #1c1e21;
    --text-light: #606770;
    --bg-light: #f5f6f7;
    --white: #ffffff;
    --border: #dddfe2;
    --radius: 12px;
    --radius-lg: 24px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* Header */
.navbar {
    background: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.lang-select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    padding: 80px 5%;
    text-align: center;
    color: var(--white);
    border-radius: 0 0 40px 40px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.downloader-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.downloader-form.vertical {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 30px;
    background: transparent;
    box-shadow: none;
    gap: 20px;
}

.downloader-form.vertical .input-group {
    width: 100%;
    background: var(--white);
    border-radius: 50px;
    padding: 10px;
    display: flex;
}

.downloader-form.vertical .input-group.large {
    border-radius: var(--radius-lg);
    padding: 20px;
}

.downloader-form.vertical textarea.url-input {
    border-radius: 12px;
    min-height: 150px;
    resize: vertical;
}

.input-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.url-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
    color: var(--text-dark);
}

.url-input::placeholder {
    color: #999;
}

.paste-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: #166fe5;
}

.download-btn:active {
    transform: scale(0.98);
}

/* Instructions / Steps */
.instructions-section {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.instructions-header h2 {
    font-size: 32px;
}

.instructions-header p {
    color: var(--text-light);
    max-width: 500px;
    text-align: right;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.step-card {
    background: var(--white);
    padding: 0;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Features sections */
.feature-section {
    padding: 60px 5%;
    background: var(--bg-light);
    margin: 60px 0;
}

.feature-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feature-header h2 {
    font-size: 36px;
    max-width: 400px;
}

.feature-header p {
    color: var(--text-light);
    max-width: 500px;
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-card img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-card-content {
    padding: 30px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
}

/* Private Video Steps Custom Layout */
.private-steps {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.private-steps-list {
    flex: 1;
}

.private-step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.private-step-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.private-step-icon.light {
    background: var(--bg-light);
    color: var(--text-light);
}

.private-step-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.private-step-content p {
    color: var(--text-light);
    font-size: 14px;
}

.private-steps-image {
    flex: 1;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.private-steps-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* FAQ Section */
.faq-section {
    padding: 80px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.faq-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.accordion {
    margin-bottom: 15px;
}

.accordion-header {
    background: var(--bg-light);
    padding: 20px 30px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #eceff1;
}

.accordion-content {
    background: var(--white);
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion.active .accordion-content {
    padding: 20px 30px;
    max-height: 500px; 
}

.accordion-icon {
    transition: transform 0.3s;
    color: var(--text-light);
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 60px 5% 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    margin-top: 20px;
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #888;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

/* Utility */
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }

/* ─── Legal Pages ───────────────────────────────────────────────────────────── */
.legal-page {
    padding: 60px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.legal-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-section ul {
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 24px;
    margin-top: 8px;
}

.legal-section ul li {
    margin-bottom: 6px;
}

.legal-section code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--primary);
}

/* ─── RTL support ───────────────────────────────────────────────────────────── */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-content { direction: rtl; }
[dir="rtl"] .legal-section ul { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .instructions-header p { text-align: left; }
[dir="rtl"] .footer-bottom { direction: rtl; }

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none; 
    }
    
    .hero {
        padding: 50px 20px;
        border-radius: 0 0 20px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .downloader-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 20px;
        gap: 15px;
    }
    
    .input-container {
        width: 100%;
        padding: 10px;
        background: var(--bg-light);
        border-radius: var(--radius);
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .feature-header, .instructions-header, .private-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .instructions-header p {
        text-align: left;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}
