:root {
    /* Brand palette: Muted Teal / Ash Grey / Lime Cream / Tea Green */
    --brand-teal: #94AE89;
    --brand-grey: #A8BCA1;
    --brand-lime: #C0DA74;
    --brand-tea: #BEEDAA;
    --brand-tea-light: #D5FFD9;
    --brand-deep: #2F4A2A;

    --surface-0: #F6FAF3;
    --surface-1: #ffffff;
    --surface-2: #EEF6E9;
    --text-primary: #1C2A18;
    --text-secondary: #55684E;
    --text-muted: #869C7E;
    --text-disabled: #CBDAC4;
    --border: rgba(47,74,42,0.10);
    --border-strong: rgba(47,74,42,0.20);
    --fill-accent: #4C7A43;
    --fill-success: #6B9A3D;
    --fill-disabled: #E3EEDD;
    --text-accent: #3E6B37;
    --text-success: #436B22;
    --on-accent: #ffffff;
    --bg-accent: #E7F2E0;
    --bg-success: #EEF6DA;
    --bg-warning: #FBF0DA;
    --text-warning: #8A5A0B;
    --radius: 10px;
    --fill-support: #E8724C;
    --shadow-sm: 0 1px 2px rgba(28,42,24,0.06);
    --shadow-md: 0 6px 20px rgba(28,42,24,0.08);
    --shadow-lg: 0 16px 40px rgba(28,42,24,0.12);
    --font-heading: 'Fraunces', 'Georgia', serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --surface-0: #171F15;
        --surface-1: #202B1D;
        --surface-2: #283523;
        --text-primary: #EAF3E4;
        --text-secondary: #B7C9AE;
        --text-muted: #8AA080;
        --text-disabled: #4A5A43;
        --border: rgba(255,255,255,0.10);
        --border-strong: rgba(255,255,255,0.18);
        --fill-accent: #7CB86C;
        --fill-success: #9BCB5C;
        --fill-disabled: #3A4834;
        --text-accent: #9BD98A;
        --text-success: #C3E497;
        --on-accent: #10190D;
        --bg-accent: #24361F;
        --bg-success: #2B3B1C;
        --bg-warning: #3B2E10;
        --text-warning: #F0C56B;
        --fill-support: #F0876A;
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
        --shadow-md: 0 6px 20px rgba(0,0,0,0.35);
        --shadow-lg: 0 16px 40px rgba(0,0,0,0.45);
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--surface-0);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-optical-sizing: auto;
    letter-spacing: -0.01em;
    font-weight: 600;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Header Navigation */
.header {
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header .brand-heading {
    margin: 0 0 0.35rem 0;
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .brand-heading a {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Inline SVG icon system - no external font/CDN dependency */
.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

.brand-mark {
    display: block;
    width: 42px;
    height: auto;
    flex-shrink: 0;
}

.header p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.1rem;
    gap: 8px;
    flex-wrap: wrap;
}

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

.nav-links a {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: var(--bg-accent);
    color: var(--fill-accent);
    text-decoration: none;
}

.nav-links a.active {
    background: var(--fill-accent);
    color: var(--on-accent);
    border-color: var(--fill-accent);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }

    .header-content {
        padding: 0 1rem;
    }

    .header .brand-heading {
        font-size: 19px;
    }

    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .header-nav > div:not(.nav-links) {
        width: 100%;
        justify-content: center;
    }

    .header-nav .kofi-button {
        width: 100%;
    }
}

/* Buttons */
.kofi-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: var(--fill-support);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.kofi-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 114, 76, 0.35);
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    grid-template-areas: "left main right";
    align-items: start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.container > .sidebar-left { grid-area: left; }
.container > main { grid-area: main; }
.container > .sidebar { grid-area: right; }

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr 300px;
        grid-template-areas:
            "main right"
            "left left";
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "left"
            "right";
        gap: 1.5rem;
    }
}

/* Processing Speed Notice bar (compact, single line) */
.notice-bar-wrap {
    max-width: 1400px;
    margin: 0 auto 1.25rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
}

.notice-bar {
    grid-column: 2;
    padding: 12px 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.notice-bar .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--fill-accent);
}

