/*
Ezorxpdf - Main Stylesheet
=====================================
Version: 3.0.0 - Professional Redesign
*/

/* ============================================
   BASE STYLES
   ============================================ */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

/* ============================================
   GLASSMORPHISM
   ============================================ */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ============================================
   UPLOAD AREA
   ============================================ */

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,250,251,0.9) 100%);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(245, 243, 255, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9) 0%, rgba(237, 233, 254, 0.9) 100%);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
    border-style: solid;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 6px 20px 0 rgba(107, 114, 128, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-ghost:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-flat {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

/* ============================================
   FORMS
   ============================================ */

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
    background: #f9fafb;
    cursor: not-allowed;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

/* ============================================
   RESULT AREA
   ============================================ */

.result-area {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.result-text {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: white;
}

.result-text:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

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

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Tools Mega Dropdown */
#tools-mega-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#tools-mega-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#tools-arrow {
    transition: transform 0.2s ease;
}

.tool-item {
    transition: all 0.15s ease;
}

.tool-item:hover {
    background-color: #f0f7ff;
}

.tool-item:hover > div:first-child {
    transform: scale(1.08);
}

.tool-item > div:first-child {
    transition: transform 0.15s ease;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(180deg, #F4F7FF 0%, #EEF0FF 55%, #F3EEFF 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
    display: none;
}

.footer h4 {
    color: #1A1A1A;
}

/* Description + copyright text */
.footer p {
    color: #1A1A1A;
}

.footer .border-gray-300 {
    border-color: rgba(99, 102, 241, 0.18);
}

.footer-link {
    color: #1A1A1A;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #2563eb;
    transform: translateX(4px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: #ffffff;
    padding: 4rem 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.hero-text {
    flex: 0 1 620px;
    min-width: 0;
}
.hero-text h1 {
    font-size: 3.3rem !important;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}
.hero-text p {
    font-size: 1.1875rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 560px;
}
.hero-btns {
    display: flex;
    gap: 0.875rem;
    margin-top: 2rem;
}
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: #3b82f6;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hero-btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
    transform: translateY(-1px);
}
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: white;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hero-btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}
.hero-image {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
    margin-top: -2rem;
}
.hero-image img {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
    transform: translateX(2rem);
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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

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

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* ============================================
   TOOL CARDS
   ============================================ */

.tool-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.badge-free {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.badge-pro {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-new {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .upload-area {
        padding: 2rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e3a8a;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--primary);
    color: white;
    z-index: 100;
}

/* Popular Tool Cards */
.pop-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.125rem;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
    overflow: hidden;
}
.pop-card::after {
    content: '';
    position: absolute;
    top: 4.2rem;
    left: 0.75rem;
    width: 50px;
    height: 50px;
    background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 7px 7px;
    opacity: 0.5;
    z-index: 0;
}
.pop-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}
.pop-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.pop-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pop-card-info {
    flex: 1;
    min-width: 0;
}
.pop-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}
.pop-card p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.45;
}
.pop-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: -0.25rem;
    transition: transform 0.2s ease;
}
.pop-card:hover .pop-card-arrow {
    transform: translateX(3px);
}
.pop-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pop-view-all:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59,130,246,0.1);
}
.pop-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

