/* ================================================
   YouTube to MP3 — Premium CSS Design System
   YouTube Brand Colors, Glassmorphism, Animations, Responsive & RTL
   ================================================ */

:root {
    /* YouTube Dark Mode Palette */
    --bg-primary: #0F0F0F;
    --bg-secondary: #181818;
    --bg-tertiary: #272727;
    --bg-card: rgba(39, 39, 39, 0.75);
    --bg-card-hover: rgba(50, 50, 50, 0.85);
    --bg-input: rgba(24, 24, 24, 0.9);

    /* YouTube Brand Accents */
    --accent-purple: #FF0000;
    --accent-pink: #FF4444;
    --accent-mint: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(204, 0, 0, 0.12));

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Text — YouTube Dark Mode */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Borders & Shadows — YouTube */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 0, 0, 0.5);
    --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
    --shadow-glow: 0 0 35px rgba(255, 0, 0, 0.2), 0 0 70px rgba(255, 0, 0, 0.08);
    --shadow-btn: 0 4px 20px rgba(255, 0, 0, 0.35);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode — YouTube Light Theme */
[data-theme="light"] {
    --bg-primary: #F1F1F1;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E5E5E5;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-input: #FFFFFF;
    --text-primary: #0F0F0F;
    --text-secondary: #606060;
    --text-muted: #909090;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-badge span:first-child {
    order: 2;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
        padding: 0 32px;
    }
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: all var(--transition-base);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-icon-svg {
    width: 36px;
    height: 36px;
    transition: transform var(--transition-base);
}

.nav-logo:hover .logo-icon-svg {
    transform: rotate(15deg) scale(1.1);
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.select-lang {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.btn-theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--accent-pink);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* Hero */
.hero-section {
    padding: 72px 0 36px;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.15) 0%, rgba(204, 0, 0, 0.04) 50%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-pink);
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-mint);
    box-shadow: 0 0 10px var(--accent-mint);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Converter Card */
.converter-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    max-width: 760px;
    margin: 0 auto 48px;
    position: relative;
    overflow: hidden;
}

.converter-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 5px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px 6px 4px 16px;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.input-group:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.input-icon {
    color: var(--text-muted);
    margin-right: 12px;
    display: flex;
}

[dir="rtl"] .input-icon {
    margin-right: 0;
    margin-left: 12px;
}

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
}

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

.btn-paste {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-paste:hover {
    color: var(--accent-pink);
    border-color: var(--border-hover);
}

/* Quality Selector */
.quality-wrap {
    margin-bottom: 24px;
}

.quality-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quality-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

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

.quality-btn.active {
    background: rgba(255, 0, 0, 0.15);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.quality-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

/* Convert Button */
.btn-convert {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 0, 0, 0.45);
}

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

/* Progress Bar */
.progress-wrap {
    margin-top: 24px;
    animation: fadeIn 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Result Box */
.result-box {
    margin-top: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 0.4s ease;
}

.result-thumb {
    width: 90px;
    height: 65px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    object-fit: cover;
    flex-shrink: 0;
}

.result-details {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.result-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-download {
    background: var(--accent-mint);
    color: #06060F;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 211, 167, 0.4);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 760px;
    margin: 20px auto 60px;
    text-align: center;
}

.stat-val {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-badge {
    color: var(--accent-pink);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 90px;
}

.feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-slow);
}

.feat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 0, 0, 0.1);
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feat-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feat-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 90px;
}

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

.step-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
}

/* Quality Comparison Table */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 90px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

[dir="rtl"] .styled-table {
    text-align: right;
}

.styled-table th, .styled-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.styled-table th {
    background: var(--bg-tertiary);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.styled-table tr:hover td {
    background: rgba(255, 0, 0, 0.06);
}

/* FAQ */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto 90px;
}

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

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

[dir="rtl"] .faq-q {
    text-align: right;
}

.faq-chevron {
    color: var(--accent-pink);
    transition: transform var(--transition-base);
}

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

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-a p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 12px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-pink);
    border-color: var(--border-hover);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent-mint);
    color: #06060F;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
        z-index: 1000;
    }
    .features-grid, .steps-grid {
        grid-template-columns: 1fr;
    }
    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .result-box {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===================================================
   NEW HOMEPAGE SECTIONS
   =================================================== */

/* Section Padding */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 8px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    cursor: default;
}

