/* ===================================
   Modern Professional Design System
   =================================== */

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

/* Custom Properties */
:root {
    /* Colors */
    --primary-600: #5b21b6;
    --primary-500: #7c3aed;
    --primary-400: #a78bfa;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --bg-primary: #0a0a1a;
    --bg-secondary: #131324;
    --bg-tertiary: #1a1a2e;

    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-tertiary: #718096;

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

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

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(20px, 20px); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

#particles {
    position: absolute;
    inset: 0;
}

/* Immersive Conversion Overlay */
.conversion-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.86);
    backdrop-filter: blur(26px);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.conversion-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.conversion-overlay .overlay-content {
    text-align: center;
    max-width: 320px;
    padding: 2.75rem 2.5rem;
    border-radius: var(--radius-2xl);
    background: rgba(19, 19, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
    transform: translateY(20px);
    animation: overlayPop 0.45s ease forwards;
}

.conversion-overlay .overlay-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.conversion-overlay .overlay-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    min-height: 3.5rem;
}

.overlay-ring {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 24px;
}

.overlay-ring .ring-segment {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgba(131, 111, 255, 0.9);
    animation: overlaySpin 1.2s linear infinite;
}

.overlay-ring .ring-segment:nth-child(2) {
    border-top-color: rgba(245, 87, 108, 0.9);
    animation-delay: -0.35s;
}

.overlay-ring .ring-segment:nth-child(3) {
    border-top-color: rgba(79, 172, 254, 0.9);
    animation-delay: -0.7s;
}

@keyframes overlaySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes overlayPop {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-svg {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-pro {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--success);
    -webkit-text-fill-color: var(--success);
    vertical-align: super;
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    transition: var(--transition-base);
    padding: var(--spacing-xs) 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: var(--transition-base);
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.cta-button {
    padding: 0.625rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px var(--spacing-xl) var(--spacing-3xl);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-lg);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.6s ease-out;
}

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

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

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

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #f5576c 50%, #00f2fe 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    display: block;
    margin-top: var(--spacing-sm);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Converter Interface */
.converter-interface {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
    box-shadow: var(--shadow-2xl);
    animation: fadeInUp 0.6s ease-out 0.6s both;
    transition: var(--transition-slow);
}

.converter-interface:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.converter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
}

.format-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.input-group {
    margin-bottom: var(--spacing-lg);
}

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

.input-icon {
    position: absolute;
    left: var(--spacing-lg);
    color: var(--text-tertiary);
    pointer-events: none;
    transition: var(--transition-base);
}

.url-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: rgba(10, 10, 26, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-base);
}

.url-input:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.url-input:focus + .paste-btn {
    opacity: 1;
}

.input-container:focus-within .input-icon {
    color: #667eea;
}

.paste-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
    opacity: 0.7;
}

.paste-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    opacity: 1;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.setting-label svg {
    color: var(--text-tertiary);
}

.setting-select {
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
    transition: var(--transition-base);
}

