/* =========================================================
   REXTECH STUDIOS — CAREERS PAGE
   Primary Accent: #814ac8
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.careers-page {
    background: #000;
    color: #fff;
    overflow: hidden;
}

.careers-page a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HERO
   ========================================================= */

.careers-hero {
    position: relative;
    min-height: 100vh;
    padding: 150px 40px 100px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(circle at 78% 48%,
            rgba(129, 76, 200, 0.12),
            transparent 30%),
        #000;
}

.careers-hero-inner {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 80px;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.careers-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.careers-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 24px;

    font-family: var(--fh);
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.18em;

    color: #df7afe;

    text-transform: uppercase;
}

.careers-eyebrow::before {
    content: "";

    width: 24px;
    height: 1px;

    margin-right: 10px;

    background: #df7afe;
}


.careers-hero h1 {
    max-width: 680px;

    font-family: var(--fh);
    font-size: clamp(52px, 6.5vw, 88px);
    font-weight: 700;

    line-height: 0.98;
    letter-spacing: -0.055em;

    color: #fff;
}

.careers-hero h1 span {
    color: #814ac8;
}


.careers-hero-content>p {
    max-width: 570px;

    margin-top: 30px;

    color: rgba(255, 255, 255, 0.62);

    font-family: var(--fb);
    font-size: 17px;
    line-height: 1.75;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.careers-hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 38px;
}


