/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f472b6;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #f472b6 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.btn-large svg {
    width: 24px;
    height: 24px;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.btn-outline:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

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

.btn-white:hover {
    background: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

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

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 0.8rem;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 24px 0 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

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

.stat-icon {
    font-size: 1.25rem;
}

.stat-text {
    font-weight: 500;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 1;
}

.browser-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.browser-dots span:first-child {
    background: #f87171;
}

.browser-dots span:nth-child(2) {
    background: #fbbf24;
}

.browser-dots span:nth-child(3) {
    background: #34d399;
}

.browser-address {
    flex: 1;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.browser-content {
    padding: 24px;
}

.mockup-app {
    background: var(--background-alt);
    border-radius: var(--radius);
    padding: 20px;
}

.mockup-header {
    margin-bottom: 16px;
}

.mockup-logo {
    font-weight: 700;
    font-size: 1rem;
}

.mockup-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mockup-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.mockup-action.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mockup-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.dropzone-icon {
    font-size: 2rem;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1.5s;
}

.card-icon {
    font-size: 1.25rem;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(244, 114, 182, 0.05) 100%);
    border-radius: 0 0 0 50%;
    z-index: 0;
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: 16px;
}

/* ==================== */
/* PDF Tools Section */
/* ==================== */

.pdf-tools-section {
    padding: 100px 0;
    background: var(--background-alt);
    position: relative;
}

.tool-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tool-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tool-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.tool-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tool Workspace */
.tool-workspace {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    min-height: 500px;
    position: relative;
}

.tool-panel {
    display: none;
    padding: 40px;
}

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

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

.tool-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.tool-header p {
    color: var(--text-muted);
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-alt);
}

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

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

.dropzone-icon-large {
    font-size: 4rem;
    margin-bottom: 16px;
}

.dropzone-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.dropzone-subtext {
    color: var(--text-muted);
}

/* File List */
.file-list {
    margin-top: 24px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: var(--border);
}

.file-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.file-item-icon {
    font-size: 1.5rem;
}

.file-item-info {
    flex: 1;
}

.file-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.file-item-actions {
    display: flex;
    gap: 8px;
}

