/* ============================================================================
   DataFortify Careers — shared stylesheet
   Dark theme, continuous with the www.datafortify.cloud coming-soon page.
   Tokens: bg #0a0a0f · emerald #10b981 · Inter.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg: #0a0a0f;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.55);
    --text-faint: rgba(255, 255, 255, 0.35);
    --line: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.04);
    --em-line: rgba(16, 185, 129, 0.25);
    --em-glow: rgba(16, 185, 129, 0.12);
    --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ── Animated background layers (shared with home) ── */
.bg-gradient {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(16,185,129,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59,130,246,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16,185,129,0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.1)} }

.grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(16,185,129,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,185,129,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.particles { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.particle {
    position: absolute; width: 4px; height: 4px;
    background: rgba(16,185,129,0.6); border-radius: 50%;
    animation: float 15s infinite; opacity: 0;
}
.particle:nth-child(1){left:10%;animation-delay:0s}
.particle:nth-child(2){left:25%;animation-delay:2s}
.particle:nth-child(3){left:40%;animation-delay:4s}
.particle:nth-child(4){left:55%;animation-delay:1s}
.particle:nth-child(5){left:70%;animation-delay:3s}
.particle:nth-child(6){left:85%;animation-delay:5s}
@keyframes float {
    0%{transform:translateY(100vh) scale(0);opacity:0}
    10%{opacity:1} 90%{opacity:1}
    100%{transform:translateY(-100vh) scale(1);opacity:0}
}

/* ── Layout primitives ── */
.wrap { position: relative; z-index: 10; max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }
.section { margin-bottom: 4.5rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 0.5rem; }
.section-head p { color: var(--text-soft); max-width: 580px; margin: 0 auto; font-weight: 300; }
.lede { color: var(--text-soft); font-weight: 300; max-width: 720px; margin: 0 auto 1rem; font-size: 1.05rem; }

/* ── Top bar ── */
.topbar {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; margin: 0 auto; padding: 1.75rem 2.5rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { width: 36px; height: 42px; flex-shrink: 0; }
.shield {
    width: 100%; height: 100%; fill: none; stroke: var(--emerald); stroke-width: 1.5;
    filter: drop-shadow(0 0 16px rgba(16,185,129,0.5));
    animation: shieldGlow 3s ease-in-out infinite; overflow: visible;
}
@keyframes shieldGlow {
    0%,100%{filter:drop-shadow(0 0 16px rgba(16,185,129,0.5))}
    50%{filter:drop-shadow(0 0 32px rgba(16,185,129,0.8))}
}
.logo-text { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.logo-text span { color: var(--emerald); }
.topbar nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { color: var(--text-soft); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color .2s; }
.nav-link:hover { color: var(--emerald); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.75rem; border-radius: 12px; font-size: 0.95rem; font-weight: 600;
    font-family: inherit; cursor: pointer; text-decoration: none; transition: all .3s ease; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%); color: #fff; }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,185,129,0.4); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: var(--glass); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

/* ── Split hero (Option B): video dominant on the left, copy on the right ── */
.hero-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;   /* ~55/45 — video is the bigger side, like the coming-soon page */
    gap: 3rem;
    align-items: center;
    padding: 2.5rem 0 3.5rem;
    animation: fadeInUp 1s ease-out both;
}
.hero-video { min-width: 0; }
.hero-copy { min-width: 0; }
.hero-copy h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.08;
    background: linear-gradient(135deg, #fff 0%, var(--emerald) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin: 0.4rem 0 1rem;
}
.hero-copy .subhead { font-size: 1.1rem; color: var(--text-soft); font-weight: 300; margin-bottom: 1.75rem; }
.hero-copy .cta-row { justify-content: flex-start; }
.hero-video .video-label { justify-content: flex-start; }
.hero-video .video-shell { max-width: none; }

/* ── Hero (legacy centered, kept for other pages) ── */
.hero { text-align: center; padding: 2.5rem 0 3rem; animation: fadeInUp 1s ease-out both; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--emerald); margin-bottom: 1.25rem;
    border: 1px solid var(--em-line); border-radius: 30px; padding: 0.45rem 1rem; background: var(--em-glow);
}
.pulse-dot { width: 8px; height: 8px; background: var(--emerald); border-radius: 50%; animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot {
    0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(16,185,129,0.4)}
    50%{opacity:.7;box-shadow:0 0 0 6px rgba(16,185,129,0)}
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.08;
    background: linear-gradient(135deg, #fff 0%, var(--emerald) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 1.1rem;
}
.hero .subhead { font-size: 1.2rem; color: var(--text-soft); font-weight: 300; max-width: 660px; margin: 0 auto 2rem; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* ── Video block ── */
.video-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--emerald); margin-bottom: 0.85rem;
}
.video-shell { max-width: 860px; margin: 0 auto; text-align: center; }
.video-caption { color: var(--text-faint); font-size: 0.9rem; font-weight: 300; margin-top: 0.85rem; font-style: italic; }
.video-wrapper {
    position: relative; border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(16,185,129,0.2); background: rgba(0,0,0,0.4);
    box-shadow: 0 0 40px rgba(16,185,129,0.1), 0 4px 24px rgba(0,0,0,0.4);
    aspect-ratio: 16 / 9;
}
.video-wrapper video, .video-wrapper iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-coming {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.75rem; text-align: center; padding: 1.5rem;
    background: radial-gradient(ellipse at center, rgba(16,185,129,0.12) 0%, transparent 70%), rgba(0,0,0,0.5);
}
.video-coming .play {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4);
    display: flex; align-items: center; justify-content: center; animation: pulseDot 2.4s ease-in-out infinite;
}
.video-coming .play svg { width: 26px; height: 26px; fill: var(--emerald); margin-left: 4px; }
.video-coming .ttl { font-weight: 600; font-size: 1.05rem; }
.video-coming .sub { color: var(--text-soft); font-size: 0.9rem; font-weight: 300; }

/* ── Prose blocks (What we're building / How we work / Thrive) ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--text-soft); font-weight: 300; margin-bottom: 1rem; font-size: 1.05rem; }
.kicker { font-weight: 700; color: var(--text); font-size: 1.2rem; margin-bottom: 1rem; }
.value-list { list-style: none; display: grid; gap: 1rem; }
.value-list li {
    background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem;
    color: var(--text-soft); font-weight: 300;
}
.value-list li strong { color: var(--text); font-weight: 600; }

/* ── Perks grid ── */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.perk-group {
    background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem;
}
.perk-group h3 { font-size: 1.05rem; color: var(--emerald); margin-bottom: 1rem; }
.perk-group ul { list-style: none; display: grid; gap: 0.7rem; }
.perk-group li { color: var(--text-soft); font-weight: 300; font-size: 0.95rem; padding-left: 1.4rem; position: relative; }
.perk-group li::before { content: '✦'; position: absolute; left: 0; color: var(--emerald); }
.perk-group li strong { color: var(--text); font-weight: 600; }

/* ── Job board: filter sidebar + role cards ── */
.board {
    display: grid; grid-template-columns: 230px 1fr; gap: 2rem;
    max-width: 960px; margin: 0 auto; align-items: start;
}
.board-side { position: sticky; top: 1.5rem; display: grid; gap: 0.85rem; }
.side-field input, .board-side select {
    width: 100%; padding: 0.75rem 0.9rem; border-radius: 12px;
    border: 1px solid var(--line); background: var(--glass); color: #fff;
    font-family: inherit; font-size: 0.92rem; outline: none; transition: border-color .25s, background .25s;
}
.side-field input::placeholder { color: var(--text-faint); }
.side-field input:focus, .board-side select:focus { border-color: var(--emerald); background: rgba(16,185,129,0.08); }
.board-side select { cursor: pointer; }
.board-side option { background: #14141c; color: #fff; }
.side-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-top: 0.35rem; }
.dept-list { display: grid; gap: 0.35rem; }
.dept-item {
    text-align: left; width: 100%; cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 400;
    color: var(--text-soft); background: transparent; border: 1px solid transparent; border-radius: 10px;
    padding: 0.55rem 0.8rem; transition: all .2s;
}
.dept-item:hover { color: #fff; background: var(--glass); }
.dept-item.active { color: var(--emerald); background: var(--em-glow); border-color: var(--em-line); font-weight: 600; }

.board-main { min-width: 0; }
.roles-list { display: flex; flex-direction: column; gap: 1rem; }
/* roles-grid kept as the JS mount id; cards stack full-width in the board column */
.roles-grid, .roles-list { min-width: 0; }
.role-card {
    display: block; text-decoration: none; color: inherit;
    background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem;
    transition: border-color .25s, transform .25s; position: relative;
}
.role-card:hover { border-color: rgba(16,185,129,0.4); transform: translateY(-3px); }
.role-card .dept {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--emerald); margin-bottom: 0.6rem;
}
.role-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.role-card .tag-line { color: var(--text-soft); font-weight: 300; font-size: 0.95rem; margin-bottom: 1rem; }
.role-card .meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
    font-size: 0.72rem; font-weight: 600; color: var(--emerald);
    background: var(--em-glow); border: 1px solid var(--em-line);
    padding: 0.28rem 0.65rem; border-radius: 20px;
}
.role-card .go { margin-top: 1.1rem; color: var(--emerald); font-weight: 600; font-size: 0.9rem; }
.no-results { text-align: center; color: var(--text-faint); padding: 2rem; grid-column: 1 / -1; }

