/* ========================================
   PinDownloader - Premium UI/UX Design
   ======================================== */

/* CSS Variables */
:root {
    --primary: #E60023;
    --primary-dark: #AD081B;
    --primary-light: #FF4D6A;
    --primary-bg: #FFF0F2;
    --bg: #FFFFFF;
    --bg-alt: #F8F9FA;
    --bg-dark: #1A1A2E;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

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

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #FFF5F7 30%, #F0F4FF 70%, var(--bg-alt) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(230, 0, 35, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(230, 0, 35, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    animation: heroBadgeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: var(--text);
}

.hero-title {
    color: var(--primary);
    display: block;
    -webkit-text-fill-color: var(--primary);
    animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #FF6B6B 50%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    position: relative;
    z-index: 1;
    color: var(--primary);
    animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
    animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ========================================
   Download Box
   ======================================== */
.download-box {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    max-width: 680px;
    margin: 0 auto;
    animation: heroBoxIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.download-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.url-input {
    width: 100%;
    padding: 16px 52px 16px 48px;
    font-size: 16px;
    font-family: var(--font);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    background: var(--bg-alt);
    color: var(--text);
}

.url-input:focus {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.1);
}

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

.paste-btn {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--border-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(230, 0, 35, 0.3);
}

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

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

.download-btn .btn-icon {
    flex-shrink: 0;
}

.supported-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-container {
    max-width: 680px;
    margin: 20px auto 0;
    text-align: center;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 100px;
    transition: width 0.5s ease;
}

.progress-text {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   Result Section
   ======================================== */
.result-section {
    max-width: 680px;
    margin: 24px auto 0;
    animation: fadeInUp 0.4s ease;
}

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

.result-preview {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

video.result-preview {
    min-height: 200px;
}

.video-wrapper {
    position: relative;
    line-height: 0;
}

.video-wrapper video {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: background 0.2s ease;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.play-btn-large {
    width: 80px;
    height: 80px;
    background: rgba(230, 0, 35, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(230, 0, 35, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-overlay:hover .play-btn-large {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(230, 0, 35, 0.5);
}

.play-btn-large svg {
    margin-left: 4px;
}

.result-info {
    padding: 24px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

.dl-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

.dl-btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.dl-btn-secondary:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.dl-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.dl-btn-outline:hover {
    background: var(--primary-bg);
}

/* Result Items (multi-pin) */
.result-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

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

.result-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Error Section
   ======================================== */
.error-section {
    max-width: 680px;
    margin: 20px auto 0;
    animation: fadeInUp 0.3s ease;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    color: #DC2626;
    font-size: 14px;
    font-weight: 500;
}

.error-content svg {
    flex-shrink: 0;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text);
}

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

/* ========================================
   Steps Grid
   ======================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.67% + 16px);
    right: calc(16.67% + 16px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    opacity: 0.3;
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(230, 0, 35, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(230, 0, 35, 0.2);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.35);
    animation: stepPulse 2s ease-in-out infinite;
    z-index: 2;
}

.step-card:nth-child(2) .step-number { animation-delay: 0.3s; }
.step-card:nth-child(3) .step-number { animation-delay: 0.6s; }

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(230, 0, 35, 0.35); }
    50% { box-shadow: 0 4px 20px rgba(230, 0, 35, 0.55), 0 0 0 6px rgba(230, 0, 35, 0.08); }
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.08);
    background: rgba(230, 0, 35, 0.12);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    transition: color 0.3s ease;
}

.step-card:hover h3 {
    color: var(--primary);
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.feature-card {
    padding: 36px 28px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(230, 0, 35, 0.15);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 20px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon-red {
    background: #FEE2E2;
    color: #DC2626;
}

.feature-icon-blue {
    background: #DBEAFE;
    color: #2563EB;
}

.feature-icon-purple {
    background: #EDE9FE;
    color: #7C3AED;
}

.feature-icon-green {
    background: #D1FAE5;
    color: #059669;
}

.feature-icon-orange {
    background: #FFEDD5;
    color: #EA580C;
}

.feature-icon-teal {
    background: #CCFBF1;
    color: #0D9488;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.08);
}

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

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

.faq-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

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

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

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: white;
}

.footer-logo .logo-icon {
    color: var(--primary);
}

.footer-desc {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
}

.footer-links a:hover {
    color: white;
}

/* ========================================
   Tools Grid
   ======================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

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

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.tool-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
    margin-top: 8px;
}

/* ========================================
   Snackbar
   ======================================== */
.snackbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--text);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   Spinner
   ======================================== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

@keyframes heroBadgeIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes heroBoxIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.steps-grid .step-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.steps-grid .step-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.features-grid .feature-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.features-grid .feature-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.features-grid .feature-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.features-grid .feature-card.reveal:nth-child(6) { transition-delay: 0.4s; }
.tools-grid .tool-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.tools-grid .tool-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.tools-grid .tool-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.tools-grid .tool-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.tools-grid .tool-card.reveal:nth-child(6) { transition-delay: 0.25s; }
.tools-grid .tool-card.reveal:nth-child(7) { transition-delay: 0.3s; }
.tools-grid .tool-card.reveal:nth-child(8) { transition-delay: 0.35s; }
.tools-grid .tool-card.reveal:nth-child(9) { transition-delay: 0.4s; }
.tools-grid .tool-card.reveal:nth-child(10) { transition-delay: 0.45s; }
.faq-list .faq-item.reveal:nth-child(2) { transition-delay: 0.06s; }
.faq-list .faq-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.faq-list .faq-item.reveal:nth-child(4) { transition-delay: 0.18s; }
.faq-list .faq-item.reveal:nth-child(5) { transition-delay: 0.24s; }
.faq-list .faq-item.reveal:nth-child(6) { transition-delay: 0.3s; }

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

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

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

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
        font-size: 16px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

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

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

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .download-box {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .download-form {
        flex-direction: column;
    }

    .input-wrapper {
        width: 100%;
    }

    .url-input {
        padding: 14px 52px 14px 48px;
        font-size: 15px;
    }

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

    .section {
        padding: 60px 0;
    }

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

    .section-header h2 {
        font-size: 28px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .steps-grid::before {
        display: none;
    }

    .step-card {
        padding: 32px 24px;
        text-align: left;
    }

    .step-icon {
        margin-bottom: 16px;
    }

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

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tool-card {
        padding: 24px 12px;
    }

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

    .faq-question {
        padding: 16px 20px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .result-preview {
        max-height: 300px;
    }

    .video-wrapper video {
        max-height: 300px;
    }

    .play-btn-large {
        width: 64px;
        height: 64px;
    }

    .play-btn-large svg {
        width: 36px;
        height: 36px;
    }

    .result-info {
        padding: 16px;
    }

    .download-links {
        flex-direction: column;
    }

    .dl-btn {
        justify-content: center;
        width: 100%;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
    }

    .result-item-thumb {
        width: 100%;
        height: 200px;
    }
}

/* ========================================
   Responsive - Small Mobile
   ======================================== */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .download-box {
        padding: 16px;
    }

    .url-input {
        padding: 12px 48px 12px 44px;
        font-size: 14px;
    }

    .input-icon {
        left: 14px;
    }

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

    .download-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* ========================================
   Dark Mode Support
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0F0F1A;
        --bg-alt: #16162A;
        --bg-dark: #0A0A15;
        --text: #F1F1F6;
        --text-secondary: #9CA3AF;
        --text-muted: #6B7280;
        --border: #2A2A40;
        --border-light: #1E1E35;
        --primary-bg: rgba(230, 0, 35, 0.1);
    }

    .navbar {
        background: rgba(15, 15, 26, 0.95);
    }

    .hero-title {
        color: var(--primary-light);
        -webkit-text-fill-color: var(--primary-light);
    }

    .mobile-menu-btn span {
        background: var(--text);
    }

    .url-input {
        background: var(--bg-alt);
    }

    .url-input:focus {
        background: var(--bg);
    }

    .paste-btn {
        background: var(--border);
    }

    .paste-btn:hover {
        background: var(--border-light);
    }

    .step-card,
    .feature-card {
        background: var(--bg);
    }

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

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

    .dl-btn-secondary {
        background: var(--bg-alt);
    }

    .error-content {
        background: rgba(220, 38, 38, 0.1);
        border-color: rgba(220, 38, 38, 0.2);
    }
}

/* Force redeploy */