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

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.5) rgba(255, 255, 255, 0.05);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

html::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow-x: hidden;
}

/* Animated Mesh Gradient Background */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(45deg, #0a0a0f 0%, #1a0f2e 50%, #0a0a0f 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 1) 0%, rgba(147, 51, 234, 0.5) 40%, transparent 70%);
    top: -15%;
    left: -15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0.4) 40%, transparent 70%);
    top: 40%;
    right: -15%;
    animation-delay: -7s;
}

.orb-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7) 0%, rgba(219, 39, 119, 0.3) 40%, transparent 70%);
    bottom: -15%;
    left: 25%;
    animation-delay: -14s;
}

.orb-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.6) 0%, rgba(6, 182, 212, 0.3) 40%, transparent 70%);
    top: 15%;
    right: 25%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, 60px) scale(1.05);
    }
    50% {
        transform: translate(-20px, -30px) scale(0.95);
    }
    75% {
        transform: translate(-40px, 20px) scale(1.02);
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(168, 85, 247, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Header */
header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    transition: width 0.3s;
}

nav a:hover {
    color: #a855f7;
}

nav a:hover::after {
    width: 100%;
}

nav a.nav-login {
    margin-left: 32px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.7);
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

nav a.nav-login:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(59, 130, 246, 0.9));
    color: #ffffff;
    border-color: transparent;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.2),
        0 18px 40px rgba(15, 23, 42, 0.9);
}


/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 40px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(
            135deg,
            #a855f7 0%,
            #3b82f6 25%,
            #ec4899 50%,
            #22d3ee 75%,
            #a855f7 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Grid - 3x2 inside demo-container */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.15),
    0 0 60px rgba(168, 85, 247, 0.08),
    inset 0 0 30px rgba(168, 85, 247, 0.03);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #a855f7, #3b82f6);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* Hero Features - now styled for use inside demo-container */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.hero-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.hero-feature:hover::before {
    transform: translateX(100%);
}

.hero-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15),
    0 0 40px rgba(168, 85, 247, 0.08),
    inset 0 0 20px rgba(168, 85, 247, 0.03);
}

.hero-feature h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-feature p {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.stat-box:hover::before {
    transform: translateX(100%);
}

.stat-box:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2),
    0 0 80px rgba(168, 85, 247, 0.1),
    inset 0 0 40px rgba(168, 85, 247, 0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
}

.how-it-works h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.step:hover::before {
    transform: translateX(100%);
}

.step:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2),
    0 0 80px rgba(168, 85, 247, 0.1),
    inset 0 0 40px rgba(168, 85, 247, 0.05);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.step p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Demo Section */
.demo-section {
    padding: 40px 0 80px;
    position: relative;
}

.demo-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

/* Stats at the top of demo-container */
.stats-container-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.stats-container-top .stat-box {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stats-container-top .stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.stats-container-top .stat-box:hover::before {
    transform: translateX(100%);
}

.stats-container-top .stat-box:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.15),
    0 0 60px rgba(168, 85, 247, 0.08),
    inset 0 0 30px rgba(168, 85, 247, 0.03);
}

.stats-container-top .stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stats-container-top .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.demo-container:hover::before {
    transform: translateX(100%);
}

.demo-container:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2),
    0 0 80px rgba(168, 85, 247, 0.1),
    inset 0 0 40px rgba(168, 85, 247, 0.05);
}

.demo-container::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(10, 10, 15, 0.9);
    border-radius: 29px;
    z-index: -1;
}

.demo-container h2 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-container > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-size: 16px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: rgba(168, 85, 247, 0.7);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
}

.upload-area.active {
    border-color: rgba(168, 85, 247, 0.8);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
}

.upload-area input {
    display: none;
}

.upload-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.upload-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Preview Section */
.preview-section {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    animation: slideIn 0.3s ease-out;
}

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

.preview-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.preview-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 2;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-label {
    color: rgba(255, 255, 255, 0.5);
}

.preview-value {
    font-weight: 600;
    color: #a855f7;
}

.preview-buttons {
    display: flex;
    gap: 15px;
}