.careers-primary-btn,
.careers-secondary-btn {
    min-height: 48px;

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

    gap: 14px;

    padding: 0 21px;

    border-radius: 7px;

    font-family: var(--fh);
    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.careers-primary-btn {
    background: #814ac8;
    color: #fff;

    border: 1px solid #814ac8;

    box-shadow:
        0 8px 30px rgba(129, 74, 200, 0.22);
}

.careers-primary-btn:hover {
    transform: translateY(-2px);

    background: #8b55d0;

    box-shadow:
        0 12px 35px rgba(129, 74, 200, 0.30);
}


.careers-secondary-btn {
    color: rgba(255, 255, 255, 0.82);

    border: 1px solid rgba(255, 255, 255, 0.14);

    background: rgba(255, 255, 255, 0.025);
}

.careers-secondary-btn:hover {
    transform: translateY(-2px);

    border-color: rgba(129, 74, 200, 0.6);

    background: rgba(129, 74, 200, 0.08);
}


.btn-arrow {
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.careers-hero-visual {
    position: relative;

    min-height: 560px;

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


.careers-hero-visual img {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;

    height: 560px;

    object-fit: cover;

    border-radius: 24px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.65);

    animation: careersImageReveal 1s var(--ease) both;
}


.careers-hero-glow {
    position: absolute;

    width: 70%;
    height: 70%;

    border-radius: 50%;

    background: rgba(129, 74, 200, 0.16);

    filter: blur(90px);

    opacity: 0.55;

    z-index: 1;
}


@keyframes careersImageReveal {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.career-section {
    position: relative;

    width: 100%;
    max-width: 1360px;

    margin: 0 auto;

    padding: 120px 40px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.career-section-heading {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-bottom: 55px;
}


.career-section-heading h2 {
    font-family: var(--fh);

    font-size: clamp(32px, 4vw, 52px);

    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -0.045em;

    white-space: nowrap;
}


.career-section-heading span {
    width: 100%;
    height: 1px;

    background:
        linear-gradient(to right,
            rgba(223, 122, 254, 0.75),
            rgba(223, 122, 254, 0.05));
}


/* =========================================================
   ROLE CARDS
   ========================================================= */

.career-role-grid {
    display: grid;

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

    gap: 20px;
}


.career-role-card {
    position: relative;

    min-height: 330px;

    padding: 34px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012));

    transition:
        transform 0.35s var(--ease),
        border-color 0.35s ease,
        background 0.35s ease;
}


.career-role-card:hover {
    transform: translateY(-7px);

    border-color: rgba(129, 74, 200, 0.5);

    background:
        linear-gradient(145deg,
            rgba(129, 74, 200, 0.09),
            rgba(255, 255, 255, 0.015));
}


.career-role-icon {
    width: 52px;
    height: 52px;

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

    margin-bottom: 28px;

    border-radius: 13px;

    color: #df7afe;

    background: rgba(129, 74, 200, 0.10);

    border: 1px solid rgba(129, 74, 200, 0.25);

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


.career-role-icon svg {
    width: 25px;
    height: 25px;
}


.career-role-card:hover .career-role-icon {
    transform: translateY(-2px);

    background: rgba(129, 74, 200, 0.16);
}


.career-role-card h3 {
    margin-bottom: 20px;

    font-family: var(--fh);

    font-size: 24px;
    font-weight: 600;

    letter-spacing: -0.03em;
}


.career-role-card ul {
    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


.career-role-card li {
    position: relative;

    padding-left: 18px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 14px;
}


.career-role-card li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 10px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #df7afe;
}


/* =========================================================
   OPEN APPLICATION CARD
   ========================================================= */

.career-open-card {
    margin-top: 20px;

    min-height: 135px;

    padding: 26px 30px;

    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 22px;

    border: 1px solid rgba(129, 74, 200, 0.28);

    border-radius: 16px;

    background:
        linear-gradient(100deg,
            rgba(129, 74, 200, 0.08),
            rgba(255, 255, 255, 0.018));
}


.career-open-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

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

    border-radius: 13px;

    color: #df7afe;

    background: rgba(129, 74, 200, 0.10);

    border: 1px solid rgba(129, 74, 200, 0.25);
}


.career-open-icon svg {
    width: 24px;
    height: 24px;
}


.career-open-content h3 {
    margin-bottom: 5px;

    font-family: var(--fh);

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


.career-open-content p {
    color: rgba(255, 255, 255, 0.56);

    font-size: 14px;
    line-height: 1.6;
}


.career-outline-btn {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    padding: 11px 17px;

    border: 1px solid rgba(129, 74, 200, 0.45);

    border-radius: 7px;

    color: #fff;

    font-family: var(--fh);

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

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.career-outline-btn:hover {
    transform: translateY(-2px);

    background: rgba(129, 74, 200, 0.12);

    border-color: #814ac8;
}


.career-outline-btn span {
    font-size: 17px;
}


/* =========================================================
   WHY REXTECH
   ========================================================= */

.why-rextech {
    padding-top: 80px;
}


.why-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 24px;
}


.why-item {
    padding: 32px 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}


.why-item:hover {
    transform: translateY(-4px);

    border-color: rgba(129, 74, 200, 0.65);
}


.why-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 22px;

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

    color: #df7afe;

    border-radius: 10px;

    background: rgba(129, 74, 200, 0.08);

    border: 1px solid rgba(129, 74, 200, 0.18);
}


.why-icon svg {
    width: 21px;
    height: 21px;
}


.why-item h3 {
    margin-bottom: 12px;

    font-family: var(--fh);

    font-size: 19px;
    font-weight: 600;

    line-height: 1.3;

    letter-spacing: -0.02em;
}


.why-item p {
    color: rgba(255, 255, 255, 0.52);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   APPLICATION JOURNEY
   ========================================================= */

.application-section {
    padding-top: 100px;
}


.application-journey {
    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr auto 1fr;

    align-items: stretch;

    gap: 24px;
}


.application-step {
    position: relative;

    min-height: 270px;

    padding: 34px 26px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.018);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.application-step:hover {
    transform: translateY(-5px);

    border-color: rgba(129, 74, 200, 0.42);
}


.application-number {
    margin-bottom: 22px;

    color: #df7afe;

    font-family: var(--fh);

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

    letter-spacing: 0.12em;
}


.application-icon {
    width: 44px;
    height: 44px;

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

    margin-bottom: 20px;

    color: #df7afe;

    border-radius: 10px;

    background: rgba(129, 74, 200, 0.08);

    border: 1px solid rgba(129, 74, 200, 0.18);
}


.application-icon svg {
    width: 21px;
    height: 21px;
}


.application-step h3 {
    margin-bottom: 10px;

    font-family: var(--fh);

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


.application-step p {
    color: rgba(255, 255, 255, 0.52);

    font-size: 13px;

    line-height: 1.65;
}


.journey-arrow {
    color: #df7afe;

    font-family: var(--fh);

    font-size: 25px;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.careers-final-cta {
    position: relative;

    width: calc(100% - 80px);
    max-width: 1200px;

    min-height: 250px;

    margin: 30px auto 120px;

    padding: 45px 55px;

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

    gap: 40px;

    overflow: hidden;

    border: 1px solid rgba(129, 74, 200, 0.25);

    border-radius: 20px;

    background:
        linear-gradient(110deg,
            rgba(129, 74, 200, 0.12),
            rgba(255, 255, 255, 0.025));
}


.careers-cta-glow {
    position: absolute;

    width: 350px;
    height: 350px;

    right: -80px;
    top: -180px;

    border-radius: 50%;

    background: rgba(129, 74, 200, 0.14);

    filter: blur(80px);

    pointer-events: none;
}


.careers-cta-content {
    position: relative;
    z-index: 2;
}


.careers-cta-content h2 {
    font-family: var(--fh);

    font-size: clamp(30px, 4vw, 50px);

    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -0.045em;
}


.careers-cta-content p {
    max-width: 560px;

    margin-top: 15px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 15px;

    line-height: 1.7;
}


.careers-final-cta>.careers-primary-btn {
    position: relative;
    z-index: 2;

    flex-shrink: 0;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .careers-hero-inner {
        grid-template-columns: 1fr 1fr;

        gap: 45px;
    }


    .careers-hero h1 {
        font-size: clamp(48px, 6vw, 70px);
    }


    .careers-hero-visual {
        min-height: 480px;
    }


    .careers-hero-visual img {
        height: 480px;
    }


    .why-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .application-journey {
        grid-template-columns:
            1fr 1fr;

        gap: 20px;
    }


    .journey-arrow {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE — TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 900px) {

    .careers-hero {
        padding: 130px 30px 80px;
    }


    .careers-hero-inner {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .careers-hero-content {
        max-width: 700px;
    }


    .careers-hero-visual {
        min-height: 420px;
    }


    .careers-hero-visual img {
        max-width: 700px;
        height: 420px;
    }


    .career-section {
        padding-left: 30px;
        padding-right: 30px;
    }


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


    .career-role-card:last-child {
        grid-column: 1 / -1;
    }


    .career-open-card {
        grid-template-columns: auto 1fr;
    }


    .career-outline-btn {
        grid-column: 2;
        justify-self: start;
    }


    .careers-final-cta {
        width: calc(100% - 60px);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .careers-hero {
        min-height: auto;

        padding:
            125px 20px 70px;
    }


    .careers-hero-inner {
        gap: 40px;
    }


    .careers-eyebrow {
        margin-bottom: 18px;

        font-size: 11px;
    }


    .careers-hero h1 {
        font-size: clamp(43px, 13vw, 62px);

        letter-spacing: -0.06em;
    }


    .careers-hero-content>p {
        margin-top: 22px;

        font-size: 15px;
        line-height: 1.7;
    }


    .careers-hero-buttons {
        align-items: stretch;

        flex-direction: column;

        margin-top: 30px;
    }


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


    .careers-hero-visual {
        min-height: 340px;
    }


    .careers-hero-visual img {
        height: 340px;

        border-radius: 18px;
    }


    .career-section {
        padding:
            75px 20px;
    }


    .career-section-heading {
        gap: 15px;

        margin-bottom: 35px;
    }


    .career-section-heading h2 {
        font-size: 32px;

        white-space: normal;
    }


    .career-section-heading span {
        display: none;
    }


    .career-role-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .career-role-card {
        min-height: auto;

        padding: 28px 25px;
    }


    .career-role-card:last-child {
        grid-column: auto;
    }


    .career-open-card {
        grid-template-columns: auto 1fr;

        padding: 24px;

        gap: 16px;
    }


    .career-open-icon {
        width: 45px;
        height: 45px;
    }


    .career-open-content h3 {
        font-size: 18px;
    }


    .career-open-content p {
        font-size: 13px;
    }


    .career-outline-btn {
        grid-column: 1 / -1;

        width: 100%;

        justify-content: center;
    }


    .why-rextech {
        padding-top: 60px;
    }


    .why-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .why-item {
        padding:
            24px 5px;
    }


    .application-section {
        padding-top: 65px;
    }


    .application-journey {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .application-step {
        min-height: auto;

        padding: 25px;
    }


    .careers-final-cta {
        width: calc(100% - 40px);

        min-height: auto;

        margin:
            10px auto 75px;

        padding: 35px 25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 28px;

        border-radius: 16px;
    }


    .careers-final-cta>.careers-primary-btn {
        width: 100%;
    }


    .careers-cta-content h2 {
        font-size: 34px;
    }


    .careers-cta-content p {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .careers-hero {
        padding-left: 16px;
        padding-right: 16px;
    }


    .career-section {
        padding-left: 16px;
        padding-right: 16px;
    }


    .careers-hero h1 {
        font-size: 42px;
    }


    .career-role-card {
        padding: 25px 21px;
    }


    .careers-final-cta {
        width: calc(100% - 32px);

        padding-left: 21px;
        padding-right: 21px;
    }

}

.journey-arrow {
    visibility: hidden;
}