@media (max-width: 480px) {
    .pop-tools-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 4rem;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.trust-item-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
.trust-item-content {
    padding-top: 11px;
}
.trust-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.35rem;
}
.trust-item-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 480px) {
    .upload-area {
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 4.5rem 0 1.5rem;
    }
    .hero-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .hero-text {
        flex: none;
        padding-top: 0.25rem;
    }
    .hero-text h1 {
        font-size: 2.625rem !important;
        margin-bottom: 0.75rem;
    }
    .hero-text p {
        max-width: 100%;
        font-size: 1.0625rem;
        color: #374151;
        margin-bottom: 0;
    }
    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin-top: 1.25rem;
        gap: 0.75rem;
    }
    .hero-image {
        flex: none;
        margin-top: 0;
    }
    .hero-image img {
        max-width: 300px;
        transform: none;
    }

    .pop-card-grid-mobile {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-section {
        padding: 3.5rem 0 3rem;
    }
    .hero-inner {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.25rem !important;
    }
    .hero-text p {
        max-width: 100%;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-image {
        margin-top: 0;
    }
    .hero-image img {
        max-width: 500px;
        transform: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-text h1 {
        font-size: 2.5rem !important;
    }
    .hero-image img {
        max-width: 550px;
        transform: translateX(1rem);
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .card, .tool-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/*
============================================
EXTRACTED TO SEPARATE FILES:
- Tool styles: css/tools/shared-mp.css
- FAQ styles: css/pages/faq.css
- Dashboard styles: css/dashboard/dashboard.css
- Static page styles: css/pages/static-pages.css
============================================
*/

/* How It Works Section */
#how-it-works {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
#how-it-works .hiw-header { text-align: center; margin-bottom: 2.5rem; }
#how-it-works .hiw-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}
#how-it-works .hiw-title .accent {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
#how-it-works .hiw-sub {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0.75rem auto 0;
    line-height: 1.7;
    max-width: 460px;
}
#how-it-works .hiw-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 3rem 2.5rem 2.5rem;
    background: #F3F6FF;
    position: relative;
    margin-bottom: 1.5rem;
}
#how-it-works .hiw-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 0 0 22%;
    max-width: 22%;
}
#how-it-works .hiw-step-num {
    font-size: 2.4rem;
    font-weight: 800;
    opacity: 0.15;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
    line-height: 1;
}
#how-it-works .hiw-step-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
#how-it-works .hiw-step:hover .hiw-step-icon {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
#how-it-works .hiw-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
#how-it-works .hiw-step-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 auto 1.25rem;
    max-width: 180px;
}
#how-it-works .hiw-step-bar {
    width: 40px;
    height: 3px;
    border-radius: 3px;
    margin: 0 auto;
}
#how-it-works .hiw-step-1 .hiw-step-num { color: #4361ee; }
#how-it-works .hiw-step-1 .hiw-step-icon { background: rgba(67,97,238,0.06); color: #4361ee; border: 2px solid rgba(67,97,238,0.2); }
#how-it-works .hiw-step-1 .hiw-step-bar { background: #4361ee; }
#how-it-works .hiw-step-2 .hiw-step-num { color: #10b981; }
#how-it-works .hiw-step-2 .hiw-step-icon { background: rgba(16,185,129,0.06); color: #10b981; border: 2px solid rgba(16,185,129,0.2); }
#how-it-works .hiw-step-2 .hiw-step-bar { background: #10b981; }
#how-it-works .hiw-step-3 .hiw-step-num { color: #8b5cf6; }
#how-it-works .hiw-step-3 .hiw-step-icon { background: rgba(139,92,246,0.06); color: #8b5cf6; border: 2px solid rgba(139,92,246,0.2); }
#how-it-works .hiw-step-3 .hiw-step-bar { background: #8b5cf6; }
#how-it-works .hiw-step-4 .hiw-step-num { color: #f97316; }
#how-it-works .hiw-step-4 .hiw-step-icon { background: rgba(249,115,22,0.06); color: #f97316; border: 2px solid rgba(249,115,22,0.2); }
#how-it-works .hiw-step-4 .hiw-step-bar { background: #f97316; }
#how-it-works .hiw-connector {
    flex: 0 0 2%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 1;
}
#how-it-works .hiw-connector::before {
    content: '';
    position: absolute;
    top: 92px;
    left: -55px;
    right: -55px;
    border-top: 2px dotted #d1d5db;
}
#how-it-works .hiw-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 2px solid #d1d5db;
}
#how-it-works .hiw-dot-1 { border-color: rgba(67,97,238,0.5); }
#how-it-works .hiw-dot-2 { border-color: rgba(16,185,129,0.5); }
#how-it-works .hiw-dot-3 { border-color: rgba(139,92,246,0.5); }
#how-it-works .hiw-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 2.5rem;
    background: #f8f9fb;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    width: 100%;
    margin-top: 2.5rem;
}
#how-it-works .hiw-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #374151;
    font-weight: 600;
}
#how-it-works .hiw-trust-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e5;
    flex-shrink: 0;
}
#how-it-works .hiw-trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
#how-it-works .hiw-trust-icon svg { width: 14px; height: 14px; }
#how-it-works .hiw-trust-icon-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
#how-it-works .hiw-trust-icon-purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
#how-it-works .hiw-trust-icon-blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
#how-it-works .hiw-trust-icon-orange { background: linear-gradient(135deg, #fb923c, #f97316); }
@media (max-width: 960px) {
    #how-it-works .hiw-steps { flex-wrap: wrap; gap: 2rem; padding: 2.5rem 2rem; }
    #how-it-works .hiw-step { flex: 0 0 45%; max-width: 45%; }
    #how-it-works .hiw-connector { display: none; }
    #how-it-works .hiw-trust { flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; }
    #how-it-works .hiw-trust-divider { display: none; }
}
@media (max-width: 540px) {
    #how-it-works .hiw-steps { padding: 2rem 1.5rem; }
    #how-it-works .hiw-step { flex: 0 0 100%; max-width: 100%; }
    #how-it-works .hiw-trust { flex-direction: column; gap: 0.75rem; }
}

