:root {
    --charcoal-dark: #1a1a2e;
    --charcoal-medium: #2d2d44;
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --spark-orange: #ea580c;
    --spark-dark: #c2410c;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, rgba(234, 88, 12, 0.15) 100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--charcoal-dark) 0%, var(--charcoal-medium) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 26, 46, 0.3);
}

.btn-cta {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ─── Tool page styles ─── */

/* Wizard steps */
.wizard-step {
    display: none;
    animation: wizardFadeIn 0.35s ease;
}

.wizard-step.active {
    display: block;
}

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

.wizard-progress-bar {
    transition: width 0.4s ease;
}

.wizard-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.wizard-option:hover {
    border-color: #f59e0b;
    background: #fef3c7;
}

.wizard-option.selected {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

/* Result cards */
.result-card {
    opacity: 0;
    transform: translateY(20px);
    animation: resultSlideUp 0.4s ease forwards;
}

.result-card:nth-child(1) { animation-delay: 0s; }
.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.2s; }
.result-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes resultSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Bar charts */
.bar-chart-bar {
    transition: width 0.6s ease;
    min-width: 4px;
}

.bar-chart-bar-v {
    transition: height 0.6s ease;
    min-height: 4px;
}

/* Nesting diagram */
.nesting-sheet {
    transition: all 0.25s ease;
    cursor: pointer;
}

.nesting-sheet:hover,
.nesting-sheet.highlight {
    stroke: #ea580c;
    stroke-width: 2;
    fill-opacity: 0.3;
}

.nesting-table {
    transition: all 0.25s ease;
}

.nesting-table.highlight {
    stroke: #f59e0b;
    stroke-width: 2.5;
}

/* Tool cards on landing page */
.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Star rating */
.star-rating .star-filled {
    color: #f59e0b;
}

.star-rating .star-empty {
    color: #d1d5db;
}

/* Input styling for calculators */
.tool-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    outline: none;
}
