:root {
    --primary-dark: #2A1538;
    --secondary-dark: #3D2150;
    --accent-purple: #7B4B9E;
    --muted-purple: #7B6B8A;
    --light-purple: #9B8BA8;
    --lighter-purple: #C9A0DC;
    --bg-light: #F3EDF7;
    --bg-white: #FFFFFF;
    --accent-orange: #F5A623;
    --text-dark: #1A2B4A;
    --border-light: #D5D0D8;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Header */
.header {
    background: var(--primary-dark);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 36px;
    width: auto;
}

.header-tag { 
    color: var(--light-purple); 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px;
}

/* Top Section - Sliders + Key Metrics */
.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .top-section { grid-template-columns: 1fr; }
}

/* Slider Panel */
.slider-panel {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(42, 21, 56, 0.08);
}

.panel-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-purple);
    margin-bottom: 20px;
    font-weight: 600;
}

.slider-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    .slider-row { grid-template-columns: 1fr; gap: 16px; }
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-label span { 
    font-size: 0.85rem; 
    color: var(--text-dark); 
    font-weight: 500; 
}

.slider-value { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--accent-orange); 
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-light);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--lighter-purple), var(--primary-dark));
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(42, 21, 56, 0.3);
    margin-top: -7px;
    border: 3px solid var(--accent-purple);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--lighter-purple), var(--primary-dark));
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(42, 21, 56, 0.3);
    border: 3px solid var(--accent-purple);
}

/* Key Metrics Panel */
.key-metrics {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.key-metric {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}

.key-metric-label {
    color: var(--light-purple);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.key-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.key-metric-value.white { color: var(--bg-white); }

.key-metric-sub {
    font-size: 0.65rem;
    color: var(--light-purple);
    margin-top: 2px;
}

/* Comparison Section */
.comparison-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .comparison-section { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .comparison-section { grid-template-columns: 1fr; }
}

/* Compact Card */
.compact-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(42, 21, 56, 0.08);
}

.compact-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-header.fte { background: var(--primary-dark); }
.compact-header.idw { background: linear-gradient(135deg, var(--accent-purple), var(--secondary-dark)); }
.compact-header.savings { background: linear-gradient(135deg, var(--accent-orange), #e6951a); }

.compact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.compact-icon img { 
    width: 36px; 
    height: 36px; 
    object-fit: contain; 
}

.compact-title { 
    color: var(--bg-white); 
    font-size: 0.95rem; 
    font-weight: 600; 
}

.compact-body { padding: 16px 20px; }

.compact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-light);
    font-size: 0.85rem;
}

.compact-row:last-child { border-bottom: none; }

.compact-row .label { color: var(--muted-purple); }
.compact-row .value { font-weight: 600; color: var(--text-dark); }

.compact-row.highlight {
    background: var(--bg-light);
    margin: 8px -20px;
    padding: 12px 20px;
    border: none;
}

.compact-row.highlight .label { 
    color: var(--primary-dark); 
    font-weight: 600; 
}

.compact-row.highlight .value { 
    color: var(--accent-orange); 
    font-size: 1.1rem; 
    font-weight: 700; 
}

.utilization-badge {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--bg-white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    margin-left: 4px;
    font-weight: 500;
}

/* Multi-Deployment Row */
.multi-row {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(42, 21, 56, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.multi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-purple);
    font-weight: 600;
}

.multi-items {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.multi-item {
    text-align: center;
}

.multi-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-purple);
    line-height: 1;
}

.multi-count-label {
    font-size: 0.65rem;
    color: var(--muted-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multi-savings {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-top: 4px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 20px 40px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img { 
    height: 28px; 
    width: auto; 
}

.footer p { 
    color: var(--light-purple); 
    font-size: 0.8rem; 
}
