/* ============================================
   Sauki PDF - Frosted Glass Design
   ============================================ */

:root {
    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --primary-light: #818cf8;
    --primary-glow:  rgba(99, 102, 241, 0.35);
    --accent:        #a855f7;

    --bg-1: #0d0b1e;
    --bg-2: #1a1040;
    --bg-3: #0d1b3e;

    --glass:        rgba(255, 255, 255, 0.07);
    --glass-hover:  rgba(255, 255, 255, 0.13);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-border-hover: rgba(99, 102, 241, 0.6);

    --text:       rgba(255, 255, 255, 0.93);
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-faint: rgba(255, 255, 255, 0.35);

    --white: #ffffff;
    --green: #10b981;
    --red:   #f43f5e;

    --blur:        blur(16px);
    --blur-strong: blur(24px);
    --radius:      14px;
    --radius-sm:   8px;

    --shadow:    0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
    --glow:      0 0 24px var(--primary-glow);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Ambient background orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,0.14) 0%, transparent 70%);
    bottom: 100px;
    left: -100px;
}

/* ── Container ──────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ── Glass mixin ─────────────────────────────────────────────────── */
.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

/* ── Header & Nav ───────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 11, 30, 0.75);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
}

.navbar { padding: 1rem 0; }

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: width 0.25s;
}

.nav-links a:hover {
    color: var(--white);
}

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

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 11, 30, 0.95);
        backdrop-filter: var(--blur);
        flex-direction: column;
        padding: 20px 24px;
        gap: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open { display: flex; }
    .header { position: relative; }
    .navbar { position: relative; }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-align: center;
    font-family: inherit;
    position: relative;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow), var(--glow);
}

.btn-secondary {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--primary-light);
    color: var(--white);
}

.btn-light {
    background: rgba(255,255,255,0.15);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.btn-light:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    padding: 110px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative grid lines */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    animation: slideUp 0.8s ease;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--white);
}

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

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-features {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.check-icon {
    width: 17px;
    height: 17px;
    color: var(--green);
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
}

@media (max-width: 768px) {
    .hero { padding: 70px 0 60px; }
    .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .hero-features { width: 100%; }
}

/* ── Section Headers ─────────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: var(--white);
}

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

/* ── Sections ────────────────────────────────────────────────────── */
.tools-section,
.how-it-works,
.faq-section {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.how-it-works {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* ── Tools Grid ──────────────────────────────────────────────────── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: var(--radius);
}

.tool-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow);
    background: var(--glass-hover);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    font-size: 36px;
    margin-bottom: 14px;
    display: block;
    position: relative;
    z-index: 1;
}

.tool-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.tool-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.25s;
    position: relative;
    z-index: 1;
}

.tool-card:hover .tool-link { opacity: 1; }

/* ── Steps ───────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.step-card {
    text-align: center;
    padding: 36px 28px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all 0.3s;
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: border-color 0.2s;
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--glass-border-hover);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--white); }

.faq-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon { transform: rotate(180deg); }

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

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

.faq-answer p {
    padding: 0 22px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta-section {
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(168,85,247,0.12) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: var(--white);
    position: relative;
}

.cta-section p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    position: relative;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    background: rgba(0,0,0,0.4);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
}

.footer-section p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 9px; }

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 26px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
}

/* ── Upload Area ─────────────────────────────────────────────────── */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius);
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: var(--glow);
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
}

.upload-area h2 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 700;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.upload-info {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 18px;
    line-height: 1.9;
}

.upload-input { display: none; }

/* ── Progress Bar ────────────────────────────────────────────────── */
.progress-section { margin-top: 20px; }

.progress-item {
    margin-bottom: 14px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.progress-filename {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.progress-filename span:last-child {
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 12px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

/* ── Tool Page ───────────────────────────────────────────────────── */
.tool-page {
    min-height: 100vh;
    padding: 70px 0 90px;
    position: relative;
    z-index: 1;
}

.tool-header {
    text-align: center;
    margin-bottom: 44px;
}

.tool-page-icon {
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 40px;
    box-shadow: var(--glow);
}

.tool-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
    letter-spacing: -0.8px;
}

.tool-page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

.tool-content {
    max-width: 720px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 44px;
    padding-top: 44px;
    border-top: 1px solid var(--glass-border);
}

.feature {
    text-align: center;
    padding: 24px 18px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all 0.25s;
}

.feature:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
}

.feature h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.feature p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* File list (merge tool) */
.file-list { margin: 14px 0; }

.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text);
}

.file-list-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--red);
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.file-remove:hover { opacity: 1; }

/* Download button */
.download-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 14px;
    background: linear-gradient(135deg, var(--green), #059669);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select option {
    background: #1a1040;
    color: var(--text);
}

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

/* ── Contact Page ────────────────────────────────────────────────── */
.contact-page {
    min-height: 100vh;
    padding: 70px 0 90px;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-info-card,
.contact-form-card {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-info-item {
    margin-bottom: 26px;
}

.contact-info-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.contact-info-item a,
.contact-info-item p {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}

.contact-info-item a:hover { color: var(--primary-light); }

.response-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.response-badge h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-light);
}

.response-badge p {
    font-size: 13px;
    color: var(--text-muted);
}

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

/* ── Legal Pages ─────────────────────────────────────────────────── */
.legal-page {
    min-height: 100vh;
    padding: 70px 24px 90px;
    position: relative;
    z-index: 1;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 56px 60px;
}

.legal-content h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.legal-content .last-updated {
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-light);
    margin: 32px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 10px;
}

.legal-content ul {
    margin: 10px 0 10px 24px;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 14px;
}

.legal-content a {
    color: var(--primary-light);
    text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .legal-content { padding: 32px 24px; }
    .legal-content h1 { font-size: 24px; }
}

/* ── PDF-to-Image Preview Grid ───────────────────────────────────── */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.preview-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: center;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: all 0.25s;
}

.preview-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
}

.preview-card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: rgba(255,255,255,0.03);
    display: block;
}

.preview-card p {
    font-size: 12px;
    padding: 8px;
    color: var(--text-muted);
}

.preview-card a {
    display: block;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.preview-card a:hover { opacity: 0.85; }

/* ── Utility ─────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .section-header h2 { font-size: 28px; }
    .tools-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .tool-header h1 { font-size: 26px; }
    .upload-area { padding: 40px 18px; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .cta-section h2 { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
}
