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

:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --bg: #0a0f1e;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.03);
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15), transparent 50%);
    pointer-events: none;
}

.container {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 9999px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Intro screen */
.intro { text-align: center; padding: 1rem 0; }

.intro-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.intro h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.intro h1 .gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Question screen */
.question {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
    text-align: right;
    transition: all 0.2s;
    width: 100%;
}

.option:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateX(-4px);
}

.option.selected {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
}

/* Lead capture */
.lead-form .lead-emoji {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.lead-form h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.lead-form .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.field input {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    text-align: right;
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
}

.field input.error {
    border-color: var(--warning);
}

.privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 10px 30px -10px rgba(8, 145, 178, 0.6);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(8, 145, 178, 0.8);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-row .btn { flex: 1; }

/* Results */
.results { text-align: center; }

.results-emoji {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
}

.results-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.results-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.results-score {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.results-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-align: right;
    line-height: 1.8;
}

.insight-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: right;
}

.insight-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-section li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.insight-section li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.strengths li::before { background: var(--success); }
.gaps li::before { background: var(--warning); }
.actions li::before { background: var(--primary); }

.cta-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.cta-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.hidden { display: none; }

.fade-in {
    animation: fadeIn 0.4s ease;
}

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

@media (max-width: 480px) {
    .container { padding: 1.5rem; }
    .question { font-size: 1.15rem; }
    .intro h1 { font-size: 1.5rem; }
    .btn-row { flex-direction: column; }
}
