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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fcfcfc;
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 5rem;
}

.brand-name {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.hero-content h1 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.04em;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 28rem;
    margin: 0 auto;
    letter-spacing: 0.01em;
}

.upload-area {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 5rem 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #9ca3af;
    background: #fdfdfd;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.upload-area.drag-over {
    border-color: #9ca3af;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(156, 163, 175, 0.06);
}


.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    opacity: 0.4;
    color: #9ca3af;
}

.upload-area h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 300;
}

.supported-formats {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.processing {
    background: white;
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.processing p {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #f8fafc;
    border-top: 2px solid #9ca3af;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-section {
    margin-top: 3rem;
    max-width: 100%;
}

/* Transcription Container - Rick Rubin/Jony Ive Minimalism */
.transcription-container {
    max-width: 100%;
}

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

.file-info {
    display: inline-block;
}

.file-name {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 300;
    letter-spacing: 0.025em;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fefefe;
}

/* Transcription Content - Clean and Focused */
.transcription-content {
    background: white;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    margin-bottom: 3rem;
}

.transcription-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
    padding: 3rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 200px;
}

/* Actions - Minimal and Clean */
.transcription-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 2rem;
}

.action-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 300;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    min-width: 100px;
}

.action-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #fefefe;
}

.action-btn:active {
    background: #f8fafc;
}

.new-btn {
    padding: 0.875rem 2.5rem;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 400;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    margin-left: 1rem;
}

.new-btn:hover {
    background: #374151;
    border-color: #374151;
}

/* Support Section - Custom Buy Me a Coffee */
.support-section {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #f1f5f9;
}

.cosmic-coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 300;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cosmic-coffee-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #fefefe;
    transform: translateY(-1px);
}

.cosmic-coffee-btn:active {
    background: #f8fafc;
    transform: translateY(0);
}

.coffee-emoji {
    font-size: 1.1rem;
}

.coffee-text {
    font-size: 0.9rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

.btn-primary .btn-icon {
    font-size: 1rem;
}

.btn-secondary {
    background: #fafafa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

footer {
    text-align: center;
    margin-top: 5rem;
    color: #9ca3af;
}

footer .contact-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

footer .contact-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 300;
    letter-spacing: 0.02em;
}

footer .contact-link:hover {
    color: #9ca3af;
    text-decoration: underline;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid #dc2626;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    header {
        margin-bottom: 3rem;
    }
    
    .brand-name {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 3rem 1.5rem;
    }
    
    /* Mobile transcription interface */
    .transcription-header {
        margin-bottom: 2rem;
    }
    
    .transcription-text {
        padding: 2rem 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .transcription-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .action-btn, .new-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding: 1rem 2rem;
    }
    
    .support-section {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .cosmic-coffee-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
}

/* 404 Error Page */
.error-page {
    text-align: center;
    padding: 5rem 2rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.error-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.error-message {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.error-actions {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .error-page {
        padding: 3rem 1rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-icon {
        font-size: 3rem;
    }
}