:root { --primary: #2563eb; --primary-dark: #1d4ed8; --dark: #0f172a; --light: #f1f5f9; --success: #22c55e; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; margin: 0; color: var(--dark); background: #fff; line-height: 1.7; }
* { box-sizing: border-box; }

/* Header */
header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; }
.logo { font-weight: 800; font-size: 1.5rem; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-links a { margin-left: 20px; text-decoration: none; color: #64748b; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

/* Main Tool Area */
.hero { text-align: center; padding: 3rem 1rem; background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
h1 { font-size: 2.8rem; margin: 0 0 0.5rem 0; letter-spacing: -1px; line-height: 1.2; }
.subtitle { color: #64748b; font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem; }

.tool-container { background: white; max-width: 550px; margin: 0 auto; padding: 2.5rem; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15); border: 2px dashed #cbd5e1; transition: all 0.3s ease; position: relative; }
.tool-container:hover { border-color: var(--primary); transform: translateY(-2px); }

/* Buttons & Inputs */
.btn { background: var(--primary); color: white; border: none; padding: 16px 32px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1.1rem; width: 100%; transition: 0.2s; display: block; margin-top: 15px; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #16a34a; }

/* Upload View */
#uploadView { display: block; } /* Force Visible by default */
.upload-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }

/* Controls View */
#controls { display: none; } /* Hidden by default */
.control-box { background: var(--light); padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; text-align: left; }
.target-input { padding: 12px; border: 2px solid #cbd5e1; border-radius: 8px; width: 100px; font-size: 1.2rem; text-align: center; font-weight: bold; color: var(--primary); }
.target-input:focus { border-color: var(--primary); outline: none; }

/* SEO Article Section */
.seo-section { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; }
.seo-section h2 { font-size: 2rem; margin-top: 3rem; color: var(--dark); border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.seo-section h3 { font-size: 1.5rem; margin-top: 2rem; color: var(--dark); }
.seo-section p { color: #475569; font-size: 1.1rem; margin-bottom: 1.5rem; }
.seo-section ul { margin-bottom: 1.5rem; padding-left: 20px; }
.seo-section li { margin-bottom: 0.8rem; color: #475569; }

/* Quick Links Grid */
.grid-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.link-card { background: #f8fafc; padding: 1.5rem; border-radius: 12px; text-decoration: none; color: var(--primary); font-weight: 600; text-align: center; border: 1px solid #e2e8f0; transition: 0.2s; }
.link-card:hover { background: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: var(--primary); }

footer { background: var(--dark); color: #94a3b8; padding: 4rem 1.5rem; text-align: center; margin-top: auto; }
footer a { color: white; text-decoration: none; margin: 0 12px; }

/* Mobile */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .tool-container { padding: 1.5rem; }
    .btn { padding: 14px 20px; }
}
/* --- NEW PRO ANIMATIONS --- */

/* 1. Floating Effect for the Main Tool */
@keyframes float {
    0% { transform: translateY(0px); box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15); }
    50% { transform: translateY(-10px); box-shadow: 0 35px 60px -12px rgba(37, 99, 235, 0.25); }
    100% { transform: translateY(0px); box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15); }
}
.float-anim { animation: float 6s ease-in-out infinite; }

/* 2. Gradient Pulse for Buttons */
@keyframes gradient-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.btn-pro {
    background: linear-gradient(-45deg, #2563eb, #4f46e5, #7c3aed, #2563eb);
    background-size: 400% 400%;
    animation: gradient-pulse 15s ease infinite;
    color: white; border: none; padding: 16px 32px; border-radius: 12px; font-weight: 800;
    cursor: pointer; width: 100%; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s;
}
.btn-pro:hover { transform: scale(1.02); }

/* 3. Scanning Line Effect (Cyberpunk Style) */
.scan-container { position: relative; overflow: hidden; }
.scan-line {
    position: absolute; width: 100%; height: 4px; background: #22c55e;
    box-shadow: 0 0 15px #22c55e;
    top: 0; left: 0;
    animation: scan 2s linear infinite;
    display: none; /* Hidden by default */
    z-index: 10;
}
@keyframes scan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 4. Fade In Up for Content */
.fade-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
