
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-primary: #4F46E5;
    --brand-primary-hover: #4338ca;
    --brand-secondary: #0ea5e9;
    --brand-accent: #f43f5e;
    
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    
    --border-light: #e2e8f0;
    --border-strong: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --container-width: 1200px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-white { background: var(--bg-surface); }
.bg-light { background: var(--bg-base); }

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
}

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

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}
.btn-primary:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-heading);
    border: 2px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
}
.logo svg { color: var(--brand-primary); }

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

.nav-links a {
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.2s;
    font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--brand-primary);
}

.nav-cta {
    background: var(--brand-primary);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: var(--brand-primary-hover);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-bg-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-shape-1 {
    position: absolute; top: -10%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.hero-shape-2 {
    position: absolute; bottom: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-visual {
    position: relative;
}
.hero-illustration {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    position: relative;
}
.hero-illustration-inner {
    border-radius: var(--radius-lg);
    background: var(--bg-base);
    border: 1px dashed var(--border-strong);
    padding: 3rem;
    text-align: center;
}

/* Trusted Section */
.trusted-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-surface);
}
.trusted-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.trusted-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}
.trusted-item svg { color: var(--text-muted); }

/* Features */
.section { padding: 6rem 0; }
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--text-body); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 60px; height: 60px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }

/* Stats */
.stats-section {
    background: var(--brand-primary);
    color: white;
    padding: 5rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-box h4 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}
.stat-box p {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 1.125rem;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}
.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 72px; height: 72px;
    background: var(--brand-primary);
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}
.step-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.review-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.3s;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.stars { color: #f59e0b; margin-bottom: 1rem; display: flex; gap: 0.25rem; }
.review-text { font-style: italic; margin-bottom: 1.5rem; }
.reviewer { display: flex; align-items: center; gap: 1rem; }
.reviewer-avatar {
    width: 48px; height: 48px;
    background: var(--bg-surface-alt);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--brand-primary);
}
.reviewer-info h5 { margin-bottom: 0.25rem; font-size: 1rem; }
.reviewer-info p { font-size: 0.875rem; color: var(--text-muted); }

/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-heading);
    background: var(--bg-surface);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.125rem;
}
.faq-icon {
    transition: transform 0.3s;
    color: var(--brand-primary);
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-body);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; max-height: 500px; }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.blog-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.blog-img {
    height: 220px;
    background: var(--bg-surface-alt);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.blog-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.blog-content h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.blog-content p { color: var(--text-body); margin-bottom: 1.5rem; flex: 1; }
.blog-link {
    color: var(--brand-primary);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.blog-link:hover { text-decoration: underline; }

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--text-heading);
    color: white;
    text-align: center;
}
.cta-section h2 { color: white; font-size: 3rem; margin-bottom: 1.5rem; }
.cta-section p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-brand p { color: var(--text-body); margin-top: 1rem; max-width: 300px; }
.footer-col h4 { margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-body); transition: color 0.2s; }
.footer-links a:hover { color: var(--brand-primary); }
.copyright {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted); font-size: 0.875rem;
}

/* Page Headers */
.page-header {
    background: var(--bg-surface);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-header p { font-size: 1.25rem; color: var(--text-body); max-width: 600px; margin: 0 auto; }

/* Prose Content */
.prose {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
}
.prose h2 { font-size: 2rem; margin: 3rem 0 1.5rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.prose p { margin-bottom: 1.5rem; }
.prose ul { margin-bottom: 1.5rem; padding-left: 1.5rem; list-style-type: disc; }
.prose li { margin-bottom: 0.5rem; }

/* Tool Page Specific */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
}
.tool-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}
.upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-base);
    transition: all 0.3s;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.05);
}
.upload-icon {
    width: 80px; height: 80px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    color: var(--brand-primary);
}
.upload-zone h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.upload-zone input[type="file"] { display: none; }

.tool-interface { display: none; }
.file-info-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem; background: var(--bg-base);
    border-radius: var(--radius-md); border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}
.file-details { display: flex; align-items: center; gap: 1rem; }
.file-icon { color: var(--brand-primary); }
.file-name { font-weight: 600; font-size: 1rem; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 0.875rem; color: var(--text-muted); }
.btn-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.btn-remove:hover { color: var(--brand-accent); }

.compression-settings { margin-bottom: 2rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.setting-card {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.setting-card:hover { border-color: var(--border-strong); }
.setting-card.active {
    border-color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.05);
}
.setting-card h4 { margin-bottom: 0.25rem; }
.setting-card p { font-size: 0.875rem; color: var(--text-muted); }

.progress-section { display: none; text-align: center; padding: 2rem 0; }
.progress-bar-container {
    height: 12px; background: var(--border-light);
    border-radius: 6px; overflow: hidden; margin: 1.5rem 0 0.5rem;
}
.progress-fill {
    height: 100%; background: var(--brand-primary);
    width: 0%; transition: width 0.3s;
}

.result-section { display: none; }
.result-stats {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem;
    background: var(--bg-base); padding: 2rem;
    border-radius: var(--radius-md); margin: 2rem 0; text-align: center;
}
.res-label { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.res-val { font-size: 1.5rem; font-weight: 700; color: var(--text-heading); }
.res-val.highlight { color: #10b981; }
.result-actions { display: flex; gap: 1rem; justify-content: center; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-illustration { max-width: 600px; margin: 0 auto; }
    .features-grid, .steps-grid, .reviews-grid, .blog-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 0; }
    .hamburger { display: block; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-surface); padding: 2rem;
        box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border-light);
        gap: 1.5rem; text-align: center;
    }
    .nav-links.active { display: flex; }
    
    .hero-content h1 { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    
    .features-grid, .steps-grid, .reviews-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .settings-grid { grid-template-columns: 1fr; }
    .result-stats { grid-template-columns: 1fr; gap: 1rem; }
    .result-actions { flex-direction: column; }
    .result-actions .btn { width: 100%; }
    
    .prose { font-size: 1rem; }
}