/* ============================================
   GET MORE WITH PREMIUM
   ============================================ */

.premium-section {
    width: 100%;
    background: #FFFFFF;
    padding: 64px 20px;
    overflow: hidden;
}

.premium-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 50px;
    background: #F3F6FF;
    display: flex;
    align-items: center;
    gap: 60px;
}

.premium-content {
    flex: 1;
    min-width: 0;
    padding-left: 45px;
}

.premium-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.premium-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.premium-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-check svg {
    width: 14px;
    height: 14px;
    stroke: white;
    fill: none;
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.premium-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

.premium-btn svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    flex-shrink: 0;
    margin-bottom: 5px;
}

.premium-visual {
    flex: 0 0 350px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

.premium-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .premium-container {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 28px;
    }

    .premium-title {
        font-size: 28px;
    }

    .premium-features {
        align-items: center;
    }

    .premium-content {
        padding-left: 0;
    }

    .premium-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        height: auto;
        margin-right: 0;
    }

    .premium-btn {
        margin: 0 auto;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    overflow: visible;
    background-color: #FFFFFF;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f0ecff 0%, #e8e0ff 100%);
    border: 1px solid rgba(139, 92, 246, 0.18);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.faq-badge-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-badge-icon svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.faq-badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
}

.faq-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
@media (min-width: 768px) {
    .faq-title {
        font-size: 36px;
    }
}

.faq-subtitle {
    font-size: 18px;
    color: #4b5563;
    font-weight: 400;
}

.faq-grid {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.12);
}

.faq-question {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, #f8f6ff 0%, #ede9fe 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
    background: linear-gradient(145deg, #f0ecff 0%, #e4dffb 100%);
    border-color: rgba(139, 92, 246, 0.25);
    transform: scale(1.05);
}

.faq-item.active .faq-icon {
    background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    stroke: #8b5cf6;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon svg {
    stroke: white;
}

.faq-text {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    stroke: #94a3b8;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-chevron {
    stroke: #8b5cf6;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    stroke: #8b5cf6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 20px 16px 68px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
    margin-top: 2px;
}

.contact-card {
    background: #F3F6FF;
    border-radius: 14px;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.15) 0%, transparent 40%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 2;
    margin-left: 50px;
}

.contact-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.contact-text {
    font-size: 14px;
    color: rgba(17, 24, 39, 0.8);
    margin-bottom: 18px;
    font-weight: 400;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.contact-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

.contact-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: translateX(4px);
}

