/*!
 * VideoSave.app - Pinterest Video & Image Downloader
 * Copyright (c) 2026 VideoSave.app
 * All Rights Reserved
 *
 * Unauthorized copying, distribution, or use of this code is strictly prohibited.
 * This software is proprietary and confidential.
 */

:root {
    --primary: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #0891b2;
    --accent: #f59e0b;
    --red: #e60023;
    --red-light: #ff1a3d;
    --red-dark: #bd001d;
    --bg-main: #0a0f1a;
    --bg-surface: #141c2e;
    --bg-elevated: #1e2a42;
    --bg-input: #0a0f1a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e2a42;
    --border-light: #2d3a52;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gradient-hero: linear-gradient(160deg, #0a0f1a 0%, #0f1829 30%, #162036 60%, #0d1220 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-red: linear-gradient(135deg, #e60023 0%, #bd001d 100%);
    --gradient-card: linear-gradient(145deg, #141c2e 0%, #1e2a42 100%);
    --glow-primary: 0 0 40px rgba(6, 182, 212, 0.2);
    --glow-strong: 0 0 60px rgba(6, 182, 212, 0.3);
    --glow-red: 0 0 40px rgba(230, 0, 35, 0.25);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
}

.header-inner {
    max-width: 1140px;
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-red);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-link.active {
    color: var(--bg-main);
    background: var(--primary);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 0, 35, 0.08) 0%, rgba(230, 0, 35, 0.03) 40%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--red);
    position: relative;
    text-shadow: 0 0 40px rgba(230, 0, 35, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

/* ===== DOWNLOAD BOX ===== */
.download-box {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.download-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-medium), var(--glow-primary);
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

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

.url-input:focus {
    outline: none;
    border-color: var(--border-light);
}

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

.btn-paste {
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-paste:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-paste:active {
    transform: scale(0.95);
}

.btn-paste svg {
    width: 18px;
    height: 18px;
}

.btn-download {
    padding: 18px 36px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

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

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

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

.btn-download svg {
    width: 20px;
    height: 20px;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.strip-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.strip-item svg.check-icon {
    color: var(--success);
}

/* ===== ALERTS ===== */
.alerts-container {
    max-width: 600px;
    margin: 24px auto 0;
}

.alert {
    display: none;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
}

.alert.show {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--error);
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success);
}

/* ===== LOADING ===== */
.loading-container {
    display: none;
    text-align: center;
    padding: 60px 24px;
}

.loading-container.show {
    display: block;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* ===== RESULT SECTION ===== */
.result-section {
    display: none;
    padding: 60px 0 80px;
}

.result-section.show {
    display: block;
    animation: fadeUp 0.5s ease;
}

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

.result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.result-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
}

/* ===== PREVIEW ===== */
.preview-container {
    background: #000;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-video,
.preview-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: none;
}

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

.type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.time-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-xs);
    font-variant-numeric: tabular-nums;
}

/* ===== INFO PANEL ===== */
.info-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.media-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.media-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
    flex-grow: 1;
}

.downloads-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.downloads-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.download-option:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.option-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quality-badge {
    min-width: 70px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.quality-badge.hd {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.format-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.size-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 70px;
    text-align: right;
}

.download-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: var(--primary);
    color: white;
}

/* Кнопка "Скачать ещё" */
.download-more-btn {
    width: 100%;
    margin-top: 20px;
    padding: 16px 24px;
    background: var(--gradient-red);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-red);
}

.download-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230, 0, 35, 0.4);
}

.download-more-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-soft);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.howto-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.steps-container {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--glow-primary);
}

.step-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-elevated);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer,
.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 20px 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 140px 0 80px;
    min-height: 70vh;
}

.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-card:last-child {
    margin-bottom: 0;
}

.page-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-align: center;
}