@media (max-width: 1200px) {
    .notice-bar-wrap {
        grid-template-columns: 1fr 300px;
    }

    .notice-bar {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .notice-bar-wrap {
        grid-template-columns: 1fr;
    }

    .notice-bar {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .notice-bar {
        flex-direction: column;
        gap: 4px;
        border-radius: 14px;
        text-align: center;
    }
}

/* Upload Area */
.upload-area {
    display: block;
    padding: 3.5rem 2rem;
    border: 2px dashed var(--border-strong);
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
    margin-bottom: 2rem;
    position: relative;
}

.upload-area:hover {
    border-color: var(--fill-accent);
    background: var(--bg-accent);
}

.upload-area.drag-over {
    border-color: var(--fill-accent);
    background: var(--bg-accent);
    transform: scale(1.01);
}

.upload-area input {
    display: none;
}

.upload-content {
    pointer-events: none;
}

.upload-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--fill-accent) 55%, var(--brand-lime) 130%);
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.upload-icon-badge i,
.upload-icon-badge .icon {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #ffffff;
}

.upload-content p {
    margin: 0;
}

.upload-content p:first-of-type {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-content p:nth-of-type(2) {
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-format-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 1.25rem;
}

.upload-format-hints span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-1);
    border: 1px solid var(--brand-grey);
    padding: 4px 10px;
    border-radius: 999px;
}

/* File Management */
.bulk-format-section {
    background: var(--surface-2);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: none;
}

.bulk-format-section.visible {
    display: block;
}

.bulk-format-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-format-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 0.5px solid var(--border);
    background: var(--surface-1);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

.files-container {
    margin-bottom: 2rem;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.files-header h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
}

.clear-all-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-family: inherit;
}

.clear-all-btn:hover {
    background: var(--surface-2);
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    background: var(--surface-2);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: grab;
    user-select: none;
}

.file-item.dragging {
    opacity: 0.5;
    border: 0.5px dashed var(--fill-accent);
    background: var(--bg-accent);
}

.file-item.drag-over {
    border-top: 3px solid var(--fill-accent);
    padding-top: 9px;
}

.drag-handle {
    display: flex;
    align-items: center;
    cursor: grab;
    color: var(--text-secondary);
    font-size: 18px;
    flex-shrink: 0;
}

.drag-handle:active {
    cursor: grabbing;
}

.file-item i {
    font-size: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

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

.file-name {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-word;
}

.file-size {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.format-select {
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 0.5px solid var(--border);
    background: var(--surface-1);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    flex-shrink: 0;
    max-width: 120px;
}

.format-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 28px;
    min-height: 28px;
}

.remove-btn:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
    transform: scale(1.05);
}

.remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.file-complete {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-complete i {
    font-size: 18px;
    color: var(--fill-success);
}

.download-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-btn:hover {
    background: var(--bg-accent);
}

.download-btn i {
    font-size: 14px;
}

/* Progress */
.progress-container {
    margin-bottom: 2rem;
}

.progress-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-percent {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-accent);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--surface-1);
    border-radius: 4px;
    overflow: hidden;
    border: 0.5px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: var(--fill-accent);
    width: 0%;
    transition: width 0.3s ease-out;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 2rem;
    border: 0.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.message.success {
    background: var(--bg-success);
    color: var(--text-success);
}

.message.warning {
    background: var(--bg-warning);
    color: var(--text-warning);
}

.message i {
    font-size: 16px;
}

