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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.author {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.github-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.github-link:hover {
    text-decoration: underline;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.slider-group {
    text-align: center;
    min-width: 180px;
}

.slider-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.slider-value {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.slider-value.k { color: #e11d48; }
.slider-value.s { color: #059669; }
.slider-value.max { color: #7c3aed; }

input[type="range"] {
    width: 180px;
    height: 6px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#k-slider::-webkit-slider-thumb { background: #e11d48; box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3); }
#s-slider::-webkit-slider-thumb { background: #059669; box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3); }
#max-slider::-webkit-slider-thumb { background: #7c3aed; box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3); }

#k-slider::-moz-range-thumb { background: #e11d48; border: none; box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3); }
#s-slider::-moz-range-thumb { background: #059669; border: none; box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3); }
#max-slider::-moz-range-thumb { background: #7c3aed; border: none; box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3); }

.slider-description {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.formula {
    text-align: center;
    font-size: 15px;
    color: #555;
    background: #f5f5f5;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.formula .k { color: #e11d48; font-weight: 600; }
.formula .s { color: #059669; font-weight: 600; }
.formula .max { color: #7c3aed; font-weight: 600; }

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.viz-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.viz-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.viz-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.examples-section {
    margin-top: 48px;
}

.examples-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    text-align: center;
}

.examples-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.example-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.example-card.selected {
    border: 2px solid #2563eb;
}

.example-channel {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.example-saturation {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin-bottom: 12px;
}

.example-params {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.example-param {
    font-size: 13px;
}

.example-param.k { color: #e11d48; }
.example-param.s { color: #059669; }
.example-param.max { color: #7c3aed; }

.example-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .controls {
        gap: 24px;
    }
    
    .slider-group {
        min-width: 150px;
    }

    input[type="range"] {
        width: 150px;
    }
}
