:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --border-focus: #2563EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.sr-only.focus\:not-sr-only:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--primary);
    color: white;
    z-index: 9999;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 3rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

.tool-section {
    padding: 2rem 0 4rem;
}

.tool-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tool-card {
        padding: 3rem;
    }
}

.tool-state {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tool-state.active {
    display: block;
}

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

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.drop-zone:hover, .drop-zone:focus {
    border-color: var(--primary);
    background: var(--primary-light);
    outline: none;
}

.drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.01);
}

.drop-zone-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--text-main);
}

.drop-zone-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.browse-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.file-limit {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
}

.error-message {
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.95rem;
    display: none;
}

.error-message.visible {
    display: block;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.file-info svg {
    color: var(--primary);
    flex-shrink: 0;
}

.file-name {
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

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

.tool-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.compression-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .compression-options {
        flex-direction: row;
    }
}

.compression-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.compression-card input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.card-content {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
}

.compression-card input:focus-visible + .card-content {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.compression-card input:checked + .card-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: #DC2626;
    background: #FEF2F2;
}

.processing-content {
    text-align: center;
    padding: 2rem 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

#progress-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.success-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

@media (min-width: 480px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-item {
    text-align: center;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.result-item.highlight .result-value {
    color: #16A34A;
}

.download-filename {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    word-break: break-all;
}

section.how-it-works, section.features, section.benefits, section.privacy, section.faq, section.related-tools {
    padding: 4rem 0;
}

section.how-it-works { background: var(--bg-light); }
section.features { background: var(--bg-white); }
section.benefits { background: var(--bg-light); }
section.privacy { background: var(--bg-white); }
section.faq { background: var(--bg-light); }
section.related-tools { background: var(--bg-white); }

section h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.steps-grid, .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid, .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.step-card, .feature-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.feature-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.step-card:hover, .feature-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.feature-item svg {
    flex-shrink: 0;
}

.step-card h3, .feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.step-card p, .feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.benefits-list li {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 1.05rem;
    color: var(--text-main);
}

.benefits-list li strong {
    color: var(--primary);
}

.privacy .container {
    max-width: 800px;
    text-align: center;
}

.privacy p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: var(--bg-light);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

@media (min-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tool-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.tool-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.footer {
    background: var(--text-main);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94A3B8;
    font-size: 0.95rem;
}

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

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: #64748B;
    font-size: 0.875rem;
}

/* ===== RELATED PDF TOOLS ===== */

.related-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:16px;
}

.related-card{
display:flex;
flex-direction:column;
padding:22px 18px;
background:#fff;
border:1px solid #E2E8F0;
border-radius:12px;
text-decoration:none;
color:#0F172A;
transition:.25s;
}

.related-card:hover{
transform:translateY(-4px);
border-color:#2563EB;
box-shadow:0 10px 25px rgba(0,0,0,.08);
text-decoration:none;
}

.related-icon{
width:42px;
height:42px;
padding:10px;
background:#EFF6FF;
border-radius:10px;
color:#2563EB;
margin-bottom:14px;
display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;
}

.related-icon svg{
width:100%;
height:100%;
display:block;
}

.related-card h3{
font-size:16px;
font-weight:700;
margin-bottom:6px;
color:#0F172A;
}

.related-card p{
font-size:13px;
line-height:1.5;
color:#64748B;
}

@media(max-width:480px){

.related-grid{
grid-template-columns:repeat(2,1fr);
gap:12px;
}

.related-card{
padding:18px 14px;
}

}