:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --error-color: #ef4444;
    --success-color: #22c55e;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-light: #312e81;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-switcher {
    flex: 1;
}

.lang-dropdown {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-dropdown:hover {
    border-color: var(--primary-color);
}

.logo-title {
    flex: 2;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: auto;
    height: 68px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.logo-text {
    display: none;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.stars-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: var(--radius-full);
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(251, 191, 36, 0.4); }
    50% { box-shadow: var(--shadow-md), 0 0 20px 5px rgba(251, 191, 36, 0.2); }
}

.stars-badge i {
    color: #1e293b;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.platform-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.platform-nav::-webkit-scrollbar {
    display: none;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.platform-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.platform-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.platform-btn i {
    font-size: 1rem;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.features-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.badge i {
    color: var(--secondary-color);
}

.download-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
}

.url-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.url-input {
    width: 100%;
    padding: 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.url-input::placeholder {
    color: var(--text-muted);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.clear-btn:hover {
    color: var(--text-primary);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

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

.download-btn:active {
    transform: translateY(0);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: loader-spin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--primary-color);
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    border-right-color: #8b5cf6;
    animation-delay: 0.15s;
}

.loader-ring:nth-child(3) {
    border-bottom-color: var(--secondary-color);
    animation-delay: 0.3s;
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.error-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: var(--radius-md);
    color: var(--error-color);
}

.error-container i {
    font-size: 1.5rem;
}

.video-info {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.video-preview {
    position: relative;
    width: 320px;
    min-width: 200px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

.video-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.video-meta span:not(:last-child)::after {
    content: " • ";
}

.format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.format-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-option:hover {
    border-color: var(--primary-color);
}

.format-option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.start-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.start-download-btn:hover {
    background: #059669;
}

.download-progress {
    padding: 1.5rem;
}

.progress-bar-container {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
}

.how-it-works {
    padding: 4rem 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

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

.step {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
}

.supported-platforms {
    padding: 4rem 0;
    text-align: center;
}

.supported-platforms h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(var(--accent-color), 0.2);
}

.platform-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.75rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-links h4,
.footer-features h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

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

.footer-features p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-features i {
    color: var(--secondary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.stars {
    color: #fbbf24;
}

@media (min-width: 1440px) {
    .main-content {
        max-width: 1400px;
    }
    
    .header-content {
        max-width: 1400px;
    }
    
    .footer-content,
    .footer-bottom {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .how-it-works,
    .supported-platforms {
        padding: 3rem 0;
    }
    
    .steps {
        gap: 1.5rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .language-switcher {
        order: 1;
        flex: 0 1 auto;
    }
    
    .logo-title {
        order: 0;
        flex: 100%;
        justify-content: center;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .header-right {
        order: 2;
        flex: 0 1 auto;
    }
    
    .platform-nav {
        justify-content: flex-start;
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .platform-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .features-badges {
        gap: 0.5rem;
    }
    
    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .download-section {
        padding: 1.25rem;
        margin: 1rem 0;
        border-radius: var(--radius-lg);
    }
    
    .url-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .url-input {
        padding: 0.875rem 2.5rem;
        font-size: 0.9375rem;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .video-info {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .video-preview {
        width: 100%;
    }
    
    .video-title {
        font-size: 1.125rem;
    }
    
    .stars-badge {
        display: none;
    }
    
    .how-it-works h2,
    .supported-platforms h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .platform-card {
        padding: 1.25rem;
    }
    
    .platform-card i {
        font-size: 2.25rem;
    }
    
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 2rem 1rem 1.5rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        gap: 2rem;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .lang-dropdown {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .hero h1 {
        font-size: 1.625rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .platform-btn span {
        display: none;
    }
    
    .platform-btn {
        padding: 0.625rem;
        border-radius: var(--radius-md);
    }
    
    .platform-btn i {
        font-size: 1.125rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .platform-card {
        padding: 1rem;
    }
    
    .platform-card h3 {
        font-size: 1rem;
    }
    
    .platform-card p {
        font-size: 0.75rem;
    }
    
    .format-options {
        gap: 0.375rem;
    }
    
    .format-option {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .start-download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 1.375rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .badge i {
        font-size: 0.75rem;
    }
    
    .download-section {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .url-input {
        padding: 0.75rem 2.25rem;
        font-size: 0.875rem;
        border-radius: var(--radius-md);
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 0.875rem;
    }
    
    .clear-btn {
        right: 0.75rem;
    }
    
    .download-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        border-radius: var(--radius-md);
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.875rem;
    }
    
    .faq-item summary {
        padding: 1rem;
    }
    
    .faq-item summary h3 {
        font-size: 0.9375rem;
    }
    
    .faq-content {
        padding: 0.75rem 1rem;
    }
    
    .footer-links h4,
    .footer-features h4 {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 360px) {
    .header-content {
        padding: 0.5rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .lang-dropdown {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .platform-nav {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .platform-btn {
        padding: 0.5rem;
    }
    
    .platform-btn i {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.8125rem;
    }
    
    .features-badges {
        gap: 0.375rem;
    }
    
    .badge {
        padding: 0.25rem 0.375rem;
        font-size: 0.6875rem;
        gap: 0.25rem;
    }
    
    .download-section {
        padding: 0.75rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .platform-card {
        padding: 0.75rem;
    }
    
    .platform-card i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .platform-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .platform-card p {
        font-size: 0.6875rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .step:hover,
    .platform-card:hover,
    .faq-item:hover {
        transform: none;
    }
    
    .download-btn:hover {
        transform: none;
    }
    
    .platform-btn,
    .download-btn,
    .start-download-btn,
    .format-option,
    .theme-toggle,
    .lang-dropdown {
        min-height: 44px;
    }
    
    .faq-item summary {
        min-height: 48px;
    }
}

@supports (-webkit-touch-callout: none) {
    .url-input {
        font-size: 16px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 0.75rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
    }
    
    .features-badges {
        margin-bottom: 0;
    }
    
    .download-section {
        margin: 0.75rem 0;
    }
}

/* Accessibility - Visually Hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.faq-content {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.faq-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: block;
    box-shadow: var(--shadow-md);
}

.faq-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item[open] {
    background: var(--bg-tertiary);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Header navigation for subpages */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav a {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.header-nav a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Breadcrumb styling */
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* Print styles */
@media print {
    .header,
    .footer,
    .platform-nav,
    .theme-toggle,
    .social-links {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .main-content {
        max-width: 100%;
        padding: 0;
    }
}
