:root {
    /* Premium Light Mode Variables */
    --bg-base: #f8fafc;
    --text-main: #111827;
    --text-muted: #4b5563;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --input-bg: #f3f4f6;
    --input-border: #d1d5db;
    --primary: #2563eb;       /* Tech Blue */
    --primary-hover: #1d4ed8; 
    --secondary: #f9fafb;
    --secondary-hover: #f3f4f6;
    --accent: #3b82f6;        
    --success: #059669;
    --error: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-bg: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
                   radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

/* Typewriter Cursor */
.typewriter-cursor {
    animation: blink 0.8s infinite;
    color: var(--primary);
    font-weight: 300;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Navbar */
.navbar {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
}
.logo i {
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-main);
}
@media (max-width: 768px) {
    .nav-links { display: none; }
}

.icon-btn {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 1rem 6rem;
    background-image: var(--gradient-bg);
}

.container {
    width: 100%;
    margin: 0 auto;
}

.transform-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-text {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

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

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

/* SaaS Card */
.extractor-card {
    width: 100%;
    max-width: 640px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: var(--input-bg);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--input-border);
}

.tab-btn {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* File Drop Area */
.file-drop-area {
    border: 2px dashed var(--input-border);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    background: var(--input-bg);
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

.file-drop-area:hover, .file-drop-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.drop-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.file-drop-area p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

.file-name {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    word-break: break-all;
}

/* Input Styles */
.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border-radius: 16px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Quality Select */
.options-group {
    margin-bottom: 2.5rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Primary Button */
.primary-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

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

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading UX */
.loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Progress Bar SaaS Style */
.progress-container {
    width: 80%;
    max-width: 320px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--input-border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

.progress-percent {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* Result Section */
.result-section {
    text-align: center;
    padding: 2rem 0 1rem;
}

.success-circle {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-section h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-buttons .download {
    grid-column: 1 / -1;
    background: var(--success);
    color: white;
    padding: 1.25rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.action-buttons .download:hover {
    background: #059669;
}

.action-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

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

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

.action-btn.whatsapp {
    background: #25D366;
    color: white;
}

.action-btn.whatsapp:hover {
    background: #128C7E;
}

/* Start Over Button */
.start-over-btn {
    margin-top: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.start-over-btn:hover {
    color: var(--text-main);
}

/* Error */
.error-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hidden {
    display: none !important;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
    .container { padding: 0 0.5rem; }
    .hero-section { padding: 2rem 0.5rem 3rem; }
    .hero-text h1 { font-size: 2.25rem; min-height: auto !important; margin-bottom: 1.5rem; }
    .extractor-card { padding: 1.5rem 1rem; border-radius: 16px; margin: 0 0.5rem; width: calc(100% - 1rem); }
    .file-drop-area { padding: 2.5rem 0.5rem; border-radius: 12px; }
    .action-buttons { grid-template-columns: 1fr; }
    .tabs { flex-direction: column; gap: 0.25rem; }
    .section-title { font-size: 1.75rem; margin-bottom: 2rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .step-card { padding: 1.5rem; }
    
    .footer-content { 
        flex-direction: column; 
        text-align: center; 
        align-items: center;
        gap: 1.5rem;
    }
    .footer-links { 
        flex-direction: column; 
        gap: 1rem; 
        width: 100%;
    }
    .footer-brand .logo { justify-content: center; }
}

/* New Info Sections */
.info-section {
    padding: 5rem 1rem;
    border-top: 1px solid var(--card-border);
}
.bg-alt {
    background-color: var(--card-bg);
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--input-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--input-border);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.step-card p, .feature-box p {
    color: var(--text-muted);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    padding: 3rem 1rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--input-border);
}
