/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #4d5dff;
    --primary-hover: #3a47c9;
    --primary-light: #eef2ff;
    --secondary: #1f2937;
    --text: #4b5563;
    --bg: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 16px;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
.brand-font {
    font-family: 'Syne', sans-serif;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Card */
.wizard-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.step.active {
    display: block;
}

.step-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
    line-height: 1.2;
}

.step-description {
    margin-bottom: 40px;
    color: #6b7280;
    font-size: 18px;
}

/* Form Elements */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.option-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.option-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(77, 93, 255, 0.1);
}

.option-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.option-card p {
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 18px;
    font-family: inherit;
    color: var(--secondary);
    transition: all 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(77, 93, 255, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

/* Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 93, 255, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-back {
    background-color: transparent;
    color: #6b7280;
    padding: 12px 24px;
    font-weight: 500;
    min-width: auto;
}

.btn-back:hover {
    background-color: #f3f4f6;
    color: var(--secondary);
    transform: none;
    box-shadow: none;
}

/* Results */
.result-container {
    text-align: center;
    padding: 20px 0;
}

.score-display {
    font-size: 80px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin: 24px 0;
    letter-spacing: -2px;
}

.action-items {
    text-align: left;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 24px;
    border-radius: 12px;
    margin: 40px 0;
}

.action-items h3 {
    font-size: 16px;
    color: #b45309;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-item {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 16px;
    color: #78350f;
}

.action-item::before {
    content: "→";
    color: #d97706;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.risk-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.risk-critical {
    background: #fee2e2;
    color: #991b1b;
}

.risk-high {
    background: #ffedd5;
    color: #9a3412;
}

.risk-medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-low {
    background: #dcfce7;
    color: #166534;
}

.confidence-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.pillars-section,
.roadmap-section,
.impact-section {
    text-align: left;
    margin: 24px 0;
}

.pillars-section h3,
.roadmap-section h3,
.impact-section h3 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.pillar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f8fafc;
}

.pillar-title {
    font-weight: 600;
    color: #111827;
}

.pillar-sub {
    font-size: 12px;
    color: #6b7280;
}

.pillar-score {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    color: #1f2937;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.roadmap-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
}

.roadmap-card h4 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #374151;
}

.roadmap-item {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
}

.roadmap-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.impact-item {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef2ff;
}

.empty-note {
    font-size: 13px;
    color: #6b7280;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wizard-card {
        padding: 24px;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .step-title {
        font-size: 24px;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        margin-top: 10px;
    }

    .nav-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}
