html {
    scroll-behavior: smooth;
}

:root {
    --careers-bg: var(--color-bg-base, #0A0A0B);
    --careers-bg-secondary: var(--color-bg-surface, #111113);
    --careers-text-primary: #ffffff;
    --careers-text-secondary: rgba(255, 255, 255, 0.7);
    --careers-text-muted: rgba(255, 255, 255, 0.5);
    --careers-border: rgba(255, 255, 255, 0.1);
    --careers-green: var(--color-brand-primary, #3AAFD4);
    --careers-purple: var(--color-brand-secondary, #3AAFD4);
    --careers-gradient: linear-gradient(135deg, var(--color-brand-primary, #3AAFD4) 0%, var(--color-brand-secondary, #3AAFD4) 100%);
}

body.careers-page {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--careers-bg);
    color: var(--careers-text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.careers-main {
    position: relative;
    z-index: 1;
}

.careers-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    overflow: hidden;
}

.careers-section-inner {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.careers-headline {
    font-size: clamp(36px, 7vw, 84px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.careers-section-headline {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.careers-building-headline {
    font-size: clamp(28px, 4.5vw, 54px);
    white-space: nowrap;
}

.careers-deon-gradient {
    background: linear-gradient(135deg, var(--color-brand-secondary, #3AAFD4) 0%, var(--color-brand-primary, #3AAFD4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.careers-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.careers-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.careers-hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 100px 60px 80px;
}

.careers-hero-sphere {
    flex: 0 0 45%;
    position: relative;
    height: 500px;
    max-height: 60vh;
    order: 2;
}

.careers-hero-sphere canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.careers-hero-content {
    flex: 1;
    text-align: left;
    max-width: 550px;
    padding: 0;
    order: 1;
}

.careers-hero-statements {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
}

.careers-hero-statement {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 500;
    color: var(--careers-text-muted);
    letter-spacing: -0.01em;
}

.careers-statement {
    text-align: center;
    padding: 80px 60px;
}

.careers-positions {
    padding: 80px 60px;
}

.careers-positions .careers-section-headline {
    text-align: left;
    margin-bottom: 48px;
    font-size: clamp(24px, 4vw, 48px);
}

.careers-jobs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.careers-job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.careers-job-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.careers-job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    cursor: pointer;
    gap: 20px;
}

.careers-job-info {
    flex: 1;
    min-width: 0;
}

.careers-job-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--careers-text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.careers-job-oneliner {
    font-size: 15px;
    color: var(--careers-text-secondary);
    line-height: 1.5;
}

.careers-job-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.careers-job-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.careers-job-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--careers-text-secondary);
    transition: transform 0.3s ease;
}

.careers-job-card.expanded .careers-job-toggle svg {
    transform: rotate(180deg);
}

.careers-job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.careers-job-card.expanded .careers-job-details {
    max-height: 700px;
}

.careers-job-details-inner {
    padding: 0 32px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

.careers-job-description {
    font-size: 16px;
    color: var(--careers-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.careers-job-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--careers-text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.careers-job-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.careers-job-list li {
    font-size: 15px;
    color: var(--careers-text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.careers-job-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--careers-gradient);
}

.careers-letter {
    padding: 80px 60px 120px;
}

.careers-letter-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 60px 0;
    max-width: 700px;
    margin: 0 auto;
    border: none;
    background-image: none;
    backdrop-filter: none;
    text-align: center;
}

.careers-letter-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--careers-text-primary);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.careers-letter-body {
    text-align: left;
    margin-bottom: 40px;
}

.careers-letter-body p {
    font-size: 16px;
    font-weight: 400;
    color: var(--careers-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.careers-letter-body p:last-child {
    margin-bottom: 0;
}

.careers-letter-signature {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 40px;
    padding-right: 20px;
}

.careers-letter-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--careers-text-primary);
}

.careers-letter-role {
    font-size: 14px;
    color: var(--careers-text-muted);
}

.careers-letter-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    color: var(--careers-text-primary);
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid transparent;
    background: 
        linear-gradient(var(--careers-bg), var(--careers-bg)) padding-box,
        linear-gradient(90deg, var(--color-brand-primary, #3AAFD4), var(--color-luminous-cyan, #5ECAF0), var(--color-brand-primary, #3AAFD4)) border-box;
    transition: all 0.3s ease;
}

.careers-letter-cta:hover {
    background: 
        linear-gradient(90deg, rgba(58, 175, 212, 0.15), rgba(58, 175, 212, 0.15)) padding-box,
        linear-gradient(90deg, var(--color-brand-primary, #3AAFD4), var(--color-luminous-cyan, #5ECAF0), var(--color-brand-primary, #3AAFD4)) border-box;
    box-shadow: 
        0 0 20px rgba(58, 175, 212, 0.25),
        0 0 40px rgba(58, 175, 212, 0.15);
}

.about-footer {
    padding: 40px 60px 60px;
    background: var(--color-bg-surface, #111113);
}

.about-footer-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 40px;
}

.about-footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.about-footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.careers-apply-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.careers-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.careers-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.careers-upload-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.careers-file-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.careers-apply-btn {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0f;
    background: linear-gradient(135deg, var(--color-brand-primary, #3AAFD4) 0%, #1A7A9E 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.careers-apply-btn:hover {
    background: linear-gradient(135deg, #1A7A9E 0%, #1A7A9E 100%);
    box-shadow: 0 0 20px rgba(58, 175, 212, 0.3);
}

.careers-apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.careers-apply-status {
    font-size: 13px;
    width: 100%;
}

.careers-apply-status.success {
    color: var(--color-brand-primary, #3AAFD4);
}

.careers-apply-status.error {
    color: #F87171;
}

@media (max-width: 1024px) {
    .careers-section {
        padding: 60px 40px;
    }

    .careers-hero {
        padding: 80px 40px 60px;
        gap: 30px;
    }

    .careers-hero-sphere {
        height: 400px;
    }

    .careers-letter {
        padding: 60px 40px 100px;
    }

    .careers-letter-card {
        padding: 48px 0;
    }
}

@media (max-width: 768px) {
    .careers-section {
        padding: 60px 24px;
    }

    .careers-hero {
        flex-direction: column;
        padding: 80px 24px 60px;
        gap: 30px;
    }

    .careers-hero-sphere {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: 300px;
        margin: 0 auto;
        order: 1;
    }

    .careers-hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 16px;
        order: 2;
    }

    .careers-headline {
        font-size: clamp(36px, 12vw, 72px);
    }

    .careers-section-headline {
        font-size: clamp(28px, 8vw, 48px);
    }

    .careers-building-headline {
        white-space: normal;
    }

    .careers-positions .careers-section-headline {
        text-align: center;
    }

    .careers-hero-statements {
        gap: 12px;
        margin-top: 36px;
    }

    .careers-hero-statement {
        font-size: 18px;
    }

    .careers-job-header {
        padding: 20px 24px;
    }

    .careers-job-title {
        font-size: 17px;
    }

    .careers-job-oneliner {
        font-size: 14px;
    }

    .careers-job-details-inner {
        padding: 0 24px 24px;
        padding-top: 20px;
    }

    .careers-letter {
        padding: 60px 24px 80px;
    }

    .careers-letter-card {
        padding: 40px 0;
    }

    .careers-letter-title {
        font-size: 24px;
    }

    .careers-letter-body p {
        font-size: 15px;
    }

    .about-footer {
        padding: 30px 24px 40px;
    }

    .about-footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .careers-section {
        padding: 50px 16px;
    }

    .careers-hero {
        padding: 70px 16px 50px;
    }

    .careers-hero-sphere {
        height: 250px;
    }

    .careers-hero-content {
        padding: 0 8px;
    }

    .careers-headline {
        font-size: clamp(28px, 10vw, 52px);
    }

    .careers-section-headline {
        font-size: clamp(24px, 10vw, 40px);
    }

    .careers-hero-statement {
        font-size: 16px;
    }

    .careers-job-header {
        padding: 18px 20px;
        flex-wrap: nowrap;
    }

    .careers-job-toggle {
        width: 36px;
        height: 36px;
    }

    .careers-job-toggle svg {
        width: 18px;
        height: 18px;
    }

    .careers-job-details-inner {
        padding: 0 20px 20px;
        padding-top: 16px;
    }

    .careers-letter-card {
        padding: 32px 0;
    }

    .careers-letter-signature {
        padding-right: 0;
        align-items: center;
    }

    .careers-letter-cta {
        padding: 12px 32px;
        font-size: 15px;
    }

    .about-footer-links {
        gap: 16px;
        font-size: 13px;
    }
}

body.light-mode.careers-page {
    --careers-bg: #E8ECF1;
    --careers-bg-secondary: #DCE0E6;
    --careers-text-primary: #1A1A1E;
    --careers-text-secondary: #3D4550;
    --careers-text-muted: #59616E;
    --careers-border: rgba(0, 0, 0, 0.1);
    background: #E8ECF1;
}

body.light-mode .careers-headline,
body.light-mode .careers-section-headline {
    background: linear-gradient(135deg, #1A1A1E 0%, #3A3A42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .careers-hero-statement {
    color: #59616E;
}

body.light-mode .careers-job-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-mode .careers-job-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: #FAFBFC;
}

body.light-mode .careers-job-title {
    color: #1A1A1E;
}

body.light-mode .careers-job-oneliner {
    color: #59616E;
}

body.light-mode .careers-job-toggle {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .careers-job-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .careers-job-toggle svg {
    color: #59616E;
}

body.light-mode .careers-job-details-inner {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .careers-job-description {
    color: #3D4550;
}

body.light-mode .careers-job-subtitle {
    color: #1A1A1E;
}

body.light-mode .careers-job-list li {
    color: #3D4550;
}

body.light-mode .careers-letter-title {
    color: #1A1A1E;
}

body.light-mode .careers-letter-body p {
    color: #3D4550;
}

body.light-mode .careers-letter-name {
    color: #1A1A1E;
}

body.light-mode .careers-letter-role {
    color: #7E8795;
}

body.light-mode .careers-letter-cta {
    color: #1A1A1E;
    background:
        linear-gradient(#E8ECF1, #E8ECF1) padding-box,
        linear-gradient(90deg, #3AAFD4, #5ECAF0, #3AAFD4) border-box;
}

body.light-mode .careers-apply-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .careers-upload-btn {
    color: #3D4550;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .careers-upload-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1A1A1E;
}

body.light-mode .careers-file-name {
    color: #59616E;
}

body.light-mode .about-footer {
    background: #DCE0E6;
}

body.light-mode .about-footer-line {
    background: rgba(0, 0, 0, 0.12);
}

body.light-mode .about-footer-links a {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .about-footer-links a:hover {
    color: rgba(0, 0, 0, 0.8);
}