/* ── Role detail view ── */
.role-detail { max-width: 760px; margin: 0 auto; }
.role-detail .back { color: var(--text-soft); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.role-detail .back:hover { color: var(--emerald); }
.role-detail h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 1.25rem 0 0.6rem; }
.role-detail .tag-line { font-size: 1.2rem; color: var(--emerald); font-weight: 300; margin-bottom: 1rem; }
.role-detail .meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.role-detail .block { margin-bottom: 2rem; }
.role-detail .block h2 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.role-detail .block p { color: var(--text-soft); font-weight: 300; }
.role-detail .block ul { list-style: none; display: grid; gap: 0.6rem; }
.role-detail .block li { color: var(--text-soft); font-weight: 300; padding-left: 1.5rem; position: relative; }
.role-detail .block li::before { content: '→'; position: absolute; left: 0; color: var(--emerald); }

/* ── Apply wizard ── */
.apply-box {
    background: radial-gradient(ellipse at top, rgba(16,185,129,0.1) 0%, transparent 60%), var(--glass);
    border: 1px solid var(--em-line); border-radius: 20px; padding: 2.25rem; margin-top: 1rem;
}
.apply-box h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.apply-box .instruction { color: var(--text-soft); font-weight: 300; margin-bottom: 1.5rem; }
.check {
    display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 0;
    border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text-soft); font-weight: 300;
}
.check:last-of-type { border-bottom: none; }
.check input { width: 20px; height: 20px; accent-color: var(--emerald); margin-top: 0.15rem; flex-shrink: 0; cursor: pointer; }
.consent {
    margin: 1.25rem 0; padding: 1rem 1.1rem; border-radius: 12px;
    background: rgba(255,255,255,0.03); border: 1px dashed var(--line);
}
.consent .check { border-bottom: none; padding: 0; }
.field { margin: 1.25rem 0; }
.field label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
    width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
    border: 1px solid var(--line); background: var(--glass); color: #fff;
    font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { border-color: var(--emerald); }
