:root {
    --primary: #2244ec;
    --primary-dark: #1a35bb;
    --primary-light: #4d6ff0;
    --primary-soft: rgba(255, 255, 255, 0.18);
    --white: #ffffff;
    --surface: #f3f4f9;
    --surface-2: #ebedf4;
    --border: #e4e7ed;
    --text: #0f1729;
    --text-2: #4a5578;
    --text-3: #9aa5bc;
    --danger: #ff2a2a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-card: 0 16px 34px rgba(15, 23, 41, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--white);
    color: var(--text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    min-height: 54px;
    background: var(--primary);
    color: var(--white);
}

.header-content {
    width: 100%;
    max-width: none;
    min-height: 54px;
    margin: 0;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo {
    grid-column: 1;
    justify-self: start;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    transition: opacity 150ms ease;
}

.main-nav a:hover {
    opacity: 0.72;
}

.logo img {
    width: auto;
    height: 34px;
    object-fit: contain;
}

.nav-buttons {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-buttons a {
    font-size: 12px;
    font-weight: 700;
    transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.nav-buttons a:hover {
    transform: translateY(-1px);
}

.nav-buttons .login {
    color: var(--white);
}

.nav-buttons .login:hover {
    opacity: 0.8;
}

.nav-buttons .signup {
    min-width: 78px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--primary);
    text-align: center;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.home-panel {
    min-width: 0;
    padding: 58px 56px 66px;
}

.home-panel--teams {
    background: var(--white);
}

.home-panel--resume {
    background: var(--primary);
    color: var(--white);
}

.panel-inner {
    width: 100%;
}

.teams-inner {
    max-width: 840px;
    margin: 0 auto;
}

.resume-inner {
    max-width: 460px;
}

.intro-block {
    max-width: 470px;
}

.intro-block h1 {
    margin: 16px 0 10px;
    font-size: clamp(29px, 2.1vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.9px;
    font-weight: 800;
}

.intro-block p {
    max-width: 450px;
    margin: 0 0 26px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.65;
}

.intro-block--light p {
    color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: rgba(34, 68, 236, 0.09);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.eyebrow--light {
    background: rgba(255, 255, 255, 0.17);
    color: var(--white);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 36px;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.primary-button {
    background: var(--primary);
    color: var(--white);
}

.secondary-button {
    background: var(--white);
    color: var(--primary);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 41, 0.14);
}

.button-icon {
    font-size: 13px;
}

.team-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(275px, 0.94fr);
    margin-top: 34px;
    overflow: hidden;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.team-overview {
    min-width: 0;
    padding: 28px 28px 26px;
}

.team-overview > h2,
.team-profile > h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
}

.team-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.team-tab {
    appearance: none;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-2);
    padding: 7px 13px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.team-tab:hover {
    transform: translateY(-1px);
}

.team-tab.active {
    background: var(--primary);
    color: var(--white);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.member-card {
    min-width: 0;
    min-height: 86px;
    padding: 11px 7px 9px;
    border-radius: 11px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.member-avatar {
    width: 39px;
    height: 39px;
    margin-bottom: 5px;
    border-radius: 50%;
    object-fit: cover;
}

.member-card strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-card span {
    display: block;
    margin-top: 3px;
    color: var(--text-2);
    font-size: 8px;
    line-height: 1.3;
}

.team-subsection {
    margin-top: 25px;
}

.team-subsection h3 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
}

.office-cities {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.city {
    min-width: 0;
    text-align: center;
}

.city-photo {
    width: 51px;
    height: 51px;
    margin: 0 auto 5px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color 150ms ease;
}

.city-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city span {
    display: block;
    overflow: hidden;
    color: var(--text-2);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city.active .city-photo {
    border-color: var(--primary);
}

.city.active span {
    color: var(--primary);
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 7px 13px;
    border-radius: 11px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
}

.product-chip > span {
    color: var(--primary);
    font-size: 12px;
}

.product-chip.active {
    background: var(--primary);
    color: var(--white);
}

.product-chip.active > span {
    color: var(--white);
}

.team-profile {
    min-width: 0;
    padding: 29px 28px 27px;
    background: var(--primary);
    color: var(--white);
}

.team-badge {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    font-size: 10px;
    font-weight: 800;
}

.profile-points {
    margin-top: 16px;
}

.profile-point {
    margin-bottom: 18px;
}

.profile-point:last-child {
    margin-bottom: 0;
}

.profile-point h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    color: var(--white);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.profile-point p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 9px;
    line-height: 1.55;
}

.profile-point--danger h3 {
    color: #ff2a2a;
}

.team-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.profile-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 7px 13px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.profile-button.active {
    background: var(--white);
    color: var(--primary);
}

.profile-button:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.resume-card {
    width: 100%;
    margin-top: 35px;
    padding: 25px 25px 23px;
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 18px 40px rgba(10, 22, 94, 0.18);
}

.resume-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.resume-title-row h2 {
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
}

.resume-type {
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 9px;
}

.resume-summary {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 20px;
}

.resume-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}

.resume-summary p {
    margin: 0;
    color: var(--text-2);
    font-size: 10px;
    line-height: 1.7;
}

.resume-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    margin-top: 26px;
}

.resume-grid h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.resume-grid h4 {
    margin: 0 0 11px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mini-label {
    margin: 0 0 8px;
    color: var(--text-2);
    font-size: 9px;
}

.tag-list,
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-list {
    align-items: flex-start;
    flex-direction: column;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
}

.tag--filled {
    background: var(--primary);
    color: var(--white);
}

.tag--outlined {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--white);
}

.resume-meta {
    display: grid;
    gap: 6px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text-2);
    font-size: 10px;
}

.resume-meta li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 42px 20px 18px;
    border-top: 8px solid var(--white);
}

.footer-content,
.footer-bottom {
    max-width: 1080px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 68px;
}

.footer-logo img {
    width: auto;
    height: 38px;
}

.footer-brand p {
    max-width: 210px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.footer-column h2 {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 800;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    transition: color 150ms ease;
}

.footer-column a:hover,
.footer-legal a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    color: rgba(255, 255, 255, 0.62);
    font-size: 8px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1500px) {
    .home-panel {
        padding-inline: 42px;
    }

    .team-showcase {
        grid-template-columns: minmax(0, 1.55fr) minmax(255px, 0.95fr);
    }

    .team-overview,
    .team-profile {
        padding-inline: 22px;
    }
}

@media (max-width: 1240px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-panel {
        padding: 52px clamp(24px, 5vw, 56px) 58px;
    }

    .teams-inner,
    .resume-inner {
        max-width: 900px;
        margin: 0 auto;
    }

    .resume-card {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .header-content {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-inline: 16px;
    }

    .logo {
        grid-column: 1;
    }

    .nav-buttons {
        grid-column: 2;
    }

    .main-nav {
        display: none;
    }

    .logo img {
        height: 31px;
    }

    .nav-buttons {
        gap: 12px;
    }

    .nav-buttons .signup {
        min-width: 70px;
        padding-inline: 14px;
    }

    .home-panel {
        padding: 42px 18px 48px;
    }

    .intro-block h1 {
        font-size: 30px;
    }

    .team-showcase {
        grid-template-columns: 1fr;
    }

    .team-overview,
    .team-profile {
        padding: 24px 20px;
    }

    .team-tabs {
        flex-wrap: nowrap;
        margin-right: -20px;
        padding-right: 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .team-tabs::-webkit-scrollbar {
        display: none;
    }

    .team-members {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .office-cities {
        display: flex;
        gap: 15px;
        margin-right: -20px;
        padding-right: 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .office-cities::-webkit-scrollbar {
        display: none;
    }

    .city {
        flex: 0 0 61px;
    }

    .product-list {
        gap: 8px;
    }

    .product-chip {
        max-width: 100%;
        white-space: normal;
    }

    .resume-card {
        padding: 22px 18px;
    }

    .resume-summary {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 13px;
    }

    .resume-avatar {
        width: 58px;
        height: 58px;
    }

    .resume-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .skill-list {
        flex-direction: row;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .site-header,
    .header-content {
        min-height: 58px;
    }

    .header-content {
        padding-inline: 10px;
        column-gap: 10px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .nav-buttons a {
        font-size: 11px;
    }

    .nav-buttons .signup {
        min-width: 64px;
        padding-inline: 11px;
    }

    .intro-block h1 {
        font-size: 27px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .team-members {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-actions {
        flex-direction: column;
    }

    .profile-button {
        width: 100%;
    }

    .resume-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .resume-summary {
        grid-template-columns: 1fr;
    }

    .resume-avatar {
        width: 70px;
        height: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        flex-wrap: wrap;
    }
}


/* Generic placeholder page */
.generic-main {
    min-height: calc(100vh - 54px);
    display: grid;
    place-items: center;
    padding: 64px 22px;
    background: var(--surface);
}

.generic-card {
    width: min(100%, 720px);
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.generic-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
}

.generic-card p {
    margin: 0 auto 26px;
    max-width: 560px;
    color: var(--text-2);
}

@media (max-width: 560px) {
    .generic-card {
        padding: 34px 22px;
    }
}


/* Generic placeholder page */
.generic-main {
    min-height: calc(100vh - 54px);
    display: grid;
    place-items: center;
    padding: 72px 22px;
    background: var(--surface);
}

.generic-card {
    width: min(680px, 100%);
    padding: 48px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.generic-card h1 {
    margin-bottom: 14px;
    font-size: clamp(28px, 4vw, 42px);
}

.generic-card p {
    margin: 0 auto 26px;
    max-width: 520px;
    color: var(--text-2);
    line-height: 1.75;
}

@media (max-width: 520px) {
    .generic-card {
        padding: 34px 22px;
    }
}


/* Keep the shared footer at the bottom of short generic pages. */
.generic-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.generic-page .generic-main {
    flex: 1;
    min-height: 0;
}


/* Authenticated header state */

.nav-buttons {
    position: relative;
}

.account-menu {
    position: relative;
    display: none;
}

.nav-buttons.is-authenticated .login,
.nav-buttons.is-authenticated .signup {
    display: none;
}

.nav-buttons.is-authenticated .account-menu {
    display: block;
}

.account-trigger {
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background-color 150ms ease, transform 150ms ease;
}

.account-trigger:hover,
.account-menu.is-open .account-trigger {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    min-width: 128px;
    padding: 6px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 41, 0.18);
    display: none;
    color: var(--text);
}

.account-menu.is-open .account-dropdown {
    display: grid;
    gap: 2px;
}

.account-dropdown a,
.account-dropdown button {
    width: 100%;
    min-height: 35px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: #f0f2ff;
}

.account-dropdown span {
    width: 16px;
    color: var(--primary);
    line-height: 1;
}


/* Company admin header mode */

.site-header--company-admin {
    min-height: 54px;
}

.header-content--company-admin {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.company-admin-header-left {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.company-admin-preview-link {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0.95;
}

.company-admin-preview-link:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.company-admin-header-title {
    grid-column: 2;
    justify-self: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.nav-buttons--company-admin {
    gap: 10px;
}

.company-admin-status-pill {
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.company-admin-status-pill:hover {
    background: rgba(255, 255, 255, 0.28);
}

.company-admin-header-icon {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
}

.company-admin-header-icon:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nav-buttons--company-admin .account-menu {
    display: block;
}

.nav-buttons--company-admin .login,
.nav-buttons--company-admin .signup {
    display: none !important;
}

@media (max-width: 760px) {
    .header-content--company-admin {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .company-admin-header-left {
        gap: 12px;
    }

    .company-admin-preview-link {
        display: none;
    }

    .company-admin-header-title {
        display: none;
    }

    .company-admin-status-pill {
        padding: 0 10px;
    }
}
