/* Base Styles for 9FS (Vibrant/Grid Theme) */

:root {
    --bg: #ffffff;
    --fg: #050505;
    --text-muted: #555;
    --grid-line: rgba(0, 0, 0, 0.06);

    /* VIBRANT PALETTE */
    --color-orange: #FF5400;
    --color-purple: #7000FF;
    --color-pink: #FF0055;
    --color-green: #00A862;
    --color-blue: #0066FF;

    /* FONTS */
    /* Changed --font-serif to a system font stack for the skinnier header look */
    --font-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* Global Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111;
}

h1 {
    /* Applies the skinnier system font */
    font-family: var(--font-serif); 
    font-weight: 600; /* Medium weight for skinnier look */
}

p {
    color: #444;
}

a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s;
}

/* --- BACKGROUND BLOBS (Index Page used these, keeping them generic) --- */
.color-accent-top-right {
    position: absolute;
    top: -10%; right: -5%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(255, 84, 0, 0.12) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.color-accent-bottom-left {
    position: absolute;
    bottom: 10%; left: -10%;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* --- LAYOUT --- */
.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    border-left: 1px solid var(--grid-line);
    border-right: 1px solid var(--grid-line);
    min-height: 100vh;
    position: relative;
    background: white;
    overflow: hidden;
}

/* --- HEADER --- */
.header {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--grid-line);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo { 
    font-weight: 800; 
    font-size: 1.3rem; 
    letter-spacing: -0.03em; 
    text-decoration: none; 
    color: var(--fg); 
}
.logo span { color: var(--color-orange); }

/* --- BUTTONS & CTAS (Shared classes) --- */
.agent-input-container {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 6px 6px 6px 24px;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
    max-width: 100%;
}

.agent-input-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border-color: var(--color-orange);
}

.input-prompt {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-blink {
    width: 8px; height: 8px; background: var(--color-green); border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.btn-run {
    background: var(--fg);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-run:hover {
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
}

/* --- FOOTER CTA (Used as general footer/contact area) --- */
.footer-cta {
    padding: 6rem 3rem;
    background: #FAFAFA;
    border-top: 1px solid var(--grid-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    font-size: 2rem;
    font-family: var(--font-serif);
    color: var(--fg);
    text-decoration: none;
    position: relative;
}
.footer-link:hover { color: var(--color-orange); }

/* --- CAREERS PAGE SPECIFIC STYLES (Generalized for consistency) --- */
.page-hero {
    padding: 8rem 3rem 4rem;
    border-bottom: 1px solid var(--grid-line);
}
.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.page-hero .lead {
    font-size: 1.25rem;
    color: #444;
    max-width: 60ch;
}
.job-section-container {
    padding: 4rem 3rem;
}
.job-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--color-purple);
}

.job-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.job-meta strong {
    color: var(--fg);
    font-weight: 600;
}

.job-description-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--color-orange);
    padding-left: 1rem;
    line-height: 1.3;
}

.job-description-section p {
    margin-bottom: 1rem;
}

.job-description-section ul,
.job-description-section ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.job-description-section li {
    margin-bottom: 0.75rem;
    color: #444;
}
.job-description-section li strong {
    color: var(--fg);
}


.apply-box {
    background: var(--fg);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.apply-box h3 {
    color: white;
    font-family: var(--font-sans);
}

.apply-box p {
    color: #ccc;
}

.apply-box a {
    color: var(--color-orange);
    font-weight: 600;
}
.apply-box ul, .apply-box ol {
    margin-left: 1.5rem;
}
.apply-box li {
    color: #ccc;
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .header { padding: 1.5rem 1.5rem; }
    .footer-cta { flex-direction: column; gap: 2rem; text-align: center; padding: 4rem 1.5rem; }
    .wrapper { border-left: none; border-right: none; }
    .page-hero { padding: 6rem 1.5rem 3rem; }
    .job-section-container { padding: 3rem 1.5rem; }
    .job-card { padding: 1.5rem; }
    .job-meta { flex-direction: column; gap: 0.5rem; }
    .job-description-section h3 { font-size: 1.25rem; padding-left: 0.75rem; }
}