/* Convert Button */
.convert-btn {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--fill-accent) 0%, var(--brand-teal) 100%);
    color: var(--on-accent);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.convert-btn:disabled {
    background: var(--fill-disabled);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.convert-btn i,
.convert-btn .icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.convert-btn.converting i {
    animation: spin 1s linear infinite;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.features-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-card ul {
    margin: 0;
    padding-left: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-card li {
    margin-bottom: 8px;
}

.features-card h4 i,
.notice-card h4 i,
.features-card h4 .icon,
.notice-card h4 .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 9px;
    background: color-mix(in srgb, currentColor 14%, transparent);
    flex-shrink: 0;
    box-sizing: border-box;
}

.notice-card {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--brand-tea-light) 140%);
    border: 1px solid var(--brand-teal);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.notice-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-card h4 i,
.notice-card h4 .icon {
    font-size: 16px;
}

.notice-card p {
    font-size: 13px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i,
.feature-item .icon {
    color: var(--fill-success);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Footer */
.footer-section {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-brand-heading .brand-mark {
    width: 34px;
    height: auto;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 260px;
    margin: 0;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin-bottom: 0.7rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--fill-accent);
    text-decoration: none;
}

.footer-bottom-bar {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.footer-bottom-bar p {
    margin: 0;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 0.5rem;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Page Content */
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-content {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 3rem;
    color: var(--text-primary);
    line-height: 1.8;
    box-shadow: var(--shadow-md);
}

.page-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--fill-accent) 60%, var(--fill-success) 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid var(--brand-tea);
    padding-bottom: 1rem;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.page-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

.page-content p {
    font-size: 14px;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.page-content ul, .page-content ol {
    margin: 1rem 0;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.page-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card {
    background: var(--surface-1);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--fill-accent);
    transform: translateY(-4px);
}

.blog-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-accent);
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2rem;
    padding: 10px 18px;
    background: var(--fill-accent);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.back-btn:hover {
    text-decoration: none;
    transform: translateX(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
    }

    .page-content h1 {
        font-size: 24px;
    }

    .page-content h2 {
        font-size: 20px;
    }
}

/* SEO Content Section */
#seo-content-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.seo-section {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.seo-section h2 {
    font-size: 22px;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.seo-section p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Dynamic Blog / Article System
   ============================================ */

.blog-loading, .blog-empty, .blog-error {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 14px;
    grid-column: 1 / -1;
}

.blog-loading i,
.blog-loading .icon {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 6px;
}

/* Single Article Page */
.article-title {
    font-size: 2.1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--fill-accent) 60%, var(--fill-success) 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.article-meta span::after {
    content: '•';
    margin-left: 10px;
    color: var(--text-disabled);
}

.article-meta span:last-child::after {
    content: '';
    margin-left: 0;
}

.article-body {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.02rem;
    word-wrap: break-word;
}

.article-body p { margin: 0 0 1.1rem 0; }
.article-body b, .article-body strong { font-weight: 700; color: var(--text-primary); }
.article-body i, .article-body em { font-style: italic; }
.article-body u { text-decoration: underline; }
.article-body h2 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin: 2rem 0 1rem; font-family: var(--font-heading); }
.article-body h3 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin: 1.6rem 0 0.8rem; font-family: var(--font-heading); }
.article-body h4 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 1.3rem 0 0.6rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.6rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--text-accent); text-decoration: underline; }

.not-found-box {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* ============================================
   Small-screen refinements (phones, ~480px and below)
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
        gap: 1.25rem;
    }

    .upload-area {
        padding: 2.25rem 1.25rem;
    }

    .upload-icon-badge {
        width: 52px;
        height: 52px;
    }

    .upload-icon-badge i,
    .upload-icon-badge .icon {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .file-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    .file-info {
        min-width: 140px;
    }

    .format-select {
        max-width: none;
        flex: 1 1 110px;
    }

    .file-actions {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-top: 2px;
    }

    .features-card {
        padding: 1.1rem;
    }

    .progress-header {
        flex-wrap: wrap;
        gap: 4px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-meta {
        font-size: 0.85rem;
    }

    .page-content {
        padding: 1.25rem;
    }

    .seo-section {
        padding: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Hero Section (homepage signature element)
   ============================================ */
.hero {
    position: relative;
    padding: 2.25rem 1.5rem 2.25rem;
    text-align: center;
    background: var(--surface-0);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-accent);
    background: var(--bg-accent);
    border: 1px solid var(--brand-teal);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.12;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust i,
.hero-trust .icon {
    color: var(--fill-success);
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .hero {
        padding: 2.25rem 1.25rem 1.75rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .hero-trust {
        gap: 1rem 1.25rem;
        font-size: 12px;
    }
}
