.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.color-picker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.color-picker-main {
    text-align: center;
}

.color-picker-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.color-picker-input {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.color-picker-input:hover {
    transform: scale(1.05);
}

.color-info {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.color-sample {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

.color-name {
    font-weight: 600;
    color: #2c3e50;
}

.color-formats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.format-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.format-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.input-with-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-copy input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.copy-btn {
    padding: 0.75rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
}

.copy-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #27ae60;
}

.palette-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: center;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    min-width: 180px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-outline {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-outline:hover {
    background: #e74c3c;
    color: white;
}

.color-palette-grid,
.color-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    min-height: 100px;
}

.palette-color,
.history-color {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: end;
    padding: 0.5rem;
}

.palette-color:hover,
.history-color:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.color-code {
    background: rgba(255,255,255,0.9);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.features-section {
    margin-top: 4rem;
    text-align: center;
}

.features-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .color-formats {
        grid-template-columns: 1fr;
    }
    
    .palette-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-actions {
        flex-direction: column;
    }
}