/* MegaConvert.io - Premium Visual Design System */

.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1); }

.upload-zone {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.5), rgba(248, 250, 252, 0.8));
}
.upload-zone:hover {
    transform: translateY(-2px);
    border-color: #818cf8;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.8), rgba(224, 231, 255, 0.5));
    box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.15);
}
.upload-zone.dragging {
    animation: pulse-border 1.5s ease-in-out infinite;
    border-color: #6366f1;
    background: rgba(238, 242, 255, 0.5);
}
@keyframes pulse-border {
    0%, 100% { border-color: #6366f1; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
    50% { border-color: #8b5cf6; box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.gradient-hero { background: linear-gradient(135deg, #2563eb 0%, #4f46e5 40%, #7c3aed 100%); }
.gradient-hero-subtle { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%); }
.gradient-text { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.progress-bar-animated {
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6, #6366f1, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 18c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm0 30c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM6 18c3.314 0 6-2.686 6-6S9.314 6 6 6 0 8.686 0 12s2.686 6 6 6zM6 48c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.3; animation: float 8s ease-in-out infinite; }
.hero-orb-1 { width: 300px; height: 300px; background: #818cf8; top: -50px; right: -50px; animation-delay: 0s; }
.hero-orb-2 { width: 200px; height: 200px; background: #c084fc; bottom: -30px; left: 10%; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.05); } }

[x-cloak] { display: none !important; }
main { animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

[dir="rtl"] .flex-row-reverse { flex-direction: row-reverse; }
[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }
[dir="rtl"] .text-left { text-align: right; }

.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (max-width: 640px) { table { font-size: 0.8rem; } th, td { padding: 0.5rem; } }

input, select, textarea { font-size: 16px !important; }
@media (min-width: 640px) { input, select, textarea { font-size: 14px !important; } }

html, body { overflow-x: hidden; max-width: 100vw; }
.glass-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); }
/* Homepage Design System */
:root {
    --mc-primary: #4f46e5;
    --mc-primary-dark: #3730a3;
    --mc-accent: #22c55e;
    --mc-bg: #f8fafc;
    --mc-card: #ffffff;
    --mc-text: #0f172a;
    --mc-muted: #64748b;
    --mc-border: #e2e8f0;
    --mc-soft: #eef2ff;
    --mc-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --mc-radius: 24px;
}
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* Hero */
.mc-hero { position: relative; padding: 82px 0 48px; overflow: hidden; }
.mc-hero::before, .mc-hero::after { content: ""; position: absolute; border-radius: 999px; filter: blur(100px); opacity: 0.75; z-index: 0; pointer-events: none; }
.mc-hero::before { width: 420px; height: 420px; background: #dbeafe; left: -180px; top: 90px; }
.mc-hero::after { width: 380px; height: 380px; background: #dcfce7; right: -170px; top: 40px; }
.mc-hero-inner { text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.mc-hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 0.96; letter-spacing: -0.07em; margin-bottom: 24px; color: var(--mc-text); }
.mc-hero-subtitle { max-width: 720px; margin: 0 auto; color: var(--mc-muted); font-size: 20px; }
.mc-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: white; border: 1px solid var(--mc-border); border-radius: 999px; color: var(--mc-primary); font-weight: 800; font-size: 13px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); margin-bottom: 22px; }

/* Upload Panel */
.mc-upload-panel { margin: 42px auto 18px; max-width: 760px; background: white; border-radius: 32px; padding: 16px; box-shadow: var(--mc-shadow); border: 1px solid rgba(226, 232, 240, 0.9); position: relative; z-index: 2; }
.mc-formats { color: var(--mc-muted); font-size: 14px; text-align: center; margin-top: 18px; }
.mc-privacy-line { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--mc-muted); font-size: 14px; font-weight: 700; }
.mc-privacy-line span { display: inline-flex; align-items: center; gap: 7px; }

/* Quick Tools */
.mc-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mc-tool-card { background: white; border: 1px solid var(--mc-border); border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 14px; color: var(--mc-text); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04); transition: 0.2s ease; text-decoration: none; }
.mc-tool-card:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 18px 42px rgba(79, 70, 229, 0.12); }
.mc-tool-icon { width: 42px; height: 42px; border-radius: 14px; background: var(--mc-soft); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }

/* Sections */
.mc-section { padding: 78px 0; }
.mc-section-white { background: white; }
.mc-section-title { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.mc-section-title h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.06em; margin-bottom: 16px; color: var(--mc-text); }
.mc-section-title p { color: var(--mc-muted); font-size: 18px; }

/* Features */
.mc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mc-feature { background: var(--mc-bg); border: 1px solid var(--mc-border); border-radius: var(--mc-radius); padding: 30px; }
.mc-feature-icon { width: 54px; height: 54px; border-radius: 18px; background: white; display: grid; place-items: center; font-size: 25px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.mc-feature h3 { font-size: 21px; margin-bottom: 9px; letter-spacing: -0.03em; color: var(--mc-text); }
.mc-feature p { color: var(--mc-muted); }

/* Categories */
.mc-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mc-category { background: white; border: 1px solid var(--mc-border); border-radius: var(--mc-radius); padding: 28px; box-shadow: 0 14px 36px rgba(15, 23, 42, 0.04); }
.mc-category-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mc-category h3 { font-size: 22px; letter-spacing: -0.04em; color: var(--mc-text); }
.mc-category ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; padding: 0; margin: 0; }
.mc-category li { color: var(--mc-muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mc-category li::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--mc-accent); flex: 0 0 auto; }
.mc-category li a { color: inherit; text-decoration: none; transition: color 0.2s; }
.mc-category li a:hover { color: var(--mc-primary); }

/* Popular */
.mc-popular-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mc-popular-card { background: white; border: 1px solid var(--mc-border); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; transition: 0.2s ease; color: var(--mc-text); text-decoration: none; }
.mc-popular-card:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: 0 12px 30px rgba(79, 70, 229, 0.1); }
.mc-format-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mc-format-from { background: #fef2f2; color: #b91c1c; }
.mc-format-to { background: #f0fdf4; color: #15803d; }
.mc-format-arrow { color: #94a3b8; }

/* Stats */
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mc-stat { background: linear-gradient(180deg, #ffffff, #f8fafc); border: 1px solid var(--mc-border); border-radius: var(--mc-radius); padding: 32px; text-align: center; }
.mc-stat strong { display: block; font-size: 40px; letter-spacing: -0.06em; margin-bottom: 5px; color: var(--mc-text); }
.mc-stat span { color: var(--mc-muted); font-weight: 700; }

/* FAQ */
.mc-faq { max-width: 850px; margin: 0 auto; display: grid; gap: 14px; }
.mc-faq-item { background: white; border: 1px solid var(--mc-border); border-radius: 18px; overflow: hidden; }

/* CTA */
.mc-cta { background: linear-gradient(135deg, #312e81, #4f46e5 55%, #0891b2); color: white; border-radius: 34px; padding: 54px 34px; text-align: center; box-shadow: 0 24px 70px rgba(79, 70, 229, 0.28); }
.mc-cta h2 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.06em; margin-bottom: 14px; color: white; }
.mc-cta p { color: rgba(255,255,255,0.78); font-size: 18px; margin-bottom: 24px; }
.mc-cta .mc-btn { background: white; color: var(--mc-primary); }

/* How it Works */
.mc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mc-step { text-align: center; }
.mc-step-num { width: 64px; height: 64px; border-radius: 20px; background: var(--mc-soft); display: inline-grid; place-items: center; font-size: 24px; font-weight: 900; color: var(--mc-primary); margin-bottom: 16px; }
.mc-step h3 { font-size: 18px; margin-bottom: 8px; color: var(--mc-text); }
.mc-step p { color: var(--mc-muted); }

/* Buttons */
.mc-btn { border: none; cursor: pointer; font: inherit; border-radius: 999px; padding: 13px 20px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s ease; white-space: nowrap; text-decoration: none; }
.mc-btn-primary { color: white; background: var(--mc-primary); box-shadow: 0 14px 34px rgba(79, 70, 229, 0.28); }
.mc-btn-primary:hover { background: var(--mc-primary-dark); transform: translateY(-1px); }

/* Container */
.mc-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Responsive */
@media (max-width: 900px) {
    .mc-hero { padding-top: 54px; }
    .mc-tool-grid, .mc-features, .mc-stats, .mc-steps { grid-template-columns: 1fr; }
    .mc-categories { grid-template-columns: 1fr; }
    .mc-popular-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .mc-container { width: min(100% - 24px, 1180px); }
    .mc-hero h1 { font-size: 42px; }
    .mc-hero-subtitle { font-size: 17px; }
    .mc-upload-panel { border-radius: 24px; }
    .mc-category ul { grid-template-columns: 1fr; }
    .mc-popular-grid { grid-template-columns: 1fr; }
    .mc-tool-grid { grid-template-columns: repeat(2, 1fr); }
}
.mc-faq-arrow { width: 14px; height: 14px; color: #94a3b8; transition: transform 0.2s; flex-shrink: 0; }

/* Blog content typography */
.blog-content { max-width: 760px; font-size: 17px; line-height: 1.8; color: #334155; }
.blog-content h2 { font-size: 1.65em; font-weight: 800; color: #0f172a; margin: 1.8em 0 0.6em; letter-spacing: -0.03em; line-height: 1.2; }
.blog-content h3 { font-size: 1.3em; font-weight: 700; color: #0f172a; margin: 1.5em 0 0.5em; letter-spacing: -0.02em; }
.blog-content h4 { font-size: 1.1em; font-weight: 700; color: #1e293b; margin: 1.3em 0 0.4em; }
.blog-content p { margin: 0 0 1.2em; }
.blog-content a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.blog-content a:hover { color: #16b364; }
.blog-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.5em 0; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.blog-content ul, .blog-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.blog-content li { margin-bottom: 0.4em; }
.blog-content ul li { list-style: disc; }
.blog-content ol li { list-style: decimal; }
.blog-content blockquote { border-left: 4px solid #16b364; padding: 1em 1.5em; margin: 1.5em 0; background: #f0fdf4; border-radius: 0 12px 12px 0; color: #166534; font-style: italic; }
.blog-content pre { background: #1e293b; color: #e2e8f0; padding: 1.2em 1.5em; border-radius: 12px; overflow-x: auto; margin: 1.5em 0; font-size: 0.9em; line-height: 1.6; }
.blog-content code { background: #f1f5f9; padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; color: #dc2626; }
.blog-content pre code { background: none; padding: 0; color: inherit; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95em; }
.blog-content th, .blog-content td { padding: 0.75em 1em; border: 1px solid #e2e8f0; text-align: left; }
.blog-content th { background: #f8fafc; font-weight: 700; color: #0f172a; }
.blog-content hr { border: none; border-top: 2px solid #e2e8f0; margin: 2em 0; }
.blog-content .blog-cta-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #16b364; color: #fff !important; text-decoration: none !important; border-radius: 12px; font-weight: 700; font-size: 0.95em; transition: all 0.2s; }
.blog-content .blog-cta-link:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,179,100,0.3); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
