body {
    font-family: 'Fira Code', monospace;
    background: #0a0a0a;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    color: #e4e4e7;
    font-weight: 400;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #111111;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-height: auto;
    height: auto;
}

h1 {
    text-align: center;
    color: #f4f4f5;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

.subtitle {
    text-align: center;
    color: #a1a1aa;
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.025em;
}

.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    padding: 30px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
}

.input-section label {
    font-weight: 500;
    font-size: 16px;
    color: #a1a1aa;
    letter-spacing: 0.025em;
}

.input-section input {
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Fira Code', monospace;
    background: #0a0a0a;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    width: 120px;
    text-align: center;
    color: #f4f4f5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-section input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-section button {
    background: #10b981;
    color: #0a0a0a;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-section button:hover {
    background: #059669;
    transform: translateY(-1px);
}

.stats-section {
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, margin-bottom 0.6s ease;
}

.stats-section.visible {
    margin-bottom: 50px;
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

.stats-section h2 {
    text-align: center;
    color: #f4f4f5;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: -0.025em;
}

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

.stat-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
    border-color: #3f3f46;
    transform: translateY(-2px);
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #a1a1aa;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-card p {
    font-size: 28px;
    font-weight: 600;
    color: #10b981;
    margin: 0;
    font-family: 'Fira Code', monospace;
}

.visualization-section {
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, margin-bottom 0.6s ease;
}

.visualization-section.visible {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

.visualization-section h2 {
    text-align: center;
    color: #f4f4f5;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: -0.025em;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: #a1a1aa;
    font-size: 14px;
    margin-bottom: 8px;
}

.progress-bar {
    height: 24px;
    background: #27272a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #3f3f46;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 11px;
}


.explanation {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    text-align: center;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, margin-bottom 0.6s ease;
}

.explanation.visible {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .input-section,
    .progress-container {
        padding: 20px;
    }

    .stat-card {
        padding: 20px;
    }
}
