@font-face {
    font-family: 'AnjaEliane';
    src: url('https://fonts.cdnfonts.com/s/15040/Anja Eliane.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #fafaff; 
    --fg: #1e1b4b;
    --muted: #64748b;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --brand-gradient: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
    --brand-gradient-alt: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --card: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
}

* { box-sizing: border-box; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--fg);
    background-attachment: fixed;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }

.bg-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

.url-box {
    background: var(--card);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.url-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(0, 85, 255, 0.1);
}

.url-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.125rem;
    color: var(--fg);
}

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

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.platform-tag {
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-tag:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.feature-item {
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.feature-item:hover {
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.result-preview {
    background: var(--card);
    border: 2px solid var(--border);
}

.quality-chip {
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.quality-chip:hover {
    border-color: var(--accent);
    background: rgba(0, 85, 255, 0.05);
}

.quality-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.animate-pulse-subtle { animation: pulse-subtle 3s ease-in-out infinite; }

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0; }
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-ring 1.5s ease-out infinite;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Toast Animations */
@keyframes toast-in {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(120%) scale(0.9); opacity: 0; }
}

.toast-animate-in {
    animation: toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-animate-out {
    animation: toast-out 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}