.process-btn, .cancel-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.process-btn {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Progress Bar */
.progress-bar {
    margin-top: 30px;
    width: 100%;
    height: 60px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: none;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.progress-bar.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

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

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Results */
.results {
    margin-top: 40px;
    display: none;
}

.results.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats .stat-box {
    padding: 25px 20px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stats .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Audio Players */
.player-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.player-box {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.player-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.player-box:hover::before {
    transform: translateX(100%);
}

.player-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.player-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

audio {
    width: 100%;
    height: 44px;
    outline: none;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.download-btn {
    flex: 1;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}

/* Timeline */
.timeline {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.timeline-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.timeline-track {
    width: 100%;
    height: 10px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.timeline-marker {
    position: absolute;
    height: 10px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.timeline-marker:hover {
    height: 16px;
    top: -3px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Found Words */
.found-words-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    margin-top: 20px;
}

.found-words-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.found-words-list {
    max-height: 300px;
    overflow-y: auto;
}

.found-words-list::-webkit-scrollbar {
    width: 8px;
}

.found-words-list::-webkit-scrollbar-track {
    background: rgba(168, 85, 247, 0.05);
    border-radius: 10px;
}

.found-words-list::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 10px;
}

.found-word-item {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #a855f7;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.found-word-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.word-time {
    font-weight: 600;
    color: #a855f7;
    font-size: 13px;
    min-width: 80px;
}

.word-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Cases Section */
.cases-section {
    padding: 80px 0;
}

.cases-section h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.case-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.case-card:hover::before {
    transform: translateX(100%);
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2),
    0 0 80px rgba(168, 85, 247, 0.1),
    inset 0 0 40px rgba(168, 85, 247, 0.05);
}

.case-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.case-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.faq-item:hover::before,
.faq-item.active::before {
    transform: translateX(100%);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.4);
}

.faq-question {
    font-weight: 600;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.faq-item.active .faq-answer {
    display: block;
}

.toggle-icon {
    transition: transform 0.3s;
    display: inline-block;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(168, 85, 247, 0.8),
    rgba(59, 130, 246, 0.8),
    transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cta-section:hover::before {
    transform: translateX(100%);
}

.cta-section:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2),
    0 0 80px rgba(168, 85, 247, 0.1),
    inset 0 0 40px rgba(168, 85, 247, 0.05);
}

.cta-section h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-btn {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.5);
}

.cta-btn span {
    position: relative;
    z-index: 1;
}

/* Ensure Apple emoji rendering */
.feature-icon,
.upload-text,
.process-btn,
.cancel-btn,
.download-btn,
.case-card h3,
footer p {
    font-family: -apple-system, BlinkMacSystemFont, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
}

/* Twemoji styling */
img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 0.05em 0 0.1em;
    vertical-align: -0.1em;
}

.feature-icon img.emoji {
    height: 28px;
    width: 28px;
    margin: 0;
}

.upload-text img.emoji,
.process-btn img.emoji,
.cancel-btn img.emoji,
.download-btn img.emoji {
    height: 1.2em;
    width: 1.2em;
    vertical-align: -0.2em;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

/* Beta Modal */
.beta-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.beta-modal.open {
    display: flex;
}

.beta-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(168, 85, 247, 0.35), transparent 55%),
                radial-gradient(circle at bottom, rgba(59, 130, 246, 0.45), transparent 60%);
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
}

.beta-modal-content {
    position: relative;
    max-width: 520px;
    margin: 0 24px;
    padding: 28px 28px 24px;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.35), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.25), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 32px 60px rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    z-index: 1;
}

.beta-modal-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #e5e7eb, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.beta-modal-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #cbd5f5;
}

.beta-modal-content a {
    color: #38bdf8;
    text-decoration: none;
}

.beta-modal-content a:hover {
    text-decoration: underline;
}

.beta-modal-btn {
    margin-top: 16px;
    padding: 12px 28px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .beta-modal-content {
        padding: 22px 20px 20px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    nav {
        display: flex;
        gap: 20px;
    }

    nav a {
        margin-left: 0;
    }

    .container {
        padding: 80px 20px 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats-container-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .demo-container {
        padding: 40px 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .player-container {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }
}

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

