/* Noir PDF Converter - Noir Editorial Theme */
/* Palette: #0F0F0F, #2A2A2A, #E8E4DF, #C8B8A0 */

:root {
    --bg-primary: #0F0F0F;
    --bg-secondary: #2A2A2A;
    --bg-tertiary: #1A1A1A;
    --text-primary: #E8E4DF;
    --text-secondary: #A39E93;
    --text-muted: #6B6560;
    --accent: #C8B8A0;
    --accent-hover: #D4C4AC;
    --border: #3A3A3A;
    --border-light: #4A4A4A;
    --success: #7B9E6B;
    --error: #B85C5C;
    
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

.section-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease-out-expo);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
}

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

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

.btn-primary:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-doc {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.doc-1 {
    width: 200px;
    height: 260px;
    top: 15%;
    right: 20%;
    animation: float 6s ease-in-out infinite;
}

.doc-2 {
    width: 180px;
    height: 240px;
    top: 35%;
    right: 35%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite 1s;
}

.doc-3 {
    width: 120px;
    height: 150px;
    top: 55%;
    right: 15%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite 2s;
}

.doc-header {
    height: 40px;
    background: var(--border);
    margin: 20px;
}

.doc-lines {
    margin: 0 20px;
}

.doc-lines::before,
.doc-lines::after {
    content: '';
    display: block;
    height: 8px;
    background: var(--border-light);
    margin-bottom: 12px;
}

.doc-lines::before {
    width: 100%;
}

.doc-lines::after {
    width: 70%;
}

.doc-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bg-primary);
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Features Section */
.features {
    padding: 8rem 4rem;
    background: var(--bg-tertiary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Converter Section */
.converter {
    padding: 8rem 4rem;
}

.converter-container {
    max-width: 800px;
    margin: 0 auto;
}

.converter-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Dropzone */
.dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 4px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    background: var(--bg-tertiary);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.dropzone.dragover .dropzone-content {
    opacity: 0;
}

.dropzone.dragover .dropzone-active {
    opacity: 1;
}

.dropzone-content {
    transition: opacity 0.2s;
}

.dropzone-active {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.dropzone-active p {
    font-size: 1.25rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-style: italic;
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.dropzone-icon svg {
    width: 100%;
    height: 100%;
}

.dropzone-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File List */
.file-list {
    margin-top: 2rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    border-radius: 2px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.file-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.2s;
}

.file-remove:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Convert Actions */
.convert-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Progress */
.progress-container {
    display: none;
    margin-top: 2rem;
    text-align: center;
}

.progress-container.active {
    display: block;
}

.progress-bar {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Result */
.result-container {
    display: none;
    margin-top: 2rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    text-align: center;
    border-radius: 2px;
}

.result-container.active {
    display: block;
    animation: fadeIn 0.5s var(--ease-out-expo);
}

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-primary);
}

.result-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.result-filename {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

/* Stats Section */
.stats {
    padding: 6rem 4rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* About Section */
.about {
    padding: 8rem 4rem;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 2rem 0 3rem;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.about-check {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--bg-primary);
}

/* Footer */
.footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .hero,
    .features,
    .converter,
    .about {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}