/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f0f0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(240, 240, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.nav-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #333;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #333;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #f0f0f0;
    color: #333;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    background-size: cover;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #333;
}

/* Authors Section */
.authors-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 51, 51, 0.1);
}

.authors {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author {
    display: inline-block;
    margin: 0 0.5rem;
    font-weight: 500;
}

.affiliations {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.equal-contrib {
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Abstract Simple */
.abstract-simple {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: left;
    border: 1px solid rgba(51, 51, 51, 0.1);
}

.abstract-simple p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.gradient-text {
    background: linear-gradient(45deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(51, 51, 51, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(51, 51, 51, 0.1);
    border-color: #333;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .authors-section {
        padding: 1.5rem;
    }

    .authors {
        font-size: 1rem;
    }

    .author {
        display: block;
        margin: 0.25rem 0;
    }

    .abstract-simple {
        padding: 1.5rem;
        text-align: center;
    }

    .abstract-simple p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.section-title,
.audio-card,
.results-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.animate,
.audio-card.animate,
.results-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Coming Soon Page Styles */
.coming-soon-section {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.coming-soon-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.coming-soon-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.coming-soon-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.coming-soon-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #93c5fd;
}

.detail-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-item p {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.notification-signup {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.notification-signup h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.notification-signup p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.email-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.email-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.email-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.privacy-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.back-to-demo {
    margin-bottom: 3rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive for coming soon page */
@media (max-width: 768px) {
    .coming-soon-title {
        font-size: 2.5rem;
    }
    
    .coming-soon-details {
        grid-template-columns: 1fr;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo Section Styles */
.demo-section {
    padding: 6rem 0;
    background: white;
}

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

.experiments-container {
    margin-top: 3rem;
}

.experiment {
    margin-bottom: 4rem;
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.experiment-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.experiment-description {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Audio Samples Table */
.samples-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.samples-table th {
    background: #f3f4f6;
    padding: 1rem;
    font-weight: 600;
    color: #374151;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    min-width: 250px;
}

.samples-table th:first-child {
    min-width: 100px;
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f3f4f6;
}

.samples-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    white-space: normal;
    min-width: 250px;
}

.samples-table td:first-child {
    min-width: 100px;
    position: sticky;
    left: 0;
    z-index: 5;
    background: white;
    white-space: nowrap;
}

.samples-table tr:last-child td {
    border-bottom: none;
}

.samples-table tr:hover {
    background: #f8fafc;
}

.sample-index {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
}

/* Audio Item Styles */
.audio-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 250px;
    white-space: normal;
}

.audio-item .transcript {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.audio-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audio-label.ground-truth {
    color: #059669;
}

.audio-label.ground-truth::after {
    content: " (Ground Truth)";
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.audio-label.mage {
    color: #dc2626;
}

.audio-label.mage::after {
    content: " (Ours)";
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.audio-player {
    width: 100%;
}

.audio-player audio {
    width: 100%;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.audio-player audio:hover {
    opacity: 0.8;
}

/* Audio Error Styling */
.audio-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.9rem;
    text-align: center;
    min-height: 60px;
}

.audio-error i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.error-details {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    font-family: monospace;
}

.transcript {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    line-height: 1.3;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #e5e7eb;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.transcript.ground-truth {
    border-left-color: #059669;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 500;
}

.transcript:before {
    content: "💬";
    margin-right: 0.4rem;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Spectrogram Container */
.spectrogram-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: none;
    animation: fadeIn 0.3s ease;
}

.spectrogram-container.show {
    display: block;
}

.spectrogram-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.spectrogram-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.spectrogram-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Results Section */
.results-section {
    padding: 6rem 0;
    background: #f0f0f0;
}

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

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

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.metric-card h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.metric-unit {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #f9fafb;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section h4 {
    color: #d1d5db;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f9fafb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Loading Styles */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Responsive adjustments for demo section */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .samples-table th,
    .samples-table td {
        min-width: 200px;
        white-space: normal;
    }

    .samples-table th:first-child,
    .samples-table td:first-child {
        min-width: 80px;
        white-space: nowrap;
    }

    .audio-item {
        min-width: 200px;
    }

    .experiment {
        padding: 1rem;
    }

    .experiment-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .demo-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .experiment {
        margin-bottom: 2rem;
    }

    .table-container {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .samples-table th,
    .samples-table td {
        min-width: 180px;
        padding: 1rem 0.5rem;
    }

    .audio-item {
        min-width: 180px;
    }

    .metric-card {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Live Demo Section */
.live-demo-section {
    padding: 6rem 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.live-demo-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Demo Notes */
.demo-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.note i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.note.warning {
    background: #fef3cd;
    border: 1px solid #f6e05e;
    color: #92400e;
}

.note.warning i {
    color: #f59e0b;
}

.note.info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.note.info i {
    color: #3b82f6;
}

/* Demo Interface */
.demo-interface {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

/* Demo Tabs */
.demo-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.25rem;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button:hover:not(.active) {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Recording Interface */
.recording-interface {
    text-align: center;
}

.recording-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.recording-status {
    margin-bottom: 2rem;
}

.recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.recording-indicator.recording {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.recording-indicator.recording .status-text {
    font-weight: 600;
}

.recording-indicator.recording::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.recording-timer {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Audio Preview */
.audio-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.audio-preview h4 {
    margin-bottom: 1rem;
    color: #374151;
}

.audio-preview audio {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

.audio-info {
    font-size: 0.9rem;
    color: #64748b;
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Upload Interface */
.upload-interface {
    text-align: center;
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.file-upload-area:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.file-upload-area.drag-over {
    border-color: #3b82f6;
    background: #dbeafe;
}

.upload-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.upload-text h4 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.upload-text p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.upload-text small {
    color: #94a3b8;
    font-size: 0.85rem;
}

.file-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.file-info h4 {
    margin-bottom: 1rem;
    color: #374151;
}

.file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-details span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Demo Actions */
.demo-actions {
    text-align: center;
    margin: 3rem 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 250px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Processing Status */
.processing-status {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.loading-spinner {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

.processing-status h4 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.processing-status p {
    color: #64748b;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    animation: progressIndeterminate 1.5s infinite;
}

@keyframes progressIndeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Demo Results */
.demo-results {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.demo-results h3 {
    text-align: center;
    color: #374151;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

.result-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.result-item.enhanced {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.result-item h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.result-item.enhanced h4 {
    color: #059669;
}

.result-item audio {
    width: 100%;
    margin-bottom: 1rem;
}

.download-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Demo Error */
.demo-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.error-content {
    max-width: 400px;
    margin: 0 auto;
}

.error-content i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-content h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.error-content p {
    color: #991b1b;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Responsive Design for Live Demo */
@media (max-width: 768px) {
    .live-demo-section {
        padding: 4rem 0;
    }

    .demo-notes {
        gap: 0.75rem;
    }

    .note {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .demo-interface {
        padding: 1.5rem;
    }

    .demo-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab-button {
        padding: 1rem;
    }

    .recording-controls {
        flex-direction: column;
        align-items: center;
    }

    .recording-controls .btn {
        width: 100%;
        max-width: 250px;
    }

    .file-upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .upload-text h4 {
        font-size: 1.1rem;
    }

    .file-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .btn-large {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }

    .results-comparison {
        grid-template-columns: 1fr;
    }

    .processing-status {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .demo-interface {
        padding: 1rem;
    }

    .note {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .note i {
        margin-top: 0;
    }

    .file-upload-area {
        padding: 1.5rem 0.75rem;
    }

    .upload-text h4 {
        font-size: 1rem;
    }

    .upload-text p {
        font-size: 0.9rem;
    }

    .upload-text small {
        font-size: 0.8rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}