/* 
  PDFNest Design System v2.0
  Premium Modern SaaS UI — Blue Gradient Theme
  Built for Visual Excellence & Full Responsiveness
*/

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-lighter: #93bbfd;
    --primary-dark: #1e40af;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    --primary-gradient-soft: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);

    /* Accent Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;

    /* Neutrals */
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    --bg-accent: #eff6ff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --divider: #e2e8f0;

    /* Shadows — Layered for depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
    --shadow-glow-lg: 0 0 40px rgba(37, 99, 235, 0.18);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.06), 0 12px 28px rgba(37, 99, 235, 0.1);

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); line-height: 1.7; }

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: 1.8; }
.italic { font-style: italic; }

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--space-6); }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-6); }

section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-accent { background: var(--bg-accent); }
.section-white { background: var(--bg-white); }
.section-muted { background: var(--bg-muted); }

/* ========== SPACING UTILITIES ========== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========== FLEXBOX ========== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ========== HEADER / NAVIGATION ========== */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    z-index: 1001;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-accent);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.btn-secondary:hover {
    background: #dbeafe;
    border-color: rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--bg-accent);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== GRID LAYOUTS ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.card-flat {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
}

/* Tool Card */
.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.tool-card .tool-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tool-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.tool-card .tool-btn {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-fast);
}

.tool-card:hover .tool-btn {
    gap: 0.5rem;
}

/* Coming Soon Card */
.tool-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.tool-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.tool-card.coming-soon .tool-icon {
    background: var(--bg-muted);
    color: var(--text-light);
}

.tool-card.coming-soon:hover .tool-icon {
    background: var(--bg-muted);
    color: var(--text-light);
    box-shadow: none;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--warning-light);
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--success-light);
    color: #065f46;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 180%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Hero Tool Grid */
.hero-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.75rem;
    margin-top: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tool-link {
    background: white;
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.hero-tool-link svg { color: var(--primary); transition: var(--transition); }

.hero-tool-link:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card-hover);
}

.hero-tool-link:hover svg { color: var(--primary-hover); }

.hero-tool-link.hero-tool-cta {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.hero-tool-link.hero-tool-cta svg { color: white; }

.hero-tool-link.hero-tool-cta:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
}

.badge-item svg { color: var(--success); flex-shrink: 0; }

/* ========== FEATURES SECTION ========== */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========== HOW IT WORKS ========== */
.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========== UPLOAD BOX ========== */
.upload-box {
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 6vw, 4rem) 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-box:hover {
    border-color: var(--primary-light);
    background: var(--bg-accent);
}

.upload-box.dragover {
    border-color: var(--primary);
    background: var(--bg-accent);
    box-shadow: var(--shadow-glow);
}

.upload-box.dragover::after {
    content: 'Drop your file here';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 246, 255, 0.95);
    border-radius: var(--radius-xl);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    z-index: 2;
}

.upload-icon {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.upload-box h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.upload-box .upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-box .upload-limit {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ========== FILE PREVIEW ========== */
.file-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-preview-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--danger-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    flex-shrink: 0;
}

.file-preview-info { flex: 1; min-width: 0; }

.file-preview-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.file-preview-remove {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-muted);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.file-preview-remove:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ========== TOOL CONTAINER ========== */
.tool-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 var(--space-6);
}

.tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-header h1 {
    margin-bottom: 0.75rem;
}

.tool-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ========== PROCESSING STATES ========== */
.state-processing {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.state-completed {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.state-completed h3 {
    color: #065f46;
    margin-bottom: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

/* ========== SECTION TITLES ========== */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.section-label .label-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-label .label-badge.ready {
    background: var(--success-light);
    color: #065f46;
}

.section-label .label-badge.soon {
    background: var(--warning-light);
    color: #92400e;
}

/* ========== BLOG CARDS ========== */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.blog-card-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.blog-read-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-read-more {
    gap: 0.55rem;
}

/* ========== BLOG POST CONTENT ========== */
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.post-content h3 { margin: 2rem 0 0.75rem; color: var(--primary-dark); font-size: 1.2rem; }
.post-content p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.7; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ========== LOADING MODAL ========== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.loader-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    max-width: 380px;
    width: 100%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--bg-muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

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

.loader-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.loader-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== SUCCESS MODAL ========== */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-modal {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    max-width: 420px;
    width: 100%;
    animation: modalIn 0.3s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--success);
}

.success-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-modal p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ========== ERROR MODAL ========== */
.error-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.error-toast-icon {
    color: var(--danger);
    flex-shrink: 0;
}

.error-toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========== FOOTER ========== */
footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 280px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

.footer-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-trust-item svg { color: var(--success); }

/* ========== FORMS ========== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder { color: var(--text-light); }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.form-group { margin-bottom: 1.25rem; }

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ========== STATS ========== */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== SCANNER STYLES ========== */
#video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: none;
    background: black;
}

#camera-feed { width: 100%; display: block; }

.scanner-overlay {
    position: absolute;
    top: 8%;
    left: 8%;
    right: 8%;
    bottom: 8%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    pointer-events: none;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.35);
}

.scanned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.scanned-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 3/4;
}

.scanned-item img { width: 100%; height: 100%; object-fit: cover; }

/* ========== POST MODAL ========== */
.post-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 2rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.post-modal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-2xl);
    padding: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    animation: modalIn 0.3s ease;
}

.post-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.post-modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ========== CONTENT PAGES ========== */
.page-hero {
    padding: 4rem 0;
    background: var(--bg-accent);
    text-align: center;
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

.content-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 var(--space-6);
    line-height: 1.8;
}

.content-section h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.content-section ul, .content-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ========== AD CONTAINER ========== */
.ad-container {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 1px;
}

/* ========== ROUNDED UTILITIES ========== */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ========== DISPLAY ========== */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ========== PASSWORD TOGGLE ========== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.35s ease;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        gap: 0;
    }

    .nav-links a {
        padding: 0.85rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }

    .nav-links a.active::after { display: none; }

    .nav-links.active { right: 0; }

    .mobile-toggle { display: flex; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    .hero-tools {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .trust-badges { gap: 1rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-trust { justify-content: center; }

    section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
}

@media (max-width: 480px) {
    .hero-tools { grid-template-columns: repeat(2, 1fr); }
    .btn { width: 100%; }
    .trust-badges { flex-direction: column; align-items: center; }
    .container { padding: 0 1rem; }

    .file-preview {
        flex-direction: column;
        text-align: center;
    }

    .file-preview-name { white-space: normal; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-slide-up { animation: slideUp 0.5s ease; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