.setting-select:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.setting-select:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.convert-button {
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 30px rgba(102, 126, 234, 0.3),
        0 0 0 0 rgba(102, 126, 234, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Animated gradient background */
.convert-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.convert-button:hover::before {
    opacity: 1;
}

/* Glow overlay */
.button-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.convert-button:hover .button-glow {
    opacity: 1;
    transform: scale(1);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Shimmer effect */
.convert-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(30deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.convert-button:hover::after {
    left: 150%;
}

/* Hover state */
.convert-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(102, 126, 234, 0.5),
        0 0 0 8px rgba(102, 126, 234, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: buttonFloat 3s ease-in-out infinite;
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(-4px) scale(1.02);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
    }
}

/* Active/Click state */
.convert-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 5px 20px rgba(102, 126, 234, 0.4),
        0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Disabled state */
.convert-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.convert-button:disabled:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Button content */
.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.convert-button:hover .button-content {
    animation: contentPulse 2s ease-in-out infinite;
}

@keyframes contentPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Button icon */
.button-icon {
    animation: bounceIcon 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.convert-button:hover .button-icon {
    animation: rotateIcon 1s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes rotateIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(-3px) rotate(5deg); }
}

/* Particles effect on hover */
.convert-button:hover {
    animation: buttonFloat 3s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 20px 50px rgba(102, 126, 234, 0.5),
            0 0 0 8px rgba(102, 126, 234, 0.1),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 20px 50px rgba(102, 126, 234, 0.7),
            0 0 0 12px rgba(102, 126, 234, 0.15),
            inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }
}

/* Progress Section */
.progress-section {
    display: none;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.4s ease-out;
}

.progress-section.active {
    display: block;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.progress-status {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-percent {
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-track {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-details {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Success Section */
.success-section {
    display: none;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}

.success-section.active {
    display: block;
}

.success-icon {
    margin: 0 auto var(--spacing-lg);
    width: 48px;
    height: 48px;
    animation: scaleIn 0.5s ease-out;
}

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

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--spacing-sm);
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    background: var(--success);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.download-button svg {
    animation: bounceIcon 1s ease-in-out infinite;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl);
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

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

.trust-number {
    font-size: 1.875rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Section Styles */
.features-section,
.workflow-section,
.pricing-section {
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-lg);
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.feature-box {
    padding: var(--spacing-2xl);
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: var(--transition-slow);
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Workflow Section */
.workflow-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-line {
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(102, 126, 234, 0.5),
        rgba(139, 92, 246, 0.5),
        rgba(245, 87, 108, 0.5),
        rgba(16, 185, 129, 0.5)
    );
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.workflow-step {
    display: flex;
    gap: var(--spacing-xl);
    position: relative;
}

.step-marker {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: var(--transition-slow);
}

.workflow-step:hover .step-marker {
    transform: scale(1.1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content {
    flex: 1;
    padding: var(--spacing-lg) 0;
}

.step-icon-wrapper {
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
    transition: var(--transition-base);
}

.workflow-step:hover .step-icon-wrapper {
    opacity: 1;
    transform: translateX(10px);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Use Cases Section */
.usecases-section {
    padding: var(--spacing-3xl) var(--spacing-xl);
    position: relative;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.usecase-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-slow);
    overflow: hidden;
}

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

.usecase-card[data-color="purple"]::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.usecase-card[data-color="pink"]::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.usecase-card[data-color="cyan"]::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.usecase-card[data-color="orange"]::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.usecase-card[data-color="green"]::before {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.usecase-card[data-color="violet"]::before {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.usecase-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

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

.usecase-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.usecase-card:hover .usecase-glow {
    opacity: 1;
    animation: glowMove 3s ease-in-out infinite;
}

@keyframes glowMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

.usecase-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.5);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
}

.usecase-card:hover .usecase-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.usecase-icon {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.usecase-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.usecase-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    font-size: 0.9375rem;
}

.usecase-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Use Cases CTA */
.usecases-cta {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.usecases-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: ctaPulse 4s ease-in-out infinite;
}

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

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 1.25rem 3rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 1;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

.cta-button-large:active {
    transform: translateY(-1px);
}

.button-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.button-text {
    position: relative;
    z-index: 1;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-3xl) var(--spacing-xl);
    position: relative;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
}

.faq-item {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-base);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-right: var(--spacing-md);
    line-height: 1.5;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform var(--transition-base);
}

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

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

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

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

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: var(--spacing-md) 0;
}

.faq-answer li {
    position: relative;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ CTA */
.faq-cta {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
}

.faq-cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.faq-cta-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.faq-cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.faq-cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.faq-cta-button svg {
    transition: var(--transition-base);
}

.faq-cta-button:hover svg {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: var(--spacing-3xl) var(--spacing-xl) var(--spacing-xl);
    background: rgba(10, 10, 26, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    max-width: 350px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-lg);
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .workflow-line {
        display: none;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero-section {
        padding: 100px var(--spacing-md) var(--spacing-2xl);
    }

    .converter-interface {
        padding: var(--spacing-lg);
    }

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

    .trust-indicators {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }

    .divider {
        display: none;
    }

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

    .workflow-step {
        flex-direction: column;
        text-align: center;
    }

    .step-content {
        padding: 0;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

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

    .converter-interface {
        padding: var(--spacing-md);
    }
}
