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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.header {
    background: linear-gradient(135deg, rgba(107, 140, 174, 0.15) 0%, rgba(107, 140, 174, 0.05) 100%);
    color: white;
    padding: 48px 32px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: white;
}

.header p {
    opacity: 0.6;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.content {
    padding: 32px;
    min-height: 100%;
}

.demo-section {
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: slideInSection 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.demo-section:nth-child(1) { animation-delay: 0.05s; }
.demo-section:nth-child(2) { animation-delay: 0.1s; }
.demo-section:nth-child(3) { animation-delay: 0.15s; }
.demo-section:nth-child(4) { animation-delay: 0.2s; }
.demo-section:nth-child(5) { animation-delay: 0.25s; }
.demo-section:nth-child(6) { animation-delay: 0.3s; }
.demo-section:nth-child(7) { animation-delay: 0.35s; }
.demo-section:nth-child(8) { animation-delay: 0.4s; }
.demo-section:nth-child(9) { animation-delay: 0.45s; }
.demo-section:nth-child(10) { animation-delay: 0.5s; }

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

.demo-section:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(107, 140, 174, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.demo-section h2 {
    color: #6b8cae;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-section:hover h2 {
    color: #8fb3d0;
}

.demo-section p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2px;
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(255, 255, 255, 0.02);
    color: white;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: rgba(107, 140, 174, 0.5);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(107, 140, 174, 0.1);
}

button {
    background: rgba(107, 140, 174, 0.15);
    color: #6b8cae;
    border: 1px solid rgba(107, 140, 174, 0.3);
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    letter-spacing: 0.2px;
}

button:hover {
    background: rgba(107, 140, 174, 0.25);
    border-color: rgba(107, 140, 174, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 140, 174, 0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.results {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.result-item {
    margin-bottom: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 400;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    animation: slideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-item.success {
    background: rgba(40, 167, 69, 0.1);
    border-left: 2px solid #28a745;
    color: #4ade80;
}

.result-item.info {
    background: rgba(23, 162, 184, 0.1);
    border-left: 2px solid #17a2b8;
    color: #38bdf8;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6b8cae 0%, #8fb3d0 100%);
    width: 0%;
    transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(107, 140, 174, 0.2);
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-value {
    color: #6b8cae;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.warning {
    background: rgba(255, 193, 7, 0.05);
    border-left: 2px solid #ffc107;
    color: #ffd700;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.5;
}

.demo-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-controls button {
    flex: 1;
    min-width: 140px;
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 22px;
    }

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

    .demo-controls {
        flex-direction: column;
    }

    .demo-controls button {
        width: 100%;
    }
}