.contact-illustration {
    position: relative;
    width: 260px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transform: translateX(-100px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 28px;
    }

    .faq-grid {
        flex-direction: column;
    }

    .faq-answer-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
        gap: 16px;
    }

    .contact-content {
        margin-left: 0;
    }

    .contact-illustration {
        width: 200px;
        height: 120px;
        margin-right: 0;
        overflow: hidden;
    }

    .contact-img {
        transform: none;
    }
}

/* ===========================
   TOOLS CATEGORY SECTION
   =========================== */
.tools-category-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 2rem;
}

.tools-category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-category-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.tools-category-line {
    width: 100%;
    height: 1.5px;
    background: #e5e7eb;
    margin-bottom: 3rem;
}

.tools-category-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0;
}

.tools-category-grid {
    display: grid;
    grid-template-columns: repeat(6, auto);
    column-gap: 3.5rem;
    row-gap: 0;
    justify-content: center;
}

.tools-category-ai {
    grid-column: 1;
    grid-row: 2;
    margin-top: -12rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tools-category-ocr {
    grid-column: 2;
    grid-row: 2;
    margin-top: -8.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tools-category-name {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tools-category-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    margin-bottom: 0.125rem;
    white-space: nowrap;
}

.tools-category-item:hover {
    background: #f3f4f6;
    color: #4f46e5;
    transform: translateY(-1px);
}

.tools-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tools-category-icon svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

@media (max-width: 1024px) {
    .tools-category-grid {
        grid-template-columns: repeat(3, auto);
        column-gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .tools-category-grid {
        grid-template-columns: repeat(2, auto);
        column-gap: 1.5rem;
    }
    .tools-category-ai { margin-top: 0; grid-column: auto; grid-row: auto; }
    .tools-category-ocr { margin-top: 0; grid-column: auto; grid-row: auto; }
}

@media (max-width: 480px) {
    .tools-category-grid {
        grid-template-columns: 1fr;
    }
    .tools-category-ai { margin-top: 0; grid-column: auto; grid-row: auto; }
    .tools-category-ocr { margin-top: 0; grid-column: auto; grid-row: auto; }
}

/* ===========================
   MOBILE TOOLS PANEL
   =========================== */
@media (max-width: 1024px) {
    #mobile-tools-panel {
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #d1d5db transparent;
    }
    #mobile-tools-panel::-webkit-scrollbar {
        width: 4px;
    }
    #mobile-tools-panel::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 4px;
    }
}

/* ===========================
   SIGN UP MODAL
   =========================== */
.signup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.signup-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.signup-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 920px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.signup-modal.active {
    transform: translateX(0);
}

.signup-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.signup-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.signup-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.signup-modal-inner {
    display: flex;
    min-height: 100%;
}

.signup-modal-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.signup-modal-left-content {
    width: 100%;
    max-width: 380px;
    text-align: center;
    margin-top: -20px;
}

.signup-modal-left-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.signup-modal-left-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 30px;
}

