:root {
    --text-main: #1a1a1a;
    --text-sub: #555544;
    --border-color: rgba(0, 0, 0, 0.1);
    --accent-blue: #2383e2;
    --premium-gradient: linear-gradient(135deg, #2383e2 0%, #5e5ce6 100%);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area { display: flex; align-items: center; gap: 15px; }
.main-logo { height: 65px; width: auto; object-fit: contain; }
.logo-text { font-weight: 900; font-size: 32px; letter-spacing: -1.5px; color: #000; }

.hero-section { 
    padding: 70px 0 40px 0; 
    text-align: center; 
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

h1 { 
    font-size: 72px; 
    font-weight: 900; 
    letter-spacing: -4px; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description { 
    color: rgba(255, 255, 255, 0.85); 
    font-size: 22px; 
    max-width: 750px; 
    margin: 0 auto;
    font-weight: 400;
}

.content-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 5; }

.converter-card {
    background: #ffffff;
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.8);
    overflow: hidden;
    margin-top: 40px;
    transition: transform 0.3s ease;
}

.upload-zone { 
    height: 3cm; 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 40px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 4px dashed transparent;
}

.upload-zone:hover { 
    background: #fdfdfd; 
    border-color: var(--accent-blue);
    transform: scale(0.995);
}

.upload-icon-wrapper {
    width: 60px; 
    height: 60px; 
    background: #f4f7f9; 
    border-radius: 15px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0; 
    font-size: 30px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.upload-text-big { 
    font-size: 32px; 
    font-weight: 900; 
    color: #111; 
    letter-spacing: -1px;
}

.upload-text-small { 
    font-size: 16px; 
    color: var(--text-sub); 
    margin-top: 0; 
    font-weight: 500;
}

.action-bar {
    padding: 50px 80px; 
    background: #f9fafb; 
    border-top: 1px solid #eee;
    display: none; 
    justify-content: space-between; 
    align-items: center;
}

.format-selector label { font-size: 22px; font-weight: 800; margin-right: 20px;}

select {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 15px;
    border: 2px solid #ddd;
    outline: none;
    background: white;
}

.btn-premium {
    background: var(--premium-gradient); 
    color: white; 
    padding: 22px 60px;
    border-radius: 20px; 
    border: none; 
    font-weight: 800; 
    font-size: 22px;
    cursor: pointer; 
    position: relative; 
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(35, 131, 226, 0.4);
}

.shimmer {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgb(241, 240, 240), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer { 100% { left: 200%; } }

.preview-section { margin-top: 50px; display: none; }
.preview-card { 
    background: white; 
    padding: 60px; 
    border-radius: 40px; 
    box-shadow: var(--shadow-xl); 
    text-align: center;
}

#imageWrapper img { 
    max-width: 100%; 
    border-radius: 25px; 
    margin: 30px 0; 
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

footer { padding: 80px 0; text-align: center; color: #fff; }
.badge { background: #000; color: #fff; padding: 8px 16px; border-radius: 10px; font-weight: 800; }
.status-text { 
    text-align: center; 
    margin-top: 30px; 
    font-size: 20px; 
    font-weight: 700; 
    color: #fffffe; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}