.page-title .highlight {
    color: var(--primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    text-align: center;
}

/* Guide Steps */
.guide-steps {
    margin-top: 48px;
}

.guide-step {
    display: flex;
    gap: 28px;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
}

.guide-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.guide-step .step-number {
    width: 52px;
    height: 52px;
    min-width: 52px;
    margin: 0;
}

.step-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.step-content a:hover {
    text-decoration: underline;
}

.step-content code {
    background: var(--bg-main);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.tip-card {
    padding: 28px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.tip-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.tip-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.tip-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
    margin-top: 24px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* FAQ Category */
.faq-category {
    margin-bottom: 44px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* Content Section */
.content-section {
    margin-bottom: 32px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-card ul {
    color: var(--text-secondary);
    padding-left: 24px;
    margin: 16px 0;
}

.content-card li {
    margin-bottom: 10px;
    line-height: 1.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .result-layout {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-layout {
        grid-template-columns: 1fr;
    }

    .preview-container {
        min-height: 280px;
    }

    .info-panel {
        padding: 28px 24px;
    }

    .features-section,
    .howto-section,
    .faq-section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .header {
        padding: 12px 0;
    }

    .header-inner {
        margin: 0;
        padding: 0 16px;
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }

    .logo {
        gap: 10px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-surface);
        border-left: 1px solid var(--border-color);
        padding: 80px 24px 24px;
        flex-direction: column;
        gap: 8px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    .hero {
        padding: 110px 0 50px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 7px 14px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }

    .download-box {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    .url-input {
        padding: 16px 48px 16px 18px;
        font-size: 0.95rem;
    }

    .btn-paste {
        width: 36px;
        height: 36px;
        right: 6px;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
    }

    .features-strip {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .strip-item {
        font-size: 0.9rem;
    }

    .alerts-container {
        margin-top: 20px;
        padding: 0 16px;
    }

    .alert {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .result-section {
        padding: 40px 0 60px;
    }

    .result-card {
        border-radius: var(--radius-md);
    }

    .preview-container {
        min-height: 240px;
    }

    .preview-video,
    .preview-image {
        max-height: 350px;
    }

    .type-badge {
        top: 12px;
        left: 12px;
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .time-badge {
        bottom: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .info-panel {
        padding: 24px 20px;
    }

    .media-title {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    .meta-row {
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-item {
        font-size: 0.85rem;
    }

    .media-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .downloads-header {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .downloads-list {
        gap: 8px;
    }

    .download-option {
        flex-direction: column;
        padding: 14px;
        gap: 12px;
        align-items: stretch;
    }

    .option-left {
        gap: 12px;
    }

    .quality-badge {
        min-width: 60px;
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .format-text {
        font-size: 0.8rem;
    }

    .size-text {
        width: 100%;
        text-align: left;
        font-size: 0.8rem;
    }

    .download-btn {
        width: 100%;
        text-align: center;
        padding: 11px 20px;
        font-size: 0.85rem;
    }

    .download-more-btn {
        margin-top: 16px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .features-section,
    .howto-section,
    .faq-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-label {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
    }

    .feature-icon-wrap svg {
        width: 22px;
        height: 22px;
    }

    .feature-card h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 16px;
    }

    .step-item {
        padding: 24px 20px;
    }

    .step-number {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .step-item h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .step-item p {
        font-size: 0.9rem;
    }

    .faq-list {
        padding: 0 8px;
    }

    .faq-item {
        margin-bottom: 10px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 32px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        text-align: center;
    }

    .page-content {
        padding: 110px 0 60px;
    }

    .content-card {
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }

    .page-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 12px;
    }

    .page-subtitle {
        font-size: 1.05rem;
        margin-bottom: 36px;
    }

    .guide-steps {
        margin-top: 36px;
    }

    .guide-step {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .guide-step .step-number {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.05rem;
    }

    .step-content h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tip-card {
        padding: 24px 18px;
    }

    .tip-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }

    .tip-icon svg {
        width: 22px;
        height: 22px;
    }

    .tip-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .tip-card p {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .faq-category {
        margin-bottom: 32px;
    }

    .faq-category-title {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .content-section {
        margin-bottom: 24px;
    }

    .content-section h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .content-card p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .content-card ul {
        padding-left: 20px;
        margin: 12px 0;
    }

    .content-card li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 9vw, 2rem);
    }

    .download-box {
        padding: 6px;
    }

    .url-input {
        padding: 14px 44px 14px 16px;
    }

    .btn-download {
        padding: 14px 24px;
    }

    .info-panel {
        padding: 20px 16px;
    }

    .download-option {
        padding: 12px;
    }

    .content-card {
        padding: 20px 16px;
    }
}

.hidden { display: none !important; }