.signup-modal-left-content p a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.signup-modal-left-content p a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.signup-btn-google,
.signup-btn-microsoft {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.signup-btn-google {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.signup-btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.signup-btn-microsoft {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}

.signup-btn-microsoft:hover {
    background: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.signup-divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: #9ca3af;
    font-size: 13px;
}

.signup-divider::before,
.signup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.signup-divider span {
    padding: 0 16px;
}

.signup-input-group {
    position: relative;
    margin-bottom: 16px;
}

.signup-input-group svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
}

.signup-input-group input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.signup-input-group input::placeholder {
    color: #9ca3af;
}

/* Login / Signup inputs: no blue outline or glow on focus.
   The global `input:focus-visible` rule (Design Polish section) was drawing a
   blue outline on top of this border, so it is overridden here with higher specificity. */
.signup-input-group input:focus,
.signup-input-group input:focus-visible {
    outline: none;
    outline-offset: 0;
    border-color: #9ca3af;
    border-radius: 10px;
    box-shadow: none;
}

.signup-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.signup-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.signup-terms {
    font-size: 12px;
    color: #9ca3af;
    margin: 18px 0 0;
    line-height: 1.6;
}

.signup-terms a {
    color: #6b7280;
    text-decoration: underline;
    transition: color 0.2s;
}

.signup-terms a:hover {
    color: #374151;
}

.signup-modal-right {
    width: 380px;
    background: linear-gradient(160deg, #1e3a5f 0%, #0c1f3a 50%, #0a1628 100%);
    padding: 60px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.signup-modal-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.signup-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 28px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.signup-pro-badge::before {
    content: '\1F451';
    font-size: 12px;
}

.signup-modal-right h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 28px;
    line-height: 1.3;
}

.signup-modal-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signup-modal-right li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.signup-check {
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .signup-modal {
        width: 100%;
    }
    .signup-modal-inner {
        flex-direction: column;
    }
    .signup-modal-left {
        padding: 40px 24px;
    }
    .signup-modal-left-content {
        max-width: 100%;
        margin-top: 0;
    }
    .signup-modal-right {
        width: 100%;
        padding: 32px 24px;
    }
    .signup-modal-close {
        background: rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    .signup-modal-close svg {
        stroke: #374151;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .signup-modal {
        width: 90%;
        max-width: 700px;
    }
    .signup-modal-right {
        width: 280px;
        padding: 40px 28px;
    }
    .trust-grid {
        gap: 2rem 3rem;
    }
    #how-it-works .hiw-step-desc {
        max-width: 220px;
    }
    .premium-container {
        gap: 40px;
    }
}

/* ===========================
   LOG IN / SIGN UP - additions (combined panel)
   =========================== */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    text-align: left;
}
.auth-error[hidden],
#auth-strength[hidden],
#auth-forgot-row[hidden],
#auth-terms[hidden] { display: none; }

.auth-row {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 16px;
}
.auth-forgot {
    font-size: 13px;
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }
.signup-input-group input { padding-right: 44px; }
.signup-input-group .auth-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #9ca3af;
}
.signup-input-group .auth-eye svg {
    position: static;
    transform: none;
    width: 18px;
    height: 18px;
}
.signup-input-group .auth-eye:hover { color: #4b5563; }
.signup-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.signup-btn-google, .signup-btn-microsoft { cursor: pointer; }

/* Standalone /auth/login & /auth/register page: same panel, shown as a centered card */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, #f9fafb 0%, #fff 50%, #eef2ff 100%);
}
.auth-page-card {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}
.auth-page-card .signup-modal-inner { min-height: 560px; }
@media (max-width: 768px) {
    .auth-page-card .signup-modal-inner { min-height: 0; }
}

/* ---- Tighter title / subtitle spacing ---- */
.signup-modal-left-content h2 {
    line-height: 1.2;
    margin-bottom: 4px;
}
.signup-modal-left-content p {
    margin-bottom: 24px;
}

