@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0b0e13;
    --panel: #121822;
    --line: #263140;
    --text: #f4f7fb;
    --muted: #9ba8b8;
    --lime: #c8f169;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', Arial, sans-serif;
}

/* NAVIGATION */

.nav {
    height: 76px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.brand {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.brand span {
    color: var(--lime);
}

.nav-right {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-right a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 4px;
}

.nav-right a:hover {
    color: var(--lime);
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--lime);
    border-radius: 50%;
    margin-right: 8px;
}

/* MAIN CONTAINER */

.container {
    max-width: 1160px;
    margin: auto;
    padding: 0 24px;
    min-width: 0;
}

/* HERO SECTION */

.hero {
    min-height: min(530px, 80vh);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    padding: 70px 0;
}

.eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--lime);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -4px;
    line-height: 1.04;
    margin: 0;
}

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

.sub {
    max-width: 540px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
    margin: 24px 0 30px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--lime);
    color: #10150a;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 12px;
}

.primary-link.search-link {
    background: #2563eb;
    color: white;
}

.primary-link.dashboard-link {
    background: #334155;
    color: white;
}

/* AI CARD */

.hero-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #182332, #10151e);
    padding: 26px;
    text-align: center;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--muted);
}

.pulse {
    color: var(--lime);
}

.orb {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 28px;
    border: 1px solid #c8f16955;
    box-shadow: 0 0 70px #c8f16918;
}

.orb-inner {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--lime);
    color: #10150a;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 0 40px #c8f16966;
}

.hero-card p {
    font-size: 13px;
    color: var(--muted);
}

.mini-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.mini-tags span {
    font-size: 9px;
    border: 1px solid var(--line);
    padding: 7px 9px;
    border-radius: 20px;
}

/* SECTIONS */

.section {
    padding: 65px 0;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 25px;
}

.section h2 {
    font-size: 34px;
    margin: 0;
}

.muted {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 330px;
}

/* INPUTS AND BUTTONS */

.recommend-form,
.job-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input,
select {
    background: #111822;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 15px;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    min-width: 0;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--lime);
}

.recommend-form input {
    flex: 1;
}

.button {
    background: var(--lime);
    color: #10150a;
    border: 0;
    border-radius: 5px;
    padding: 0 20px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    min-height: 47px;
}

.button:hover {
    transform: translateY(-2px);
}

.skill-help {
    margin: 14px 0 9px;
    color: var(--muted);
    font-size: 11px;
}

.skill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.skill-options button {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease,
        background-color 0.18s ease, transform 0.18s ease;
}

.skill-options button:hover {
    transform: translateY(-1px);
    border-color: var(--lime);
    color: var(--text);
}

.skill-options button.is-selected {
    border-color: var(--lime);
    background: #c8f1691c;
    color: var(--lime);
}

/* ML RESULTS */

.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.match-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.match-card h3 {
    font-size: 14px;
}

.match-score {
    font: 11px 'DM Mono';
    color: var(--lime);
}

.match-bar {
    height: 4px;
    background: #27313d;
    margin: 12px 0;
    border-radius: 5px;
    overflow: hidden;
}

.match-bar span {
    display: block;
    height: 100%;
    background: var(--lime);
}

/* JOB TRACKER */

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

.job-form input {
    flex: 1 1 170px;
}

.job-form select {
    flex: 0 1 150px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 700px;
    text-align: left;
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

th {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: var(--muted);
    font-weight: 400;
}

.empty {
    text-align: center;
    color: var(--muted);
}

.status-select {
    padding: 8px;
    font-size: 10px;
}

.delete-btn {
    border: 0;
    background: transparent;
    color: #ff9292;
    cursor: pointer;
}

.message {
    min-height: 20px;
    color: var(--lime);
    font: 11px 'DM Mono';
}

/* FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 30px 0 45px;
    color: var(--muted);
    font-size: 9px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 720px) {
    .nav {
        height: auto;
        min-height: 68px;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 12px 18px;
    }

    .nav-right {
        width: 100%;
        gap: 6px 12px;
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 0;
        min-height: auto;
    }

    .hero h1 {
        letter-spacing: -2px;
        font-size: clamp(38px, 10vw, 58px);
    }

    .hero-card {
        min-height: 280px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    }

    .primary-link {
        min-height: 48px;
        padding: 12px;
    }

    .section-heading {
        display: block;
    }

    .section-heading .muted {
        margin-top: 12px;
    }

    .section {
        padding: 42px 0;
    }

    .section h2 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .recommend-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .recommend-form input,
    .recommend-form .button {
        width: 100%;
        min-height: 48px;
    }

    .job-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .job-form input,
    .job-form select,
    .job-form .button {
        width: 100%;
        min-height: 48px;
    }

    .table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 12px;
        white-space: nowrap;
    }

    footer {
        flex-direction: column;
    }
}

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

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-card {
        padding: 20px 14px;
    }

    .orb {
        width: 140px;
        height: 140px;
    }
}