.file-item-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item-btn:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.drag-handle {
    cursor: grab;
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Tool Actions */
.tool-actions {
    margin-top: 32px;
    text-align: center;
}

/* Split Options */
.split-options, .protect-options, .unprotect-options {
    margin-top: 24px;
}

.pdf-info {
    padding: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
}

.pdf-info strong {
    color: var(--primary);
}

.split-mode {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-label:hover {
    background: var(--border);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.split-range {
    margin-bottom: 24px;
}

.split-range label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.split-range input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.split-range input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Page Preview */
.page-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.page-thumb {
    aspect-ratio: 3/4;
    background: var(--background-alt);
    border: 2px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-thumb:hover {
    border-color: var(--primary-light);
}

.page-thumb.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Password Inputs */
.password-inputs {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.password-strength {
    text-align: center;
    margin-top: 16px;
}

.password-strength .weak {
    color: var(--error);
}

.password-strength .medium {
    color: var(--warning);
}

.password-strength .strong {
    color: var(--success);
}

/* Fill Workspace */
.fill-workspace {
    margin-top: 24px;
}

.form-fields-container h4 {
    margin-bottom: 16px;
}

.form-fields {
    max-height: 400px;
    overflow-y: auto;
}

.form-field-item {
    padding: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.form-field-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-field-item input,
.form-field-item textarea,
.form-field-item select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.form-field-item input:focus,
.form-field-item textarea:focus,
.form-field-item select:focus {
    outline: none;
    border-color: var(--primary);
}

.no-fields-message {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-fields-message .hint {
    font-size: 0.875rem;
    margin-top: 8px;
}

/* Highlight Workspace */
.highlight-workspace {
    margin-top: 24px;
}

.highlight-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-group label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.toolbar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    border-color: var(--primary-light);
}

.toolbar-btn.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

input[type="range"] {
    width: 100px;
    accent-color: var(--primary);
}

/* PDF Viewer Container */
.pdf-viewer-container {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border);
}

#page-indicator {
    font-weight: 500;
    color: var(--text-muted);
}

.pdf-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background: #525659;
    min-height: 600px;
    overflow: auto;
}

.pdf-canvas-wrapper {
    position: relative;
    display: inline-block;
}

#pdf-canvas {
    box-shadow: var(--shadow-xl);
    background: white;
    display: block;
}

.annotation-layer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    cursor: crosshair;
}

.annotation-layer.active {
    pointer-events: auto;
}

.highlight-annotation {
    position: absolute;
    cursor: pointer;
    box-sizing: border-box;
}

.text-annotation {
    position: absolute;
    background: #ffffa5;
    border: 1px solid #e6e600;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    max-width: 200px;
    cursor: move;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Result Area */
.result-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.result-content {
    text-align: center;
    padding: 40px;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.result-content h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.result-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 20;
}

.loading-content {
    text-align: center;
}

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

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

#loading-message {
    color: var(--text-muted);
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--background-alt);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius);
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Coming Soon Section */
.coming-soon {
    padding: 100px 0;
    background: var(--background-alt);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.platform-card.available {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.platform-card:hover {
    transform: translateY(-4px);
}

.platform-icon {
    margin-bottom: 20px;
}

.platform-card h3 {
    margin-bottom: 12px;
}

.platform-status {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.platform-status.available {
    color: var(--success);
    font-weight: 600;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    z-index: 0;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--text);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tool-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
        max-width: 100%;
    }
    
    .floating-card {
        display: none;
    }
    
    .browser-mockup {
        max-width: 100%;
    }
    
    .mockup-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .mockup-action {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .mockup-dropzone {
        padding: 24px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tool-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-panel {
        padding: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tools-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .platform-card.available {
        grid-column: span 2;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .highlight-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .tool-selector {
        grid-template-columns: 1fr;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        padding: 30px 20px;
    }
    
    .platform-card.available {
        grid-column: span 1;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        gap: 12px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .tools-preview {
        padding: 60px 0;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .coming-soon {
        padding: 60px 0;
    }
}

/* Chrome Icon */
.chrome-icon {
    flex-shrink: 0;
}

/* Utility classes */
.hidden {
    display: none !important;
}

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

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* ==================== */
/* Tools Preview Section (Home Page) */
/* ==================== */

.tools-preview {
    padding: 100px 0;
    background: var(--background-alt);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.tool-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.tool-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-preview-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tool-preview-card h3 {
    margin-bottom: 8px;
}

.tool-preview-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tools-cta {
    text-align: center;
}

/* ==================== */
/* Tools Page Styles */
/* ==================== */

.tools-page {
    background: var(--background-alt);
}

.tools-header {
    padding: 120px 0 60px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.tools-header-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.tools-header h1 {
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    color: var(--success);
    font-weight: 500;
}

.privacy-icon {
    font-size: 1.25rem;
}

/* Tools Page PDF Tools Section Override */
.tools-page .pdf-tools-section {
    padding: 60px 0 100px;
    background: var(--background-alt);
}

/* Tools Features Section */
.tools-features {
    padding: 80px 0;
    background: white;
}

.tools-features h2 {
    text-align: center;
    margin-bottom: 48px;
}

.tools-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tools-feature {
    text-align: center;
    padding: 24px;
}

.tools-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.tools-feature h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

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

/* Active nav link */
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive for Tools Preview */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-preview-card {
        padding: 30px 20px;
    }
    
    .tool-preview-icon {
        font-size: 2.5rem;
    }
    
    .tools-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-header {
        padding: 100px 0 40px;
    }
    
    .tools-header h1 {
        font-size: 2rem;
    }
    
    .tools-header p {
        font-size: 1rem;
    }
    
    .privacy-badge {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .tools-cta {
        padding: 0 20px;
    }
    
    .tools-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tools-preview {
        padding: 50px 0;
    }
    
    .tools-grid {
        gap: 12px;
    }
    
    .tool-preview-card {
        padding: 24px 16px;
    }
    
    .tool-preview-card h3 {
        font-size: 1.1rem;
    }
    
    .tool-preview-card p {
        font-size: 0.875rem;
    }
    
    .tools-features {
        padding: 50px 0;
    }
    
    .tools-feature {
        padding: 16px;
    }
    
    .tools-header {
        padding: 90px 0 30px;
    }
    
    .tools-header h1 {
        font-size: 1.75rem;
    }
    
    .tools-header p {
        font-size: 0.95rem;
    }
    
    .privacy-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .tools-page .pdf-tools-section {
        padding: 40px 0 60px;
    }
    
    .tool-btn {
        padding: 16px 12px;
    }
    
    .tool-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .tool-name {
        font-size: 0.9rem;
    }
    
    .tool-desc {
        font-size: 0.7rem;
    }
    
    .tool-panel {
        padding: 20px 16px;
    }
    
    .tool-header h3 {
        font-size: 1.25rem;
    }
    
    .dropzone {
        padding: 40px 20px;
    }
    
    .dropzone-icon-large {
        font-size: 3rem;
    }
    
    .dropzone-text {
        font-size: 1rem;
    }
    
    .highlight-toolbar {
        gap: 16px;
        padding: 12px;
    }
    
    .toolbar-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .toolbar-group label {
        min-width: 50px;
    }
    
    .page-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-nav .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    #page-indicator {
        width: 100%;
        text-align: center;
        order: -1;
    }
    
    .pdf-canvas-container {
        padding: 10px;
        min-height: 400px;
    }
    
    .result-content {
        padding: 24px 16px;
    }
    
    .result-icon {
        font-size: 3rem;
    }
    
    .result-content h3 {
        font-size: 1.25rem;
    }
    
    .tools-features h2 {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .logo-text {
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .tool-btn {
        padding: 14px 10px;
    }
    
    .tool-name {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
