:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #fff;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }

/* Navbar */
.brand-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px; color: var(--dark); }
.brand-dot { color: var(--primary); }

.nav-tool {
    font-weight: 600; font-size: 0.95rem; color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important; border-radius: 8px; transition: all 0.2s;
}
.nav-tool:hover, .nav-tool.active {
    color: var(--primary) !important; background: rgba(79, 70, 229, 0.05);
}

/* Tool Cards */
.tool-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(79, 70, 229, 0.2);
}

.tool-card-icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

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

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.03), transparent);
}

.hero-visual {
    position: relative;
}
.hero-visual img {
    border-radius: 32px;
    box-shadow: var(--shadow-2xl);
}

.floating-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    animation: float 3s ease-in-out infinite;
}

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

/* Upload Zone */
.upload-zone {
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.upload-zone:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.upload-icon-wrap {
    width: 80px; height: 80px;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    transition: all 0.3s;
}
.upload-zone:hover .upload-icon-wrap {
    transform: translateY(-5px);
}

/* Tool Panel */
.tool-panel {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}
.tool-panel-header {
    padding: 24px 32px;
}
.tool-panel-body {
    padding: 32px;
}
.options-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #edf2f7;
}

/* Footer */
.site-footer {
    background-color: var(--dark) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer p, 
.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer h6 {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s;
    display: inline-block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: white !important;
    transform: translateX(5px);
}

.brand-icon-sm {
    width: 32px; height: 32px; font-size: 0.9rem;
}

/* Tool Preview Containers */
.preview-wrap {
    background: #f8fafc;
    background-image: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
    border: 1px solid #edf2f7;
    position: relative;
}

.preview-wrap img, 
.preview-wrap canvas {
    max-width: 100% !important;
    max-height: 500px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Utility */
.animate-bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}