.field .hint { color: var(--text-faint); font-size: 0.82rem; margin-top: 0.4rem; font-weight: 300; }
.field-error { color: var(--error); font-size: 0.82rem; margin-top: 0.4rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field.invalid .field-error { display: block; }
.turnstile-row { margin: 1.25rem 0; min-height: 65px; }
.form-msg { display: none; padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: 0.9rem; }
.form-msg.error { display: block; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: var(--error); }
.apply-success { display: none; text-align: center; padding: 1.5rem 0; }
.apply-success .check-circle {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.25rem;
    background: rgba(16,185,129,0.15); border: 1px solid var(--em-line);
    display: flex; align-items: center; justify-content: center;
}
.apply-success .check-circle svg { width: 34px; height: 34px; stroke: var(--emerald); fill: none; stroke-width: 3; }
.privacy-line { color: var(--text-faint); font-size: 0.82rem; font-weight: 300; margin-top: 1rem; text-align: center; }
.privacy-line a { color: var(--text-soft); }

/* ── Footer ── */
.footer {
    position: relative; z-index: 10; text-align: center; color: var(--text-faint);
    font-size: 0.82rem; padding: 2.5rem 2.5rem; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 2rem;
    font-weight: 300;
}
.footer a { color: var(--text-soft); text-decoration: none; }
.footer a:hover { color: var(--emerald); }
.footer .row { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.85rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .wrap, .topbar { padding-left: 1.25rem; padding-right: 1.25rem; }
    .roles-grid { grid-template-columns: 1fr; }
    .filter-bar select { min-width: 0; flex: 1 1 140px; }
    .topbar nav { gap: 1rem; }
}
