:root {
    --bg-main: #0b1120;
    --bg-card: #1e293b;
    --bg-darker: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-gold: #fbbf24;
    --primary-gold-hover: #f59e0b;
    --border-color: #334155;
    
    --color-green: #10B981;
    --color-yellow: #F59E0B;
    --color-red: #EF4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    text-align: center;
    padding: 20px 0 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-gold);
}

.header-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

/* Welcome Screen */
.icon-wrapper {
    font-size: 4rem;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Lead Capture Form */
.lead-capture-form {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    margin-bottom: 20px;
}

.lead-capture-form h3 {
    margin-bottom: 20px;
    color: var(--primary-gold);
    text-align: center;
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background-color: var(--primary-gold);
    color: #111827;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.glow-btn {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Quiz Screen */
.progress-container {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold);
}

#progress-text {
    color: var(--text-muted);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gold);
    width: 0%;
    transition: width 0.4s ease;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
}

.btn-option.selected {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
}

/* Confidence */
.confidence-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.4s ease forwards;
}

.confidence-container.hidden {
    display: none;
}

.confidence-container h3 {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
}

.confidence-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.btn-confidence {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 15px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-confidence:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-confidence[data-confidence="sure"]:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

.btn-confidence[data-confidence="doubt"]:hover {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.btn-confidence[data-confidence="guess"]:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

/* Results Screen */
.results-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Priority Ranking */
.priority-ranking {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--primary-gold);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.priority-ranking h3 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.priority-ranking ol {
    list-style-position: inside;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    padding: 0;
}

.priority-ranking ol li {
    margin-bottom: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

/* Dashboard Boxes */
.results-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
}

.box-red {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.box-yellow {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
}

.box-green {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.box-header {
    margin-bottom: 20px;
}

.box-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

.box-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.box-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.discipline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discipline-list li {
    background: rgba(0,0,0,0.3);
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.discipline-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.hidden-gap-alert {
    background: rgba(251, 191, 36, 0.1);
    color: var(--primary-gold);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
    display: block;
}

.box-red .discipline-list li { border-left: 4px solid var(--color-red); }
.box-yellow .discipline-list li { border-left: 4px solid var(--color-yellow); }
.box-green .discipline-list li { border-left: 4px solid var(--color-green); }

.discipline-score {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hidden-gap-alert {
    color: var(--color-yellow);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Summary Block */
.summary-block {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: left;
    border: 1px solid var(--border-color);
}

.summary-block p {
    margin-bottom: 8px;
}
.summary-block strong {
    color: var(--text-main);
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 30px 0;
    opacity: 0.7;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
    .confidence-buttons {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .results-actions {
        width: 100%;
    }
}