/* ---- Privacy Policy / Terms underline ---- */
.signup-modal-left-content p.signup-terms a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Password strength indicator ---- */
.auth-strength {
    margin: -6px 0 16px;
    text-align: left;
}
.auth-strength-bars {
    display: flex;
    gap: 6px;
}
.auth-strength-bars span {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: background-color .25s ease;
}
.auth-strength[data-level="weak"]   .auth-strength-bars span:nth-child(1) { background: #ef4444; }
.auth-strength[data-level="medium"] .auth-strength-bars span:nth-child(1) { background: #ef4444; }
.auth-strength[data-level="medium"] .auth-strength-bars span:nth-child(2) { background: #f59e0b; }
.auth-strength[data-level="strong"] .auth-strength-bars span:nth-child(1) { background: #ef4444; }
.auth-strength[data-level="strong"] .auth-strength-bars span:nth-child(2) { background: #f59e0b; }
.auth-strength[data-level="strong"] .auth-strength-bars span:nth-child(3) { background: #22c55e; }

.auth-strength-msg {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    transition: color .25s ease;
}
.auth-strength[data-level="weak"]   .auth-strength-msg { color: #ef4444; }
.auth-strength[data-level="medium"] .auth-strength-msg { color: #d97706; }
.auth-strength[data-level="strong"] .auth-strength-msg { color: #16a34a; }

.auth-rules {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.auth-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    transition: color .2s ease;
}
.auth-rules li::before {
    content: '\25CB';          /* hollow circle */
    font-size: 11px;
    width: 12px;
    text-align: center;
}
.auth-rules li.bad { color: #ef4444; }
.auth-rules li.bad::before { content: '\2715'; }   /* cross */
.auth-rules li.met { color: #16a34a; }
.auth-rules li.met::before { content: '\2713'; }   /* check */

/* ---- More space between "Create Account" and the terms text ---- */
.signup-modal-left-content p.signup-terms {
    margin: 22px 0 0;
}
/* Slightly less vertical padding so the taller form fits on short screens */
.signup-modal-left { padding-top: 36px; padding-bottom: 36px; }
@media (max-width: 768px) {
    .signup-modal-left { padding-top: 40px; padding-bottom: 32px; }
}


/* ============================================
   DESIGN POLISH (Oct 2026)
   Consistent headings, container widths, radius, contrast, hero
   ============================================ */

/* One heading voice across the site */
main h1, main h2, .pop-section-title { font-family: 'Poppins', 'Inter', system-ui, sans-serif; }
main h1, main h2 { letter-spacing: -0.01em; }
.pop-section-title { font-weight: 700; }

/* Keyboard focus that is always visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---- Hero ---- */
.hero-section {
    padding: 3.5rem 0 2.5rem;
    background: #ffffff;
}
.hero-inner { gap: 3rem; }
.hero-text h1 {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: clamp(2.25rem, 4.6vw, 3.4rem) !important;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.hero-text p { color: #4b5563; }
.hero-image { margin-top: 0; }
.hero-image img {
    transform: none;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
}
.hero-points {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
    list-style: none; margin: 1.5rem 0 0; padding: 0;
    font-size: 0.875rem; color: #374151; font-weight: 500;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points svg { width: 16px; height: 16px; color: #16a34a; flex-shrink: 0; }

/* ---- Section rhythm ---- */
main > section.py-16 { padding-top: 3rem; padding-bottom: 3rem; }

/* ---- Tool cards: readable text ---- */
.pop-card { border-color: #e5e7eb; }
.pop-card h3 { font-size: 0.9375rem; }
.pop-card p { font-size: 0.8125rem; color: #4b5563; }
.pop-card::after { display: none; }

/* ---- How it works: same width as the rest, rounded, readable ---- */
#how-it-works { max-width: none; }
#how-it-works .hiw-steps { border-radius: 24px; border: 1px solid #e0e7ff; }
#how-it-works .hiw-step-num { opacity: 0.55; }
#how-it-works .hiw-step-desc { color: #4b5563; }

/* ---- Why choose: rounded icons ---- */
.trust-item-icon { border-radius: 14px; }
.trust-item-desc { color: #4b5563; }

/* ---- FAQ + footer tool index: align to the 1216px content column ---- */
.faq-section { max-width: 1280px; padding-left: 2rem; padding-right: 2rem; }

@media (max-width: 1023px) {
    .hero-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
    .hero-text { flex: none; width: 100%; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-btns, .hero-points { justify-content: center; }
    .hero-image { justify-content: center; width: 100%; }
}
@media (max-width: 640px) {
    .hero-section { padding-top: 2rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; }
    .faq-section { padding-left: 1rem; padding-right: 1rem; }
    #how-it-works .hiw-steps { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- All tools page: grouped by task ---- */
.tools-group { margin-top: 2.5rem; }
.tools-group:first-of-type { margin-top: 0; }
.tools-group-title {
    font-size: 1.125rem; font-weight: 600; color: #111827;
    margin: 0 0 0.875rem; padding-bottom: 0.625rem;
    border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 480px) {
    .pop-section-title { font-size: 1.75rem !important; line-height: 1.25; }
}
