/* CSS Custom Properties - Dark Theme (Default) */
:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f15;
    --bg-elevated: #141419;
    --bg-card: #1a1a22;
    --bg-card-hover: #222230;
    --border-color: #2a2a35;
    --border-light: #3a3a48;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-glow-strong: rgba(99, 102, 241, 0.6);

    /* Status Colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glow-strong: 0 0 50px var(--accent-glow-strong);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-theme: 0.15s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f5;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8fc;
    --border-color: #e4e4e7;
    --border-light: #d4d4d8;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #71717a;

    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-glow-strong: rgba(99, 102, 241, 0.35);

    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(250,250,255,1) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fast theme transitions */
body, .header, .feature-card, .step, .result-card, .quality-btn,
.input-wrapper, .platform, .theme-toggle, .footer, .stats {
    transition: background-color var(--transition-theme),
                border-color var(--transition-theme),
                color var(--transition-theme),
                box-shadow var(--transition-theme);
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: absolute;
}

.theme-toggle:hover svg {
    color: var(--accent-primary);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -100px;
    opacity: 0.15;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-tertiary);
    top: 0;
    right: -150px;
    opacity: 0.12;
}

[data-theme="light"] .hero-glow {
    opacity: 0.08;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
}

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

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Download Form */
.download-form {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.input-icon {
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.input-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

.url-input {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
}

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

/* Paste/Clear Button */
.paste-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

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

.paste-clear-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.paste-clear-btn:hover svg {
    color: var(--accent-primary);
}

.paste-clear-btn .paste-icon {
    display: block;
}

.paste-clear-btn .clear-icon {
    display: none;
}

.paste-clear-btn.has-text .paste-icon {
    display: none;
}

.paste-clear-btn.has-text .clear-icon {
    display: block;
    color: var(--error);
}

.paste-clear-btn.has-text:hover {
    border-color: var(--error);
    background: var(--error-bg);
}

.paste-clear-btn.has-text:hover .clear-icon {
    color: var(--error);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-width: 160px;
    box-shadow: var(--shadow-glow);
}

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

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

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

.download-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.download-btn .btn-loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.download-btn.loading .btn-text {
    display: none;
}

.download-btn.loading .btn-loader {
    display: block;
}

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

/* Platform Icons */
.platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.platforms-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.platform-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    opacity: 0.8;
    transition: all var(--transition-normal);
    cursor: default;
}

.platform:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.platform svg {
    width: 24px;
    height: 24px;
}

.platform-name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.platform.youtube { color: #ff0000; }
.platform.youtube .platform-name { color: #ff0000; }

.platform.tiktok { color: var(--text-primary); }

.platform.instagram { color: #e4405f; }
.platform.instagram .platform-name { color: #e4405f; }

.platform.facebook { color: #1877f2; }
.platform.facebook .platform-name { color: #1877f2; }

.platform.twitter { color: var(--text-primary); }

.platform.vimeo { color: #1ab7ea; }
.platform.vimeo .platform-name { color: #1ab7ea; }

.platform.reddit { color: #ff4500; }
.platform.reddit .platform-name { color: #ff4500; }

.platform.pinterest { color: #bd081c; }
.platform.pinterest .platform-name { color: #bd081c; }

.platform.twitch { color: #9146ff; }
.platform.twitch .platform-name { color: #9146ff; }

.platform.snapchat { color: #fffc00; }
.platform.snapchat .platform-name { color: #fffc00; }

.platform.soundcloud { color: #ff5500; }
.platform.soundcloud .platform-name { color: #ff5500; }

.platform.dailymotion { color: #0066dc; }
.platform.dailymotion .platform-name { color: #0066dc; }

/* Result Area */
.result-area {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    animation: slideDown 0.5s ease;
}

.result-area.visible {
    display: block;
}

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

.result-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.result-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    height: 124px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.result-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay svg {
    width: 40px;
    height: 40px;
    color: white;
}

.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

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

.copy-title-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}

.copy-title-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.copy-title-btn.copied {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-bg);
}

.copy-title-btn svg {
    width: 16px;
    height: 16px;
}

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

/* Quality Options */
.quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.quality-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-sans);
}

.quality-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.quality-btn svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.quality-btn.video {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.quality-btn.video svg {
    color: white;
}

.quality-btn.video:hover {
    box-shadow: var(--shadow-glow-strong);
}

.quality-btn.audio {
    background: var(--bg-card);
    color: var(--text-primary);
}

.quality-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.quality-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-badge {
    font-size: 0.9375rem;
    font-weight: 700;
}

.quality-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.quality-btn.audio .spinner {
    border-color: var(--border-color);
    border-top-color: var(--accent-primary);
}

.quality-btn .download-arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.quality-btn:hover .download-arrow {
    opacity: 1;
    transform: translateY(2px);
}

.quality-btn.downloading {
    pointer-events: none;
    opacity: 0.8;
}

.quality-btn.success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: white !important;
}

.quality-btn.success svg {
    color: white !important;
}

/* Error Area */
.error-area {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    animation: slideDown 0.4s ease;
}

.error-area.visible {
    display: block;
}

.error-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius-lg);
    color: var(--error);
}

.error-card svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.error-card p {
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    padding: 2rem;
    background: var(--gradient-card);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 4rem;
    color: var(--text-muted);
}

.step-connector svg {
    width: 32px;
    height: 32px;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--gradient-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 1rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 24px;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .input-wrapper {
        flex-direction: column;
        padding: 12px;
    }

    .input-icon {
        display: none;
    }

    .paste-clear-btn {
        position: absolute;
        right: 12px;
        top: 12px;
        width: 40px;
        height: 40px;
    }

    .input-wrapper {
        position: relative;
    }

    .url-input {
        padding-right: 50px;
    }

    .download-btn {
        width: 100%;
    }

    .result-card {
        flex-direction: column;
    }

    .result-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .result-info {
        text-align: center;
    }

    .quality-options {
        justify-content: center;
    }

    .quality-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .steps {
        flex-direction: column;
        gap: 0;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .step-connector {
        padding: 1rem 0;
        transform: rotate(90deg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }

    .features, .how-it-works {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

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

    .platform-icons {
        gap: 0.5rem;
    }

    .platform {
        padding: 8px 10px;
    }

    .platform svg {
        width: 18px;
        height: 18px;
    }

    .platform-name {
        font-size: 0.5625rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ==================== */
/* Legal Pages Styles   */
/* ==================== */

.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.legal-section:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.legal-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.75rem;
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    list-style: none;
    margin: 1rem 0;
}

.legal-section li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-section a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ==================== */
/* Contact Page Styles  */
/* ==================== */

.contact-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.contact-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-text p,
.contact-text a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact-text a {
    transition: color var(--transition-fast);
}

.contact-text a:hover {
    color: var(--accent-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all var(--transition-normal);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 45px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
    margin-top: 0.5rem;
}

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

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

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

.submit-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.submit-btn .btn-loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

/* Form Success State */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1.25rem;
}

.form-success svg {
    width: 64px;
    height: 64px;
    color: var(--success);
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 300px;
}

.reset-btn {
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 0.5rem;
}

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

/* Contact Page Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h1 {
        font-size: 2rem;
    }

    .contact-item:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 600px) {
    .contact-page,
    .legal-page {
        padding: 120px 0 60px;
    }

    .contact-info h1,
    .legal-header h1 {
        font-size: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ==================== */
/* Blog Page Styles     */
/* ==================== */

.blog-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.blog-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Featured Article */
.blog-featured {
    padding: 60px 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.featured-article:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.featured-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
}

.featured-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--accent-primary);
    opacity: 0.5;
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.featured-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.featured-content h2 a:hover {
    color: var(--accent-primary);
}

.featured-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.article-date,
.article-read {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-date::after {
    content: '•';
    margin-left: 1rem;
    color: var(--border-color);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

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

/* Blog Grid */
.blog-grid-section {
    padding: 40px 0 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder svg {
    width: 48px;
    height: 48px;
}

.blog-placeholder.youtube-bg {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.blog-placeholder.tiktok-bg {
    background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 50%, #000000 100%);
}

.blog-placeholder.tiktok-bg svg {
    color: white;
}

.blog-placeholder.instagram-bg {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.blog-placeholder.instagram-bg svg {
    color: white;
}

.blog-placeholder.facebook-bg {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fc7 100%);
}

.blog-placeholder.facebook-bg svg {
    color: white;
}

.blog-placeholder.twitter-bg {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.blog-placeholder.twitter-bg svg {
    color: white;
}

.blog-placeholder.guide-bg {
    background: var(--gradient-subtle);
}

.blog-placeholder.guide-bg svg {
    color: var(--accent-primary);
    width: 56px;
    height: 56px;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.blog-card-content h3 a:hover {
    color: var(--accent-primary);
}

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

/* Load More Button */
.blog-load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.load-more-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

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

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0 80px;
}

.newsletter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.newsletter-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.newsletter-form input {
    width: 280px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition-normal);
}

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

.newsletter-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

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

@media (max-width: 900px) {
    .featured-article {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        max-width: 400px;
    }

    .newsletter-form input {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 50px;
    }

    .blog-hero h1 {
        font-size: 2.25rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-content h2 {
        font-size: 1.375rem;
    }

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

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.875rem;
    }

    .featured-article {
        padding: 1.25rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .newsletter-card {
        padding: 2rem 1.5rem;
    }

    .newsletter-content h2 {
        font-size: 1.5rem;
    }
}

/* ==================== */
/* Demo Modal Styles    */
/* ==================== */

.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    backdrop-filter: blur(4px);
}

.demo-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.demo-modal-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-lg), 0 0 60px var(--accent-glow-strong);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.demo-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    z-index: 10;
}

.demo-modal-close:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.demo-modal-close svg {
    width: 18px;
    height: 18px;
}

.demo-modal-content {
    text-align: center;
}

.demo-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-modal-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.demo-modal-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.demo-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

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

/* Light theme adjustments */
[data-theme="light"] .demo-modal-card {
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.2);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .demo-modal-card {
        padding: 2rem;
        max-width: 100%;
        margin: 0 1rem;
    }

    .demo-modal-title {
        font-size: 1.5rem;
    }

    .demo-modal-message {
        font-size: 0.95rem;
    }

    .demo-modal-btn {
        width: 100%;
    }
}
