/* ============================================
   Mindset Aptitude Test — Styles
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient-h: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --grade-a: #00d2ff;
    --grade-b: #667eea;
    --grade-c: #ffa502;
    --grade-d: #ff4757;
    --border: #2a2a40;
    --success: #2ed573;
    --warning: #ffa502;
    --danger: #ff4757;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}
.screen.active {
    display: block;
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(102, 126, 234, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
}

.logo-area {
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 8px;
}

.logo-text {
    font-size: 48px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
}

.logo-sub {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 4px;
}

.tagline {
    margin-bottom: 40px;
}

.tagline-main {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tagline-main em {
    color: var(--accent-primary);
    font-style: normal;
    font-weight: 600;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.info-card-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.warning-box {
    background: rgba(255, 165, 2, 0.08);
    border: 1px solid rgba(255, 165, 2, 0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    max-width: 600px;
    margin-bottom: 32px;
    text-align: left;
}

.warning-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.warning-box strong {
    color: var(--warning);
}

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

.input-group input {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    color: var(--text-secondary);
    border-color: var(--text-muted);
}

.btn--large {
    padding: 16px 40px;
    font-size: 17px;
}

.footer-note {
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   TEST SCREEN
   ============================================ */

.test-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.test-progress {
    flex: 1;
    min-width: 150px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.timer-icon {
    font-size: 16px;
}

#timerDisplay {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.category-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.test-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.scenario-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
}

.scenario-header {
    margin-bottom: 16px;
}

.scenario-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scenario-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}

.scenario-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.scenario-prompt p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
}

.answer-area {
    animation: slideUp 0.4s ease;
}

.answer-area textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.answer-area textarea::placeholder {
    color: var(--text-muted);
}

.answer-area textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.answer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.char-count {
    font-size: 13px;
    color: var(--text-muted);
}

.answer-actions {
    display: flex;
    gap: 12px;
}

/* ============================================
   RESULTS SCREEN
   ============================================ */

.results-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 70%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.results-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.results-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.results-overall {
    font-size: 16px;
    color: var(--text-secondary);
}

.grade-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mindset-type {
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease;
}

.mindset-type__icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.mindset-type__label {
    font-size: 28px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.mindset-type__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Scores Grid */
.scores-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.score-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.score-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.score-card__icon {
    font-size: 20px;
}

.score-card__label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.score-card__value {
    font-size: 20px;
    font-weight: 800;
}

.score-card__bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.score-card__fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease-out;
    width: 0%;
}

.score-card__fill.grade--a { background: var(--grade-a); }
.score-card__fill.grade--b { background: var(--grade-b); }
.score-card__fill.grade--c { background: var(--grade-c); }
.score-card__fill.grade--d { background: var(--grade-d); }

.score-card__value.grade--a { color: var(--grade-a); }
.score-card__value.grade--b { color: var(--grade-b); }
.score-card__value.grade--c { color: var(--grade-c); }
.score-card__value.grade--d { color: var(--grade-d); }

.score-card__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Analysis */
.analysis-section {
    margin-bottom: 32px;
}

.analysis-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.analysis-block__heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.analysis-block__list {
    list-style: none;
}

.analysis-block__list li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.analysis-block__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

.analysis-block__list li:not(:last-child) {
    border-bottom: 1px solid rgba(42, 42, 64, 0.5);
}

/* GAIA Badge */
.gaia-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.audience-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--text-muted);
}

.audience-dot {
    color: var(--accent-primary);
}

/* Grade selector */
.input-group select {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    text-align: center;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0a0b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.input-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Scenario reminder */
.scenario-reminder {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   RESULTS — CAREER PATHS
   ============================================ */

.results-level {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.careers-heading {
    margin-bottom: 24px;
}

/* Results Footer */
.results-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.careers-heading h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.careers-heading p {
    font-size: 14px;
    color: var(--text-secondary);
}

.career-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.career-block__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.career-block__icon {
    font-size: 28px;
}

.career-block__header h3 {
    font-size: 18px;
    font-weight: 700;
}

.career-block__score {
    font-size: 13px;
    color: var(--accent-primary);
}

.career-block__why {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.career-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.career-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.career-col ul {
    list-style: none;
}

.career-col ul li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid rgba(42, 42, 64, 0.5);
}

.career-col ul li:last-child {
    border-bottom: none;
}

.career-emoji {
    margin-right: 6px;
}

.career-field {
    color: var(--text-muted);
    font-size: 12px;
}

.career-level-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(102, 126, 234, 0.06);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .career-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Results header */
.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.results-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-overall {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .logo-text {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .logo-icon {
        font-size: 48px;
    }

    .tagline-main {
        font-size: 17px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .test-header {
        padding: 10px 16px;
        gap: 10px;
    }

    .category-badge {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .scenario-card {
        padding: 20px 16px;
    }

    .scenario-title {
        font-size: 20px;
    }

    .results-header h1 {
        font-size: 22px;
    }

    .mindset-type__label {
        font-size: 24px;
    }

    .score-card__header {
        gap: 8px;
    }

    .score-card__label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .landing-content {
        padding-top: 40px;
    }

    .logo-text {
        font-size: 28px;
    }

    .btn--large {
        padding: 14px 32px;
        font-size: 15px;
    }

    .timer-box {
        padding: 6px 12px;
    }

    #timerDisplay {
        font-size: 16px;
    }

    .answer-area textarea {
        min-height: 150px;
        padding: 16px;
    }

    .answer-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .answer-actions {
        justify-content: stretch;
    }

    .answer-actions .btn {
        flex: 1;
    }
}
