:root {
    --bg: #f4f5f7;
    --ink: #101218;
    --muted: #69707d;
    --line: #d9dde5;
    --dark: #07090d;
    --blue: #1367ff;
    --card: #ffffff;
    --radius: 22px;
    --shadow: 0 16px 50px rgba(16, 18, 24, 0.08);
}


/* =========================================================
   Reset / Base
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background: var(--bg);
    color: var(--ink);

    font:
        16px/1.6
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body > main {
    flex: 1 0 auto;

    width: 100%;

    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   Global Shell
========================================================= */

.shell {
    width: min(1180px, calc(100% - 36px));

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   Header
========================================================= */

.site-header {
    flex: 0 0 auto;

    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(244, 245, 247, 0.92);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(217, 221, 229, 0.85);
}

.nav {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* =========================================================
   Brand
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;
}

.brand-mark img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.brand-name {
    color: var(--ink);

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: -0.02em;
}


/* Fallback text icon */

.brand-dot {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--dark);
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.08em;
}


/* =========================================================
   Navigation
========================================================= */

.site-nav,
.nav nav {
    display: flex;
    align-items: center;

    gap: 22px;
}

.site-nav a,
.nav nav a {
    position: relative;

    color: #434954;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.site-nav a:hover,
.nav nav a:hover {
    color: var(--blue);
}


/* =========================================================
   Hero
========================================================= */

.hero {
    padding: 78px 0 46px;
}

.hero-card {
    position: relative;

    overflow: hidden;

    padding: clamp(34px, 6vw, 74px);

    border-radius: 32px;

    background: var(--dark);
    color: #ffffff;
}

.hero-card::after {
    content: "";

    position: absolute;

    width: 440px;
    height: 440px;

    top: -240px;
    right: -180px;

    border-radius: 50%;

    background: rgba(19, 103, 255, 0.2);

    filter: blur(15px);

    pointer-events: none;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #70a2ff;

    font-size: 0.75rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

.hero h1 {
    max-width: 920px;

    margin: 0.15em 0 0.3em;

    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: 0.95;

    letter-spacing: -0.055em;
}

.hero p {
    max-width: 720px;

    margin-bottom: 0;

    color: #c8ced8;

    font-size: 1.08rem;
}


/* =========================================================
   General Sections
========================================================= */

.section {
    padding: 28px 0 74px;
}

main > .section:last-child {
    margin-bottom: 0;
}

.section-head {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.section-head h2 {
    margin: 0;

    font-size: clamp(1.8rem, 4vw, 3rem);

    letter-spacing: -0.04em;
}


/* =========================================================
   Jobs List
========================================================= */

.jobs {
    display: grid;

    gap: 18px;
}

.job-card {
    display: grid;

    grid-template-columns: 220px 1fr auto;

    align-items: center;

    gap: 26px;

    padding: 18px;

    background: var(--card);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-2px);

    border-color: #cbd1dc;

    box-shadow: 0 20px 55px rgba(16, 18, 24, 0.11);
}

.thumb {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 16px;

    background: #e8ebf0;
}

.thumb-placeholder {
    display: grid;
    place-items: center;

    color: #8b93a1;

    font-weight: 700;
}

.job-meta,
.chips {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.chip {
    padding: 6px 10px;

    background: #eef2f8;

    border: 1px solid #e1e6ee;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 750;
}

.job-card h3 {
    margin: 8px 0 6px;

    font-size: 1.5rem;
    line-height: 1.25;

    letter-spacing: -0.03em;
}

.job-card p {
    margin: 0;

    color: var(--muted);
}

.job-card .fee {
    margin-top: 8px;

    color: var(--ink);

    font-weight: 800;
}


/* =========================================================
   Buttons
========================================================= */

.btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 18px;

    border: 0;
    border-radius: 999px;

    background: var(--dark);
    color: #ffffff;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);

    opacity: 0.92;
}

.btn.blue {
    background: var(--blue);
}

.btn.light {
    background: #eef2f7;
    color: #171a21;
}

.btn.danger {
    background: #9f1b1b;
}


/* =========================================================
   Job Detail Page
========================================================= */

.detail {
    padding: 62px 0 76px;
}

.detail-grid {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 330px;

    gap: 34px;
}

.panel {
    padding: 28px;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail h1 {
    margin: 0.2em 0;

    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;

    letter-spacing: -0.055em;
}

.prose h2 {
    margin-top: 2em;
}

.prose p,
.prose li {
    color: #404652;
}

.aside {
    position: sticky;
    top: 100px;

    height: max-content;
}

.fact {
    padding: 14px 0;

    border-bottom: 1px solid var(--line);
}

.fact:first-child {
    padding-top: 0;
}

.fact:last-child {
    border-bottom: 0;
}

.fact small {
    display: block;

    margin-bottom: 2px;

    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


/* =========================================================
   Forms
========================================================= */

.form-shell {
    width: min(760px, calc(100% - 36px));

    margin: 54px auto 76px;
}

.form-card {
    padding: clamp(24px, 5vw, 46px);

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 28px;

    box-shadow: var(--shadow);
}

.form-card h1,
.form-card h2 {
    letter-spacing: -0.04em;
}

.grid2 {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.field {
    margin-bottom: 17px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    font-weight: 750;
}

.field input,
.field textarea,
.field select {
    width: 100%;

    padding: 13px 14px;

    background: #ffffff;
    color: var(--ink);

    border: 1px solid #cfd5df;
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;

    border-color: var(--blue);

    box-shadow: 0 0 0 3px rgba(19, 103, 255, 0.12);
}

.field textarea {
    min-height: 150px;

    resize: vertical;
}

.hint {
    color: var(--muted);

    font-size: 0.88rem;
}


/* =========================================================
   Alerts
========================================================= */

.alert {
    margin: 0 0 18px;

    padding: 14px 16px;

    background: #eef6ff;

    border: 1px solid #cfe2ff;
    border-radius: 14px;
}

.alert.error {
    background: #fff0f0;

    border-color: #ffd0d0;
}


/* =========================================================
   Applicant/Admin Dashboard
========================================================= */

.dashboard {
    padding: 46px 0 76px;
}

.stats {
    margin: 22px 0;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.stat {
    padding: 20px;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 18px;
}

.stat strong {
    display: block;

    font-size: 2rem;
    line-height: 1.15;
}


/* =========================================================
   Tables
========================================================= */

.table-wrap {
    overflow: auto;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 18px;
}

.table {
    width: 100%;

    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;

    text-align: left;
    vertical-align: top;

    border-bottom: 1px solid var(--line);
}

.table tr:last-child td {
    border-bottom: 0;
}

.table th {
    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* =========================================================
   Admin Bar
========================================================= */

.adminbar {
    flex: 0 0 auto;

    padding: 12px 0;

    background: #080a0e;
    color: #ffffff;
}

.adminbar .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.adminbar a {
    margin-right: 16px;

    color: #ffffff;

    text-decoration: none;
}

.adminbar a:hover {
    text-decoration: underline;
}


/* =========================================================
   Status
========================================================= */

.status {
    font-weight: 800;

    text-transform: capitalize;
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
    flex: 0 0 auto;

    width: 100%;

    margin-top: auto;

    padding: 46px 0;

    background: var(--dark);
    color: #c9ced8;
}

.footer-grid {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;
}

.footer-grid strong {
    color: #ffffff;
}

.footer-grid p {
    margin-bottom: 0;
}

.footer-grid a {
    display: block;

    color: #ffffff;

    text-decoration: none;
}

.footer-grid a + a {
    margin-top: 4px;
}

.footer-grid a:hover {
    text-decoration: underline;
}


/* =========================================================
   Utility Classes
========================================================= */

.muted {
    color: var(--muted);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 850px) {

    .job-card {
        grid-template-columns: 135px 1fr;
    }

    .job-card > .btn {
        grid-column: 1 / -1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .aside {
        position: static;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .site-nav a:not(:last-child),
    .nav nav a:not(:last-child) {
        display: none;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 560px) {

    .shell {
        width: min(100% - 24px, 1180px);
    }

    .nav {
        min-height: 66px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .hero {
        padding: 42px 0 30px;
    }

    .hero-card {
        padding: 30px 24px;

        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 13vw, 4rem);
    }

    .section {
        padding: 22px 0 54px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-card {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .job-card > .btn {
        grid-column: auto;
    }

    .thumb {
        aspect-ratio: 16 / 9;
    }

    .detail {
        padding: 40px 0 58px;
    }

    .panel {
        padding: 22px;
    }

    .grid2 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .form-shell {
        width: calc(100% - 24px);

        margin-top: 32px;
        margin-bottom: 54px;
    }

    .footer-grid {
        flex-direction: column;

        gap: 28px;
    }

}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   Careers Footer
========================================================= */

.site-footer {
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-brand p {
    max-width: 340px;
    margin: 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.footer-links h2 {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links a:hover {
    transform: translateX(3px);
}

.footer-social a i {
    font-size: 1rem;
}

.footer-admin a {
    opacity: 0.75;
}

.footer-admin a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
}

.footer-system {
    opacity: 0.6;
}


/* =========================================================
   Responsive Footer
========================================================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

}

@media (max-width: 600px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}