.trust-badge:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.trust-badge-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ===== FLOW DIAGRAM (How It Works) ===== */
.flow-diagram {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.flow-step {
    display: grid;
    grid-template-columns: 56px 1fr 200px;
    gap: 20px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
    opacity: 0;
    transform: translateY(20px);
    animation: flowStepReveal 0.6s ease forwards;
}

.flow-step[data-step="1"] { animation-delay: 0.1s; }
.flow-step[data-step="2"] { animation-delay: 0.3s; }
.flow-step[data-step="3"] { animation-delay: 0.5s; }
.flow-step[data-step="4"] { animation-delay: 0.7s; }

@keyframes flowStepReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-step:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.flow-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.flow-step-content {
    min-width: 0;
}

.flow-step-num {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-purple);
    margin-bottom: 4px;
    display: block;
}

.flow-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.flow-step-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-connector {
    display: flex;
    justify-content: center;
    padding: 4px 0;
    opacity: 0.4;
}

/* Flow Step Interactive Visuals */
.url-bar-demo {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.75rem;
    width: 100%;
    overflow: hidden;
}

.url-demo-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.url-demo-text {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.url-demo-copy {
    color: var(--accent-purple);
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.url-demo-copy:hover {
    color: var(--accent-pink);
}

/* Paste Demo */
.paste-demo {
    width: 100%;
}

.paste-demo-input {
    background: var(--bg-input);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    min-height: 36px;
}

.paste-cursor {
    color: var(--accent-purple);
    animation: cursorBlink 1s step-end infinite;
}

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

.paste-demo-text {
    font-family: monospace;
    font-size: 0.72rem;
}

/* Convert Demo Wave */
.convert-demo {
    text-align: center;
    width: 100%;
}

.convert-demo-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 32px;
    margin-bottom: 6px;
}

.convert-demo-wave span {
    display: inline-block;
    width: 3px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 2px;
    animation: audioWave 1.2s ease-in-out infinite;
}

.convert-demo-wave span:nth-child(1) { animation-delay: 0s; }
.convert-demo-wave span:nth-child(2) { animation-delay: 0.1s; }
.convert-demo-wave span:nth-child(3) { animation-delay: 0.2s; }
.convert-demo-wave span:nth-child(4) { animation-delay: 0.3s; }
.convert-demo-wave span:nth-child(5) { animation-delay: 0.4s; }
.convert-demo-wave span:nth-child(6) { animation-delay: 0.5s; }
.convert-demo-wave span:nth-child(7) { animation-delay: 0.4s; }
.convert-demo-wave span:nth-child(8) { animation-delay: 0.3s; }
.convert-demo-wave span:nth-child(9) { animation-delay: 0.2s; }
.convert-demo-wave span:nth-child(10) { animation-delay: 0.1s; }

@keyframes audioWave {
    0%, 100% { height: 6px; opacity: 0.4; }
    50% { height: 28px; opacity: 1; }
}

.convert-demo-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Download Demo */
.download-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    width: 100%;
}

.download-demo-file {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-icon {
    font-size: 1.2rem;
}

.file-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.download-demo-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    animation: checkPulse 2s ease infinite;
}

@keyframes checkPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
}

/* ===== FEATURE METERS ===== */
.feat-meter {
    margin-top: 16px;
    position: relative;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.feat-meter-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat-meter-label {
    position: absolute;
    top: -22px;
    right: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.feat-card {
    position: relative;
}

/* ===== BROWSER COMPATIBILITY ===== */
.browser-compat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-top: 40px;
}

.compat-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.compat-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.compat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-base);
    cursor: default;
}

.compat-item:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
}

.compat-item:hover svg circle {
    fill: var(--accent-purple);
    opacity: 0.2;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition-base);
}

.benefit-card:hover .benefit-icon-wrap {
    background: rgba(255, 0, 0, 0.15);
    transform: scale(1.1);
}

.benefit-icon-svg {
    color: var(--accent-purple);
}

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

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.benefit-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent-purple);
    font-size: 1.4rem;
}

.benefit-stat-val {
    font-size: 1.6rem;
}

.benefit-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 500;
    margin-left: 8px;
}

/* ===== CTA SECTION ===== */
.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--shadow-btn);
    transition: all var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
}

/* CTA Waveform */
.cta-waveform {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    opacity: 0.15;
    pointer-events: none;
}

.cta-waveform span {
    display: inline-block;
    width: 3px;
    background: var(--accent-purple);
    border-radius: 2px 2px 0 0;
    animation: ctaWave 2s ease-in-out infinite;
}

@keyframes ctaWave {
    0%, 100% { height: 10px; }
    50% { height: 50px; }
}

/* Footer Legal */
.footer-legal {
    font-size: 0.76rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== RESPONSIVE — New Sections ===== */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow-step {
        grid-template-columns: 48px 1fr;
    }
    .flow-step-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .trust-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .flow-step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .flow-step-icon {
        margin: 0 auto;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .compat-icons {
        gap: 20px;
    }
    .cta-card {
        padding: 40px 24px;
    }
    .cta-title {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .footer-legal {
        text-align: center;
    }
}
