/* =========================================================
   Global
========================================================= */

:root {
    --background: #f6f8fc;
    --surface: #ffffff;
    --text: #111827;
    --muted: #667085;
    --border: #e4e7ec;
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --success: #067647;
    --danger: #b42318;
    --shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
}

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

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

    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}


/* =========================================================
   Navigation
========================================================= */

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
}

.nav-badge {
    font-size: 13px;
    color: var(--muted);
}


/* =========================================================
   Hero
========================================================= */

.hero {
    padding: 80px 0 60px;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.eyebrow {
    display: inline-block;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;

    color: var(--primary);
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    max-width: 650px;
    margin: 22px auto 0;

    color: var(--muted);
    font-size: 17px;
}


/* =========================================================
   Upload Card
========================================================= */

.upload-card {
    max-width: 760px;
    margin: 0 auto;

    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: 22px;
    padding: 18px;

    box-shadow: var(--shadow);
}

.drop-zone {
    border: 2px dashed #cfd4dc;
    border-radius: 16px;

    padding: 60px 30px;
    text-align: center;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: #f5f3ff;
}

.upload-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    border-radius: 16px;

    background: #eef2ff;
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 700;
}

.drop-zone h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.drop-zone p {
    color: var(--muted);
    margin-bottom: 24px;
}

.upload-button {
    display: inline-flex;

    background: var(--primary);
    color: white;

    padding: 12px 22px;
    border-radius: 10px;

    font-weight: 700;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.upload-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.selected-file {
    margin-top: 18px;
    color: var(--success);
    font-weight: 600;
}

.analyze-button {
    width: 100%;

    margin-top: 14px;

    border: none;
    border-radius: 11px;

    padding: 14px;

    background: var(--primary);
    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.analyze-button:disabled {
    background: #c7cad1;
    cursor: not-allowed;
}


/* =========================================================
   Loading
========================================================= */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 20px;

    color: var(--muted);
}

.spinner {
    width: 20px;
    height: 20px;

    border: 3px solid #e4e7ec;
    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   Errors
========================================================= */

.error-message {
    margin-top: 14px;

    padding: 13px;

    border-radius: 10px;

    background: #fef3f2;
    color: var(--danger);

    font-size: 14px;
}


/* =========================================================
   Results
========================================================= */

.results-section {
    padding: 30px 0 80px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 28px;
}

.results-header h2 {
    font-size: 34px;
    line-height: 1.1;
}

.secondary-button {
    border: 1px solid var(--border);
    background: var(--surface);

    padding: 10px 16px;

    border-radius: 9px;

    cursor: pointer;
    font-weight: 600;
}


/* =========================================================
   Dashboard
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;
}

.score-card,
.stats-card,
.result-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 26px;

    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.card-label {
    color: var(--muted);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.score {
    margin-top: 8px;

    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.rating {
    margin-top: 10px;

    color: var(--primary);
    font-weight: 700;
}

.score-bar {
    height: 9px;

    background: #eef0f4;

    border-radius: 99px;

    margin-top: 24px;

    overflow: hidden;
}

.score-progress {
    height: 100%;
    width: 0;

    background: var(--primary);

    border-radius: inherit;

    transition: width 0.8s ease;
}


/* =========================================================
   Stats
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;

    margin-top: 22px;
}

.stat {
    padding: 18px;

    background: #f8f9fc;

    border-radius: 12px;
}

.stat strong {
    display: block;

    font-size: 27px;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   Result Columns
========================================================= */

.two-column {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

    margin-top: 20px;
}

.result-card {
    margin-top: 20px;
}

.two-column .result-card {
    margin-top: 0;
}

.result-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    padding: 12px 14px;

    background: #f8f9fc;

    border-radius: 10px;

    font-size: 14px;
}


/* =========================================================
   Skills
========================================================= */

.skill-category {
    margin-bottom: 20px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h4 {
    margin-bottom: 10px;

    font-size: 14px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 10px;

    background: #eef2ff;
    color: #3730a3;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   Sections
========================================================= */

.sections-container {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.section-item {
    padding: 13px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;
}

.section-found {
    background: #ecfdf3;
    color: var(--success);
}

.section-missing {
    background: #fef3f2;
    color: var(--danger);
}


/* =========================================================
   Footer
========================================================= */

footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);

    color: var(--muted);

    text-align: center;

    font-size: 13px;
}


/* =========================================================
   Utilities
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 750px) {

    .hero {
        padding-top: 50px;
    }

    .dashboard-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .results-header {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }

    .sections-container {
        grid-template-columns: 1fr;
    }

    .drop-zone {
        padding: 45px 20px;
    }
}